tree-node.vue.d.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. import { SFCWithInstall } from "../../../utils/vue/typescript.js";
  2. import { CheckboxProps, CheckboxValueType } from "../../checkbox/src/checkbox.js";
  3. import _default$1 from "../../checkbox/src/checkbox-button.vue.js";
  4. import _default$2 from "../../checkbox/src/checkbox-group.vue.js";
  5. import { IconProps } from "../../icon/src/icon.js";
  6. import Node from "./model/node.js";
  7. import { RootTreeType, TreeNodeData, TreeOptionProps } from "./tree.type.js";
  8. import * as _$vue from "vue";
  9. import { ComponentInternalInstance, PropType } from "vue";
  10. //#region ../../packages/components/tree/src/tree-node.vue.d.ts
  11. declare const _default: typeof __VLS_export;
  12. declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
  13. node: {
  14. type: typeof Node;
  15. default: () => {};
  16. };
  17. props: {
  18. type: PropType<TreeOptionProps>;
  19. default: () => {};
  20. };
  21. accordion: BooleanConstructor;
  22. renderContent: FunctionConstructor;
  23. renderAfterExpand: BooleanConstructor;
  24. showCheckbox: BooleanConstructor;
  25. }>, {
  26. ns: {
  27. namespace: _$vue.ComputedRef<string>;
  28. b: (blockSuffix?: string) => string;
  29. e: (element?: string) => string;
  30. m: (modifier?: string) => string;
  31. be: (blockSuffix?: string, element?: string) => string;
  32. em: (element?: string, modifier?: string) => string;
  33. bm: (blockSuffix?: string, modifier?: string) => string;
  34. bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
  35. is: {
  36. (name: string, state: boolean | undefined): string;
  37. (name: string): string;
  38. };
  39. cssVar: (object: Record<string, string>) => Record<string, string>;
  40. cssVarName: (name: string) => string;
  41. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  42. cssVarBlockName: (name: string) => string;
  43. };
  44. node$: _$vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
  45. tree: RootTreeType;
  46. expanded: _$vue.Ref<boolean, boolean>;
  47. childNodeRendered: _$vue.Ref<boolean, boolean>;
  48. oldChecked: _$vue.Ref<boolean | undefined, boolean | undefined>;
  49. oldIndeterminate: _$vue.Ref<boolean | undefined, boolean | undefined>;
  50. getNodeKey: (node: Node) => any;
  51. getNodeClass: (node: Node) => {
  52. [key: string]: boolean;
  53. };
  54. handleSelectChange: (checked: boolean, indeterminate: boolean) => void;
  55. handleClick: (e: MouseEvent) => void;
  56. handleContextMenu: (event: Event) => void;
  57. handleExpandIconClick: () => void;
  58. handleCheckChange: (value: CheckboxValueType) => void;
  59. handleChildNodeExpand: (nodeData: TreeNodeData, node: Node, instance: ComponentInternalInstance) => void;
  60. handleDragStart: (event: DragEvent) => void;
  61. handleDragOver: (event: DragEvent) => void;
  62. handleDrop: (event: DragEvent) => void;
  63. handleDragEnd: (event: DragEvent) => void;
  64. CaretRight: _$vue.DefineComponent<{}, void, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
  65. }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, "node-expand"[], "node-expand", _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
  66. node: {
  67. type: typeof Node;
  68. default: () => {};
  69. };
  70. props: {
  71. type: PropType<TreeOptionProps>;
  72. default: () => {};
  73. };
  74. accordion: BooleanConstructor;
  75. renderContent: FunctionConstructor;
  76. renderAfterExpand: BooleanConstructor;
  77. showCheckbox: BooleanConstructor;
  78. }>> & Readonly<{
  79. "onNode-expand"?: ((...args: any[]) => any) | undefined;
  80. }>, {
  81. props: TreeOptionProps;
  82. accordion: boolean;
  83. node: Node;
  84. renderAfterExpand: boolean;
  85. showCheckbox: boolean;
  86. }, {}, {
  87. ElCollapseTransition: SFCWithInstall<{
  88. new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
  89. P: {};
  90. B: {};
  91. D: {};
  92. C: {};
  93. M: {};
  94. Defaults: {};
  95. }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
  96. __isFragment?: never;
  97. __isTeleport?: never;
  98. __isSuspense?: never;
  99. } & _$vue.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
  100. $slots: {
  101. default?: (props: {}) => any;
  102. };
  103. })>;
  104. ElCheckbox: {
  105. new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<CheckboxProps> & Readonly<{
  106. "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
  107. onChange?: ((val: CheckboxValueType) => any) | undefined;
  108. }>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
  109. "update:modelValue": (val: CheckboxValueType) => void;
  110. change: (val: CheckboxValueType) => void;
  111. }, _$vue.PublicProps, {
  112. id: string;
  113. disabled: boolean;
  114. modelValue: number | string | boolean;
  115. validateEvent: boolean;
  116. name: string;
  117. value: string | boolean | number | object;
  118. label: string | boolean | number | object;
  119. trueValue: string | number;
  120. falseValue: string | number;
  121. trueLabel: string | number;
  122. falseLabel: string | number;
  123. }, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
  124. P: {};
  125. B: {};
  126. D: {};
  127. C: {};
  128. M: {};
  129. Defaults: {};
  130. }, Readonly<CheckboxProps> & Readonly<{
  131. "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
  132. onChange?: ((val: CheckboxValueType) => any) | undefined;
  133. }>, {}, {}, {}, {}, {
  134. id: string;
  135. disabled: boolean;
  136. modelValue: number | string | boolean;
  137. validateEvent: boolean;
  138. name: string;
  139. value: string | boolean | number | object;
  140. label: string | boolean | number | object;
  141. trueValue: string | number;
  142. falseValue: string | number;
  143. trueLabel: string | number;
  144. falseLabel: string | number;
  145. }>;
  146. __isFragment?: never;
  147. __isTeleport?: never;
  148. __isSuspense?: never;
  149. } & _$vue.ComponentOptionsBase<Readonly<CheckboxProps> & Readonly<{
  150. "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
  151. onChange?: ((val: CheckboxValueType) => any) | undefined;
  152. }>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
  153. "update:modelValue": (val: CheckboxValueType) => void;
  154. change: (val: CheckboxValueType) => void;
  155. }, string, {
  156. id: string;
  157. disabled: boolean;
  158. modelValue: number | string | boolean;
  159. validateEvent: boolean;
  160. name: string;
  161. value: string | boolean | number | object;
  162. label: string | boolean | number | object;
  163. trueValue: string | number;
  164. falseValue: string | number;
  165. trueLabel: string | number;
  166. falseLabel: string | number;
  167. }, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
  168. $slots: {
  169. default?: (props: {}) => any;
  170. };
  171. }) & _$vue.ObjectPlugin & {
  172. setPropsDefaults: (defaults: {
  173. readonly modelValue?: string | number | boolean | (() => string | number | boolean) | undefined;
  174. readonly label?: string | number | boolean | (() => string | number | boolean | object) | undefined;
  175. readonly value?: string | number | boolean | (() => string | number | boolean | object) | undefined;
  176. readonly indeterminate?: boolean | (() => boolean) | undefined;
  177. readonly disabled?: boolean | (() => boolean) | undefined;
  178. readonly checked?: boolean | (() => boolean) | undefined;
  179. readonly name?: string | (() => string) | undefined;
  180. readonly trueValue?: string | number | (() => string | number) | undefined;
  181. readonly falseValue?: string | number | (() => string | number) | undefined;
  182. readonly trueLabel?: string | number | (() => string | number) | undefined;
  183. readonly falseLabel?: string | number | (() => string | number) | undefined;
  184. readonly id?: string | (() => string) | undefined;
  185. readonly border?: boolean | (() => boolean) | undefined;
  186. readonly size?: "" | "default" | "small" | "large" | (() => "" | "default" | "small" | "large") | undefined;
  187. readonly tabindex?: string | number | (() => string | number) | undefined;
  188. readonly validateEvent?: boolean | (() => boolean) | undefined;
  189. readonly ariaLabel?: string | (() => string) | undefined;
  190. readonly ariaControls?: string | (() => string) | undefined;
  191. }) => void;
  192. } & {
  193. CheckboxButton: typeof _default$1;
  194. CheckboxGroup: typeof _default$2;
  195. };
  196. NodeContent: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
  197. node: {
  198. type: ObjectConstructor;
  199. required: true;
  200. };
  201. renderContent: FunctionConstructor;
  202. }>, () => any, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
  203. node: {
  204. type: ObjectConstructor;
  205. required: true;
  206. };
  207. renderContent: FunctionConstructor;
  208. }>> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
  209. ElIcon: SFCWithInstall<{
  210. new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
  211. P: {};
  212. B: {};
  213. D: {};
  214. C: {};
  215. M: {};
  216. Defaults: {};
  217. }, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
  218. __isFragment?: never;
  219. __isTeleport?: never;
  220. __isSuspense?: never;
  221. } & _$vue.ComponentOptionsBase<Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
  222. $slots: {
  223. default?: (props: {}) => any;
  224. };
  225. })>;
  226. Loading: _$vue.DefineComponent<{}, void, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
  227. }, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
  228. //#endregion
  229. export { _default as default };