@robot-admin/naive-ui-components 0.41.0 → 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 +15 -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 +5 -5
  165. package/dist/constants4.d.ts +5 -5
  166. package/dist/constants5.d.cts +2 -2
  167. package/dist/constants5.d.ts +2 -2
  168. package/dist/context.d.cts +1 -1
  169. package/dist/data2.d.cts +6 -6
  170. package/dist/data2.d.ts +6 -6
  171. package/dist/editors.d.cts +14 -12
  172. package/dist/editors.d.ts +14 -12
  173. package/dist/fieldNode.cjs +1 -0
  174. package/dist/fieldNode.js +1 -0
  175. package/dist/fieldRenderers.cjs +1 -1
  176. package/dist/fieldRenderers.js +1 -1
  177. package/dist/graphics.cjs +1 -1
  178. package/dist/graphics.js +1 -1
  179. package/dist/index.cjs +1 -1
  180. package/dist/index.d.cts +6 -6
  181. package/dist/index.d.ts +6 -6
  182. package/dist/index.js +1 -1
  183. package/dist/index11.vue.d.ts +1 -1
  184. package/dist/index12.vue.d.cts +1 -1
  185. package/dist/index13.vue.d.ts +3 -3
  186. package/dist/index14.vue.d.cts +3 -3
  187. package/dist/index14.vue.d.ts +1 -1
  188. package/dist/index15.vue.d.cts +1 -1
  189. package/dist/index17.vue.d.ts +18 -11
  190. package/dist/index18.vue.d.cts +18 -11
  191. package/dist/index19.vue.d.ts +1 -1
  192. package/dist/index20.vue.d.cts +1 -1
  193. package/dist/index20.vue.d.ts +3 -3
  194. package/dist/index21.vue.d.cts +3 -3
  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 +3 -3
  200. package/dist/index28.vue.d.cts +3 -3
  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 +14 -16
  204. package/dist/index3.vue.d.ts +14 -16
  205. package/dist/index33.vue.d.cts +2 -2
  206. package/dist/index33.vue.d.ts +2 -2
  207. package/dist/index34.vue.d.cts +2 -0
  208. package/dist/index34.vue.d.ts +2 -0
  209. package/dist/index35.vue.d.cts +4 -4
  210. package/dist/index35.vue.d.ts +4 -4
  211. package/dist/index36.vue.d.cts +20 -11
  212. package/dist/index36.vue.d.ts +20 -11
  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/index45.vue.d.cts +2 -2
  222. package/dist/index45.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 +2 -2
  234. package/dist/mapUtils.d.ts +2 -2
  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 +4 -16
  258. package/dist/useCalendarEvents.d.ts +4 -16
  259. package/dist/useCollapsePanel.d.cts +8 -7
  260. package/dist/useCollapsePanel.d.ts +8 -7
  261. package/dist/useCropperCore.d.cts +9 -20
  262. package/dist/useCropperCore.d.ts +9 -20
  263. package/dist/useDynamicFormState.d.cts +1 -1
  264. package/dist/useDynamicFormState.d.ts +1 -1
  265. package/dist/useEdgeInteraction.d.cts +2 -11
  266. package/dist/useEdgeInteraction.d.ts +2 -11
  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 +2 -2
  278. package/dist/useSignatureHistory.d.ts +2 -2
  279. package/dist/useSplitResize.d.cts +3 -3
  280. package/dist/useSplitResize.d.ts +3 -3
  281. package/dist/useTimeSelection.d.cts +4 -3
  282. package/dist/useTimeSelection.d.ts +4 -3
  283. package/dist/useWorkflowValidation.d.cts +113 -107
  284. package/dist/useWorkflowValidation.d.ts +113 -107
  285. package/dist/verification.d.cts +6 -6
  286. package/dist/verification.d.ts +6 -6
  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
package/dist/types.d.cts CHANGED
@@ -37,7 +37,7 @@ interface ActionItem {
37
37
  onClick?: () => unknown;
38
38
  /** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
39
39
  buttonProps?: Partial<ButtonProps>;
40
- directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
40
+ directives?: [directive: Directive, value?: unknown, argument?: string, modifiers?: Record<string, boolean>][];
41
41
  }
42
42
  interface ActionBarConfig {
43
43
  align?: ActionGroupAlign;
package/dist/types.d.ts CHANGED
@@ -37,7 +37,7 @@ interface ActionItem {
37
37
  onClick?: () => unknown;
38
38
  /** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
39
39
  buttonProps?: Partial<ButtonProps>;
40
- directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
40
+ directives?: [directive: Directive, value?: unknown, argument?: string, modifiers?: Record<string, boolean>][];
41
41
  }
42
42
  interface ActionBarConfig {
43
43
  align?: ActionGroupAlign;
@@ -205,6 +205,8 @@ interface NotificationCenterEmits {
205
205
  wsStatusChange: [status: WSConnectionStatus];
206
206
  /** 收到新消息 */
207
207
  newMessage: [message: NotificationMessage];
208
+ /** 已通过导航地址校验的消息链接,由宿主决定如何打开。 */
209
+ navigate: [url: string];
208
210
  }
209
211
  /** 组件 Expose */
210
212
  interface NotificationCenterExpose {
package/dist/types10.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as ComponentDensity } from "./density.js";
2
- import { ut as TableColumn } from "./component-config.js";
2
+ import { dt as TableColumn } from "./component-config.js";
3
3
  import { c as DataPickerProps, d as DataPickerSelectionContext, m as DataPickerValue, p as DataPickerSourceInput, r as DataPickerExpose } from "./types5.js";
4
4
  import { VNodeChild } from "vue";
5
5
  import { TreeInst, TreeOption, TreeProps } from "naive-ui";
@@ -1,5 +1,5 @@
1
1
  import { t as ComponentDensity } from "./density.cjs";
2
- import { ct as TableColumn } from "./context.cjs";
2
+ import { lt as TableColumn } from "./context.cjs";
3
3
  import { c as DataPickerProps, d as DataPickerSelectionContext, m as DataPickerValue, p as DataPickerSourceInput, r as DataPickerExpose } from "./types6.cjs";
4
4
  import { VNodeChild } from "vue";
5
5
  import { TreeInst, TreeOption, TreeProps } from "naive-ui";
package/dist/types3.d.cts CHANGED
@@ -1,7 +1,6 @@
1
+ import { StyleValue } from "vue";
2
+
1
3
  //#region src/components/C_FilePreview/types.d.ts
2
- /**
3
- * C_FilePreview 文件预览组件类型定义
4
- */
5
4
  /** 支持的文件类型 */
6
5
  type FilePreviewType = 'pdf' | 'word' | 'excel' | 'unknown';
7
6
  /** 文件类型配置 */
@@ -27,7 +26,7 @@ interface ExcelCell {
27
26
  colspan?: number;
28
27
  merged?: boolean;
29
28
  hidden?: boolean;
30
- style?: any;
29
+ style?: StyleValue;
31
30
  }
32
31
  /** Excel 行数据 */
33
32
  interface ExcelRow {
@@ -43,7 +42,17 @@ interface ExcelColumn {
43
42
  interface ExcelSheet {
44
43
  name: string;
45
44
  data: ExcelRow[];
46
- merges: any[];
45
+ /** 工作簿的零基合并范围,保留起止坐标供分页使用。 */
46
+ merges: Array<{
47
+ s: {
48
+ r: number;
49
+ c: number;
50
+ };
51
+ e: {
52
+ r: number;
53
+ c: number;
54
+ };
55
+ }>;
47
56
  columns: ExcelColumn[];
48
57
  /** 按需展开工作表,避免首次预览创建整个工作簿的单元格对象。 */
49
58
  load?: () => {
package/dist/types3.d.ts CHANGED
@@ -1,7 +1,6 @@
1
+ import { StyleValue } from "vue";
2
+
1
3
  //#region src/components/C_FilePreview/types.d.ts
2
- /**
3
- * C_FilePreview 文件预览组件类型定义
4
- */
5
4
  /** 支持的文件类型 */
6
5
  type FilePreviewType = 'pdf' | 'word' | 'excel' | 'unknown';
7
6
  /** 文件类型配置 */
@@ -27,7 +26,7 @@ interface ExcelCell {
27
26
  colspan?: number;
28
27
  merged?: boolean;
29
28
  hidden?: boolean;
30
- style?: any;
29
+ style?: StyleValue;
31
30
  }
32
31
  /** Excel 行数据 */
33
32
  interface ExcelRow {
@@ -43,7 +42,17 @@ interface ExcelColumn {
43
42
  interface ExcelSheet {
44
43
  name: string;
45
44
  data: ExcelRow[];
46
- merges: any[];
45
+ /** 工作簿的零基合并范围,保留起止坐标供分页使用。 */
46
+ merges: Array<{
47
+ s: {
48
+ r: number;
49
+ c: number;
50
+ };
51
+ e: {
52
+ r: number;
53
+ c: number;
54
+ };
55
+ }>;
47
56
  columns: ExcelColumn[];
48
57
  /** 按需展开工作表,避免首次预览创建整个工作簿的单元格对象。 */
49
58
  load?: () => {
package/dist/types5.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as ComponentLocale } from "./contracts.js";
2
2
  import { t as ComponentDensity } from "./density.js";
3
3
  import { n as OptionRequest, t as OptionPage } from "./optionSource.js";
4
- import { ht as TableRowKey, ut as TableColumn } from "./component-config.js";
4
+ import { dt as TableColumn, gt as TableRowKey } from "./component-config.js";
5
5
  import { VNodeChild } from "vue";
6
6
  import { PopoverProps } from "naive-ui";
7
7
 
@@ -11,13 +11,13 @@ type DataPickerRequest<TFilters extends object = Record<string, unknown>> = Opti
11
11
  scope?: string | number;
12
12
  };
13
13
  /** 接口、鉴权与实体映射只在应用中注册一次,组件不探测后端返回结构。 */
14
- interface DataPickerSourceInput<T extends object, TFilters extends object = Record<string, unknown>> {
14
+ interface DataPickerSourceInput<T extends object, TFilters extends object = Record<string, unknown>, V extends DataPickerValue = DataPickerValue> {
15
15
  rowKey: TableRowKey<T>;
16
16
  /** 提交值不同于行键时才需要指定。 */
17
- value?(row: T): DataPickerValue;
17
+ value?(row: T): V;
18
18
  label(row: T): string;
19
19
  request(query: DataPickerRequest<TFilters>): Promise<OptionPage<T>>;
20
- resolve?(values: readonly DataPickerValue[], signal: AbortSignal, context?: {
20
+ resolve?(values: readonly V[], signal: AbortSignal, context?: {
21
21
  scope?: string | number;
22
22
  }): Promise<readonly T[]>;
23
23
  /** Encoded text lookup when pasted codes differ from the submitted business values. */
@@ -82,11 +82,13 @@ interface DataPickerBatchPasteOptions {
82
82
  interface DataPickerSource<T extends object, TFilters extends object = Record<string, unknown>> extends DataPickerSourceInput<T, TFilters> {
83
83
  value: (row: T) => DataPickerValue;
84
84
  }
85
- interface DataPickerProps<T extends object, TFilters extends object = Record<string, unknown>> {
86
- source: DataPickerSourceInput<T, TFilters>;
85
+ interface DataPickerProps<T extends object, TFilters extends object = Record<string, unknown>, M extends boolean = boolean, V extends DataPickerValue = DataPickerValue> {
86
+ source: DataPickerSourceInput<T, TFilters, V>;
87
87
  columns: TableColumn<T>[];
88
- modelValue?: DataPickerValue | readonly DataPickerValue[] | null;
89
- multiple?: boolean;
88
+ /** 可以读取已有单值或数组,确认事件按 multiple 输出当前模式的形状。 */
89
+ modelValue?: NoInfer<V | readonly V[]> | null;
90
+ /** 保留 Boolean 运行时声明,Vue 会将模板中的裸属性转换为 true。 */
91
+ multiple?: M & boolean;
90
92
  disabled?: boolean;
91
93
  readonly?: boolean;
92
94
  clearable?: boolean;
@@ -129,8 +131,8 @@ interface DataPickerProps<T extends object, TFilters extends object = Record<str
129
131
  /** Requires source.resolve. Only values and labels are persisted. */
130
132
  history?: DataPickerHistoryOptions;
131
133
  }
132
- interface DataPickerEmits<T extends object> {
133
- 'update:modelValue': [value: DataPickerValue | DataPickerValue[] | null];
134
+ interface DataPickerEmits<T extends object, M extends boolean = boolean, V extends DataPickerValue = DataPickerValue> {
135
+ 'update:modelValue': [value: M extends true ? V[] : V | null];
134
136
  /** 仅包含确认时已解析的行,尚未解析的选中值仍保留在 modelValue。 */
135
137
  select: [rows: T[]];
136
138
  cancel: [];
package/dist/types6.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as ComponentLocale } from "./contracts.cjs";
2
2
  import { t as ComponentDensity } from "./density.cjs";
3
3
  import { n as OptionRequest, t as OptionPage } from "./optionSource.cjs";
4
- import { ct as TableColumn, pt as TableRowKey } from "./context.cjs";
4
+ import { lt as TableColumn, mt as TableRowKey } from "./context.cjs";
5
5
  import { VNodeChild } from "vue";
6
6
  import { PopoverProps } from "naive-ui";
7
7
 
@@ -11,13 +11,13 @@ type DataPickerRequest<TFilters extends object = Record<string, unknown>> = Opti
11
11
  scope?: string | number;
12
12
  };
13
13
  /** 接口、鉴权与实体映射只在应用中注册一次,组件不探测后端返回结构。 */
14
- interface DataPickerSourceInput<T extends object, TFilters extends object = Record<string, unknown>> {
14
+ interface DataPickerSourceInput<T extends object, TFilters extends object = Record<string, unknown>, V extends DataPickerValue = DataPickerValue> {
15
15
  rowKey: TableRowKey<T>;
16
16
  /** 提交值不同于行键时才需要指定。 */
17
- value?(row: T): DataPickerValue;
17
+ value?(row: T): V;
18
18
  label(row: T): string;
19
19
  request(query: DataPickerRequest<TFilters>): Promise<OptionPage<T>>;
20
- resolve?(values: readonly DataPickerValue[], signal: AbortSignal, context?: {
20
+ resolve?(values: readonly V[], signal: AbortSignal, context?: {
21
21
  scope?: string | number;
22
22
  }): Promise<readonly T[]>;
23
23
  /** Encoded text lookup when pasted codes differ from the submitted business values. */
@@ -82,11 +82,13 @@ interface DataPickerBatchPasteOptions {
82
82
  interface DataPickerSource<T extends object, TFilters extends object = Record<string, unknown>> extends DataPickerSourceInput<T, TFilters> {
83
83
  value: (row: T) => DataPickerValue;
84
84
  }
85
- interface DataPickerProps<T extends object, TFilters extends object = Record<string, unknown>> {
86
- source: DataPickerSourceInput<T, TFilters>;
85
+ interface DataPickerProps<T extends object, TFilters extends object = Record<string, unknown>, M extends boolean = boolean, V extends DataPickerValue = DataPickerValue> {
86
+ source: DataPickerSourceInput<T, TFilters, V>;
87
87
  columns: TableColumn<T>[];
88
- modelValue?: DataPickerValue | readonly DataPickerValue[] | null;
89
- multiple?: boolean;
88
+ /** 可以读取已有单值或数组,确认事件按 multiple 输出当前模式的形状。 */
89
+ modelValue?: NoInfer<V | readonly V[]> | null;
90
+ /** 保留 Boolean 运行时声明,Vue 会将模板中的裸属性转换为 true。 */
91
+ multiple?: M & boolean;
90
92
  disabled?: boolean;
91
93
  readonly?: boolean;
92
94
  clearable?: boolean;
@@ -129,8 +131,8 @@ interface DataPickerProps<T extends object, TFilters extends object = Record<str
129
131
  /** Requires source.resolve. Only values and labels are persisted. */
130
132
  history?: DataPickerHistoryOptions;
131
133
  }
132
- interface DataPickerEmits<T extends object> {
133
- 'update:modelValue': [value: DataPickerValue | DataPickerValue[] | null];
134
+ interface DataPickerEmits<T extends object, M extends boolean = boolean, V extends DataPickerValue = DataPickerValue> {
135
+ 'update:modelValue': [value: M extends true ? V[] : V | null];
134
136
  /** 仅包含确认时已解析的行,尚未解析的选中值仍保留在 modelValue。 */
135
137
  select: [rows: T[]];
136
138
  cancel: [];
package/dist/types6.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.js";
2
2
  import { t as ComponentDensity } from "./density.js";
3
3
  import { i as OptionValue, r as OptionSource } from "./optionSource.js";
4
- import { bn as OptionsState } from "./component-config.js";
4
+ import { xn as OptionsState } from "./component-config.js";
5
5
  import { VNodeChild } from "vue";
6
6
  import { FormInst, FormItemRule } from "naive-ui";
7
7
 
package/dist/types9.d.ts CHANGED
@@ -205,6 +205,8 @@ interface NotificationCenterEmits {
205
205
  wsStatusChange: [status: WSConnectionStatus];
206
206
  /** 收到新消息 */
207
207
  newMessage: [message: NotificationMessage];
208
+ /** 已通过导航地址校验的消息链接,由宿主决定如何打开。 */
209
+ navigate: [url: string];
208
210
  }
209
211
  /** 组件 Expose */
210
212
  interface NotificationCenterExpose {
@@ -1,4 +1,5 @@
1
1
  import * as vue from "vue";
2
+ import { EmitFn } from "vue";
2
3
  import { CalendarApi, CalendarOptions, EventApi } from "@fullcalendar/core";
3
4
 
4
5
  //#region src/components/C_FullCalendar/types.d.ts
@@ -79,9 +80,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
79
80
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
80
81
  "onEvent-resized"?: ((event: Partial<CalendarEvent>) => any) | undefined;
81
82
  }>, {
83
+ editable: boolean;
82
84
  events: CalendarEvent[];
83
85
  initialView: CalendarViewType;
84
- editable: boolean;
85
86
  showAddDialog: boolean;
86
87
  showEditDialog: boolean;
87
88
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -104,21 +105,8 @@ declare const BUTTON_TEXT: {
104
105
  };
105
106
  //#endregion
106
107
  //#region src/components/C_FullCalendar/composables/useCalendarEvents.d.ts
107
- type EmitFn$1 = {
108
- (event: 'update:events', events: CalendarEvent[]): void;
109
- (event: 'event-added', eventData: CalendarEvent): void;
110
- (event: 'event-updated', eventData: Partial<CalendarEvent>): void;
111
- (event: 'event-deleted', eventData: {
112
- id: string;
113
- title: string;
114
- }): void;
115
- (event: 'event-dropped', eventData: Partial<CalendarEvent>): void;
116
- (event: 'event-resized', eventData: Partial<CalendarEvent>): void;
117
- };
118
- /**
119
- *
120
- */
121
- declare function useCalendarEvents(props: CalendarProps, emit: EmitFn$1): {
108
+ /** 在组件与 FullCalendar 之间维护受控事件和编辑会话。 */
109
+ declare function useCalendarEvents(props: CalendarProps, emit: EmitFn<CalendarEmits>): {
122
110
  calendarRef: vue.Ref<{
123
111
  getApi: () => CalendarApi;
124
112
  } | null, {
@@ -1,4 +1,5 @@
1
1
  import * as vue from "vue";
2
+ import { EmitFn } from "vue";
2
3
  import { CalendarApi, CalendarOptions, EventApi } from "@fullcalendar/core";
3
4
 
4
5
  //#region src/components/C_FullCalendar/types.d.ts
@@ -79,9 +80,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
79
80
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
80
81
  "onEvent-resized"?: ((event: Partial<CalendarEvent>) => any) | undefined;
81
82
  }>, {
83
+ editable: boolean;
82
84
  events: CalendarEvent[];
83
85
  initialView: CalendarViewType;
84
- editable: boolean;
85
86
  showAddDialog: boolean;
86
87
  showEditDialog: boolean;
87
88
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -104,21 +105,8 @@ declare const BUTTON_TEXT: {
104
105
  };
105
106
  //#endregion
106
107
  //#region src/components/C_FullCalendar/composables/useCalendarEvents.d.ts
107
- type EmitFn$1 = {
108
- (event: 'update:events', events: CalendarEvent[]): void;
109
- (event: 'event-added', eventData: CalendarEvent): void;
110
- (event: 'event-updated', eventData: Partial<CalendarEvent>): void;
111
- (event: 'event-deleted', eventData: {
112
- id: string;
113
- title: string;
114
- }): void;
115
- (event: 'event-dropped', eventData: Partial<CalendarEvent>): void;
116
- (event: 'event-resized', eventData: Partial<CalendarEvent>): void;
117
- };
118
- /**
119
- *
120
- */
121
- declare function useCalendarEvents(props: CalendarProps, emit: EmitFn$1): {
108
+ /** 在组件与 FullCalendar 之间维护受控事件和编辑会话。 */
109
+ declare function useCalendarEvents(props: CalendarProps, emit: EmitFn<CalendarEmits>): {
122
110
  calendarRef: vue.Ref<{
123
111
  getApi: () => CalendarApi;
124
112
  } | null, {
@@ -23,6 +23,7 @@ interface CollapsePanelProps {
23
23
  variant?: CollapsePanelVariant;
24
24
  expandIconPosition?: ExpandIconPosition;
25
25
  bordered?: boolean;
26
+ /** 切换存储范围时重新初始化展开状态,受控的 activeKeys 始终优先。 */
26
27
  persistKey?: string;
27
28
  }
28
29
  interface CollapsePanelExpose {
@@ -72,23 +73,23 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
72
73
  };
73
74
  type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
74
75
  declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
75
- "update:activeKeys": (keys: string[]) => any;
76
+ change: (activeKeys: string[]) => any;
76
77
  expand: (key: string) => any;
77
78
  collapse: (key: string) => any;
78
- change: (activeKeys: string[]) => any;
79
+ "update:activeKeys": (keys: string[]) => any;
79
80
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
80
- "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
81
+ onChange?: ((activeKeys: string[]) => any) | undefined;
81
82
  onExpand?: ((key: string) => any) | undefined;
82
83
  onCollapse?: ((key: string) => any) | undefined;
83
- onChange?: ((activeKeys: string[]) => any) | undefined;
84
+ "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
84
85
  }>, {
86
+ bordered: boolean;
87
+ accordion: boolean;
88
+ persistKey: string;
85
89
  activeKeys: string[];
86
90
  defaultActiveKeys: string[];
87
- accordion: boolean;
88
91
  variant: CollapsePanelVariant;
89
92
  expandIconPosition: ExpandIconPosition;
90
- bordered: boolean;
91
- persistKey: string;
92
93
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
93
94
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
94
95
  declare const _default: typeof __VLS_export;
@@ -23,6 +23,7 @@ interface CollapsePanelProps {
23
23
  variant?: CollapsePanelVariant;
24
24
  expandIconPosition?: ExpandIconPosition;
25
25
  bordered?: boolean;
26
+ /** 切换存储范围时重新初始化展开状态,受控的 activeKeys 始终优先。 */
26
27
  persistKey?: string;
27
28
  }
28
29
  interface CollapsePanelExpose {
@@ -72,23 +73,23 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
72
73
  };
73
74
  type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
74
75
  declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
75
- "update:activeKeys": (keys: string[]) => any;
76
+ change: (activeKeys: string[]) => any;
76
77
  expand: (key: string) => any;
77
78
  collapse: (key: string) => any;
78
- change: (activeKeys: string[]) => any;
79
+ "update:activeKeys": (keys: string[]) => any;
79
80
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
80
- "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
81
+ onChange?: ((activeKeys: string[]) => any) | undefined;
81
82
  onExpand?: ((key: string) => any) | undefined;
82
83
  onCollapse?: ((key: string) => any) | undefined;
83
- onChange?: ((activeKeys: string[]) => any) | undefined;
84
+ "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
84
85
  }>, {
86
+ bordered: boolean;
87
+ accordion: boolean;
88
+ persistKey: string;
85
89
  activeKeys: string[];
86
90
  defaultActiveKeys: string[];
87
- accordion: boolean;
88
91
  variant: CollapsePanelVariant;
89
92
  expandIconPosition: ExpandIconPosition;
90
- bordered: boolean;
91
- persistKey: string;
92
93
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
93
94
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
94
95
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,5 @@
1
1
  import * as vue from "vue";
2
- import { Ref } from "vue";
2
+ import { CSSProperties, Ref } from "vue";
3
3
 
4
4
  //#region src/components/C_ImageCropper/types.d.ts
5
5
  type CropOutputFormat = 'png' | 'jpeg' | 'webp';
@@ -52,28 +52,28 @@ interface ImageCropperEmits {
52
52
  //#region src/components/C_ImageCropper/index.vue.d.ts
53
53
  declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
54
54
  error: (error: Error) => any;
55
- ready: () => any;
56
- confirm: (result: CropResult) => any;
57
55
  cancel: () => any;
56
+ confirm: (result: CropResult) => any;
57
+ ready: () => any;
58
58
  crop: (result: CropResult) => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
60
  onError?: ((error: Error) => any) | undefined;
61
- onReady?: (() => any) | undefined;
62
- onConfirm?: ((result: CropResult) => any) | undefined;
63
61
  onCancel?: (() => any) | undefined;
62
+ onConfirm?: ((result: CropResult) => any) | undefined;
63
+ onReady?: (() => any) | undefined;
64
64
  onCrop?: ((result: CropResult) => any) | undefined;
65
65
  }>, {
66
66
  disabled: boolean;
67
+ modal: boolean;
67
68
  height: string | number;
68
- showPreview: boolean;
69
69
  showToolbar: boolean;
70
- modal: boolean;
71
70
  src: string;
72
71
  aspectRatio: number;
73
72
  outputFormat: CropOutputFormat;
74
73
  outputQuality: number;
75
74
  maxOutputWidth: number;
76
75
  maxOutputHeight: number;
76
+ showPreview: boolean;
77
77
  circular: boolean;
78
78
  modalTitle: string;
79
79
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -95,25 +95,14 @@ interface UseCropperCoreOptions {
95
95
  }
96
96
  /** Manage the vue-cropper instance and serialize a single crop snapshot. */
97
97
  declare function useCropperCore(options?: UseCropperCoreOptions): {
98
- cropperRef: Ref<{
99
- rotateLeft: () => void;
100
- rotateRight: () => void;
101
- changeScale: (step: number) => void;
102
- refresh: () => void;
103
- getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
104
- } | null, CropperInstance | {
105
- rotateLeft: () => void;
106
- rotateRight: () => void;
107
- changeScale: (step: number) => void;
108
- refresh: () => void;
109
- getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
110
- } | null>;
98
+ cropperRef: vue.ShallowRef<CropperInstance | null, CropperInstance | null>;
111
99
  rotate: (angle: number) => void;
112
100
  rotateLeft: () => void;
113
101
  rotateRight: () => void;
114
102
  zoom: (scale: number) => void;
115
103
  reset: () => void;
116
104
  getCropResult: () => Promise<CropResult>;
105
+ cancelExports: (reason?: string) => void;
117
106
  };
118
107
  //#endregion
119
108
  export { CropResult as a, ImageCropperProps as c, CropOutputFormat as i, _default as n, ImageCropperEmits as o, AspectRatioPreset as r, ImageCropperExpose as s, useCropperCore as t };
@@ -1,5 +1,5 @@
1
1
  import * as vue from "vue";
2
- import { Ref } from "vue";
2
+ import { CSSProperties, Ref } from "vue";
3
3
 
4
4
  //#region src/components/C_ImageCropper/types.d.ts
5
5
  type CropOutputFormat = 'png' | 'jpeg' | 'webp';
@@ -52,28 +52,28 @@ interface ImageCropperEmits {
52
52
  //#region src/components/C_ImageCropper/index.vue.d.ts
53
53
  declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
54
54
  error: (error: Error) => any;
55
- ready: () => any;
56
- confirm: (result: CropResult) => any;
57
55
  cancel: () => any;
56
+ confirm: (result: CropResult) => any;
57
+ ready: () => any;
58
58
  crop: (result: CropResult) => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
60
  onError?: ((error: Error) => any) | undefined;
61
- onReady?: (() => any) | undefined;
62
- onConfirm?: ((result: CropResult) => any) | undefined;
63
61
  onCancel?: (() => any) | undefined;
62
+ onConfirm?: ((result: CropResult) => any) | undefined;
63
+ onReady?: (() => any) | undefined;
64
64
  onCrop?: ((result: CropResult) => any) | undefined;
65
65
  }>, {
66
66
  disabled: boolean;
67
+ modal: boolean;
67
68
  height: string | number;
68
- showPreview: boolean;
69
69
  showToolbar: boolean;
70
- modal: boolean;
71
70
  src: string;
72
71
  aspectRatio: number;
73
72
  outputFormat: CropOutputFormat;
74
73
  outputQuality: number;
75
74
  maxOutputWidth: number;
76
75
  maxOutputHeight: number;
76
+ showPreview: boolean;
77
77
  circular: boolean;
78
78
  modalTitle: string;
79
79
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -95,25 +95,14 @@ interface UseCropperCoreOptions {
95
95
  }
96
96
  /** Manage the vue-cropper instance and serialize a single crop snapshot. */
97
97
  declare function useCropperCore(options?: UseCropperCoreOptions): {
98
- cropperRef: Ref<{
99
- rotateLeft: () => void;
100
- rotateRight: () => void;
101
- changeScale: (step: number) => void;
102
- refresh: () => void;
103
- getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
104
- } | null, CropperInstance | {
105
- rotateLeft: () => void;
106
- rotateRight: () => void;
107
- changeScale: (step: number) => void;
108
- refresh: () => void;
109
- getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
110
- } | null>;
98
+ cropperRef: vue.ShallowRef<CropperInstance | null, CropperInstance | null>;
111
99
  rotate: (angle: number) => void;
112
100
  rotateLeft: () => void;
113
101
  rotateRight: () => void;
114
102
  zoom: (scale: number) => void;
115
103
  reset: () => void;
116
104
  getCropResult: () => Promise<CropResult>;
105
+ cancelExports: (reason?: string) => void;
117
106
  };
118
107
  //#endregion
119
108
  export { CropResult as a, ImageCropperProps as c, CropOutputFormat as i, _default as n, ImageCropperEmits as o, AspectRatioPreset as r, ImageCropperExpose as s, useCropperCore as t };
@@ -1,5 +1,5 @@
1
1
  import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types4.cjs";
2
- import { $t as FormSlots, Ht as DynamicFormController, Jt as FormInstance, Ot as FormConfig, Qt as FormRecord, Rt as ComponentType, Xt as FormModel, Zt as FormOption, dn as SubmitEventPayload, jt as ResolvedFormConfig, ln as OptionItem, sn as LayoutType } from "./context.cjs";
2
+ import { $t as FormRecord, Mt as ResolvedFormConfig, Qt as FormOption, Ut as DynamicFormController, Yt as FormInstance, Zt as FormModel, cn as LayoutType, en as FormSlots, fn as SubmitEventPayload, kt as FormConfig, un as OptionItem, zt as ComponentType } from "./context.cjs";
3
3
  import { r as FormRenderer } from "./useFormRenderer.cjs";
4
4
  import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types9.cjs";
5
5
  import * as vue from "vue";
@@ -1,5 +1,5 @@
1
1
  import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types4.js";
2
- import { $t as FormOption, At as FormConfig, Bt as ComponentType, Nt as ResolvedFormConfig, Qt as FormModel, Wt as DynamicFormController, Xt as FormInstance, dn as OptionItem, en as FormRecord, ln as LayoutType, pn as SubmitEventPayload, tn as FormSlots } from "./component-config.js";
2
+ import { $t as FormModel, Gt as DynamicFormController, Pt as ResolvedFormConfig, Vt as ComponentType, Zt as FormInstance, en as FormOption, fn as OptionItem, jt as FormConfig, mn as SubmitEventPayload, nn as FormSlots, tn as FormRecord, un as LayoutType } from "./component-config.js";
3
3
  import { r as FormRenderer } from "./useFormRenderer.js";
4
4
  import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types8.js";
5
5
  import * as vue from "vue";
@@ -245,22 +245,13 @@ interface DiagramExpose {
245
245
  }
246
246
  //#endregion
247
247
  //#region src/components/C_AntV/index.vue.d.ts
248
- interface Props extends DiagramConfig {
249
- type: 'er' | 'bpmn' | 'uml';
250
- data?: DiagramData;
251
- width?: string | number;
252
- height?: string | number;
253
- readonly?: boolean;
254
- showToolbar?: boolean;
255
- theme?: 'light' | 'dark';
256
- }
257
- declare const __VLS_export: vue.DefineComponent<Props, {
248
+ declare const __VLS_export: vue.DefineComponent<DiagramConfig, {
258
249
  getGraph: () => Graph | undefined;
259
250
  getData: () => DiagramData | undefined;
260
251
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
261
252
  ready: (graph: Graph) => any;
262
253
  "data-change": (data: DiagramData) => any;
263
- }, string, vue.PublicProps, Readonly<Props> & Readonly<{
254
+ }, string, vue.PublicProps, Readonly<DiagramConfig> & Readonly<{
264
255
  onReady?: ((graph: Graph) => any) | undefined;
265
256
  "onData-change"?: ((data: DiagramData) => any) | undefined;
266
257
  }>, {
@@ -245,22 +245,13 @@ interface DiagramExpose {
245
245
  }
246
246
  //#endregion
247
247
  //#region src/components/C_AntV/index.vue.d.ts
248
- interface Props extends DiagramConfig {
249
- type: 'er' | 'bpmn' | 'uml';
250
- data?: DiagramData;
251
- width?: string | number;
252
- height?: string | number;
253
- readonly?: boolean;
254
- showToolbar?: boolean;
255
- theme?: 'light' | 'dark';
256
- }
257
- declare const __VLS_export: vue.DefineComponent<Props, {
248
+ declare const __VLS_export: vue.DefineComponent<DiagramConfig, {
258
249
  getGraph: () => Graph | undefined;
259
250
  getData: () => DiagramData | undefined;
260
251
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
261
252
  ready: (graph: Graph) => any;
262
253
  "data-change": (data: DiagramData) => any;
263
- }, string, vue.PublicProps, Readonly<Props> & Readonly<{
254
+ }, string, vue.PublicProps, Readonly<DiagramConfig> & Readonly<{
264
255
  onReady?: ((graph: Graph) => any) | undefined;
265
256
  "onData-change"?: ((data: DiagramData) => any) | undefined;
266
257
  }>, {
@@ -1,4 +1,4 @@
1
- import { Xt as FormModel, Zt as FormOption, jt as ResolvedFormConfig } from "./context.cjs";
1
+ import { Mt as ResolvedFormConfig, Qt as FormOption, Zt as FormModel } from "./context.cjs";
2
2
  import * as vue from "vue";
3
3
  import { Component, ComputedRef, InjectionKey, Ref, Slots, VNode } from "vue";
4
4
  import { FormItemInst } from "naive-ui";
@@ -1,4 +1,4 @@
1
- import { $t as FormOption, Nt as ResolvedFormConfig, Qt as FormModel } from "./component-config.js";
1
+ import { $t as FormModel, Pt as ResolvedFormConfig, en as FormOption } from "./component-config.js";
2
2
  import * as vue from "vue";
3
3
  import { Component, ComputedRef, InjectionKey, Ref, Slots, VNode } from "vue";
4
4
  import { FormItemInst } from "naive-ui";