@robot-admin/naive-ui-components 0.7.0 → 0.7.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 (52) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/C_Table.d.cts +2 -2
  3. package/dist/C_Table.d.ts +2 -2
  4. package/dist/C_Table.js.map +1 -1
  5. package/dist/C_Table2.js +1 -1
  6. package/dist/C_Table2.js.map +1 -1
  7. package/dist/constants.d.ts +4 -4
  8. package/dist/constants2.d.ts +5 -5
  9. package/dist/constants3.d.ts +5 -5
  10. package/dist/constants4.d.ts +4 -4
  11. package/dist/constants5.d.ts +2 -2
  12. package/dist/data.d.ts +2 -2
  13. package/dist/index.d.cts +2 -2
  14. package/dist/index.d.ts +2 -2
  15. package/dist/index.vue.d.ts +1 -1
  16. package/dist/index10.vue.d.ts +1 -1
  17. package/dist/index11.vue.d.ts +5 -5
  18. package/dist/index12.vue.d.ts +1 -1
  19. package/dist/index13.vue.d.ts +4 -4
  20. package/dist/index14.vue.d.ts +1 -1
  21. package/dist/index15.vue.d.ts +7 -7
  22. package/dist/index16.vue.d.ts +2 -2
  23. package/dist/index17.vue.d.ts +1 -1
  24. package/dist/index18.vue.d.ts +4 -4
  25. package/dist/index2.vue.d.ts +6 -6
  26. package/dist/index20.vue.d.ts +1 -1
  27. package/dist/index21.vue.d.ts +2 -2
  28. package/dist/index22.vue.d.ts +1 -1
  29. package/dist/index23.vue.d.ts +2 -2
  30. package/dist/index26.vue.d.ts +2 -2
  31. package/dist/index27.vue.d.ts +3 -3
  32. package/dist/index28.vue.d.ts +3 -3
  33. package/dist/index3.vue.d.ts +1 -1
  34. package/dist/index4.vue.d.ts +5 -5
  35. package/dist/index6.vue.d.ts +5 -5
  36. package/dist/index7.vue.d.ts +2 -2
  37. package/dist/index8.vue.d.ts +2 -2
  38. package/dist/index9.vue.d.ts +2 -2
  39. package/dist/useCalendarEvents.d.ts +1 -1
  40. package/dist/useCollapsePanel.d.ts +4 -4
  41. package/dist/useCropperCore.d.ts +7 -7
  42. package/dist/useDraggableLayout.d.ts +4 -4
  43. package/dist/useDynamicFormState.d.ts +6 -6
  44. package/dist/useEdgeInteraction.d.ts +1 -1
  45. package/dist/useModalEdit.d.ts +17 -2
  46. package/dist/useQRCode.d.ts +2 -2
  47. package/dist/useSearchState.d.ts +2 -2
  48. package/dist/useSignatureHistory.d.ts +1 -1
  49. package/dist/useSplitResize.d.ts +7 -7
  50. package/dist/useTreeOperations.d.ts +5 -5
  51. package/dist/useWorkflowValidation.d.ts +5 -5
  52. package/package.json +1 -1
@@ -74,13 +74,13 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
74
74
  }>, {
75
75
  max: number;
76
76
  size: number;
77
- direction: "ltr" | "rtl";
78
77
  overlap: number;
79
78
  shape: "circle" | "square";
80
79
  showStatus: boolean;
81
80
  showTooltip: boolean;
82
81
  clickable: boolean;
83
82
  overflowClickable: boolean;
83
+ direction: "ltr" | "rtl";
84
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
85
  declare const _default: typeof __VLS_export;
86
86
  //#endregion
@@ -20,14 +20,14 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
- label: string;
24
- showBorder: boolean;
25
- showLabel: boolean;
26
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
27
23
  width: number;
28
- fontSize: number;
29
24
  height: number;
25
+ label: string;
26
+ fontSize: number;
27
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
30
28
  background: string;
29
+ showBorder: boolean;
30
+ showLabel: boolean;
31
31
  showText: boolean;
32
32
  textPosition: "bottom" | "top";
33
33
  lineColor: string;
@@ -18,26 +18,26 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
18
18
  reset: () => void;
19
19
  show: () => void;
20
20
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
21
- change: (valid: boolean) => any;
22
- reset: () => any;
23
21
  success: (data: {
24
22
  token: string;
25
23
  timestamp: number;
26
24
  }) => any;
27
25
  fail: (error: string) => any;
26
+ change: (valid: boolean) => any;
27
+ reset: () => any;
28
28
  }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
29
- onChange?: ((valid: boolean) => any) | undefined;
30
- onReset?: (() => any) | undefined;
31
29
  onSuccess?: ((data: {
32
30
  token: string;
33
31
  timestamp: number;
34
32
  }) => any) | undefined;
35
33
  onFail?: ((error: string) => any) | undefined;
34
+ onChange?: ((valid: boolean) => any) | undefined;
35
+ onReset?: (() => any) | undefined;
36
36
  }>, {
37
- disabled: boolean;
38
37
  theme: "light" | "dark";
39
38
  triggerText: string;
40
39
  images: string[];
40
+ disabled: boolean;
41
41
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
42
42
  declare const _default: typeof __VLS_export;
43
43
  //#endregion
@@ -17,11 +17,11 @@ type __VLS_Props = {
17
17
  modelValue?: CascadeValue;
18
18
  };
19
19
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
20
- "update:modelValue": (value: CascadeValue) => any;
21
20
  change: (value: CascadeValue) => any;
21
+ "update:modelValue": (value: CascadeValue) => any;
22
22
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
24
23
  onChange?: ((value: CascadeValue) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
25
25
  }>, {
26
26
  placeholders: string[];
27
27
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -105,13 +105,13 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
105
105
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
106
  }>, {
107
107
  placeholder: string;
108
- title: string;
109
- messages: ChatMessage[];
110
108
  showContacts: boolean;
111
109
  showTimestamp: boolean;
112
110
  showSendBtn: boolean;
113
111
  loadingHistory: boolean;
112
+ title: string;
114
113
  contacts: ChatContact[];
114
+ messages: ChatMessage[];
115
115
  currentContactId: string;
116
116
  selfAvatar: string;
117
117
  selfName: string;
@@ -14,11 +14,11 @@ type __VLS_Slots = {} & {
14
14
  trigger?: (props: typeof __VLS_9) => any;
15
15
  };
16
16
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
17
- "update:modelValue": (value: string) => any;
18
17
  change: (value: string) => any;
18
+ "update:modelValue": (value: string) => any;
19
19
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
20
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
21
20
  onChange?: ((value: string) => any) | undefined;
21
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
22
22
  }>, {
23
23
  placeholder: string;
24
24
  showLetters: boolean;
@@ -66,9 +66,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
66
66
  }) => any) | undefined;
67
67
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
68
68
  }>, {
69
- events: CalendarEvent[];
70
69
  initialView: CalendarViewType;
71
70
  editable: boolean;
71
+ events: CalendarEvent[];
72
72
  showAddDialog: boolean;
73
73
  showEditDialog: boolean;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -71,14 +71,14 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
71
71
  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 };
72
72
  declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
73
73
  change: (activeKeys: string[]) => any;
74
- collapse: (key: string) => any;
75
- expand: (key: string) => any;
76
74
  "update:activeKeys": (keys: string[]) => any;
75
+ expand: (key: string) => any;
76
+ collapse: (key: string) => any;
77
77
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
78
78
  onChange?: ((activeKeys: string[]) => any) | undefined;
79
- onCollapse?: ((key: string) => any) | undefined;
80
- onExpand?: ((key: string) => any) | undefined;
81
79
  "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
80
+ onExpand?: ((key: string) => any) | undefined;
81
+ onCollapse?: ((key: string) => any) | undefined;
82
82
  }>, {
83
83
  bordered: boolean;
84
84
  activeKeys: string[];
@@ -51,22 +51,22 @@ interface ImageCropperEmits {
51
51
  //#endregion
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
- cancel: () => any;
55
- error: (error: Event) => any;
56
54
  ready: () => any;
57
- crop: (result: any) => any;
55
+ error: (error: Event) => any;
56
+ cancel: () => any;
58
57
  confirm: (result: any) => any;
58
+ crop: (result: any) => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
- onCancel?: (() => any) | undefined;
61
- onError?: ((error: Event) => any) | undefined;
62
60
  onReady?: (() => any) | undefined;
63
- onCrop?: ((result: any) => any) | undefined;
61
+ onError?: ((error: Event) => any) | undefined;
62
+ onCancel?: (() => any) | undefined;
64
63
  onConfirm?: ((result: any) => any) | undefined;
64
+ onCrop?: ((result: any) => any) | undefined;
65
65
  }>, {
66
66
  disabled: boolean;
67
- aspectRatio: number;
68
67
  height: string | number;
69
68
  showToolbar: boolean;
69
+ aspectRatio: number;
70
70
  showPreview: boolean;
71
71
  src: string;
72
72
  outputFormat: CropOutputFormat;
@@ -116,20 +116,20 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
116
116
  "onItem-remove"?: ((item: DraggableItem, index: number) => any) | undefined;
117
117
  "onList-change"?: ((list: DraggableItem[]) => any) | undefined;
118
118
  }>, {
119
- modelValue: DraggableItem[];
119
+ direction: "vertical" | "horizontal";
120
120
  sort: boolean;
121
121
  disabled: boolean;
122
+ modelValue: DraggableItem[];
123
+ delay: number;
122
124
  layout: LayoutMode;
123
- itemClass: string;
124
125
  group: string | GroupOptions;
125
126
  alignItems: AlignItems;
126
- direction: "vertical" | "horizontal";
127
127
  flexWrap: boolean;
128
128
  justifyContent: JustifyContent;
129
129
  animation: number;
130
130
  gap: string | number;
131
+ itemClass: string;
131
132
  emptyText: string;
132
- delay: number;
133
133
  handle: string;
134
134
  showHandle: boolean;
135
135
  ghostClass: string;
@@ -1294,6 +1294,7 @@ declare const useDynamicFormState: () => {
1294
1294
  readonly value?: any;
1295
1295
  readonly placeholder?: string | undefined;
1296
1296
  readonly rules?: readonly {
1297
+ readonly max?: number | undefined;
1297
1298
  readonly type?: RuleType | undefined;
1298
1299
  readonly required?: boolean | undefined;
1299
1300
  readonly options?: {
@@ -1351,10 +1352,10 @@ declare const useDynamicFormState: () => {
1351
1352
  readonly keys?: readonly string[] | undefined;
1352
1353
  readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
1353
1354
  } | undefined;
1354
- readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
1355
+ readonly trigger?: string | readonly string[] | undefined;
1355
1356
  readonly pattern?: (RegExp | string) | undefined;
1357
+ readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
1356
1358
  readonly min?: number | undefined;
1357
- readonly max?: number | undefined;
1358
1359
  readonly len?: number | undefined;
1359
1360
  readonly enum?: readonly (string | number | boolean | null | undefined)[] | undefined;
1360
1361
  readonly whitespace?: boolean | undefined;
@@ -1929,7 +1930,6 @@ declare const useDynamicFormState: () => {
1929
1930
  readonly transform?: ((value: Value) => Value) | undefined;
1930
1931
  readonly message?: string | ((a?: string) => string) | undefined;
1931
1932
  readonly key?: string | undefined;
1932
- readonly trigger?: string | readonly string[] | undefined;
1933
1933
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
1934
1934
  readonly level?: "warning" | "error" | undefined;
1935
1935
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
@@ -3571,6 +3571,7 @@ declare const useDynamicFormState: () => {
3571
3571
  readonly span?: number | undefined;
3572
3572
  } | undefined;
3573
3573
  readonly rules?: readonly {
3574
+ readonly max?: number | undefined;
3574
3575
  readonly type?: RuleType | undefined;
3575
3576
  readonly required?: boolean | undefined;
3576
3577
  readonly options?: {
@@ -3628,10 +3629,10 @@ declare const useDynamicFormState: () => {
3628
3629
  readonly keys?: readonly string[] | undefined;
3629
3630
  readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
3630
3631
  } | undefined;
3631
- readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
3632
+ readonly trigger?: string | readonly string[] | undefined;
3632
3633
  readonly pattern?: (RegExp | string) | undefined;
3634
+ readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
3633
3635
  readonly min?: number | undefined;
3634
- readonly max?: number | undefined;
3635
3636
  readonly len?: number | undefined;
3636
3637
  readonly enum?: readonly (string | number | boolean | null | undefined)[] | undefined;
3637
3638
  readonly whitespace?: boolean | undefined;
@@ -4206,7 +4207,6 @@ declare const useDynamicFormState: () => {
4206
4207
  readonly transform?: ((value: Value) => Value) | undefined;
4207
4208
  readonly message?: string | ((a?: string) => string) | undefined;
4208
4209
  readonly key?: string | undefined;
4209
- readonly trigger?: string | readonly string[] | undefined;
4210
4210
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
4211
4211
  readonly level?: "warning" | "error" | undefined;
4212
4212
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
@@ -259,10 +259,10 @@ declare const __VLS_export: vue.DefineComponent<Props, {
259
259
  onReady?: ((graph: any) => any) | undefined;
260
260
  "onData-change"?: ((data: DiagramData) => any) | undefined;
261
261
  }>, {
262
- readonly: boolean;
263
262
  theme: "light" | "dark";
264
263
  width: string | number;
265
264
  height: string | number;
265
+ readonly: boolean;
266
266
  showToolbar: boolean;
267
267
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
268
268
  declare const _default: typeof __VLS_export;
@@ -223,6 +223,7 @@ interface UseRowDragReturn {
223
223
  /** 是否正在拖拽 */
224
224
  isDragging: Ref<boolean>;
225
225
  }
226
+ /** 行拖拽排序组合式函数 */
226
227
  declare function useRowDrag<T extends DataRecord = DataRecord>(options: UseRowDragOptions<T>): UseRowDragReturn;
227
228
  //#endregion
228
229
  //#region src/components/C_Table/composables/useCrossPageSelection.d.ts
@@ -257,6 +258,7 @@ interface UseCrossPageSelectionReturn<T extends DataRecord = DataRecord> {
257
258
  /** 判断 key 是否选中 */
258
259
  isSelected: (key: DataTableRowKey$1) => boolean;
259
260
  }
261
+ /** 跨页多选组合式函数 */
260
262
  declare function useCrossPageSelection<T extends DataRecord = DataRecord>(options: UseCrossPageSelectionOptions<T>): UseCrossPageSelectionReturn<T>;
261
263
  //#endregion
262
264
  //#region src/components/C_Table/composables/useTableExport.d.ts
@@ -552,7 +554,7 @@ interface ColumnFormatter {
552
554
  /** 自定义格式化函数(优先级最高) */
553
555
  fn?: (value: unknown, row: DataRecord) => string;
554
556
  /** 覆盖全局格式配置 */
555
- config?: FormatterConfig[FormatterType];
557
+ config?: Record<string, unknown>;
556
558
  }
557
559
  interface TableGlobalConfig {
558
560
  /** 表格显示默认值 */
@@ -782,6 +784,19 @@ interface UseTableExpandReturn<T extends DataRecord = DataRecord, C = any> {
782
784
  handleSelectionChange: (keys: DataTableRowKey[]) => void;
783
785
  getTableColumns: (originalColumns: TableColumn<T>[]) => any[];
784
786
  }
787
+ /**
788
+ * 展平 TableColumn 联合类型以便直接访问 key/title/visible 等属性。
789
+ * 各 composable 共用此类型,避免重复定义。
790
+ */
791
+ type ColumnWithKey = TableColumn & {
792
+ key?: string;
793
+ title?: string;
794
+ visible?: boolean;
795
+ width?: number | string;
796
+ align?: string;
797
+ titleAlign?: string;
798
+ formatter?: ColumnFormatter;
799
+ };
785
800
  //#endregion
786
801
  //#region src/components/C_Table/index.vue.d.ts
787
802
  type __VLS_Props = {
@@ -1289,5 +1304,5 @@ declare function useModalEdit<T = Record<string, any>>(options: ModalEditOptions
1289
1304
  getEditingRowData: (rowKey: DataTableRowKey$1) => Record<string, any> | null;
1290
1305
  };
1291
1306
  //#endregion
1292
- export { PrintWatermarkOptions as $, BatchActionsConfig as A, ExportConfig as B, FormatterConfig as C, applyFormatter as D, TableGlobalConfig as E, TableConfig as F, useCrossPageSelection as G, CrossPageSelectionConfig as H, TreeConfig as I, UseRowDragReturn as J, RowDragConfig as K, VirtualScrollConfig as L, CrudBinding as M, ErrorConfig as N, mergeGlobalConfig as O, SummaryConfig as P, useDynamicRows as Q, createEditModeChecker as R, ColumnFormatter as S, TABLE_GLOBAL_CONFIG_KEY as T, UseCrossPageSelectionOptions as U, exportTableData as V, UseCrossPageSelectionReturn as W, DynamicRowsOptions as X, useRowDrag as Y, DynamicRowsReturn as Z, SimpleTableActions as _, useTableExpand as a, UseTableExpandOptions as b, useTableColumns as c, DataRecord as d, printPresets as et, EditMode as f, SelectOption as g, ParentChildLinkMode as h, useTableActions as i, ColumnDragConfig as j, useTableGlobalConfig as k, _default as l, PaginationConfig as m, useCellEdit as n, useTableManager as o, MaybeRefLike as p, UseRowDragOptions as q, usePagination as r, useRowEdit as s, useModalEdit as t, usePrintWatermark as tt, ChildSelectionState as u, TableColumn as v, FormatterType as w, UseTableExpandReturn as x, TableEmits as y, resolveConfig as z };
1307
+ export { useDynamicRows as $, useTableGlobalConfig as A, resolveConfig as B, ColumnFormatter as C, TableGlobalConfig as D, TABLE_GLOBAL_CONFIG_KEY as E, SummaryConfig as F, UseCrossPageSelectionReturn as G, exportTableData as H, TableConfig as I, UseRowDragOptions as J, useCrossPageSelection as K, TreeConfig as L, ColumnDragConfig as M, CrudBinding as N, applyFormatter as O, ErrorConfig as P, DynamicRowsReturn as Q, VirtualScrollConfig as R, UseTableExpandReturn as S, FormatterType as T, CrossPageSelectionConfig as U, ExportConfig as V, UseCrossPageSelectionOptions as W, useRowDrag as X, UseRowDragReturn as Y, DynamicRowsOptions as Z, SelectOption as _, useTableExpand as a, TableEmits as b, useTableColumns as c, ColumnWithKey as d, PrintWatermarkOptions as et, DataRecord as f, ParentChildLinkMode as g, PaginationConfig as h, useTableActions as i, BatchActionsConfig as j, mergeGlobalConfig as k, _default as l, MaybeRefLike as m, useCellEdit as n, usePrintWatermark as nt, useTableManager as o, EditMode as p, RowDragConfig as q, usePagination as r, useRowEdit as s, useModalEdit as t, printPresets as tt, ChildSelectionState as u, SimpleTableActions as v, FormatterConfig as w, UseTableExpandOptions as x, TableColumn as y, createEditModeChecker as z };
1293
1308
  //# sourceMappingURL=useModalEdit.d.ts.map
@@ -50,12 +50,12 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
50
50
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
51
51
  onError?: ((error: Error) => any) | undefined;
52
52
  }>, {
53
- mode: RenderMode;
54
53
  size: number;
54
+ mode: RenderMode;
55
55
  label: string;
56
56
  color: string;
57
- showBorder: boolean;
58
57
  margin: number;
58
+ showBorder: boolean;
59
59
  showLabel: boolean;
60
60
  bgColor: string;
61
61
  errorCorrectionLevel: ErrorCorrectionLevel;
@@ -55,12 +55,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
55
55
  cleanFn: () => void;
56
56
  changeFoldState: () => void;
57
57
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
58
- search: (params: SearchFormParams) => any;
59
58
  reset: () => any;
59
+ search: (params: SearchFormParams) => any;
60
60
  "change-params": (params: SearchFormParams) => any;
61
61
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
62
- onSearch?: ((params: SearchFormParams) => any) | undefined;
63
62
  onReset?: (() => any) | undefined;
63
+ onSearch?: ((params: SearchFormParams) => any) | undefined;
64
64
  "onChange-params"?: ((params: SearchFormParams) => any) | undefined;
65
65
  }>, {
66
66
  size: "small" | "medium" | "large";
@@ -108,9 +108,9 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
108
108
  onRedo?: (() => any) | undefined;
109
109
  }>, {
110
110
  disabled: boolean;
111
- readonly: boolean;
112
111
  width: number | string;
113
112
  height: number | string;
113
+ readonly: boolean;
114
114
  showToolbar: boolean;
115
115
  maxHistory: number;
116
116
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -66,25 +66,25 @@ type __VLS_Slots = {} & {
66
66
  second?: (props: typeof __VLS_13) => any;
67
67
  };
68
68
  declare const __VLS_base: vue.DefineComponent<Props, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
69
- resize: (firstSize: number, secondSize: number) => any;
70
- collapse: (target: CollapseTarget) => any;
71
69
  expand: (target: CollapseTarget) => any;
70
+ collapse: (target: CollapseTarget) => any;
71
+ resize: (firstSize: number, secondSize: number) => any;
72
72
  "drag-start": (size: number) => any;
73
73
  "drag-end": (size: number) => any;
74
74
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
75
- onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
76
- onCollapse?: ((target: CollapseTarget) => any) | undefined;
77
75
  onExpand?: ((target: CollapseTarget) => any) | undefined;
76
+ onCollapse?: ((target: CollapseTarget) => any) | undefined;
77
+ onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
78
78
  "onDrag-start"?: ((size: number) => any) | undefined;
79
79
  "onDrag-end"?: ((size: number) => any) | undefined;
80
80
  }>, {
81
+ direction: SplitDirection;
81
82
  disabled: boolean;
82
83
  step: number;
83
- direction: SplitDirection;
84
- defaultSize: number;
85
- minSize: number;
86
84
  maxSize: number;
87
85
  collapsible: boolean;
86
+ defaultSize: number;
87
+ minSize: number;
88
88
  showCollapseButton: boolean;
89
89
  gutterSize: number;
90
90
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -91,27 +91,27 @@ type __VLS_Slots = {} & {
91
91
  };
92
92
  declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
93
93
  add: (parentNode?: TreeNodeData | undefined) => any;
94
+ refresh: () => any;
94
95
  "node-select": (node: TreeNodeData | null, selectedKeys: (string | number)[]) => any;
95
96
  "node-action": (action: string, node: TreeNodeData) => any;
96
97
  "node-drop": (info: DropInfo) => any;
97
- refresh: () => any;
98
98
  }, string, vue.PublicProps, Readonly<TreeProps> & Readonly<{
99
99
  onAdd?: ((parentNode?: TreeNodeData | undefined) => any) | undefined;
100
+ onRefresh?: (() => any) | undefined;
100
101
  "onNode-select"?: ((node: TreeNodeData | null, selectedKeys: (string | number)[]) => any) | undefined;
101
102
  "onNode-action"?: ((action: string, node: TreeNodeData) => any) | undefined;
102
103
  "onNode-drop"?: ((info: DropInfo) => any) | undefined;
103
- onRefresh?: (() => any) | undefined;
104
104
  }>, {
105
105
  mode: TreeMode;
106
+ actions: ActionConfig[];
106
107
  showToolbar: boolean;
107
108
  labelField: string;
108
- keyField: string;
109
109
  childrenField: string;
110
- actions: ActionConfig[];
110
+ draggable: boolean;
111
+ keyField: string;
111
112
  searchPattern: string;
112
113
  searchable: boolean;
113
114
  searchPlaceholder: string;
114
- draggable: boolean;
115
115
  showLine: boolean;
116
116
  addable: boolean;
117
117
  addText: string;
@@ -237,22 +237,22 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
237
237
  conditionNodes: number;
238
238
  }>;
239
239
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
240
- "update:modelValue": (value: WorkflowData) => any;
241
240
  change: (value: WorkflowData) => any;
241
+ "update:modelValue": (value: WorkflowData) => any;
242
242
  "validate-error": (errors: ValidationError[]) => any;
243
- "node-click": (node: WorkflowNode) => any;
244
243
  save: (data: WorkflowData) => any;
244
+ "node-click": (node: WorkflowNode) => any;
245
245
  "edge-click": (edge: WorkflowEdge) => any;
246
246
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
247
- "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
248
247
  onChange?: ((value: WorkflowData) => any) | undefined;
248
+ "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
249
249
  "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
250
- "onNode-click"?: ((node: WorkflowNode) => any) | undefined;
251
250
  onSave?: ((data: WorkflowData) => any) | undefined;
251
+ "onNode-click"?: ((node: WorkflowNode) => any) | undefined;
252
252
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
253
253
  }>, {
254
- readonly: boolean;
255
254
  theme: "light" | "dark";
255
+ readonly: boolean;
256
256
  users: User[];
257
257
  roles: Role[];
258
258
  departments: Department[];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.7.0",
6
+ "version": "0.7.2",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "type": "module",
9
9
  "main": "dist/index.cjs",