95e30b25cecd5705da8ec73c2e2fea574c54fb14461d408cfdb363b3b17408fd3fc19451bee38e8e79c75ae163399d533e767d92eacd12b5e56ccf553537b8 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import Node from './model/node';
  2. import type { ComponentInternalInstance, PropType } from 'vue';
  3. import type { RootTreeType, TreeNodeData, TreeOptionProps } from './tree.type';
  4. import type { CheckboxValueType } from 'element-plus/es/components/checkbox';
  5. declare const _default: import("vue").DefineComponent<{
  6. node: {
  7. type: typeof Node;
  8. default: () => {};
  9. };
  10. props: {
  11. type: PropType<TreeOptionProps>;
  12. default: () => {};
  13. };
  14. accordion: BooleanConstructor;
  15. renderContent: FunctionConstructor;
  16. renderAfterExpand: BooleanConstructor;
  17. showCheckbox: BooleanConstructor;
  18. }, {
  19. ns: {
  20. namespace: import("vue").ComputedRef<string>;
  21. b: (blockSuffix?: string) => string;
  22. e: (element?: string) => string;
  23. m: (modifier?: string) => string;
  24. be: (blockSuffix?: string, element?: string) => string;
  25. em: (element?: string, modifier?: string) => string;
  26. bm: (blockSuffix?: string, modifier?: string) => string;
  27. bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
  28. is: {
  29. (name: string, state: boolean | undefined): string;
  30. (name: string): string;
  31. };
  32. cssVar: (object: Record<string, string>) => Record<string, string>;
  33. cssVarName: (name: string) => string;
  34. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  35. cssVarBlockName: (name: string) => string;
  36. };
  37. node$: import("vue").Ref<HTMLElement | undefined>;
  38. tree: RootTreeType;
  39. expanded: import("vue").Ref<boolean>;
  40. childNodeRendered: import("vue").Ref<boolean>;
  41. oldChecked: import("vue").Ref<boolean | undefined>;
  42. oldIndeterminate: import("vue").Ref<boolean | undefined>;
  43. getNodeKey: (node: Node) => any;
  44. getNodeClass: (node: Node) => {
  45. [key: string]: boolean;
  46. };
  47. handleSelectChange: (checked: boolean, indeterminate: boolean) => void;
  48. handleClick: (e: MouseEvent) => void;
  49. handleContextMenu: (event: Event) => void;
  50. handleExpandIconClick: () => void;
  51. handleCheckChange: (value: CheckboxValueType) => void;
  52. handleChildNodeExpand: (nodeData: TreeNodeData, node: Node, instance: ComponentInternalInstance) => void;
  53. handleDragStart: (event: DragEvent) => void;
  54. handleDragOver: (event: DragEvent) => void;
  55. handleDrop: (event: DragEvent) => void;
  56. handleDragEnd: (event: DragEvent) => void;
  57. CaretRight: any;
  58. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "node-expand"[], "node-expand", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  59. node: {
  60. type: typeof Node;
  61. default: () => {};
  62. };
  63. props: {
  64. type: PropType<TreeOptionProps>;
  65. default: () => {};
  66. };
  67. accordion: BooleanConstructor;
  68. renderContent: FunctionConstructor;
  69. renderAfterExpand: BooleanConstructor;
  70. showCheckbox: BooleanConstructor;
  71. }>> & {
  72. "onNode-expand"?: ((...args: any[]) => any) | undefined;
  73. }, {
  74. props: TreeOptionProps;
  75. node: Node;
  76. accordion: boolean;
  77. renderAfterExpand: boolean;
  78. showCheckbox: boolean;
  79. }>;
  80. export default _default;