@robot-admin/naive-ui-components 0.41.1 → 0.41.2

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 (293) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +44 -5
  3. package/README_EN.md +44 -5
  4. package/dist/C_ActionBar.css +54 -54
  5. package/dist/C_ActionBar2.cjs +1 -1
  6. package/dist/C_ActionBar2.js +1 -1
  7. package/dist/C_AntV.css +10 -10
  8. package/dist/C_AntV2.cjs +1 -1
  9. package/dist/C_AntV2.js +1 -1
  10. package/dist/C_AudioPlayer.css +53 -53
  11. package/dist/C_AudioPlayer2.cjs +1 -1
  12. package/dist/C_AudioPlayer2.js +1 -1
  13. package/dist/C_AutoComplete.css +2 -2
  14. package/dist/C_AutoComplete2.cjs +1 -1
  15. package/dist/C_AutoComplete2.js +1 -1
  16. package/dist/C_AvatarGroup.css +29 -29
  17. package/dist/C_AvatarGroup2.cjs +1 -1
  18. package/dist/C_AvatarGroup2.js +1 -1
  19. package/dist/C_BatchResult.css +10 -10
  20. package/dist/C_BatchResult2.cjs +1 -1
  21. package/dist/C_BatchResult2.js +1 -1
  22. package/dist/C_Breadcrumb.css +40 -40
  23. package/dist/C_Breadcrumb2.cjs +1 -1
  24. package/dist/C_Breadcrumb2.js +1 -1
  25. package/dist/C_Captcha.d.cts +2 -2
  26. package/dist/C_Captcha.d.ts +2 -2
  27. package/dist/C_Captcha2.cjs +1 -1
  28. package/dist/C_Captcha2.js +1 -1
  29. package/dist/C_Cascade.css +4 -4
  30. package/dist/C_Cascade2.cjs +1 -1
  31. package/dist/C_Cascade2.js +1 -1
  32. package/dist/C_Chat2.cjs +1 -1
  33. package/dist/C_Chat2.js +1 -1
  34. package/dist/C_City.css +35 -35
  35. package/dist/C_City2.cjs +1 -1
  36. package/dist/C_City2.js +1 -1
  37. package/dist/C_Code.css +27 -27
  38. package/dist/C_Code2.cjs +1 -1
  39. package/dist/C_Code2.js +2 -2
  40. package/dist/C_CollapsePanel2.cjs +1 -1
  41. package/dist/C_CollapsePanel2.js +1 -1
  42. package/dist/C_ContextMenu.css +3 -3
  43. package/dist/C_ContextMenu2.cjs +1 -1
  44. package/dist/C_ContextMenu2.js +1 -1
  45. package/dist/C_Cron.css +18 -18
  46. package/dist/C_Cron2.cjs +1 -1
  47. package/dist/C_Cron2.js +1 -1
  48. package/dist/C_DataPicker.css +52 -52
  49. package/dist/C_DataPicker2.cjs +1 -1
  50. package/dist/C_DataPicker2.js +1 -1
  51. package/dist/C_Date.css +5 -5
  52. package/dist/C_Date2.cjs +1 -1
  53. package/dist/C_Date2.js +1 -1
  54. package/dist/C_Draggable.css +53 -53
  55. package/dist/C_Draggable2.cjs +1 -1
  56. package/dist/C_Draggable2.js +1 -1
  57. package/dist/C_Editor.css +13 -13
  58. package/dist/C_Editor.d.cts +2 -2
  59. package/dist/C_Editor.d.ts +2 -2
  60. package/dist/C_Editor2.cjs +1 -1
  61. package/dist/C_Editor2.js +1 -1
  62. package/dist/C_FilePreview.css +49 -49
  63. package/dist/C_FilePreview2.cjs +1 -1
  64. package/dist/C_FilePreview2.js +1 -1
  65. package/dist/C_Form.base.css +241 -241
  66. package/dist/C_Form.css +241 -241
  67. package/dist/C_Form.d.cts +1 -1
  68. package/dist/C_Form.d.ts +1 -1
  69. package/dist/C_FormModal.css +55 -55
  70. package/dist/C_FormModal2.cjs +1 -1
  71. package/dist/C_FormModal2.js +1 -1
  72. package/dist/C_FormSearch.css +74 -74
  73. package/dist/C_FormSearch.d.ts +1 -1
  74. package/dist/C_FormulaEditor.cjs +1 -1
  75. package/dist/C_FormulaEditor.css +41 -41
  76. package/dist/C_FormulaEditor.d.cts +2 -2
  77. package/dist/C_FormulaEditor.d.ts +2 -2
  78. package/dist/C_FormulaEditor.js +1 -1
  79. package/dist/C_GlobalSearch2.cjs +1 -1
  80. package/dist/C_GlobalSearch2.js +1 -1
  81. package/dist/C_Guide.css +13 -13
  82. package/dist/C_Guide2.cjs +1 -1
  83. package/dist/C_Guide2.js +1 -1
  84. package/dist/C_ImageCropper.css +27 -27
  85. package/dist/C_ImageCropper2.cjs +1 -1
  86. package/dist/C_ImageCropper2.js +1 -1
  87. package/dist/C_ImportWizard.css +8 -8
  88. package/dist/C_ImportWizard2.cjs +1 -1
  89. package/dist/C_ImportWizard2.js +1 -1
  90. package/dist/C_Loading.css +18 -18
  91. package/dist/C_Loading2.cjs +1 -1
  92. package/dist/C_Loading2.js +1 -1
  93. package/dist/C_Login.css +94 -94
  94. package/dist/C_Login2.cjs +1 -1
  95. package/dist/C_Login2.js +1 -1
  96. package/dist/C_Markdown.css +37 -37
  97. package/dist/C_Markdown2.cjs +1 -1
  98. package/dist/C_Markdown2.js +1 -1
  99. package/dist/C_NotificationCenter.css +24 -24
  100. package/dist/C_NotificationCenter2.cjs +1 -1
  101. package/dist/C_NotificationCenter2.js +1 -1
  102. package/dist/C_OrgChart.d.cts +2 -8
  103. package/dist/C_OrgChart.d.ts +2 -8
  104. package/dist/C_QRCode.css +9 -9
  105. package/dist/C_QRCode2.cjs +1 -1
  106. package/dist/C_QRCode2.js +1 -1
  107. package/dist/C_RecurrenceEditor.cjs +1 -1
  108. package/dist/C_RecurrenceEditor.d.cts +2 -2
  109. package/dist/C_RecurrenceEditor.d.ts +2 -2
  110. package/dist/C_RecurrenceEditor.js +1 -1
  111. package/dist/C_RecurrenceEditor2.cjs +1 -1
  112. package/dist/C_RecurrenceEditor2.js +1 -1
  113. package/dist/C_ScanInput2.cjs +1 -1
  114. package/dist/C_ScanInput2.js +1 -1
  115. package/dist/C_SectionNav.css +8 -8
  116. package/dist/C_SectionNav2.cjs +1 -1
  117. package/dist/C_SectionNav2.js +1 -1
  118. package/dist/C_Signature.css +15 -15
  119. package/dist/C_Signature2.cjs +1 -1
  120. package/dist/C_Signature2.js +1 -1
  121. package/dist/C_Table.base.css +428 -428
  122. package/dist/C_Table.css +187 -187
  123. package/dist/C_Table.d.cts +1 -1
  124. package/dist/C_Table.d.ts +1 -1
  125. package/dist/C_Table2.cjs +4 -4
  126. package/dist/C_Table2.js +4 -4
  127. package/dist/C_Timeline.css +50 -50
  128. package/dist/C_Timeline2.cjs +1 -1
  129. package/dist/C_Timeline2.js +1 -1
  130. package/dist/C_Tree.css +30 -30
  131. package/dist/C_Tree2.cjs +1 -1
  132. package/dist/C_Tree2.js +1 -1
  133. package/dist/C_Upload.css +5 -5
  134. package/dist/C_Upload2.cjs +1 -1
  135. package/dist/C_Upload2.js +1 -1
  136. package/dist/C_UserPicker.css +1 -1
  137. package/dist/C_VideoPlayer2.cjs +1 -1
  138. package/dist/C_VideoPlayer2.js +1 -1
  139. package/dist/C_VtableGantt.css +34 -34
  140. package/dist/C_WorkFlow.css +93 -93
  141. package/dist/C_WorkFlow2.cjs +1 -1
  142. package/dist/C_WorkFlow2.js +1 -1
  143. package/dist/Card.cjs +1 -1
  144. package/dist/Card.js +1 -1
  145. package/dist/ColumnSettingsDrawer.cjs +1 -0
  146. package/dist/ColumnSettingsDrawer.js +1 -0
  147. package/dist/Custom.cjs +1 -1
  148. package/dist/Custom.js +1 -1
  149. package/dist/Dynamic.cjs +1 -1
  150. package/dist/Dynamic.js +1 -1
  151. package/dist/Steps.cjs +1 -1
  152. package/dist/Steps.js +1 -1
  153. package/dist/Tabs.cjs +1 -1
  154. package/dist/Tabs.js +1 -1
  155. package/dist/component-config.d.ts +1 -1
  156. package/dist/config.d.cts +1 -1
  157. package/dist/config.d.ts +1 -1
  158. package/dist/constants.d.cts +3 -3
  159. package/dist/constants.d.ts +3 -3
  160. package/dist/constants2.d.cts +8 -1
  161. package/dist/constants2.d.ts +8 -1
  162. package/dist/constants3.d.cts +7 -7
  163. package/dist/constants3.d.ts +7 -7
  164. package/dist/constants4.d.cts +4 -4
  165. package/dist/constants4.d.ts +4 -4
  166. package/dist/context.d.cts +1 -1
  167. package/dist/data2.d.cts +7 -7
  168. package/dist/data2.d.ts +7 -7
  169. package/dist/editors.d.cts +19 -17
  170. package/dist/editors.d.ts +19 -17
  171. package/dist/fieldNode.cjs +1 -0
  172. package/dist/fieldNode.js +1 -0
  173. package/dist/fieldRenderers.cjs +1 -1
  174. package/dist/fieldRenderers.js +1 -1
  175. package/dist/graphics.cjs +1 -1
  176. package/dist/graphics.js +1 -1
  177. package/dist/index.cjs +1 -1
  178. package/dist/index.d.cts +6 -6
  179. package/dist/index.d.ts +6 -6
  180. package/dist/index.js +1 -1
  181. package/dist/index11.vue.d.ts +1 -1
  182. package/dist/index12.vue.d.cts +1 -1
  183. package/dist/index13.vue.d.ts +3 -3
  184. package/dist/index14.vue.d.cts +3 -3
  185. package/dist/index14.vue.d.ts +2 -2
  186. package/dist/index15.vue.d.cts +2 -2
  187. package/dist/index17.vue.d.ts +17 -10
  188. package/dist/index18.vue.d.cts +17 -10
  189. package/dist/index19.vue.d.ts +1 -1
  190. package/dist/index2.vue.d.cts +2 -2
  191. package/dist/index2.vue.d.ts +2 -2
  192. package/dist/index20.vue.d.cts +1 -1
  193. package/dist/index20.vue.d.ts +2 -2
  194. package/dist/index21.vue.d.cts +2 -2
  195. package/dist/index21.vue.d.ts +7 -7
  196. package/dist/index22.vue.d.cts +7 -7
  197. package/dist/index26.vue.d.ts +1 -1
  198. package/dist/index27.vue.d.cts +1 -1
  199. package/dist/index27.vue.d.ts +1 -1
  200. package/dist/index28.vue.d.cts +1 -1
  201. package/dist/index29.vue.d.cts +2 -2
  202. package/dist/index29.vue.d.ts +2 -2
  203. package/dist/index3.vue.d.cts +17 -19
  204. package/dist/index3.vue.d.ts +17 -19
  205. package/dist/index34.vue.d.cts +2 -0
  206. package/dist/index34.vue.d.ts +2 -0
  207. package/dist/index35.vue.d.cts +4 -4
  208. package/dist/index35.vue.d.ts +4 -4
  209. package/dist/index36.vue.d.cts +20 -11
  210. package/dist/index36.vue.d.ts +20 -11
  211. package/dist/index37.vue.d.cts +2 -2
  212. package/dist/index37.vue.d.ts +2 -2
  213. package/dist/index39.vue.d.cts +1 -1
  214. package/dist/index39.vue.d.ts +1 -1
  215. package/dist/index4.vue.d.cts +7 -4
  216. package/dist/index4.vue.d.ts +7 -4
  217. package/dist/index41.vue.d.cts +1 -1
  218. package/dist/index41.vue.d.ts +1 -1
  219. package/dist/index42.vue.d.cts +2 -2
  220. package/dist/index42.vue.d.ts +2 -2
  221. package/dist/index43.vue.d.cts +2 -2
  222. package/dist/index43.vue.d.ts +2 -2
  223. package/dist/index5.vue.d.cts +5 -17
  224. package/dist/index5.vue.d.ts +5 -17
  225. package/dist/index6.vue.d.cts +2 -2
  226. package/dist/index6.vue.d.ts +2 -2
  227. package/dist/index7.vue.d.cts +18 -12
  228. package/dist/index7.vue.d.ts +18 -12
  229. package/dist/localSource.d.cts +8 -8
  230. package/dist/localSource.d.ts +8 -8
  231. package/dist/locale.cjs +1 -1
  232. package/dist/locale.js +1 -1
  233. package/dist/mapUtils.d.cts +1 -1
  234. package/dist/mapUtils.d.ts +1 -1
  235. package/dist/persistence.cjs +1 -0
  236. package/dist/persistence.js +1 -0
  237. package/dist/presets.d.cts +1 -1
  238. package/dist/presets.d.ts +1 -1
  239. package/dist/rule.d.cts +4 -1
  240. package/dist/rule.d.ts +4 -1
  241. package/dist/serializeSearch.cjs +1 -1
  242. package/dist/serializeSearch.js +1 -1
  243. package/dist/source.cjs +1 -1
  244. package/dist/source.js +1 -1
  245. package/dist/style.css +1334 -1334
  246. package/dist/types.d.cts +1 -1
  247. package/dist/types.d.ts +1 -1
  248. package/dist/types10.d.cts +2 -0
  249. package/dist/types10.d.ts +1 -1
  250. package/dist/types11.d.cts +1 -1
  251. package/dist/types3.d.cts +14 -5
  252. package/dist/types3.d.ts +14 -5
  253. package/dist/types5.d.ts +12 -10
  254. package/dist/types6.d.cts +12 -10
  255. package/dist/types6.d.ts +1 -1
  256. package/dist/types9.d.ts +2 -0
  257. package/dist/useCalendarEvents.d.cts +3 -15
  258. package/dist/useCalendarEvents.d.ts +3 -15
  259. package/dist/useCollapsePanel.d.cts +4 -3
  260. package/dist/useCollapsePanel.d.ts +4 -3
  261. package/dist/useCropperCore.d.cts +8 -19
  262. package/dist/useCropperCore.d.ts +8 -19
  263. package/dist/useDynamicFormState.d.cts +3 -3
  264. package/dist/useDynamicFormState.d.ts +3 -3
  265. package/dist/useEdgeInteraction.d.cts +3 -12
  266. package/dist/useEdgeInteraction.d.ts +3 -12
  267. package/dist/useFormRenderer.d.cts +1 -1
  268. package/dist/useFormRenderer.d.ts +1 -1
  269. package/dist/useFormulaEvaluator.cjs +2 -2
  270. package/dist/useFormulaEvaluator.js +2 -2
  271. package/dist/useFullscreen.d.cts +23 -5
  272. package/dist/useFullscreen.d.ts +23 -5
  273. package/dist/useInfiniteScroll.d.cts +2 -2
  274. package/dist/useInfiniteScroll.d.ts +2 -2
  275. package/dist/useQRCode.d.cts +5 -18
  276. package/dist/useQRCode.d.ts +5 -18
  277. package/dist/useSignatureHistory.d.cts +3 -3
  278. package/dist/useSignatureHistory.d.ts +3 -3
  279. package/dist/useSplitResize.d.cts +4 -4
  280. package/dist/useSplitResize.d.ts +4 -4
  281. package/dist/useTimeSelection.d.cts +4 -3
  282. package/dist/useTimeSelection.d.ts +4 -3
  283. package/dist/useWorkflowValidation.d.cts +11 -5
  284. package/dist/useWorkflowValidation.d.ts +11 -5
  285. package/dist/verification.d.cts +1 -1
  286. package/dist/verification.d.ts +1 -1
  287. package/docs/engineering.en.md +1 -0
  288. package/docs/engineering.md +1 -0
  289. package/docs/guides/batch-results.md +3 -3
  290. package/docs/guides/data-picker.md +2 -0
  291. package/docs/guides/runtime-performance.md +2 -0
  292. package/docs/guides/scene-components.md +1 -1
  293. package/package.json +1 -1
@@ -9,16 +9,16 @@ type __VLS_Slots = {} & {
9
9
  };
10
10
  declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
11
11
  success: (file: UploadFileItem, response: unknown) => any;
12
- change: (fileList: UploadFileItem[]) => any;
13
12
  error: (file: UploadFileItem, error: Error) => any;
13
+ change: (fileList: UploadFileItem[]) => any;
14
14
  progress: (file: UploadFileItem, percent: number) => any;
15
15
  remove: (file: UploadFileItem) => any;
16
16
  finish: (fileList: UploadFileItem[]) => any;
17
17
  exceed: (files: File[], fileList: UploadFileItem[]) => any;
18
18
  }, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
19
19
  onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
20
- onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
21
20
  onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
21
+ onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
22
22
  onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
23
23
  onRemove?: ((file: UploadFileItem) => any) | undefined;
24
24
  onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
@@ -26,12 +26,12 @@ declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {},
26
26
  }>, {
27
27
  data: Record<string, unknown>;
28
28
  disabled: boolean;
29
+ multiple: boolean;
29
30
  draggable: boolean;
30
31
  action: string;
31
- multiple: boolean;
32
- accept: string;
33
32
  headers: Record<string, string>;
34
33
  directory: boolean;
34
+ accept: string;
35
35
  maxSize: number;
36
36
  maxCount: number;
37
37
  pasteable: boolean;
@@ -10,16 +10,16 @@ type __VLS_Slots = {} & {
10
10
  };
11
11
  declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
12
12
  success: (file: UploadFileItem, response: unknown) => any;
13
- change: (fileList: UploadFileItem[]) => any;
14
13
  error: (file: UploadFileItem, error: Error) => any;
14
+ change: (fileList: UploadFileItem[]) => any;
15
15
  progress: (file: UploadFileItem, percent: number) => any;
16
16
  remove: (file: UploadFileItem) => any;
17
17
  finish: (fileList: UploadFileItem[]) => any;
18
18
  exceed: (files: File[], fileList: UploadFileItem[]) => any;
19
19
  }, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
20
20
  onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
21
- onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
22
21
  onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
22
+ onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
23
23
  onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
24
24
  onRemove?: ((file: UploadFileItem) => any) | undefined;
25
25
  onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
@@ -27,12 +27,12 @@ declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {},
27
27
  }>, {
28
28
  data: Record<string, unknown>;
29
29
  disabled: boolean;
30
+ multiple: boolean;
30
31
  draggable: boolean;
31
32
  action: string;
32
- multiple: boolean;
33
- accept: string;
34
33
  headers: Record<string, string>;
35
34
  directory: boolean;
35
+ accept: string;
36
36
  maxSize: number;
37
37
  maxCount: number;
38
38
  pasteable: boolean;
@@ -1744,4 +1744,4 @@ declare const FORM_GLOBAL_CONFIG_KEY: InjectionKey<FormConfig>;
1744
1744
  /** 表格默认配置与独立入口共享同一协议,不加载表格渲染代码。 */
1745
1745
  declare const TABLE_GLOBAL_CONFIG_KEY: InjectionKey<TableGlobalConfig>;
1746
1746
  //#endregion
1747
- export { MaybeRefLike as $, FormSlots as $t, RowDragConfig as A, LayoutCallbacks as At, WatermarkConfig as B, DynamicFieldConfig as Bt, ToolbarConfig as C, UseCrossPageSelectionOptions as Ct, resolveConfig as D, FORM_DEFAULTS as Dt, createEditModeChecker as E, ColumnStatus as Et, DynamicRowsReturn as F, useFormGlobalConfig as Ft, ChildSelectionState as G, FieldPathValue as Gt, usePrintWatermark as H, DynamicFormController as Ht, useDynamicRows as I, AsyncOptionsContext as It, DataRecord as J, FormInstance as Jt, ColumnWithKey as K, FormActionSlotProps as Kt, CaptureConfig as L, CardLayoutConfig as Lt, UseRowDragReturn as M, mergeFormConfig as Mt, useRowDrag as N, resolveFormConfig as Nt, ExportConfig as O, FormConfig as Ot, DynamicRowsOptions as P, shouldShowActions as Pt, InlineTableAction as Q, FormRecord as Qt, PrintConfig as R, ComponentType as Rt, TableConfig as S, CrossPageSelectionConfig as St, VirtualScrollConfig as T, useCrossPageSelection as Tt, ApiFunction as U, DynamicFormState as Ut, printPresets as V, DynamicFormConfig as Vt, BuiltInTableColumn as W, FieldPath as Wt, EditProps as X, FormModel as Xt, EditMode as Y, FormMode as Yt, GroupTableColumn as Z, FormOption as Zt, ErrorConfig as _, SPEC_RULES as _n, UseTableActionsReturn as _t, ColumnFormatter as a, LabelPlacement as an, SelectOption as at, SelectionConfig as b, TableExportScope as bt, TableGlobalConfig as c, MaybePromise as cn, TableColumn as ct, useTableGlobalConfig as d, SubmitEventPayload as dn, TableManagerApi as dt, FormStepActionsSlotProps as en, NormalTableColumn as et, BatchActionsConfig as f, TabsLayoutConfig as fn, TableProps as ft, EditConfig as g, RuleSpec$1 as gn, UseTableActionsOptions as gt, DisplayConfig as h, PRESET_RULES as hn, TableRuntimeProps as ht, TABLE_GLOBAL_CONFIG_KEY as i, InlineLayoutConfig as in, RowAction as it, UseRowDragOptions as j, ResolvedFormConfig as jt, exportTableData as k, LAYOUTS_WITH_OWN_CONTROLS as kt, applyFormatter as l, OptionItem as ln, TableEmits as lt, CrudBinding as m, NAIVE_COMBOS as mn, TableRowKeyIssue as mt, COMPONENT_LOCALE_KEY as n, FormTabActionsSlotProps as nn, ParentChildLinkMode as nt, FormatterConfig as o, LayoutConfig as on, SimpleTableActions as ot, ColumnDragConfig as p, FormValidationRule as pn, TableRowKey as pt, CustomAction as q, FormErrorContext as qt, FORM_GLOBAL_CONFIG_KEY as r, GridLayoutConfig as rn, RenderFunction as rt, FormatterType as s, LayoutType as sn, StrictTableColumn as st, COMPONENT_FEEDBACK_KEY as t, FormSubmitContext as tn, PaginationConfig as tt, mergeGlobalConfig as u, StepsLayoutConfig as un, TableInstance as ut, ExpandConfig as v, UseTableExpandOptions as vt, TreeConfig as w, UseCrossPageSelectionReturn as wt, SummaryConfig as x, TableMatchingExportContext as xt, ResolvedConfig as y, UseTableExpandReturn as yt, PrintWatermarkOptions as z, CustomLayoutConfig as zt };
1747
+ export { InlineTableAction as $, FormRecord as $t, RowDragConfig as A, LAYOUTS_WITH_OWN_CONTROLS as At, WatermarkConfig as B, CustomLayoutConfig as Bt, ToolbarConfig as C, CrossPageSelectionConfig as Ct, resolveConfig as D, ColumnStatus as Dt, createEditModeChecker as E, useCrossPageSelection as Et, DynamicRowsReturn as F, shouldShowActions as Ft, ChildSelectionState as G, FieldPath as Gt, usePrintWatermark as H, DynamicFormConfig as Ht, useDynamicRows as I, useFormGlobalConfig as It, DataRecord as J, FormErrorContext as Jt, ColumnWithKey as K, FieldPathValue as Kt, CaptureConfig as L, AsyncOptionsContext as Lt, UseRowDragReturn as M, ResolvedFormConfig as Mt, useRowDrag as N, mergeFormConfig as Nt, ExportConfig as O, FORM_DEFAULTS as Ot, DynamicRowsOptions as P, resolveFormConfig as Pt, GroupTableColumn as Q, FormOption as Qt, PrintConfig as R, CardLayoutConfig as Rt, TableConfig as S, TableMatchingExportContext as St, VirtualScrollConfig as T, UseCrossPageSelectionReturn as Tt, ApiFunction as U, DynamicFormController as Ut, printPresets as V, DynamicFieldConfig as Vt, BuiltInTableColumn as W, DynamicFormState as Wt, EditProps as X, FormMode as Xt, EditMode as Y, FormInstance as Yt, ExpandConfig$1 as Z, FormModel as Zt, ErrorConfig as _, RuleSpec$1 as _n, UseTableActionsOptions as _t, ColumnFormatter as a, InlineLayoutConfig as an, RowAction as at, SelectionConfig as b, UseTableExpandReturn as bt, TableGlobalConfig as c, LayoutType as cn, StrictTableColumn as ct, useTableGlobalConfig as d, StepsLayoutConfig as dn, TableInstance as dt, FormSlots as en, MaybeRefLike as et, BatchActionsConfig as f, SubmitEventPayload as fn, TableManagerApi as ft, EditConfig as g, PRESET_RULES as gn, TableRuntimeProps as gt, DisplayConfig as h, NAIVE_COMBOS as hn, TableRowKeyIssue as ht, TABLE_GLOBAL_CONFIG_KEY as i, GridLayoutConfig as in, RenderFunction as it, UseRowDragOptions as j, LayoutCallbacks as jt, exportTableData as k, FormConfig as kt, applyFormatter as l, MaybePromise as ln, TableColumn as lt, CrudBinding as m, FormValidationRule as mn, TableRowKey as mt, COMPONENT_LOCALE_KEY as n, FormSubmitContext as nn, PaginationConfig as nt, FormatterConfig as o, LabelPlacement as on, SelectOption as ot, ColumnDragConfig as p, TabsLayoutConfig as pn, TableProps as pt, CustomAction as q, FormActionSlotProps as qt, FORM_GLOBAL_CONFIG_KEY as r, FormTabActionsSlotProps as rn, ParentChildLinkMode as rt, FormatterType as s, LayoutConfig as sn, SimpleTableActions as st, COMPONENT_FEEDBACK_KEY as t, FormStepActionsSlotProps as tn, NormalTableColumn as tt, mergeGlobalConfig as u, OptionItem as un, TableEmits as ut, ExpandConfig as v, SPEC_RULES as vn, UseTableActionsReturn as vt, TreeConfig as w, UseCrossPageSelectionOptions as wt, SummaryConfig as x, TableExportScope as xt, ResolvedConfig as y, UseTableExpandOptions as yt, PrintWatermarkOptions as z, ComponentType as zt };
package/dist/data2.d.cts CHANGED
@@ -66,25 +66,25 @@ declare const __VLS_base: vue.DefineComponent<CTabsProps, {
66
66
  activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
67
67
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
68
68
  change: (value: TabsValue, item: TabsItem | undefined) => any;
69
- add: () => any;
70
69
  "update:modelValue": (value: TabsValue) => any;
71
70
  close: (value: TabsValue) => any;
71
+ add: () => any;
72
72
  }, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
73
73
  onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
74
- onAdd?: (() => any) | undefined;
75
74
  "onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
76
75
  onClose?: ((value: TabsValue) => any) | undefined;
76
+ onAdd?: (() => any) | undefined;
77
77
  }>, {
78
78
  type: TabsType;
79
- size: TabsSize;
80
79
  modelValue: TabsValue | null;
81
- items: readonly TabsItem[];
82
- animated: boolean;
83
- defaultValue: TabsValue | null;
80
+ size: TabsSize;
84
81
  placement: TabsPlacement;
85
- closable: boolean;
86
82
  displayDirective: TabsDisplayDirective;
83
+ animated: boolean;
84
+ defaultValue: TabsValue | null;
85
+ items: readonly TabsItem[];
87
86
  addable: boolean;
87
+ closable: boolean;
88
88
  justifyContent: TabsJustifyContent;
89
89
  tabsOnly: boolean;
90
90
  paneClass: string;
package/dist/data2.d.ts CHANGED
@@ -66,25 +66,25 @@ declare const __VLS_base: vue.DefineComponent<CTabsProps, {
66
66
  activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
67
67
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
68
68
  change: (value: TabsValue, item: TabsItem | undefined) => any;
69
- add: () => any;
70
69
  "update:modelValue": (value: TabsValue) => any;
71
70
  close: (value: TabsValue) => any;
71
+ add: () => any;
72
72
  }, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
73
73
  onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
74
- onAdd?: (() => any) | undefined;
75
74
  "onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
76
75
  onClose?: ((value: TabsValue) => any) | undefined;
76
+ onAdd?: (() => any) | undefined;
77
77
  }>, {
78
78
  type: TabsType;
79
- size: TabsSize;
80
79
  modelValue: TabsValue | null;
81
- items: readonly TabsItem[];
82
- animated: boolean;
83
- defaultValue: TabsValue | null;
80
+ size: TabsSize;
84
81
  placement: TabsPlacement;
85
- closable: boolean;
86
82
  displayDirective: TabsDisplayDirective;
83
+ animated: boolean;
84
+ defaultValue: TabsValue | null;
85
+ items: readonly TabsItem[];
87
86
  addable: boolean;
87
+ closable: boolean;
88
88
  justifyContent: TabsJustifyContent;
89
89
  tabsOnly: boolean;
90
90
  paneClass: string;
@@ -2,7 +2,7 @@ import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.cjs";
2
2
  import { n as ResolvedComponentDensity, t as ComponentDensity } from "./density.cjs";
3
3
  import { i as OptionValue, r as OptionSource } from "./optionSource.cjs";
4
4
  import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types4.cjs";
5
- import { A as RowDragConfig, C as ToolbarConfig, F as DynamicRowsReturn, J as DataRecord, O as ExportConfig, P as DynamicRowsOptions, S as TableConfig, St as CrossPageSelectionConfig, T as VirtualScrollConfig, Y as EditMode, _ as ErrorConfig, _t as UseTableActionsReturn, b as SelectionConfig, ct as TableColumn, f as BatchActionsConfig, g as EditConfig, gt as UseTableActionsOptions, h as DisplayConfig, ht as TableRuntimeProps, mt as TableRowKeyIssue, nt as ParentChildLinkMode, o as FormatterConfig, ot as SimpleTableActions, p as ColumnDragConfig, pt as TableRowKey, st as StrictTableColumn, tt as PaginationConfig, ut as TableInstance, v as ExpandConfig, vt as UseTableExpandOptions, w as TreeConfig, x as SummaryConfig, y as ResolvedConfig, yt as UseTableExpandReturn } from "./context.cjs";
5
+ import { A as RowDragConfig, C as ToolbarConfig, Ct as CrossPageSelectionConfig, F as DynamicRowsReturn, J as DataRecord, O as ExportConfig, P as DynamicRowsOptions, S as TableConfig, T as VirtualScrollConfig, Y as EditMode, Z as ExpandConfig, _ as ErrorConfig, _t as UseTableActionsOptions, b as SelectionConfig, bt as UseTableExpandReturn, ct as StrictTableColumn, dt as TableInstance, f as BatchActionsConfig, g as EditConfig, gt as TableRuntimeProps, h as DisplayConfig, ht as TableRowKeyIssue, lt as TableColumn, mt as TableRowKey, nt as PaginationConfig, o as FormatterConfig, p as ColumnDragConfig, rt as ParentChildLinkMode, st as SimpleTableActions, ut as TableEmits, v as ExpandConfig$1, vt as UseTableActionsReturn, w as TreeConfig, x as SummaryConfig, y as ResolvedConfig, yt as UseTableExpandOptions } from "./context.cjs";
6
6
  import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types9.cjs";
7
7
  import { E as TreeRenderContext, O as TreeSlots, T as TreeProps$1, _ as TreeExpose, f as DropInfo, g as TreeEmits, k as TreeUpdateMeta, p as IconConfig, u as ActionConfig, v as TreeKey, x as TreeNodeData, y as TreeMode } from "./types11.cjs";
8
8
  import * as vue from "vue";
@@ -23,8 +23,8 @@ declare function useComponentFeedback(local?: MaybeRefOrGetter<ComponentFeedback
23
23
  //#region src/components/C_Table/index.vue.d.ts
24
24
  declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
25
25
  props: vue.PublicProps & __VLS_PrettifyLocal$1<TableRuntimeProps<T, C> & {
26
- onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
27
26
  onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
27
+ onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
28
28
  "onPagination-change"?: ((page: number, pageSize: number) => any) | undefined;
29
29
  "onRow-delete"?: ((deletedRow: T, index: number) => any) | undefined;
30
30
  "onBatch-action-error"?: ((error: unknown, actionKey: string) => any) | undefined;
@@ -59,7 +59,7 @@ declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS
59
59
  } & {
60
60
  empty?: (props: {}) => any;
61
61
  };
62
- emit: ((evt: "save", rowData: T, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "cancel", rowData: T, rowIndex: number) => void) & ((evt: "pagination-change", page: number, pageSize: number) => void) & ((evt: "row-delete", deletedRow: T, index: number) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<T>[]) => void) & ((evt: "row-add", newRow: T) => void) & ((evt: "row-copy", originalRow: T, newRow: T) => void) & ((evt: "row-move", row: T, fromIndex: number, toIndex: number) => void) & ((evt: "row-selection-change", selectedKey: DataTableRowKey | null, selectedRow: T | null) => void) & ((evt: "view-detail", data: T) => void) & ((evt: "column-change", columns: TableColumn<T>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: T | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: T[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: T[]) => void) & ((evt: "edit-error", error: unknown) => void);
62
+ emit: ((evt: "cancel", rowData: T, rowIndex: number) => void) & ((evt: "save", rowData: T, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "pagination-change", page: number, pageSize: number) => void) & ((evt: "row-delete", deletedRow: T, index: number) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<T>[]) => void) & ((evt: "row-add", newRow: T) => void) & ((evt: "row-copy", originalRow: T, newRow: T) => void) & ((evt: "row-move", row: T, fromIndex: number, toIndex: number) => void) & ((evt: "row-selection-change", selectedKey: DataTableRowKey | null, selectedRow: T | null) => void) & ((evt: "view-detail", data: T) => void) & ((evt: "column-change", columns: TableColumn<T>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: T | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: T[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: T[]) => void) & ((evt: "edit-error", error: unknown) => void);
63
63
  }>) => vue.VNode & {
64
64
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
65
65
  };
@@ -229,9 +229,9 @@ interface TableManagerConfig {
229
229
  onEditError?: (error: unknown) => void;
230
230
  expandable: boolean;
231
231
  defaultExpandedKeys?: DataTableRowKey[];
232
- onLoadExpandData?: (row: DataRecord) => Promise<any[]> | any[];
232
+ onLoadExpandData?: ExpandConfig<DataRecord, unknown>['onLoadData'];
233
233
  onExpandError?: (error: unknown, row: DataRecord) => void;
234
- renderExpandContent?: unknown;
234
+ renderExpandContent?: ExpandConfig['renderContent'];
235
235
  rowExpandable?: (row: DataRecord) => boolean;
236
236
  enableSelection: boolean;
237
237
  defaultCheckedKeys?: DataTableRowKey[];
@@ -248,11 +248,13 @@ interface TableManagerConfig {
248
248
  /**
249
249
  * 表格管理器参数接口
250
250
  */
251
+ /** 状态管理器和 CRUD 桥接复用公开的事件载荷,业务泛型由组件出口负责。 */
252
+ type InternalTableEvent = { [K in keyof TableEmits]: [event: K, ...args: TableEmits[K]] }[keyof TableEmits];
251
253
  interface TableManagerParams {
252
254
  config: MaybeRefOrGetter<TableManagerConfig>;
253
255
  data: () => DataRecord[];
254
256
  rowKey: (row: DataRecord) => DataTableRowKey;
255
- emit: (...args: any[]) => unknown;
257
+ emit: (...event: InternalTableEvent) => unknown;
256
258
  /** 列配置(用于编辑校验) */
257
259
  columns?: () => TableColumn[];
258
260
  /** UI 壳提供加载内容,状态引擎保持可独立调用。 */
@@ -267,7 +269,7 @@ interface EventHandlers {
267
269
  onSave: (rowData: DataRecord, rowIndex: number, columnKey?: string, originalKey?: DataTableRowKey) => Promise<void>;
268
270
  onCancel: (rowData: DataRecord, rowIndex: number) => Promise<void>;
269
271
  onExpandChange: (keys: DataTableRowKey[], row?: DataRecord, expanded?: boolean) => void;
270
- onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections: Map<DataTableRowKey, DataTableRowKey[]>) => void;
272
+ onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]>) => void;
271
273
  onChildSelectionChange: (parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: DataRecord[]) => void;
272
274
  onRowChange: (data: DataRecord[]) => void;
273
275
  onRowSelectionChange: (selectedKey: DataTableRowKey | null, selectedRow: DataRecord | null) => void;
@@ -556,21 +558,21 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
556
558
  //#region src/components/C_Tree/index.vue.d.ts
557
559
  declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
558
560
  props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
559
- "onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
561
+ "onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
560
562
  "onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
561
563
  onAdd?: ((parentNode?: T | undefined) => any) | undefined;
562
- "onSearch-error"?: ((error: unknown) => any) | undefined;
564
+ onRefresh?: (() => any) | undefined;
563
565
  "onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
564
- "onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
565
- "onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
566
+ "onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
567
+ "onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
566
568
  "onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
567
569
  "onNode-action"?: ((action: string, node: T) => any) | undefined;
568
570
  "onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
569
- onRefresh?: (() => any) | undefined;
571
+ "onSearch-error"?: ((error: unknown) => any) | undefined;
570
572
  }> & (typeof globalThis extends {
571
573
  __VLS_PROPS_FALLBACK: infer P;
572
574
  } ? P : {});
573
- expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "checkedKeys" | "selectedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
575
+ expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
574
576
  expandedKeys: vue.Ref<TreeKey[]>;
575
577
  selectedKeys: vue.Ref<TreeKey[]>;
576
578
  checkedKeys: vue.Ref<TreeKey[]>;
@@ -581,7 +583,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
581
583
  }>) => void;
582
584
  attrs: any;
583
585
  slots: TreeSlots<T>;
584
- emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "search-error", error: unknown) => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "refresh") => void);
586
+ emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "search-error", error: unknown) => void);
585
587
  }>) => vue.VNode & {
586
588
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
587
589
  };
@@ -645,7 +647,7 @@ declare function useTreeOperations<T extends object = TreeNodeData>(props: TreeP
645
647
  handleDrop: (info: DropInfo<T>) => void;
646
648
  handleAdd: () => void;
647
649
  handleRefresh: () => void;
648
- expose: Omit<TreeExpose<T>, "expandedKeys" | "checkedKeys" | "selectedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
650
+ expose: Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
649
651
  expandedKeys: Ref<TreeKey[]>;
650
652
  selectedKeys: Ref<TreeKey[]>;
651
653
  checkedKeys: Ref<TreeKey[]>;
@@ -728,7 +730,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
728
730
  validateRowKeys?: boolean;
729
731
  edit?: boolean | EditMode | EditConfig<T> | undefined;
730
732
  actions?: SimpleTableActions<T> | undefined;
731
- expand?: boolean | ExpandConfig<T, unknown> | undefined;
733
+ expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
732
734
  selection?: boolean | SelectionConfig<T, unknown> | undefined;
733
735
  dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
734
736
  toolbar?: ToolbarConfig;
@@ -776,7 +778,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
776
778
  validateRowKeys?: boolean;
777
779
  edit?: boolean | EditMode | EditConfig<T> | undefined;
778
780
  actions?: SimpleTableActions<T> | undefined;
779
- expand?: boolean | ExpandConfig<T, unknown> | undefined;
781
+ expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
780
782
  selection?: boolean | SelectionConfig<T, unknown> | undefined;
781
783
  dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
782
784
  toolbar?: ToolbarConfig;
package/dist/editors.d.ts CHANGED
@@ -2,7 +2,7 @@ import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.js";
2
2
  import { n as ResolvedComponentDensity, t as ComponentDensity } from "./density.js";
3
3
  import { i as OptionValue, r as OptionSource } from "./optionSource.js";
4
4
  import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types4.js";
5
- import { A as ExportConfig, C as SummaryConfig, D as VirtualScrollConfig, E as TreeConfig, I as DynamicRowsOptions, L as DynamicRowsReturn, M as RowDragConfig, S as SelectionConfig, T as ToolbarConfig, X as DataRecord, Z as EditMode, _ as DisplayConfig, _t as TableRuntimeProps, b as ExpandConfig, bt as UseTableExpandOptions, c as FormatterConfig, ct as SimpleTableActions, ft as TableInstance, gt as TableRowKeyIssue, h as ColumnDragConfig, ht as TableRowKey, it as ParentChildLinkMode, lt as StrictTableColumn, m as BatchActionsConfig, rt as PaginationConfig, ut as TableColumn, v as EditConfig, vt as UseTableActionsOptions, w as TableConfig, wt as CrossPageSelectionConfig, x as ResolvedConfig, xt as UseTableExpandReturn, y as ErrorConfig, yt as UseTableActionsReturn } from "./component-config.js";
5
+ import { $ as ExpandConfig, A as ExportConfig, C as SummaryConfig, D as VirtualScrollConfig, E as TreeConfig, I as DynamicRowsOptions, L as DynamicRowsReturn, M as RowDragConfig, S as SelectionConfig, St as UseTableExpandReturn, T as ToolbarConfig, Tt as CrossPageSelectionConfig, X as DataRecord, Z as EditMode, _ as DisplayConfig, _t as TableRowKeyIssue, at as ParentChildLinkMode, b as ExpandConfig$1, bt as UseTableActionsReturn, c as FormatterConfig, dt as TableColumn, ft as TableEmits, gt as TableRowKey, h as ColumnDragConfig, it as PaginationConfig, lt as SimpleTableActions, m as BatchActionsConfig, pt as TableInstance, ut as StrictTableColumn, v as EditConfig, vt as TableRuntimeProps, w as TableConfig, x as ResolvedConfig, xt as UseTableExpandOptions, y as ErrorConfig, yt as UseTableActionsOptions } from "./component-config.js";
6
6
  import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types8.js";
7
7
  import { E as TreeRenderContext, O as TreeSlots, T as TreeProps$1, _ as TreeExpose, f as DropInfo, g as TreeEmits, k as TreeUpdateMeta, p as IconConfig, u as ActionConfig, v as TreeKey, x as TreeNodeData, y as TreeMode } from "./types10.js";
8
8
  import * as vue from "vue";
@@ -13,8 +13,8 @@ import { HLJSApi } from "highlight.js";
13
13
  //#region src/components/C_Table/index.vue.d.ts
14
14
  declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
15
15
  props: vue.PublicProps & __VLS_PrettifyLocal$1<TableRuntimeProps<T, C> & {
16
- onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
17
16
  onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
17
+ onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
18
18
  "onPagination-change"?: ((page: number, pageSize: number) => any) | undefined;
19
19
  "onRow-delete"?: ((deletedRow: T, index: number) => any) | undefined;
20
20
  "onBatch-action-error"?: ((error: unknown, actionKey: string) => any) | undefined;
@@ -49,7 +49,7 @@ declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS
49
49
  } & {
50
50
  empty?: (props: {}) => any;
51
51
  };
52
- emit: ((evt: "save", rowData: T, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "cancel", rowData: T, rowIndex: number) => void) & ((evt: "pagination-change", page: number, pageSize: number) => void) & ((evt: "row-delete", deletedRow: T, index: number) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<T>[]) => void) & ((evt: "row-add", newRow: T) => void) & ((evt: "row-copy", originalRow: T, newRow: T) => void) & ((evt: "row-move", row: T, fromIndex: number, toIndex: number) => void) & ((evt: "row-selection-change", selectedKey: DataTableRowKey | null, selectedRow: T | null) => void) & ((evt: "view-detail", data: T) => void) & ((evt: "column-change", columns: TableColumn<T>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: T | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: T[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: T[]) => void) & ((evt: "edit-error", error: unknown) => void);
52
+ emit: ((evt: "cancel", rowData: T, rowIndex: number) => void) & ((evt: "save", rowData: T, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "pagination-change", page: number, pageSize: number) => void) & ((evt: "row-delete", deletedRow: T, index: number) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<T>[]) => void) & ((evt: "row-add", newRow: T) => void) & ((evt: "row-copy", originalRow: T, newRow: T) => void) & ((evt: "row-move", row: T, fromIndex: number, toIndex: number) => void) & ((evt: "row-selection-change", selectedKey: DataTableRowKey | null, selectedRow: T | null) => void) & ((evt: "view-detail", data: T) => void) & ((evt: "column-change", columns: TableColumn<T>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: T | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: T[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: T[]) => void) & ((evt: "edit-error", error: unknown) => void);
53
53
  }>) => vue.VNode & {
54
54
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
55
55
  };
@@ -219,9 +219,9 @@ interface TableManagerConfig {
219
219
  onEditError?: (error: unknown) => void;
220
220
  expandable: boolean;
221
221
  defaultExpandedKeys?: DataTableRowKey[];
222
- onLoadExpandData?: (row: DataRecord) => Promise<any[]> | any[];
222
+ onLoadExpandData?: ExpandConfig<DataRecord, unknown>['onLoadData'];
223
223
  onExpandError?: (error: unknown, row: DataRecord) => void;
224
- renderExpandContent?: unknown;
224
+ renderExpandContent?: ExpandConfig['renderContent'];
225
225
  rowExpandable?: (row: DataRecord) => boolean;
226
226
  enableSelection: boolean;
227
227
  defaultCheckedKeys?: DataTableRowKey[];
@@ -238,11 +238,13 @@ interface TableManagerConfig {
238
238
  /**
239
239
  * 表格管理器参数接口
240
240
  */
241
+ /** 状态管理器和 CRUD 桥接复用公开的事件载荷,业务泛型由组件出口负责。 */
242
+ type InternalTableEvent = { [K in keyof TableEmits]: [event: K, ...args: TableEmits[K]] }[keyof TableEmits];
241
243
  interface TableManagerParams {
242
244
  config: MaybeRefOrGetter<TableManagerConfig>;
243
245
  data: () => DataRecord[];
244
246
  rowKey: (row: DataRecord) => DataTableRowKey;
245
- emit: (...args: any[]) => unknown;
247
+ emit: (...event: InternalTableEvent) => unknown;
246
248
  /** 列配置(用于编辑校验) */
247
249
  columns?: () => TableColumn[];
248
250
  /** UI 壳提供加载内容,状态引擎保持可独立调用。 */
@@ -257,7 +259,7 @@ interface EventHandlers {
257
259
  onSave: (rowData: DataRecord, rowIndex: number, columnKey?: string, originalKey?: DataTableRowKey) => Promise<void>;
258
260
  onCancel: (rowData: DataRecord, rowIndex: number) => Promise<void>;
259
261
  onExpandChange: (keys: DataTableRowKey[], row?: DataRecord, expanded?: boolean) => void;
260
- onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections: Map<DataTableRowKey, DataTableRowKey[]>) => void;
262
+ onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]>) => void;
261
263
  onChildSelectionChange: (parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: DataRecord[]) => void;
262
264
  onRowChange: (data: DataRecord[]) => void;
263
265
  onRowSelectionChange: (selectedKey: DataTableRowKey | null, selectedRow: DataRecord | null) => void;
@@ -546,21 +548,21 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
546
548
  //#region src/components/C_Tree/index.vue.d.ts
547
549
  declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
548
550
  props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
549
- "onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
551
+ "onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
550
552
  "onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
551
553
  onAdd?: ((parentNode?: T | undefined) => any) | undefined;
552
- "onSearch-error"?: ((error: unknown) => any) | undefined;
554
+ onRefresh?: (() => any) | undefined;
553
555
  "onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
554
- "onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
555
- "onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
556
+ "onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
557
+ "onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
556
558
  "onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
557
559
  "onNode-action"?: ((action: string, node: T) => any) | undefined;
558
560
  "onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
559
- onRefresh?: (() => any) | undefined;
561
+ "onSearch-error"?: ((error: unknown) => any) | undefined;
560
562
  }> & (typeof globalThis extends {
561
563
  __VLS_PROPS_FALLBACK: infer P;
562
564
  } ? P : {});
563
- expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "checkedKeys" | "selectedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
565
+ expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
564
566
  expandedKeys: vue.Ref<TreeKey[]>;
565
567
  selectedKeys: vue.Ref<TreeKey[]>;
566
568
  checkedKeys: vue.Ref<TreeKey[]>;
@@ -571,7 +573,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
571
573
  }>) => void;
572
574
  attrs: any;
573
575
  slots: TreeSlots<T>;
574
- emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "search-error", error: unknown) => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "refresh") => void);
576
+ emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "search-error", error: unknown) => void);
575
577
  }>) => vue.VNode & {
576
578
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
577
579
  };
@@ -635,7 +637,7 @@ declare function useTreeOperations<T extends object = TreeNodeData>(props: TreeP
635
637
  handleDrop: (info: DropInfo<T>) => void;
636
638
  handleAdd: () => void;
637
639
  handleRefresh: () => void;
638
- expose: Omit<TreeExpose<T>, "expandedKeys" | "checkedKeys" | "selectedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
640
+ expose: Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
639
641
  expandedKeys: Ref<TreeKey[]>;
640
642
  selectedKeys: Ref<TreeKey[]>;
641
643
  checkedKeys: Ref<TreeKey[]>;
@@ -718,7 +720,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
718
720
  validateRowKeys?: boolean;
719
721
  edit?: boolean | EditMode | EditConfig<T> | undefined;
720
722
  actions?: SimpleTableActions<T> | undefined;
721
- expand?: boolean | ExpandConfig<T, unknown> | undefined;
723
+ expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
722
724
  selection?: boolean | SelectionConfig<T, unknown> | undefined;
723
725
  dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
724
726
  toolbar?: ToolbarConfig;
@@ -766,7 +768,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
766
768
  validateRowKeys?: boolean;
767
769
  edit?: boolean | EditMode | EditConfig<T> | undefined;
768
770
  actions?: SimpleTableActions<T> | undefined;
769
- expand?: boolean | ExpandConfig<T, unknown> | undefined;
771
+ expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
770
772
  selection?: boolean | SelectionConfig<T, unknown> | undefined;
771
773
  dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
772
774
  toolbar?: ToolbarConfig;
@@ -0,0 +1 @@
1
+ function e(e){let t=e.props?.path;return typeof t==`string`&&t?t:void 0}function t(t,n){return t.key??e(t)??n}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -0,0 +1 @@
1
+ function e(e){let t=e.props?.path;return typeof t==`string`&&t?t:void 0}function t(t,n){return t.key??e(t)??n}export{e as n,t};