@robot-admin/naive-ui-components 0.16.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 (225) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +12 -9
  3. package/README_EN.md +12 -9
  4. package/dist/C_ActionBar.css +56 -48
  5. package/dist/C_ActionBar2.cjs +1 -1
  6. package/dist/C_ActionBar2.js +1 -1
  7. package/dist/C_AntV2.cjs +1 -1
  8. package/dist/C_AntV2.js +3 -3
  9. package/dist/C_Barcode.css +6 -6
  10. package/dist/C_Barcode2.cjs +1 -1
  11. package/dist/C_Barcode2.js +1 -1
  12. package/dist/C_Chat.css +269 -185
  13. package/dist/C_Chat2.cjs +1 -1
  14. package/dist/C_Chat2.js +1 -1
  15. package/dist/C_Code.css +26 -26
  16. package/dist/C_Code2.cjs +1 -1
  17. package/dist/C_Code2.js +1 -1
  18. package/dist/C_Draggable2.cjs +1 -1
  19. package/dist/C_Draggable2.js +1 -1
  20. package/dist/C_FilePreview.css +96 -57
  21. package/dist/C_FilePreview2.cjs +1 -1
  22. package/dist/C_FilePreview2.js +1 -1
  23. package/dist/C_Form.base.css +295 -277
  24. package/dist/C_Form.css +295 -277
  25. package/dist/C_Form.d.cts +2 -1
  26. package/dist/C_Form.d.ts +2 -1
  27. package/dist/C_FormModal.css +10 -10
  28. package/dist/C_FormModal2.cjs +1 -1
  29. package/dist/C_FormModal2.js +1 -1
  30. package/dist/C_FormSearch.css +67 -68
  31. package/dist/C_FormSearch.d.cts +2 -1
  32. package/dist/C_FormSearch.d.ts +2 -1
  33. package/dist/C_FormSearch2.cjs +1 -1
  34. package/dist/C_FormSearch2.js +1 -1
  35. package/dist/C_FullCalendar2.cjs +1 -1
  36. package/dist/C_FullCalendar2.js +1 -1
  37. package/dist/C_GlobalSearch.css +140 -118
  38. package/dist/C_GlobalSearch2.cjs +1 -1
  39. package/dist/C_GlobalSearch2.js +1 -1
  40. package/dist/C_ImageCropper.css +12 -10
  41. package/dist/C_ImageCropper2.cjs +1 -1
  42. package/dist/C_ImageCropper2.js +1 -1
  43. package/dist/C_Login.css +79 -79
  44. package/dist/C_Login2.cjs +1 -1
  45. package/dist/C_Login2.js +1 -1
  46. package/dist/C_Map.css +10 -10
  47. package/dist/C_Map2.cjs +1 -1
  48. package/dist/C_Map2.js +1 -1
  49. package/dist/C_OrgChart.css +28 -4
  50. package/dist/C_OrgChart2.cjs +1 -1
  51. package/dist/C_OrgChart2.js +1 -1
  52. package/dist/C_QRCode2.cjs +1 -1
  53. package/dist/C_QRCode2.js +1 -1
  54. package/dist/C_Signature.css +15 -15
  55. package/dist/C_Signature2.cjs +1 -1
  56. package/dist/C_Signature2.js +1 -1
  57. package/dist/C_SplitPane.cjs +1 -1
  58. package/dist/C_SplitPane.css +251 -109
  59. package/dist/C_SplitPane.js +1 -1
  60. package/dist/C_SplitPane2.cjs +1 -1
  61. package/dist/C_SplitPane2.js +1 -1
  62. package/dist/C_Table.base.css +491 -563
  63. package/dist/C_Table.cjs +1 -1
  64. package/dist/C_Table.css +491 -563
  65. package/dist/C_Table.d.cts +3 -2
  66. package/dist/C_Table.d.ts +4 -2
  67. package/dist/C_Table.js +1 -1
  68. package/dist/C_TagsView2.cjs +1 -1
  69. package/dist/C_TagsView2.js +1 -1
  70. package/dist/C_Transfer.css +93 -84
  71. package/dist/C_Transfer2.cjs +1 -1
  72. package/dist/C_Transfer2.js +1 -1
  73. package/dist/C_Tree.css +72 -125
  74. package/dist/C_Tree.d.cts +3 -2
  75. package/dist/C_Tree.d.ts +15 -2
  76. package/dist/C_Tree2.cjs +1 -1
  77. package/dist/C_Tree2.js +1 -1
  78. package/dist/C_Upload.css +5 -5
  79. package/dist/C_Upload2.cjs +1 -1
  80. package/dist/C_Upload2.js +1 -1
  81. package/dist/C_VideoPlayer2.cjs +4 -3
  82. package/dist/C_VideoPlayer2.js +4 -3
  83. package/dist/C_VtableGantt.css +29 -28
  84. package/dist/C_VtableGantt2.cjs +1 -1
  85. package/dist/C_VtableGantt2.js +1 -1
  86. package/dist/C_WaterFall.css +29 -29
  87. package/dist/C_WaterFall2.cjs +1 -1
  88. package/dist/C_WaterFall2.js +1 -1
  89. package/dist/C_WorkFlow2.cjs +1 -1
  90. package/dist/C_WorkFlow2.js +1 -1
  91. package/dist/Card.cjs +1 -1
  92. package/dist/Card.js +1 -1
  93. package/dist/Custom.cjs +1 -1
  94. package/dist/Custom.js +1 -1
  95. package/dist/Dynamic.cjs +1 -1
  96. package/dist/Dynamic.js +1 -1
  97. package/dist/Steps.cjs +1 -1
  98. package/dist/Steps.js +1 -1
  99. package/dist/Tabs.cjs +1 -1
  100. package/dist/Tabs.js +1 -1
  101. package/dist/constants.d.cts +2 -2
  102. package/dist/constants.d.ts +2 -2
  103. package/dist/constants2.d.cts +2 -2
  104. package/dist/constants2.d.ts +2 -2
  105. package/dist/constants3.d.cts +2 -2
  106. package/dist/constants3.d.ts +2 -2
  107. package/dist/constants4.d.cts +4 -4
  108. package/dist/constants4.d.ts +4 -4
  109. package/dist/constants5.d.cts +3 -7
  110. package/dist/constants5.d.ts +3 -7
  111. package/dist/data.d.cts +10 -10
  112. package/dist/data.d.ts +10 -10
  113. package/dist/density.cjs +1 -0
  114. package/dist/density.d.cts +15 -0
  115. package/dist/density.d.ts +15 -0
  116. package/dist/density.js +1 -0
  117. package/dist/helpers.cjs +1 -1
  118. package/dist/helpers.js +1 -1
  119. package/dist/index.cjs +1 -1
  120. package/dist/index.d.cts +3 -3
  121. package/dist/index.d.ts +5 -3
  122. package/dist/index.js +1 -1
  123. package/dist/index.vue.d.cts +5 -5
  124. package/dist/index.vue.d.ts +5 -5
  125. package/dist/index10.vue.d.cts +5 -5
  126. package/dist/index10.vue.d.ts +3 -3
  127. package/dist/index11.vue.d.cts +3 -3
  128. package/dist/index11.vue.d.ts +5 -5
  129. package/dist/index12.vue.d.cts +5 -5
  130. package/dist/index13.vue.d.ts +5 -5
  131. package/dist/index14.vue.d.cts +5 -5
  132. package/dist/index14.vue.d.ts +9 -9
  133. package/dist/index15.vue.d.cts +9 -9
  134. package/dist/index15.vue.d.ts +3 -3
  135. package/dist/index16.vue.d.cts +3 -3
  136. package/dist/index17.vue.d.ts +1 -1
  137. package/dist/index18.vue.d.cts +1 -1
  138. package/dist/index18.vue.d.ts +7 -7
  139. package/dist/index19.vue.d.cts +7 -7
  140. package/dist/index19.vue.d.ts +5 -5
  141. package/dist/index2.vue.d.cts +2 -2
  142. package/dist/index2.vue.d.ts +2 -2
  143. package/dist/index20.vue.d.cts +6 -2
  144. package/dist/index20.vue.d.ts +6 -2
  145. package/dist/index21.vue.d.cts +2 -2
  146. package/dist/index21.vue.d.ts +2 -2
  147. package/dist/index22.vue.d.cts +2 -2
  148. package/dist/index22.vue.d.ts +2 -2
  149. package/dist/index23.vue.d.cts +2 -2
  150. package/dist/index23.vue.d.ts +2 -2
  151. package/dist/index25.vue.d.cts +5 -5
  152. package/dist/index25.vue.d.ts +5 -5
  153. package/dist/index27.vue.d.cts +2 -2
  154. package/dist/index27.vue.d.ts +2 -2
  155. package/dist/index28.vue.d.cts +7 -3
  156. package/dist/index28.vue.d.ts +7 -3
  157. package/dist/index3.vue.d.cts +3 -3
  158. package/dist/index3.vue.d.ts +3 -3
  159. package/dist/index4.vue.d.cts +5 -5
  160. package/dist/index5.vue.d.ts +2 -2
  161. package/dist/index6.vue.d.cts +2 -2
  162. package/dist/index6.vue.d.ts +7 -4
  163. package/dist/index7.vue.d.cts +7 -4
  164. package/dist/index7.vue.d.ts +2 -2
  165. package/dist/index8.vue.d.cts +2 -2
  166. package/dist/index8.vue.d.ts +4 -6
  167. package/dist/index9.vue.d.cts +4 -6
  168. package/dist/index9.vue.d.ts +5 -5
  169. package/dist/mapUtils.d.cts +4 -4
  170. package/dist/mapUtils.d.ts +4 -4
  171. package/dist/presets.d.cts +4 -1
  172. package/dist/presets.d.ts +4 -1
  173. package/dist/style.css +1763 -1566
  174. package/dist/useCalendarEvents.d.cts +10 -9
  175. package/dist/useCalendarEvents.d.ts +10 -9
  176. package/dist/useCollapsePanel.d.cts +3 -3
  177. package/dist/useCollapsePanel.d.ts +3 -3
  178. package/dist/useCropperCore.d.cts +9 -9
  179. package/dist/useCropperCore.d.ts +9 -9
  180. package/dist/useDraggableLayout.d.cts +15 -13
  181. package/dist/useDraggableLayout.d.ts +15 -13
  182. package/dist/useDynamicFormState.d.cts +5 -2
  183. package/dist/useDynamicFormState.d.ts +5 -2
  184. package/dist/useEdgeInteraction.d.cts +3 -3
  185. package/dist/useEdgeInteraction.d.ts +3 -3
  186. package/dist/useFullscreen.d.cts +4 -0
  187. package/dist/useFullscreen.d.ts +4 -0
  188. package/dist/useGlobalSearch.d.cts +9 -4
  189. package/dist/useGlobalSearch.d.ts +9 -4
  190. package/dist/useInfiniteScroll.d.cts +4 -1
  191. package/dist/useInfiniteScroll.d.ts +4 -1
  192. package/dist/useQRCode.d.cts +3 -3
  193. package/dist/useQRCode.d.ts +3 -3
  194. package/dist/useSearchState.d.cts +8 -6
  195. package/dist/useSearchState.d.ts +8 -6
  196. package/dist/useSignatureHistory.d.cts +7 -7
  197. package/dist/useSignatureHistory.d.ts +7 -7
  198. package/dist/useSplitResize.d.cts +50 -61
  199. package/dist/useSplitResize.d.ts +50 -61
  200. package/dist/useTableQuery.cjs +3 -3
  201. package/dist/useTableQuery.d.cts +237 -13
  202. package/dist/useTableQuery.d.ts +237 -13
  203. package/dist/useTableQuery.js +3 -3
  204. package/dist/useTimeSelection.d.cts +2 -2
  205. package/dist/useTimeSelection.d.ts +2 -2
  206. package/dist/useWorkflowValidation.d.cts +3 -3
  207. package/dist/useWorkflowValidation.d.ts +3 -3
  208. package/dist/verification.d.cts +5 -5
  209. package/dist/verification.d.ts +5 -5
  210. package/docs/component-review-20261019.md +55 -0
  211. package/docs/guides/form-density.en.md +42 -0
  212. package/docs/guides/form-density.md +59 -0
  213. package/docs/guides/runtime-performance.md +38 -0
  214. package/docs/guides/split-pane.en.md +103 -0
  215. package/docs/guides/split-pane.md +126 -0
  216. package/docs/guides/table-density.md +87 -0
  217. package/docs/guides/transfer.md +11 -0
  218. package/docs/guides/tree.md +157 -0
  219. package/docs/guides/usage.en.md +2 -0
  220. package/docs/guides/usage.md +2 -0
  221. package/docs/runtime-review-20261019.md +41 -0
  222. package/docs/wl-ui-produce-coverage.md +62 -0
  223. package/package.json +4 -2
  224. package/dist/useTreeOperations.d.cts +0 -185
  225. package/dist/useTreeOperations.d.ts +0 -185
@@ -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,15 +61,17 @@ 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, {
67
+ change: (targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any;
64
68
  "update:modelValue": (value: (string | number)[]) => any;
65
- change: (targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any;
66
69
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
70
+ onChange?: ((targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any) | undefined;
67
71
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
- onChange?: ((targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any) | undefined;
69
72
  }>, {
70
- size: "medium" | "small" | "large";
73
+ virtualScroll: boolean;
74
+ size: "small" | "medium" | "large";
71
75
  titles: [string, string];
72
76
  filterable: boolean;
73
77
  filterPlaceholder: string;
@@ -20,16 +20,16 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
- label: string;
24
- height: number;
25
23
  width: number;
24
+ height: number;
26
25
  fontSize: number;
26
+ label: string;
27
+ lineColor: string;
27
28
  showBorder: boolean;
28
29
  showLabel: boolean;
29
30
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
30
31
  showText: boolean;
31
32
  textPosition: "bottom" | "top";
32
- lineColor: string;
33
33
  background: string;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
@@ -20,16 +20,16 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
- label: string;
24
- height: number;
25
23
  width: number;
24
+ height: number;
26
25
  fontSize: number;
26
+ label: string;
27
+ lineColor: string;
27
28
  showBorder: boolean;
28
29
  showLabel: boolean;
29
30
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
30
31
  showText: boolean;
31
32
  textPosition: "bottom" | "top";
32
- lineColor: string;
33
33
  background: string;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
@@ -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:modelValue": (key: MenuValue) => any;
106
+ "update:expandedKeys": (keys: string[]) => any;
107
107
  select: (key: string) => any;
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:modelValue"?: ((key: MenuValue) => any) | undefined;
112
+ "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
113
113
  onSelect?: ((key: string) => any) | undefined;
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>;
@@ -71,17 +71,19 @@ interface ChatProps {
71
71
  showSendBtn?: boolean;
72
72
  /** 是否正在加载历史消息 */
73
73
  loadingHistory?: boolean;
74
+ /** 大列表自动窗口化;false 可保留完整 DOM(消息 200 条、联系人 100 条起)。 */
75
+ virtualScroll?: boolean;
74
76
  /** 标题(无联系人模式时显示) */
75
77
  title?: string;
76
78
  }
77
79
  declare const DEFAULT_CHAT_PROPS: Required<Pick<ChatProps, 'placeholder' | 'showContacts' | 'showTimestamp' | 'showSendBtn' | 'loadingHistory' | 'title'>>;
78
80
  //#endregion
79
81
  //#region src/components/C_Chat/index.vue.d.ts
80
- declare var __VLS_18: {}, __VLS_30: {};
82
+ declare var __VLS_39: {}, __VLS_83: {};
81
83
  type __VLS_Slots = {} & {
82
- header?: (props: typeof __VLS_18) => any;
84
+ header?: (props: typeof __VLS_39) => any;
83
85
  } & {
84
- 'input-actions'?: (props: typeof __VLS_30) => any;
86
+ 'input-actions'?: (props: typeof __VLS_83) => any;
85
87
  };
86
88
  declare const __VLS_base: vue.DefineComponent<ChatProps, {
87
89
  scrollToBottom: () => void;
@@ -105,16 +107,17 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
105
107
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
108
  }>, {
107
109
  placeholder: string;
108
- title: string;
109
110
  showContacts: boolean;
110
111
  showTimestamp: boolean;
111
112
  showSendBtn: boolean;
112
113
  loadingHistory: boolean;
114
+ title: string;
113
115
  contacts: ChatContact[];
114
116
  messages: ChatMessage[];
115
117
  currentContactId: string;
116
118
  selfAvatar: string;
117
119
  selfName: string;
120
+ virtualScroll: boolean;
118
121
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
119
122
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
120
123
  declare const _default: typeof __VLS_export;
@@ -71,17 +71,19 @@ interface ChatProps {
71
71
  showSendBtn?: boolean;
72
72
  /** 是否正在加载历史消息 */
73
73
  loadingHistory?: boolean;
74
+ /** 大列表自动窗口化;false 可保留完整 DOM(消息 200 条、联系人 100 条起)。 */
75
+ virtualScroll?: boolean;
74
76
  /** 标题(无联系人模式时显示) */
75
77
  title?: string;
76
78
  }
77
79
  declare const DEFAULT_CHAT_PROPS: Required<Pick<ChatProps, 'placeholder' | 'showContacts' | 'showTimestamp' | 'showSendBtn' | 'loadingHistory' | 'title'>>;
78
80
  //#endregion
79
81
  //#region src/components/C_Chat/index.vue.d.ts
80
- declare var __VLS_18: {}, __VLS_30: {};
82
+ declare var __VLS_39: {}, __VLS_83: {};
81
83
  type __VLS_Slots = {} & {
82
- header?: (props: typeof __VLS_18) => any;
84
+ header?: (props: typeof __VLS_39) => any;
83
85
  } & {
84
- 'input-actions'?: (props: typeof __VLS_30) => any;
86
+ 'input-actions'?: (props: typeof __VLS_83) => any;
85
87
  };
86
88
  declare const __VLS_base: vue.DefineComponent<ChatProps, {
87
89
  scrollToBottom: () => void;
@@ -105,16 +107,17 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
105
107
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
108
  }>, {
107
109
  placeholder: string;
108
- title: string;
109
110
  showContacts: boolean;
110
111
  showTimestamp: boolean;
111
112
  showSendBtn: boolean;
112
113
  loadingHistory: boolean;
114
+ title: string;
113
115
  contacts: ChatContact[];
114
116
  messages: ChatMessage[];
115
117
  currentContactId: string;
116
118
  selfAvatar: string;
117
119
  selfName: string;
120
+ virtualScroll: boolean;
118
121
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
119
122
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
120
123
  declare const _default: typeof __VLS_export;
@@ -14,11 +14,11 @@ type __VLS_Slots = {} & {
14
14
  trigger?: (props: typeof __VLS_9) => any;
15
15
  };
16
16
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
17
- "update:modelValue": (value: string) => any;
18
17
  change: (value: string) => any;
18
+ "update:modelValue": (value: string) => any;
19
19
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
20
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
21
20
  onChange?: ((value: string) => any) | undefined;
21
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
22
22
  }>, {
23
23
  placeholder: string;
24
24
  showLetters: boolean;
@@ -14,11 +14,11 @@ type __VLS_Slots = {} & {
14
14
  trigger?: (props: typeof __VLS_9) => any;
15
15
  };
16
16
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
17
- "update:modelValue": (value: string) => any;
18
17
  change: (value: string) => any;
18
+ "update:modelValue": (value: string) => any;
19
19
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
20
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
21
20
  onChange?: ((value: string) => any) | undefined;
21
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
22
22
  }>, {
23
23
  placeholder: string;
24
24
  showLetters: boolean;
@@ -13,9 +13,7 @@ interface Props {
13
13
  maxHeight?: string | number;
14
14
  autoLoadLanguage?: boolean;
15
15
  }
16
- /**
17
- * 复制代码到剪贴板
18
- */
16
+ /** 复制发起时的内容;文本随后变化不会改变已写入剪贴板的事件快照。 */
19
17
  declare function copyCode(): Promise<void>;
20
18
  /**
21
19
  * 切换全屏显示状态
@@ -25,16 +23,16 @@ declare const __VLS_export: vue.DefineComponent<Props, {
25
23
  copyCode: typeof copyCode;
26
24
  toggleFullscreen: typeof toggleFullscreen;
27
25
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
28
- copy: (code: string) => any;
29
26
  click: (event: MouseEvent) => any;
27
+ copy: (code: string) => any;
30
28
  fullscreen: (isFullscreen: boolean) => any;
31
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
32
- onCopy?: ((code: string) => any) | undefined;
33
30
  onClick?: ((event: MouseEvent) => any) | undefined;
31
+ onCopy?: ((code: string) => any) | undefined;
34
32
  onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
35
33
  }>, {
36
- trim: boolean;
37
34
  code: string;
35
+ trim: boolean;
38
36
  language: string;
39
37
  showHeader: boolean;
40
38
  showLineNumbers: boolean;
@@ -13,9 +13,7 @@ interface Props {
13
13
  maxHeight?: string | number;
14
14
  autoLoadLanguage?: boolean;
15
15
  }
16
- /**
17
- * 复制代码到剪贴板
18
- */
16
+ /** 复制发起时的内容;文本随后变化不会改变已写入剪贴板的事件快照。 */
19
17
  declare function copyCode(): Promise<void>;
20
18
  /**
21
19
  * 切换全屏显示状态
@@ -25,16 +23,16 @@ declare const __VLS_export: vue.DefineComponent<Props, {
25
23
  copyCode: typeof copyCode;
26
24
  toggleFullscreen: typeof toggleFullscreen;
27
25
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
28
- copy: (code: string) => any;
29
26
  click: (event: MouseEvent) => any;
27
+ copy: (code: string) => any;
30
28
  fullscreen: (isFullscreen: boolean) => any;
31
29
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
32
- onCopy?: ((code: string) => any) | undefined;
33
30
  onClick?: ((event: MouseEvent) => any) | undefined;
31
+ onCopy?: ((code: string) => any) | undefined;
34
32
  onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
35
33
  }>, {
36
- trim: boolean;
37
34
  code: string;
35
+ trim: boolean;
38
36
  language: string;
39
37
  showHeader: boolean;
40
38
  showLineNumbers: boolean;
@@ -61,25 +61,25 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
61
61
  close: () => void; /** 当前是否可见 */
62
62
  visible: vue.ComputedRef<boolean>;
63
63
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
+ close: () => any;
65
+ select: (item: ContextMenuItem) => any;
64
66
  open: (position: {
65
67
  x: number;
66
68
  y: number;
67
69
  }) => any;
68
- close: () => any;
69
- select: (item: ContextMenuItem) => any;
70
70
  }, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
71
+ onClose?: (() => any) | undefined;
72
+ onSelect?: ((item: ContextMenuItem) => any) | undefined;
71
73
  onOpen?: ((position: {
72
74
  x: number;
73
75
  y: number;
74
76
  }) => any) | undefined;
75
- onClose?: (() => any) | undefined;
76
- onSelect?: ((item: ContextMenuItem) => any) | undefined;
77
77
  }>, {
78
78
  disabled: boolean;
79
79
  zIndex: number;
80
- items: ContextMenuItem[];
81
80
  minWidth: number;
82
81
  maxWidth: number;
82
+ items: ContextMenuItem[];
83
83
  subMenuPlacement: "right" | "left";
84
84
  autoClose: boolean;
85
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -83,18 +83,18 @@ interface MapExpose {
83
83
  //#endregion
84
84
  //#region src/components/C_Map/index.vue.d.ts
85
85
  declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
86
- ready: (map: MapInstance) => any;
87
86
  error: (error: Error) => any;
87
+ ready: (map: MapInstance) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onReady?: ((map: MapInstance) => any) | undefined;
91
90
  onError?: ((error: Error) => any) | undefined;
91
+ onReady?: ((map: MapInstance) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
95
- zoom: number;
96
- center: MapCoordinate;
97
95
  ariaLabel: string;
96
+ center: MapCoordinate;
97
+ zoom: number;
98
98
  mapType: MapType;
99
99
  markers: MapMarker[];
100
100
  amapKey: string;
@@ -83,18 +83,18 @@ interface MapExpose {
83
83
  //#endregion
84
84
  //#region src/components/C_Map/index.vue.d.ts
85
85
  declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
86
- ready: (map: MapInstance) => any;
87
86
  error: (error: Error) => any;
87
+ ready: (map: MapInstance) => any;
88
88
  markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
89
89
  }, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
90
- onReady?: ((map: MapInstance) => any) | undefined;
91
90
  onError?: ((error: Error) => any) | undefined;
91
+ onReady?: ((map: MapInstance) => any) | undefined;
92
92
  onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
93
93
  }>, {
94
94
  height: string;
95
- zoom: number;
96
- center: MapCoordinate;
97
95
  ariaLabel: string;
96
+ center: MapCoordinate;
97
+ zoom: number;
98
98
  mapType: MapType;
99
99
  markers: MapMarker[];
100
100
  amapKey: string;
@@ -39,10 +39,13 @@ interface ActionItem {
39
39
  interface ActionBarConfig {
40
40
  align?: ActionGroupAlign;
41
41
  size?: ActionButtonSize;
42
+ /** 按钮间距;省略时紧凑模式为 6px,常规模式为 12px。 */
42
43
  gap?: number;
44
+ /** 允许分组及组内按钮随可用宽度换行。 */
43
45
  wrap?: boolean;
44
46
  showDivider?: boolean;
45
47
  dividerType?: 'vertical' | 'horizontal';
48
+ /** 减少容器留白和默认按钮间距;行内模式也生效。 */
46
49
  compact?: boolean;
47
50
  inline?: boolean;
48
51
  }
@@ -73,8 +76,8 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
73
76
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
74
77
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
75
78
  }>, {
76
- config: ActionBarConfig;
77
79
  actions: ActionItem[];
80
+ config: ActionBarConfig;
78
81
  leftActions: ActionItem[];
79
82
  rightActions: ActionItem[];
80
83
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
package/dist/presets.d.ts CHANGED
@@ -39,10 +39,13 @@ interface ActionItem {
39
39
  interface ActionBarConfig {
40
40
  align?: ActionGroupAlign;
41
41
  size?: ActionButtonSize;
42
+ /** 按钮间距;省略时紧凑模式为 6px,常规模式为 12px。 */
42
43
  gap?: number;
44
+ /** 允许分组及组内按钮随可用宽度换行。 */
43
45
  wrap?: boolean;
44
46
  showDivider?: boolean;
45
47
  dividerType?: 'vertical' | 'horizontal';
48
+ /** 减少容器留白和默认按钮间距;行内模式也生效。 */
46
49
  compact?: boolean;
47
50
  inline?: boolean;
48
51
  }
@@ -73,8 +76,8 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
73
76
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
74
77
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
75
78
  }>, {
76
- config: ActionBarConfig;
77
79
  actions: ActionItem[];
80
+ config: ActionBarConfig;
78
81
  leftActions: ActionItem[];
79
82
  rightActions: ActionItem[];
80
83
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;