@robot-admin/naive-ui-components 0.17.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +12 -11
  3. package/README_EN.md +1 -0
  4. package/dist/C_AntV2.cjs +1 -1
  5. package/dist/C_AntV2.js +3 -3
  6. package/dist/C_Barcode.css +6 -6
  7. package/dist/C_Barcode2.cjs +1 -1
  8. package/dist/C_Barcode2.js +1 -1
  9. package/dist/C_Chat.css +269 -185
  10. package/dist/C_Chat2.cjs +1 -1
  11. package/dist/C_Chat2.js +1 -1
  12. package/dist/C_Code.css +26 -26
  13. package/dist/C_Code2.cjs +1 -1
  14. package/dist/C_Code2.js +1 -1
  15. package/dist/C_Draggable2.cjs +1 -1
  16. package/dist/C_Draggable2.js +1 -1
  17. package/dist/C_FilePreview.css +96 -57
  18. package/dist/C_FilePreview2.cjs +1 -1
  19. package/dist/C_FilePreview2.js +1 -1
  20. package/dist/C_GlobalSearch.css +140 -118
  21. package/dist/C_GlobalSearch2.cjs +1 -1
  22. package/dist/C_GlobalSearch2.js +1 -1
  23. package/dist/C_ImageCropper.css +10 -10
  24. package/dist/C_ImageCropper2.cjs +1 -1
  25. package/dist/C_ImageCropper2.js +1 -1
  26. package/dist/C_Login.css +79 -79
  27. package/dist/C_Login2.cjs +1 -1
  28. package/dist/C_Login2.js +1 -1
  29. package/dist/C_Map.css +10 -10
  30. package/dist/C_Map2.cjs +1 -1
  31. package/dist/C_Map2.js +1 -1
  32. package/dist/C_OrgChart.css +28 -4
  33. package/dist/C_OrgChart2.cjs +1 -1
  34. package/dist/C_OrgChart2.js +1 -1
  35. package/dist/C_QRCode2.cjs +1 -1
  36. package/dist/C_QRCode2.js +1 -1
  37. package/dist/C_Signature.css +15 -15
  38. package/dist/C_Signature2.cjs +1 -1
  39. package/dist/C_Signature2.js +1 -1
  40. package/dist/C_SplitPane.cjs +1 -1
  41. package/dist/C_SplitPane.css +231 -77
  42. package/dist/C_SplitPane.js +1 -1
  43. package/dist/C_SplitPane2.cjs +1 -1
  44. package/dist/C_SplitPane2.js +1 -1
  45. package/dist/C_Table.base.css +110 -117
  46. package/dist/C_Table.css +110 -117
  47. package/dist/C_Table.d.ts +1 -0
  48. package/dist/C_TagsView2.cjs +1 -1
  49. package/dist/C_TagsView2.js +1 -1
  50. package/dist/C_Transfer.css +93 -84
  51. package/dist/C_Transfer2.cjs +1 -1
  52. package/dist/C_Transfer2.js +1 -1
  53. package/dist/C_Tree.d.ts +1 -0
  54. package/dist/C_Upload.css +5 -5
  55. package/dist/C_Upload2.cjs +1 -1
  56. package/dist/C_Upload2.js +1 -1
  57. package/dist/C_VideoPlayer2.cjs +4 -3
  58. package/dist/C_VideoPlayer2.js +4 -3
  59. package/dist/C_VtableGantt.css +29 -28
  60. package/dist/C_VtableGantt2.cjs +1 -1
  61. package/dist/C_VtableGantt2.js +1 -1
  62. package/dist/C_WaterFall.css +29 -29
  63. package/dist/C_WaterFall2.cjs +1 -1
  64. package/dist/C_WaterFall2.js +1 -1
  65. package/dist/C_WorkFlow2.cjs +1 -1
  66. package/dist/C_WorkFlow2.js +1 -1
  67. package/dist/constants.d.cts +2 -2
  68. package/dist/constants.d.ts +2 -2
  69. package/dist/constants2.d.cts +2 -2
  70. package/dist/constants2.d.ts +2 -2
  71. package/dist/constants3.d.cts +2 -2
  72. package/dist/constants3.d.ts +2 -2
  73. package/dist/constants4.d.cts +5 -5
  74. package/dist/constants4.d.ts +5 -5
  75. package/dist/constants5.d.cts +5 -9
  76. package/dist/constants5.d.ts +5 -9
  77. package/dist/data.d.cts +11 -11
  78. package/dist/data.d.ts +11 -11
  79. package/dist/helpers.cjs +1 -1
  80. package/dist/helpers.js +1 -1
  81. package/dist/index.d.ts +1 -0
  82. package/dist/index.vue.d.cts +6 -6
  83. package/dist/index.vue.d.ts +6 -6
  84. package/dist/index10.vue.d.cts +3 -3
  85. package/dist/index10.vue.d.ts +3 -3
  86. package/dist/index11.vue.d.cts +3 -3
  87. package/dist/index11.vue.d.ts +3 -3
  88. package/dist/index12.vue.d.cts +3 -3
  89. package/dist/index12.vue.d.ts +2 -2
  90. package/dist/index13.vue.d.cts +2 -2
  91. package/dist/index13.vue.d.ts +5 -5
  92. package/dist/index14.vue.d.cts +5 -5
  93. package/dist/index14.vue.d.ts +4 -4
  94. package/dist/index15.vue.d.cts +4 -4
  95. package/dist/index15.vue.d.ts +3 -3
  96. package/dist/index16.vue.d.cts +3 -3
  97. package/dist/index17.vue.d.ts +2 -2
  98. package/dist/index18.vue.d.cts +2 -2
  99. package/dist/index18.vue.d.ts +6 -6
  100. package/dist/index19.vue.d.cts +6 -6
  101. package/dist/index19.vue.d.ts +3 -3
  102. package/dist/index2.vue.d.cts +2 -2
  103. package/dist/index2.vue.d.ts +2 -2
  104. package/dist/index20.vue.d.cts +5 -1
  105. package/dist/index20.vue.d.ts +5 -1
  106. package/dist/index21.vue.d.cts +2 -2
  107. package/dist/index21.vue.d.ts +2 -2
  108. package/dist/index22.vue.d.cts +2 -2
  109. package/dist/index22.vue.d.ts +2 -2
  110. package/dist/index23.vue.d.cts +2 -2
  111. package/dist/index23.vue.d.ts +2 -2
  112. package/dist/index25.vue.d.cts +6 -6
  113. package/dist/index25.vue.d.ts +6 -6
  114. package/dist/index27.vue.d.cts +2 -2
  115. package/dist/index27.vue.d.ts +2 -2
  116. package/dist/index28.vue.d.cts +6 -2
  117. package/dist/index28.vue.d.ts +6 -2
  118. package/dist/index3.vue.d.cts +3 -3
  119. package/dist/index3.vue.d.ts +3 -3
  120. package/dist/index4.vue.d.cts +3 -3
  121. package/dist/index5.vue.d.ts +2 -2
  122. package/dist/index6.vue.d.cts +2 -2
  123. package/dist/index6.vue.d.ts +7 -4
  124. package/dist/index7.vue.d.cts +7 -4
  125. package/dist/index7.vue.d.ts +2 -2
  126. package/dist/index8.vue.d.cts +2 -2
  127. package/dist/index8.vue.d.ts +5 -7
  128. package/dist/index9.vue.d.cts +5 -7
  129. package/dist/index9.vue.d.ts +3 -3
  130. package/dist/mapUtils.d.cts +3 -3
  131. package/dist/mapUtils.d.ts +3 -3
  132. package/dist/presets.d.cts +1 -1
  133. package/dist/presets.d.ts +1 -1
  134. package/dist/style.css +1176 -850
  135. package/dist/useCalendarEvents.d.cts +1 -1
  136. package/dist/useCalendarEvents.d.ts +1 -1
  137. package/dist/useCollapsePanel.d.cts +3 -3
  138. package/dist/useCollapsePanel.d.ts +3 -3
  139. package/dist/useCropperCore.d.cts +6 -6
  140. package/dist/useCropperCore.d.ts +6 -6
  141. package/dist/useDraggableLayout.d.cts +13 -11
  142. package/dist/useDraggableLayout.d.ts +13 -11
  143. package/dist/useDynamicFormState.d.cts +2 -2
  144. package/dist/useDynamicFormState.d.ts +2 -2
  145. package/dist/useEdgeInteraction.d.cts +2 -2
  146. package/dist/useEdgeInteraction.d.ts +2 -2
  147. package/dist/useFullscreen.d.cts +6 -2
  148. package/dist/useFullscreen.d.ts +6 -2
  149. package/dist/useGlobalSearch.d.cts +9 -4
  150. package/dist/useGlobalSearch.d.ts +9 -4
  151. package/dist/useInfiniteScroll.d.cts +4 -1
  152. package/dist/useInfiniteScroll.d.ts +4 -1
  153. package/dist/useQRCode.d.cts +3 -3
  154. package/dist/useQRCode.d.ts +3 -3
  155. package/dist/useSearchState.d.cts +3 -3
  156. package/dist/useSearchState.d.ts +3 -3
  157. package/dist/useSignatureHistory.d.cts +5 -5
  158. package/dist/useSignatureHistory.d.ts +5 -5
  159. package/dist/useSplitResize.d.cts +8 -8
  160. package/dist/useSplitResize.d.ts +8 -8
  161. package/dist/useTableQuery.cjs +2 -2
  162. package/dist/useTableQuery.d.cts +20 -10
  163. package/dist/useTableQuery.d.ts +20 -10
  164. package/dist/useTableQuery.js +2 -2
  165. package/dist/useTimeSelection.d.cts +3 -3
  166. package/dist/useTimeSelection.d.ts +3 -3
  167. package/dist/useWorkflowValidation.d.cts +2 -2
  168. package/dist/useWorkflowValidation.d.ts +2 -2
  169. package/dist/verification.d.cts +5 -5
  170. package/dist/verification.d.ts +5 -5
  171. package/docs/component-review-20261019.md +55 -0
  172. package/docs/guides/runtime-performance.md +38 -0
  173. package/docs/guides/split-pane.en.md +4 -0
  174. package/docs/guides/split-pane.md +4 -0
  175. package/docs/guides/table-density.md +20 -0
  176. package/docs/guides/transfer.md +11 -0
  177. package/docs/runtime-review-20261019.md +41 -0
  178. package/package.json +4 -2
@@ -38,18 +38,18 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
38
38
  onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
39
39
  onLoad?: (() => any) | undefined;
40
40
  }>, {
41
- size: number | string;
42
- type: "iconify" | "unocss" | "component" | "svg" | "image";
43
- loading: boolean;
44
- ariaLabel: string;
45
41
  title: string;
42
+ type: "iconify" | "unocss" | "component" | "svg" | "image";
46
43
  color: string;
44
+ size: number | string;
47
45
  svgPath: string;
48
46
  viewBox: string;
49
47
  alt: string;
50
48
  clickable: boolean;
49
+ loading: boolean;
51
50
  fallbackIcon: string;
52
51
  loadTimeout: number;
52
+ ariaLabel: string;
53
53
  customClass: string;
54
54
  rotate: number;
55
55
  flip: "horizontal" | "vertical" | "both";
@@ -38,18 +38,18 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
38
38
  onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
39
39
  onLoad?: (() => any) | undefined;
40
40
  }>, {
41
- size: number | string;
42
- type: "iconify" | "unocss" | "component" | "svg" | "image";
43
- loading: boolean;
44
- ariaLabel: string;
45
41
  title: string;
42
+ type: "iconify" | "unocss" | "component" | "svg" | "image";
46
43
  color: string;
44
+ size: number | string;
47
45
  svgPath: string;
48
46
  viewBox: string;
49
47
  alt: string;
50
48
  clickable: boolean;
49
+ loading: boolean;
51
50
  fallbackIcon: string;
52
51
  loadTimeout: number;
52
+ ariaLabel: string;
53
53
  customClass: string;
54
54
  rotate: number;
55
55
  flip: "horizontal" | "vertical" | "both";
@@ -19,14 +19,14 @@ type __VLS_Props = {
19
19
  tooltip?: string;
20
20
  };
21
21
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
- "update:modelValue": (key: string) => any;
23
22
  change: (key: string) => any;
23
+ "update:modelValue": (key: string) => any;
24
24
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- "onUpdate:modelValue"?: ((key: string) => any) | undefined;
26
25
  onChange?: ((key: string) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
27
27
  }>, {
28
- options: LegacyLanguageOption[];
29
28
  modelValue: string;
29
+ options: LegacyLanguageOption[];
30
30
  tooltip: string;
31
31
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
@@ -19,14 +19,14 @@ type __VLS_Props = {
19
19
  tooltip?: string;
20
20
  };
21
21
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
- "update:modelValue": (key: string) => any;
23
22
  change: (key: string) => any;
23
+ "update:modelValue": (key: string) => any;
24
24
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- "onUpdate:modelValue"?: ((key: string) => any) | undefined;
26
25
  onChange?: ((key: string) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((key: string) => any) | undefined;
27
27
  }>, {
28
- options: LegacyLanguageOption[];
29
28
  modelValue: string;
29
+ options: LegacyLanguageOption[];
30
30
  tooltip: string;
31
31
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
@@ -116,9 +116,9 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
116
116
  "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
117
  "onUsername-change"?: ((username: string) => any) | undefined;
118
118
  }>, {
119
- storageKey: string;
120
- loading: boolean;
121
119
  title: string;
120
+ loading: boolean;
121
+ storageKey: string;
122
122
  defaultUsername: string;
123
123
  defaultPassword: string;
124
124
  captchaProvider: CaptchaProvider;
@@ -116,9 +116,9 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
116
116
  "onCaptcha-visible-change"?: ((visible: boolean) => any) | undefined;
117
117
  "onUsername-change"?: ((username: string) => any) | undefined;
118
118
  }>, {
119
- storageKey: string;
120
- loading: boolean;
121
119
  title: string;
120
+ loading: boolean;
121
+ storageKey: string;
122
122
  defaultUsername: string;
123
123
  defaultPassword: string;
124
124
  captchaProvider: CaptchaProvider;
@@ -41,8 +41,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
41
41
  insertText: (text: string) => void;
42
42
  wordCount: vue.ComputedRef<number>;
43
43
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
44
- "update:modelValue": (value: string) => any;
45
44
  change: (text: string, html: string) => any;
45
+ "update:modelValue": (value: string) => any;
46
46
  save: (text: string, html: string) => any;
47
47
  "upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
48
48
  "fullscreen-change": (isFullscreen: boolean) => any;
@@ -51,8 +51,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
51
51
  "auto-save": (text: string) => any;
52
52
  "max-length-exceeded": (currentLength: number, maxLength: number) => any;
53
53
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
54
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
54
  onChange?: ((text: string, html: string) => any) | undefined;
55
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
56
56
  onSave?: ((text: string, html: string) => any) | undefined;
57
57
  "onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
58
58
  "onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
@@ -61,12 +61,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
61
61
  "onAuto-save"?: ((text: string) => any) | undefined;
62
62
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
63
  }>, {
64
- height: string | number;
65
64
  placeholder: string;
66
- isDark: boolean;
67
- modelValue: string;
68
- disabled: boolean;
69
65
  mode: "edit" | "editable" | "preview";
66
+ height: string | number;
67
+ disabled: boolean;
68
+ modelValue: string;
70
69
  tocNavPosition: "left" | "right";
71
70
  defaultFullscreen: boolean;
72
71
  autofocus: boolean;
@@ -77,6 +76,7 @@ declare const __VLS_export: vue.DefineComponent<Props, {
77
76
  showWordCount: boolean;
78
77
  autoSave: boolean;
79
78
  autoSaveInterval: number;
79
+ isDark: boolean;
80
80
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
81
81
  declare const _default: typeof __VLS_export;
82
82
  //#endregion
@@ -41,8 +41,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
41
41
  insertText: (text: string) => void;
42
42
  wordCount: vue.ComputedRef<number>;
43
43
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
44
- "update:modelValue": (value: string) => any;
45
44
  change: (text: string, html: string) => any;
45
+ "update:modelValue": (value: string) => any;
46
46
  save: (text: string, html: string) => any;
47
47
  "upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
48
48
  "fullscreen-change": (isFullscreen: boolean) => any;
@@ -51,8 +51,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
51
51
  "auto-save": (text: string) => any;
52
52
  "max-length-exceeded": (currentLength: number, maxLength: number) => any;
53
53
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
54
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
54
  onChange?: ((text: string, html: string) => any) | undefined;
55
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
56
56
  onSave?: ((text: string, html: string) => any) | undefined;
57
57
  "onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
58
58
  "onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
@@ -61,12 +61,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
61
61
  "onAuto-save"?: ((text: string) => any) | undefined;
62
62
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
63
63
  }>, {
64
- height: string | number;
65
64
  placeholder: string;
66
- isDark: boolean;
67
- modelValue: string;
68
- disabled: boolean;
69
65
  mode: "edit" | "editable" | "preview";
66
+ height: string | number;
67
+ disabled: boolean;
68
+ modelValue: string;
70
69
  tocNavPosition: "left" | "right";
71
70
  defaultFullscreen: boolean;
72
71
  autofocus: boolean;
@@ -77,6 +76,7 @@ declare const __VLS_export: vue.DefineComponent<Props, {
77
76
  showWordCount: boolean;
78
77
  autoSave: boolean;
79
78
  autoSaveInterval: number;
79
+ isDark: boolean;
80
80
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
81
81
  declare const _default: typeof __VLS_export;
82
82
  //#endregion
@@ -45,25 +45,25 @@ declare const __VLS_export: vue.DefineComponent<MenuProps, {
45
45
  showOption: (key: string) => void | undefined;
46
46
  menuRef: Ref<MenuInst | null, MenuInst | null>;
47
47
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
48
+ "update:expandedKeys": (keys: string[]) => any;
48
49
  select: (key: string) => any;
49
50
  "update:modelValue": (key: MenuValue) => any;
50
51
  intent: (key: string) => any;
51
52
  "update:value": (key: MenuValue) => any;
52
- "update:expandedKeys": (keys: string[]) => any;
53
53
  }, string, vue.PublicProps, Readonly<MenuProps> & Readonly<{
54
+ "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
54
55
  onSelect?: ((key: string) => any) | undefined;
55
56
  "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
56
57
  onIntent?: ((key: string) => any) | undefined;
57
58
  "onUpdate:value"?: ((key: MenuValue) => any) | undefined;
58
- "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
59
59
  }>, {
60
60
  mode: "vertical" | "horizontal";
61
61
  defaultExpandedKeys: string[];
62
+ indent: number;
62
63
  collapsed: boolean;
63
64
  collapsedWidth: number;
64
65
  collapsedIconSize: number;
65
66
  inverted: boolean;
66
- indent: number;
67
67
  rootIndent: number;
68
68
  dropdownProps: naive_ui0.DropdownProps;
69
69
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -73,10 +73,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
- direction: "ltr" | "rtl";
76
+ clickable: boolean;
77
77
  overlap: number;
78
78
  max: number;
79
- clickable: boolean;
79
+ direction: "ltr" | "rtl";
80
80
  shape: "circle" | "square";
81
81
  showStatus: boolean;
82
82
  showTooltip: boolean;
@@ -73,10 +73,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
- direction: "ltr" | "rtl";
76
+ clickable: boolean;
77
77
  overlap: number;
78
78
  max: number;
79
- clickable: boolean;
79
+ direction: "ltr" | "rtl";
80
80
  shape: "circle" | "square";
81
81
  showStatus: boolean;
82
82
  showTooltip: boolean;
@@ -46,6 +46,8 @@ interface OrgChartProps {
46
46
  pannable?: boolean;
47
47
  /** 初始缩放比例 */
48
48
  initialZoom?: number;
49
+ /** 首次渲染与数据、布局变化时适配完整树形范围。 */
50
+ fitOnInit?: boolean;
49
51
  /** 最小缩放 */
50
52
  minZoom?: number;
51
53
  /** 最大缩放 */
@@ -67,6 +69,7 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
67
69
  zoomIn: () => void;
68
70
  zoomOut: () => void;
69
71
  resetView: () => void;
72
+ fitView: () => Promise<void>;
70
73
  zoom: vue.Ref<number, number>;
71
74
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
72
75
  "node-click": (node: OrgChartNode) => any;
@@ -77,16 +80,17 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
77
80
  "onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
78
81
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
79
82
  }>, {
83
+ lineColor: string;
80
84
  direction: OrgChartDirection;
81
85
  collapsible: boolean;
82
86
  lineStyle: OrgChartLineStyle;
83
- lineColor: string;
84
87
  lineWidth: number;
85
88
  nodeSpacing: number;
86
89
  levelSpacing: number;
87
90
  zoomable: boolean;
88
91
  pannable: boolean;
89
92
  initialZoom: number;
93
+ fitOnInit: boolean;
90
94
  minZoom: number;
91
95
  maxZoom: number;
92
96
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -46,6 +46,8 @@ interface OrgChartProps {
46
46
  pannable?: boolean;
47
47
  /** 初始缩放比例 */
48
48
  initialZoom?: number;
49
+ /** 首次渲染与数据、布局变化时适配完整树形范围。 */
50
+ fitOnInit?: boolean;
49
51
  /** 最小缩放 */
50
52
  minZoom?: number;
51
53
  /** 最大缩放 */
@@ -67,6 +69,7 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
67
69
  zoomIn: () => void;
68
70
  zoomOut: () => void;
69
71
  resetView: () => void;
72
+ fitView: () => Promise<void>;
70
73
  zoom: vue.Ref<number, number>;
71
74
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
72
75
  "node-click": (node: OrgChartNode) => any;
@@ -77,16 +80,17 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
77
80
  "onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
78
81
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
79
82
  }>, {
83
+ lineColor: string;
80
84
  direction: OrgChartDirection;
81
85
  collapsible: boolean;
82
86
  lineStyle: OrgChartLineStyle;
83
- lineColor: string;
84
87
  lineWidth: number;
85
88
  nodeSpacing: number;
86
89
  levelSpacing: number;
87
90
  zoomable: boolean;
88
91
  pannable: boolean;
89
92
  initialZoom: number;
93
+ fitOnInit: boolean;
90
94
  minZoom: number;
91
95
  maxZoom: number;
92
96
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -34,9 +34,9 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
- time: number;
38
- strokeWidth: number;
39
37
  status: "default" | "success" | "error" | "warning" | "info";
38
+ strokeWidth: number;
39
+ time: number;
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
42
42
  indicatorPlacement: "inside" | "outside";
@@ -34,9 +34,9 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
- time: number;
38
- strokeWidth: number;
39
37
  status: "default" | "success" | "error" | "warning" | "info";
38
+ strokeWidth: number;
39
+ time: number;
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
42
42
  indicatorPlacement: "inside" | "outside";
@@ -86,11 +86,11 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
+ borderRadius: string;
90
+ repeat: number;
89
91
  loading: boolean;
90
92
  preset: SkeletonPreset;
91
93
  animation: SkeletonAnimation;
92
- repeat: number;
93
- borderRadius: string;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
96
  declare const _default: typeof __VLS_export;
@@ -86,11 +86,11 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
+ borderRadius: string;
90
+ repeat: number;
89
91
  loading: boolean;
90
92
  preset: SkeletonPreset;
91
93
  animation: SkeletonAnimation;
92
- repeat: number;
93
- borderRadius: string;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
96
  declare const _default: typeof __VLS_export;
@@ -35,10 +35,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
35
  onChange?: ((args_0: number) => any) | undefined;
36
36
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
- connected: boolean;
39
- direction: "horizontal" | "vertical";
40
38
  clickable: boolean;
39
+ connected: boolean;
41
40
  current: number;
41
+ direction: "horizontal" | "vertical";
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -35,10 +35,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
35
  onChange?: ((args_0: number) => any) | undefined;
36
36
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
- connected: boolean;
39
- direction: "horizontal" | "vertical";
40
38
  clickable: boolean;
39
+ connected: boolean;
41
40
  current: number;
41
+ direction: "horizontal" | "vertical";
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -634,7 +634,7 @@ interface Props {
634
634
  theme?: 'light' | 'dark';
635
635
  }
636
636
  declare const __VLS_export: vue.DefineComponent<Props, {
637
- ganttInstance: vue.Ref<any, any>;
637
+ ganttInstance: vue.ShallowRef<any, any>;
638
638
  updateData: (newData: GanttTask[]) => void;
639
639
  updateOptions: (newOptions: GanttOptions) => void;
640
640
  toggleFullscreen: () => Promise<void>;
@@ -647,13 +647,13 @@ declare const __VLS_export: vue.DefineComponent<Props, {
647
647
  onTaskClick?: ((task: GanttTask, event: Event) => any) | undefined;
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
- height: string | number;
651
- preset: GanttPreset;
652
- options: GanttOptions;
653
650
  title: string;
654
- data: GanttTask[];
655
- showToolbar: boolean;
656
651
  theme: "light" | "dark";
652
+ height: string | number;
653
+ showToolbar: boolean;
654
+ data: GanttTask[];
655
+ options: GanttOptions;
656
+ preset: GanttPreset;
657
657
  showFullscreenButton: boolean;
658
658
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
659
659
  declare const _default: typeof __VLS_export;
@@ -634,7 +634,7 @@ interface Props {
634
634
  theme?: 'light' | 'dark';
635
635
  }
636
636
  declare const __VLS_export: vue.DefineComponent<Props, {
637
- ganttInstance: vue.Ref<any, any>;
637
+ ganttInstance: vue.ShallowRef<any, any>;
638
638
  updateData: (newData: GanttTask[]) => void;
639
639
  updateOptions: (newOptions: GanttOptions) => void;
640
640
  toggleFullscreen: () => Promise<void>;
@@ -647,13 +647,13 @@ declare const __VLS_export: vue.DefineComponent<Props, {
647
647
  onTaskClick?: ((task: GanttTask, event: Event) => any) | undefined;
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
- height: string | number;
651
- preset: GanttPreset;
652
- options: GanttOptions;
653
650
  title: string;
654
- data: GanttTask[];
655
- showToolbar: boolean;
656
651
  theme: "light" | "dark";
652
+ height: string | number;
653
+ showToolbar: boolean;
654
+ data: GanttTask[];
655
+ options: GanttOptions;
656
+ preset: GanttPreset;
657
657
  showFullscreenButton: boolean;
658
658
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
659
659
  declare const _default: typeof __VLS_export;
@@ -90,12 +90,12 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
90
90
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
91
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
92
  }>, {
93
- size: "small" | "medium" | "large";
94
93
  reverse: boolean;
95
94
  mode: "vertical" | "horizontal";
95
+ size: "small" | "medium" | "large";
96
+ pending: boolean;
96
97
  items: TimelineItem[];
97
98
  labelPlacement: "left" | "right" | "alternate";
98
- pending: boolean;
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
101
101
  showTime: boolean;
@@ -90,12 +90,12 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
90
90
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
91
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
92
  }>, {
93
- size: "small" | "medium" | "large";
94
93
  reverse: boolean;
95
94
  mode: "vertical" | "horizontal";
95
+ size: "small" | "medium" | "large";
96
+ pending: boolean;
96
97
  items: TimelineItem[];
97
98
  labelPlacement: "left" | "right" | "alternate";
98
- pending: boolean;
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
101
101
  showTime: boolean;
@@ -43,6 +43,8 @@ interface TransferProps {
43
43
  targetEmptyText?: string;
44
44
  /** 尺寸 */
45
45
  size?: 'small' | 'medium' | 'large';
46
+ /** 大列表自动使用虚拟滚动;自定义可变行高或需要完整 DOM 时可关闭。默认 true,100 项起启用。 */
47
+ virtualScroll?: boolean;
46
48
  }
47
49
  /** 默认 Props */
48
50
  declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
@@ -59,14 +61,16 @@ type __VLS_Props = {
59
61
  sourceEmptyText?: string;
60
62
  targetEmptyText?: string;
61
63
  size?: TransferProps['size'];
64
+ virtualScroll?: boolean;
62
65
  };
63
66
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
- "update:modelValue": (value: (string | number)[]) => any;
65
67
  change: (targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any;
68
+ "update:modelValue": (value: (string | number)[]) => any;
66
69
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
67
- "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
70
  onChange?: ((targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any) | undefined;
71
+ "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
69
72
  }>, {
73
+ virtualScroll: boolean;
70
74
  size: "small" | "medium" | "large";
71
75
  titles: [string, string];
72
76
  filterable: boolean;
@@ -43,6 +43,8 @@ interface TransferProps {
43
43
  targetEmptyText?: string;
44
44
  /** 尺寸 */
45
45
  size?: 'small' | 'medium' | 'large';
46
+ /** 大列表自动使用虚拟滚动;自定义可变行高或需要完整 DOM 时可关闭。默认 true,100 项起启用。 */
47
+ virtualScroll?: boolean;
46
48
  }
47
49
  /** 默认 Props */
48
50
  declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
@@ -59,14 +61,16 @@ type __VLS_Props = {
59
61
  sourceEmptyText?: string;
60
62
  targetEmptyText?: string;
61
63
  size?: TransferProps['size'];
64
+ virtualScroll?: boolean;
62
65
  };
63
66
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
- "update:modelValue": (value: (string | number)[]) => any;
65
67
  change: (targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any;
68
+ "update:modelValue": (value: (string | number)[]) => any;
66
69
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
67
- "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
70
  onChange?: ((targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any) | undefined;
71
+ "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
69
72
  }>, {
73
+ virtualScroll: boolean;
70
74
  size: "small" | "medium" | "large";
71
75
  titles: [string, string];
72
76
  filterable: boolean;
@@ -22,12 +22,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
22
22
  }>, {
23
23
  width: number;
24
24
  height: number;
25
- label: string;
26
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
27
25
  fontSize: number;
26
+ label: string;
27
+ lineColor: string;
28
28
  showBorder: boolean;
29
29
  showLabel: boolean;
30
- lineColor: string;
30
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
31
31
  showText: boolean;
32
32
  textPosition: "bottom" | "top";
33
33
  background: string;
@@ -22,12 +22,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
22
22
  }>, {
23
23
  width: number;
24
24
  height: number;
25
- label: string;
26
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
27
25
  fontSize: number;
26
+ label: string;
27
+ lineColor: string;
28
28
  showBorder: boolean;
29
29
  showLabel: boolean;
30
- lineColor: string;
30
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
31
31
  showText: boolean;
32
32
  textPosition: "bottom" | "top";
33
33
  background: string;
@@ -103,25 +103,25 @@ declare const __VLS_export: vue.DefineComponent<MenuProps, {
103
103
  showOption: (key: string) => void | undefined;
104
104
  menuRef: Ref<MenuInst | null, MenuInst | null>;
105
105
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
106
+ "update:expandedKeys": (keys: string[]) => any;
106
107
  select: (key: string) => any;
107
108
  "update:modelValue": (key: MenuValue) => any;
108
109
  intent: (key: string) => any;
109
110
  "update:value": (key: MenuValue) => any;
110
- "update:expandedKeys": (keys: string[]) => any;
111
111
  }, string, vue.PublicProps, Readonly<MenuProps> & Readonly<{
112
+ "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
112
113
  onSelect?: ((key: string) => any) | undefined;
113
114
  "onUpdate:modelValue"?: ((key: MenuValue) => any) | undefined;
114
115
  onIntent?: ((key: string) => any) | undefined;
115
116
  "onUpdate:value"?: ((key: MenuValue) => any) | undefined;
116
- "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
117
117
  }>, {
118
118
  mode: "vertical" | "horizontal";
119
119
  defaultExpandedKeys: string[];
120
+ indent: number;
120
121
  collapsed: boolean;
121
122
  collapsedWidth: number;
122
123
  collapsedIconSize: number;
123
124
  inverted: boolean;
124
- indent: number;
125
125
  rootIndent: number;
126
126
  dropdownProps: naive_ui0.DropdownProps;
127
127
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -19,11 +19,11 @@ type __VLS_Props = {
19
19
  modelValue?: CascadeValue;
20
20
  };
21
21
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
- "update:modelValue": (value: CascadeValue) => any;
23
22
  change: (value: CascadeValue) => any;
23
+ "update:modelValue": (value: CascadeValue) => any;
24
24
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
26
25
  onChange?: ((value: CascadeValue) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
27
27
  }>, {
28
28
  placeholders: string[];
29
29
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -19,11 +19,11 @@ type __VLS_Props = {
19
19
  modelValue?: CascadeValue;
20
20
  };
21
21
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
22
- "update:modelValue": (value: CascadeValue) => any;
23
22
  change: (value: CascadeValue) => any;
23
+ "update:modelValue": (value: CascadeValue) => any;
24
24
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
26
25
  onChange?: ((value: CascadeValue) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
27
27
  }>, {
28
28
  placeholders: string[];
29
29
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;