TabContext.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import type { Tab } from './interface';
  2. import type { PropType, Ref } from 'vue';
  3. export interface TabContextProps {
  4. tabs: Ref<Tab[]>;
  5. prefixCls: Ref<string>;
  6. }
  7. export declare const useProvideTabs: (props: TabContextProps) => void;
  8. export declare const useInjectTabs: () => {
  9. tabs: Ref<any[], any[]>;
  10. prefixCls: Ref<any, any>;
  11. };
  12. declare const TabsContextProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
  13. tabs: {
  14. type: PropType<Ref<Tab[], Tab[]>>;
  15. default: any;
  16. };
  17. prefixCls: {
  18. type: StringConstructor;
  19. default: any;
  20. };
  21. }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
  22. [key: string]: any;
  23. }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
  24. tabs: {
  25. type: PropType<Ref<Tab[], Tab[]>>;
  26. default: any;
  27. };
  28. prefixCls: {
  29. type: StringConstructor;
  30. default: any;
  31. };
  32. }>> & Readonly<{}>, {
  33. prefixCls: string;
  34. tabs: Ref<Tab[], Tab[]>;
  35. }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
  36. export default TabsContextProvider;