index.d.ts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. export declare const TreeSelect: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
  2. max: {
  3. type: (NumberConstructor | StringConstructor)[];
  4. default: number;
  5. };
  6. items: {
  7. type: import("vue").PropType<import("./TreeSelect").TreeSelectItem[]>;
  8. default: () => never[];
  9. };
  10. height: {
  11. type: (NumberConstructor | StringConstructor)[];
  12. default: number;
  13. };
  14. selectedIcon: {
  15. type: import("vue").PropType<string>;
  16. default: string;
  17. };
  18. mainActiveIndex: {
  19. type: (NumberConstructor | StringConstructor)[];
  20. default: number;
  21. };
  22. activeId: {
  23. type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
  24. default: number;
  25. };
  26. }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex")[], "clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
  27. max: {
  28. type: (NumberConstructor | StringConstructor)[];
  29. default: number;
  30. };
  31. items: {
  32. type: import("vue").PropType<import("./TreeSelect").TreeSelectItem[]>;
  33. default: () => never[];
  34. };
  35. height: {
  36. type: (NumberConstructor | StringConstructor)[];
  37. default: number;
  38. };
  39. selectedIcon: {
  40. type: import("vue").PropType<string>;
  41. default: string;
  42. };
  43. mainActiveIndex: {
  44. type: (NumberConstructor | StringConstructor)[];
  45. default: number;
  46. };
  47. activeId: {
  48. type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
  49. default: number;
  50. };
  51. }>> & Readonly<{
  52. onClickItem?: ((...args: any[]) => any) | undefined;
  53. onClickNav?: ((...args: any[]) => any) | undefined;
  54. "onUpdate:activeId"?: ((...args: any[]) => any) | undefined;
  55. "onUpdate:mainActiveIndex"?: ((...args: any[]) => any) | undefined;
  56. }>, {
  57. height: string | number;
  58. max: string | number;
  59. items: import("./TreeSelect").TreeSelectItem[];
  60. selectedIcon: string;
  61. mainActiveIndex: string | number;
  62. activeId: import("../utils").Numeric | import("../utils").Numeric[];
  63. }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
  64. export default TreeSelect;
  65. export { treeSelectProps } from './TreeSelect';
  66. export type { TreeSelectItem, TreeSelectChild, TreeSelectProps, } from './TreeSelect';
  67. export type { TreeSelectThemeVars } from './types';
  68. declare module 'vue' {
  69. interface GlobalComponents {
  70. VanTreeSelect: typeof TreeSelect;
  71. }
  72. }