TreeSelect.d.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. import { type PropType, type ExtractPropTypes } from 'vue';
  2. import { type Numeric } from '../utils';
  3. export declare type TreeSelectChild = {
  4. id: Numeric;
  5. text: string;
  6. disabled?: boolean;
  7. };
  8. export declare type TreeSelectItem = {
  9. dot?: boolean;
  10. text: string;
  11. badge?: Numeric;
  12. children?: TreeSelectChild[];
  13. disabled?: boolean;
  14. className?: unknown;
  15. };
  16. declare const treeSelectProps: {
  17. max: {
  18. type: (NumberConstructor | StringConstructor)[];
  19. default: number;
  20. };
  21. items: {
  22. type: PropType<TreeSelectItem[]>;
  23. default: () => never[];
  24. };
  25. height: {
  26. type: (NumberConstructor | StringConstructor)[];
  27. default: number;
  28. };
  29. selectedIcon: {
  30. type: PropType<string>;
  31. default: string;
  32. };
  33. mainActiveIndex: {
  34. type: (NumberConstructor | StringConstructor)[];
  35. default: number;
  36. };
  37. activeId: {
  38. type: PropType<Numeric | Numeric[]>;
  39. default: number;
  40. };
  41. };
  42. export declare type TreeSelectProps = ExtractPropTypes<typeof treeSelectProps>;
  43. declare const _default: import("vue").DefineComponent<{
  44. max: {
  45. type: (NumberConstructor | StringConstructor)[];
  46. default: number;
  47. };
  48. items: {
  49. type: PropType<TreeSelectItem[]>;
  50. default: () => never[];
  51. };
  52. height: {
  53. type: (NumberConstructor | StringConstructor)[];
  54. default: number;
  55. };
  56. selectedIcon: {
  57. type: PropType<string>;
  58. default: string;
  59. };
  60. mainActiveIndex: {
  61. type: (NumberConstructor | StringConstructor)[];
  62. default: number;
  63. };
  64. activeId: {
  65. type: PropType<Numeric | Numeric[]>;
  66. default: number;
  67. };
  68. }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-item" | "click-nav" | "update:activeId" | "update:mainActiveIndex")[], "click-item" | "click-nav" | "update:activeId" | "update:mainActiveIndex", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
  69. max: {
  70. type: (NumberConstructor | StringConstructor)[];
  71. default: number;
  72. };
  73. items: {
  74. type: PropType<TreeSelectItem[]>;
  75. default: () => never[];
  76. };
  77. height: {
  78. type: (NumberConstructor | StringConstructor)[];
  79. default: number;
  80. };
  81. selectedIcon: {
  82. type: PropType<string>;
  83. default: string;
  84. };
  85. mainActiveIndex: {
  86. type: (NumberConstructor | StringConstructor)[];
  87. default: number;
  88. };
  89. activeId: {
  90. type: PropType<Numeric | Numeric[]>;
  91. default: number;
  92. };
  93. }>> & {
  94. "onClick-item"?: ((...args: any[]) => any) | undefined;
  95. "onClick-nav"?: ((...args: any[]) => any) | undefined;
  96. "onUpdate:activeId"?: ((...args: any[]) => any) | undefined;
  97. "onUpdate:mainActiveIndex"?: ((...args: any[]) => any) | undefined;
  98. }, {
  99. height: string | number;
  100. max: string | number;
  101. items: TreeSelectItem[];
  102. selectedIcon: string;
  103. mainActiveIndex: string | number;
  104. activeId: Numeric | Numeric[];
  105. }>;
  106. export default _default;