@robot-admin/naive-ui-components 0.4.4 → 0.4.5

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 (75) hide show
  1. package/dist/{C_AntV-DGjscTWa.css.map → C_AntV-A3NXx_sF.css.map} +1 -1
  2. package/dist/C_AntV.js.map +1 -1
  3. package/dist/C_AntV2.js +1 -1
  4. package/dist/C_AntV2.js.map +1 -1
  5. package/dist/{C_FilePreview-B4XgTv-h.css.map → C_FilePreview-DHGlV4OR.css.map} +1 -1
  6. package/dist/C_FilePreview.js.map +1 -1
  7. package/dist/C_FilePreview2.js +1 -1
  8. package/dist/C_FilePreview2.js.map +1 -1
  9. package/dist/{C_Form-DLb9FtAb.css.map → C_Form-CKHvXL3O.css.map} +1 -1
  10. package/dist/C_Form.js.map +1 -1
  11. package/dist/C_Form2.js +1 -1
  12. package/dist/C_Form2.js.map +1 -1
  13. package/dist/{C_FormSearch-DlIEoh7X.css.map → C_FormSearch-DBNtnjaL.css.map} +1 -1
  14. package/dist/C_FormSearch.js.map +1 -1
  15. package/dist/C_FormSearch2.js +1 -1
  16. package/dist/C_FormSearch2.js.map +1 -1
  17. package/dist/C_FullCalendar-DLUdCtqf.css.map +1 -0
  18. package/dist/C_FullCalendar.js.map +1 -1
  19. package/dist/C_FullCalendar2.js +1 -1
  20. package/dist/C_FullCalendar2.js.map +1 -1
  21. package/dist/C_Guide.js.map +1 -1
  22. package/dist/C_Guide2.js.map +1 -1
  23. package/dist/C_Icon.js.map +1 -1
  24. package/dist/C_Icon2.js.map +1 -1
  25. package/dist/C_Language.js.map +1 -1
  26. package/dist/C_Language2.js.map +1 -1
  27. package/dist/{C_Markdown-C2uiBVSW.css.map → C_Markdown-BbTvdFCl.css.map} +1 -1
  28. package/dist/C_Markdown.js.map +1 -1
  29. package/dist/C_Markdown2.js +1 -1
  30. package/dist/C_Markdown2.js.map +1 -1
  31. package/dist/{C_Table-C55H4kPr.css.map → C_Table-tbUx-R4H.css.map} +1 -1
  32. package/dist/C_Table.js.map +1 -1
  33. package/dist/C_Table2.js +1 -1
  34. package/dist/C_Table2.js.map +1 -1
  35. package/dist/C_Theme.js.map +1 -1
  36. package/dist/C_Theme2.js.map +1 -1
  37. package/dist/{C_WorkFlow-CSO86Cuc.css.map → C_WorkFlow-7F6op6qN.css.map} +1 -1
  38. package/dist/C_WorkFlow.js.map +1 -1
  39. package/dist/C_WorkFlow2.js +1 -1
  40. package/dist/C_WorkFlow2.js.map +1 -1
  41. package/dist/constants.d.ts +2 -2
  42. package/dist/constants2.d.ts +2 -2
  43. package/dist/constants3.d.ts +3 -3
  44. package/dist/constants4.d.ts +4 -4
  45. package/dist/constants5.d.ts +4 -4
  46. package/dist/data.d.ts +3 -3
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.js.map +1 -1
  49. package/dist/index10.vue.d.ts +4 -4
  50. package/dist/index12.vue.d.ts +3 -3
  51. package/dist/index13.vue.d.ts +2 -2
  52. package/dist/index14.vue.d.ts +3 -3
  53. package/dist/index15.vue.d.ts +1 -1
  54. package/dist/index16.vue.d.ts +3 -3
  55. package/dist/index2.vue.d.ts +2 -2
  56. package/dist/index3.vue.d.ts +5 -5
  57. package/dist/index8.vue.d.ts +3 -3
  58. package/dist/index9.vue.d.ts +1 -1
  59. package/dist/style.css +447 -447
  60. package/dist/useCalendarEvents.d.ts +1 -1
  61. package/dist/useCropperCore.d.ts +8 -8
  62. package/dist/useDraggableLayout.d.ts +8 -8
  63. package/dist/useDynamicFormState.d.ts +6 -6
  64. package/dist/useEdgeInteraction.d.ts +4 -12
  65. package/dist/useFullscreen.d.ts +2 -2
  66. package/dist/useInfiniteScroll.d.ts +1 -1
  67. package/dist/useModalEdit.d.ts +44 -20
  68. package/dist/useQRCode.d.ts +1 -1
  69. package/dist/useSearchState.d.ts +4 -4
  70. package/dist/useSignatureHistory.d.ts +2 -2
  71. package/dist/useSplitResize.d.ts +1 -1
  72. package/dist/useTreeOperations.d.ts +2 -2
  73. package/dist/useWorkflowValidation.d.ts +3 -3
  74. package/package.json +1 -1
  75. package/dist/C_FullCalendar-BULCIlVK.css.map +0 -1
@@ -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
- initialView: CalendarViewType;
70
69
  editable: boolean;
71
70
  events: CalendarEvent[];
71
+ initialView: CalendarViewType;
72
72
  showAddDialog: boolean;
73
73
  showEditDialog: boolean;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -51,29 +51,29 @@ 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
+ ready: () => any;
54
55
  error: (error: Event) => any;
56
+ cancel: () => any;
55
57
  crop: (result: any) => any;
56
- ready: () => any;
57
58
  confirm: (result: any) => any;
58
- cancel: () => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
+ onReady?: (() => any) | undefined;
60
61
  onError?: ((error: Event) => any) | undefined;
62
+ onCancel?: (() => any) | undefined;
61
63
  onCrop?: ((result: any) => any) | undefined;
62
- onReady?: (() => any) | undefined;
63
64
  onConfirm?: ((result: any) => any) | undefined;
64
- onCancel?: (() => any) | undefined;
65
65
  }>, {
66
66
  height: string | number;
67
- src: string;
67
+ showToolbar: boolean;
68
+ disabled: boolean;
69
+ showPreview: boolean;
68
70
  aspectRatio: number;
71
+ src: string;
69
72
  outputFormat: CropOutputFormat;
70
73
  outputQuality: number;
71
74
  maxOutputWidth: number;
72
75
  maxOutputHeight: number;
73
- showPreview: boolean;
74
- showToolbar: boolean;
75
76
  circular: boolean;
76
- disabled: boolean;
77
77
  modal: boolean;
78
78
  modalTitle: string;
79
79
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -116,14 +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
- direction: "vertical" | "horizontal";
120
119
  sort: boolean;
121
- modelValue: DraggableItem[];
122
120
  disabled: boolean;
121
+ modelValue: DraggableItem[];
123
122
  delay: number;
124
123
  emptyText: string;
124
+ direction: "vertical" | "horizontal";
125
+ gap: string | number;
126
+ layout: LayoutMode;
125
127
  group: string | GroupOptions;
128
+ alignItems: AlignItems;
129
+ flexWrap: boolean;
130
+ justifyContent: JustifyContent;
126
131
  animation: number;
132
+ itemClass: string;
127
133
  handle: string;
128
134
  showHandle: boolean;
129
135
  ghostClass: string;
@@ -131,17 +137,11 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
131
137
  dragClass: string;
132
138
  wrapperClass: string;
133
139
  listClass: string;
134
- itemClass: string;
135
140
  showEmptyState: boolean;
136
141
  swapThreshold: number;
137
142
  invertSwap: boolean;
138
- layout: LayoutMode;
139
143
  gridColumns: number;
140
144
  gridRows: number;
141
- gap: string | number;
142
- flexWrap: boolean;
143
- justifyContent: JustifyContent;
144
- alignItems: AlignItems;
145
145
  customStyles: Record<string, string | number>;
146
146
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
147
147
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -429,14 +429,14 @@ declare const __VLS_base: vue.DefineComponent<CFormProps, {
429
429
  shouldShowDefaultActions: vue.ComputedRef<boolean>;
430
430
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
431
431
  "update:modelValue": (model: Record<string, any>) => any;
432
+ "validate-error": (errors: unknown) => any;
432
433
  submit: (payload: SubmitEventPayload) => any;
433
434
  "validate-success": (model: Record<string, any>) => any;
434
- "validate-error": (errors: unknown) => any;
435
435
  }, string, vue.PublicProps, Readonly<CFormProps> & Readonly<{
436
436
  "onUpdate:modelValue"?: ((model: Record<string, any>) => any) | undefined;
437
+ "onValidate-error"?: ((errors: unknown) => any) | undefined;
437
438
  onSubmit?: ((payload: SubmitEventPayload) => any) | undefined;
438
439
  "onValidate-success"?: ((model: Record<string, any>) => any) | undefined;
439
- "onValidate-error"?: ((errors: unknown) => any) | undefined;
440
440
  }>, {
441
441
  config: FormConfig;
442
442
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -1354,7 +1354,7 @@ declare const useDynamicFormState: () => {
1354
1354
  readonly trigger?: string | readonly string[] | undefined;
1355
1355
  readonly pattern?: (RegExp | string) | undefined;
1356
1356
  readonly key?: string | undefined;
1357
- readonly level?: "warning" | "error" | undefined;
1357
+ readonly message?: string | ((a?: string) => string) | undefined;
1358
1358
  readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
1359
1359
  readonly min?: number | undefined;
1360
1360
  readonly max?: number | undefined;
@@ -1930,8 +1930,8 @@ declare const useDynamicFormState: () => {
1930
1930
  readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
1931
1931
  }[] | undefined;
1932
1932
  readonly transform?: ((value: Value) => Value) | undefined;
1933
- readonly message?: string | ((a?: string) => string) | undefined;
1934
1933
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
1934
+ readonly level?: "warning" | "error" | undefined;
1935
1935
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
1936
1936
  }[] | undefined;
1937
1937
  readonly attrs?: {
@@ -3631,7 +3631,7 @@ declare const useDynamicFormState: () => {
3631
3631
  readonly trigger?: string | readonly string[] | undefined;
3632
3632
  readonly pattern?: (RegExp | string) | undefined;
3633
3633
  readonly key?: string | undefined;
3634
- readonly level?: "warning" | "error" | undefined;
3634
+ readonly message?: string | ((a?: string) => string) | undefined;
3635
3635
  readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
3636
3636
  readonly min?: number | undefined;
3637
3637
  readonly max?: number | undefined;
@@ -4207,8 +4207,8 @@ declare const useDynamicFormState: () => {
4207
4207
  readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
4208
4208
  }[] | undefined;
4209
4209
  readonly transform?: ((value: Value) => Value) | undefined;
4210
- readonly message?: string | ((a?: string) => string) | undefined;
4211
4210
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
4211
+ readonly level?: "warning" | "error" | undefined;
4212
4212
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
4213
4213
  }[] | undefined;
4214
4214
  }[];
@@ -1,6 +1,7 @@
1
1
  import * as vue from "vue";
2
2
  import { ComputedRef, Ref } from "vue";
3
3
  import { EventArgs as EventArgs$1 } from "@antv/x6-common/lib/event/types";
4
+ import { DropdownMixedOption } from "naive-ui/es/dropdown/src/interface";
4
5
 
5
6
  //#region node_modules/@antv/x6-common/lib/common/disposable.d.ts
6
7
  /**
@@ -7539,11 +7540,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
7539
7540
  onReady?: ((graph: any) => any) | undefined;
7540
7541
  "onData-change"?: ((data: DiagramData) => any) | undefined;
7541
7542
  }>, {
7542
- width: string | number;
7543
7543
  height: string | number;
7544
+ width: string | number;
7545
+ readonly: boolean;
7544
7546
  showToolbar: boolean;
7545
7547
  theme: "light" | "dark";
7546
- readonly: boolean;
7547
7548
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
7548
7549
  declare const _default: typeof __VLS_export;
7549
7550
  //#endregion
@@ -7570,16 +7571,7 @@ declare function useGraphBase(containerRef: Ref<HTMLElement | undefined>, isDark
7570
7571
  * @param filenamePrefix - 导出文件名前缀,默认 'diagram'
7571
7572
  */
7572
7573
  declare function useGraphExport(graph: Ref<Graph | null>, filenamePrefix?: string): {
7573
- exportOptions: readonly [{
7574
- readonly label: "导出PNG";
7575
- readonly key: "png";
7576
- }, {
7577
- readonly label: "导出SVG";
7578
- readonly key: "svg";
7579
- }, {
7580
- readonly label: "导出JSON";
7581
- readonly key: "json";
7582
- }];
7574
+ exportOptions: DropdownMixedOption[];
7583
7575
  handleExport: (key: string, getData?: () => any) => Promise<void>;
7584
7576
  };
7585
7577
  //#endregion
@@ -9,11 +9,11 @@ type __VLS_Props = {
9
9
  autoPreview?: boolean;
10
10
  };
11
11
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
12
- download: (file: string | File) => any;
13
12
  preview: (file: string | File) => any;
13
+ download: (file: string | File) => any;
14
14
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onDownload?: ((file: string | File) => any) | undefined;
16
15
  onPreview?: ((file: string | File) => any) | undefined;
16
+ onDownload?: ((file: string | File) => any) | undefined;
17
17
  }>, {
18
18
  fileName: string;
19
19
  autoPreview: boolean;
@@ -90,8 +90,8 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
90
90
  "onImage-error"?: ((item: WaterFallItem) => any) | undefined;
91
91
  }>, {
92
92
  loading: boolean;
93
- gap: number;
94
93
  columns: number;
94
+ gap: number;
95
95
  lazy: boolean;
96
96
  infinite: boolean;
97
97
  skeleton: boolean;
@@ -119,7 +119,10 @@ interface EditProps {
119
119
  * - BuiltInTableColumn:内置列(selection/expand),不需要 key/title
120
120
  * - TableColumn:以上二者联合
121
121
  */
122
- interface BaseTableColumn<T extends DataRecord = DataRecord> extends Omit<DataTableColumns<T>[number], 'key' | 'title' | 'render'> {
122
+ interface BaseTableColumn<T extends DataRecord = DataRecord> extends Omit<DataTableColumns<T>[number], 'key' | 'title' | 'render' | 'type'> {
123
+ key?: any;
124
+ title?: string;
125
+ visible?: boolean;
123
126
  editable?: boolean;
124
127
  required?: boolean;
125
128
  editType?: EditType;
@@ -215,22 +218,22 @@ interface WatermarkConfig {
215
218
  font?: string;
216
219
  opacity?: number;
217
220
  rotate?: number;
218
- position?: "center" | "repeat" | "corner" | "diagonal";
221
+ position?: 'center' | 'repeat' | 'corner' | 'diagonal';
219
222
  xGap?: number;
220
223
  yGap?: number;
221
224
  }
222
225
  interface CaptureConfig {
223
226
  scale?: number;
224
227
  quality?: number;
225
- format?: "png" | "jpeg" | "webp";
228
+ format?: 'png' | 'jpeg' | 'webp';
226
229
  backgroundColor?: string;
227
230
  logging?: boolean;
228
231
  allowTaint?: boolean;
229
232
  useCORS?: boolean;
230
233
  }
231
234
  interface PrintConfig {
232
- orientation?: "portrait" | "landscape";
233
- paperSize?: "A4" | "A3" | "Letter" | string;
235
+ orientation?: 'portrait' | 'landscape';
236
+ paperSize?: 'A4' | 'A3' | 'Letter' | string;
234
237
  margin?: string;
235
238
  style?: string;
236
239
  header?: string;
@@ -246,11 +249,29 @@ interface PrintWatermarkOptions {
246
249
  capture?: CaptureConfig;
247
250
  print?: PrintConfig;
248
251
  }
252
+ /**
253
+ *
254
+ */
249
255
  declare function drawWatermark(canvas: HTMLCanvasElement, config: WatermarkConfig): HTMLCanvasElement;
256
+ /**
257
+ *
258
+ */
250
259
  declare function captureElement(element: HTMLElement, config?: CaptureConfig): Promise<HTMLCanvasElement>;
251
- declare function canvasToDataURL(canvas: HTMLCanvasElement, format?: "png" | "jpeg" | "webp", quality?: number): string;
252
- declare function downloadCanvas(canvas: HTMLCanvasElement, filename?: string, format?: "png" | "jpeg" | "webp"): void;
260
+ /**
261
+ *
262
+ */
263
+ declare function canvasToDataURL(canvas: HTMLCanvasElement, format?: 'png' | 'jpeg' | 'webp', quality?: number): string;
264
+ /**
265
+ *
266
+ */
267
+ declare function downloadCanvas(canvas: HTMLCanvasElement, filename?: string, format?: 'png' | 'jpeg' | 'webp'): void;
268
+ /**
269
+ *
270
+ */
253
271
  declare function printImage(imageDataURL: string, config?: PrintConfig): Promise<void>;
272
+ /**
273
+ *
274
+ */
254
275
  declare function usePrintWatermark(): {
255
276
  loading: vue.Ref<boolean, boolean>;
256
277
  progress: vue.Ref<number, number>;
@@ -333,7 +354,7 @@ interface DynamicRowsOptions<T extends DataRecord = DataRecord> {
333
354
  enableMove?: boolean;
334
355
  enablePrint?: boolean;
335
356
  printOptions?: PrintWatermarkOptions;
336
- printPreset?: "table" | "form" | "report";
357
+ printPreset?: 'table' | 'form' | 'report';
337
358
  printWatermarkText?: string;
338
359
  printTargetSelector?: string;
339
360
  confirmDelete?: boolean;
@@ -413,7 +434,7 @@ interface TableConfig<T extends DataRecord = DataRecord> {
413
434
  }
414
435
  interface EditConfig {
415
436
  enabled?: boolean;
416
- mode?: "row" | "cell" | "modal" | "both" | "none";
437
+ mode?: 'row' | 'cell' | 'modal' | 'both' | 'none';
417
438
  showRowActions?: boolean;
418
439
  modalTitle?: string;
419
440
  modalWidth?: number;
@@ -449,7 +470,7 @@ interface DisplayConfig {
449
470
  striped?: boolean;
450
471
  bordered?: boolean;
451
472
  singleLine?: boolean;
452
- size?: "small" | "medium" | "large";
473
+ size?: 'small' | 'medium' | 'large';
453
474
  maxHeight?: number | string;
454
475
  scrollX?: number | string;
455
476
  columnWidth?: number;
@@ -478,7 +499,7 @@ interface ResolvedConfig {
478
499
  striped: boolean;
479
500
  bordered: boolean;
480
501
  singleLine: boolean;
481
- size: string;
502
+ size: 'small' | 'medium' | 'large';
482
503
  maxHeight: number | string | undefined;
483
504
  scrollX: number | string | undefined;
484
505
  columnWidth: number;
@@ -520,7 +541,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
520
541
  clearRowSelection: () => void;
521
542
  resetToFirstPage: () => void;
522
543
  getSelectedRows: () => DataRecord[];
523
- getEditingData: () => vue.Ref<Record<string, any>, Record<string, any>> | DataRecord | null;
544
+ getEditingData: () => DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
524
545
  isEditing: (rowKey: DataTableRowKey$1, columnKey?: string) => boolean;
525
546
  isExpanded: (rowKey: DataTableRowKey$1) => boolean;
526
547
  getManager: () => {
@@ -529,7 +550,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
529
550
  cancel(): void;
530
551
  save(): Promise<void>;
531
552
  isEditing(rowKey: DataTableRowKey$1, columnKey?: string): boolean;
532
- getEditingData(): vue.Ref<Record<string, any>, Record<string, any>> | DataRecord | null;
553
+ getEditingData(): DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
533
554
  };
534
555
  expand: {
535
556
  row(rowKey: DataTableRowKey$1): Promise<void>;
@@ -569,8 +590,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
569
590
  clearAllSelections(): void;
570
591
  };
571
592
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
572
- cancel: (rowData: DataRecord, rowIndex: number) => any;
573
- save: (rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any;
574
593
  "pagination-change": (...args: unknown[]) => any;
575
594
  "row-delete": (...args: unknown[]) => any;
576
595
  "expand-change": (expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any;
@@ -578,6 +597,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
578
597
  "child-selection-change": (parentKey: DataTableRowKey$1, childKeys: DataTableRowKey$1[], childRows: any[]) => any;
579
598
  "parent-child-link-change": (parentKey: DataTableRowKey$1, shouldSelect: boolean) => any;
580
599
  "update:data": (data: DataRecord[]) => any;
600
+ save: (rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any;
601
+ cancel: (rowData: DataRecord, rowIndex: number) => any;
581
602
  "row-add": (newRow: DataRecord) => any;
582
603
  "row-copy": (originalRow: DataRecord, newRow: DataRecord) => any;
583
604
  "row-move": (row: DataRecord, fromIndex: number, toIndex: number) => any;
@@ -585,8 +606,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
585
606
  "view-detail": (data: DataRecord) => any;
586
607
  "column-change": (columns: TableColumn[]) => any;
587
608
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
588
- onCancel?: ((rowData: DataRecord, rowIndex: number) => any) | undefined;
589
- onSave?: ((rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
590
609
  "onPagination-change"?: ((...args: unknown[]) => any) | undefined;
591
610
  "onRow-delete"?: ((...args: unknown[]) => any) | undefined;
592
611
  "onExpand-change"?: ((expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any) | undefined;
@@ -594,6 +613,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
594
613
  "onChild-selection-change"?: ((parentKey: DataTableRowKey$1, childKeys: DataTableRowKey$1[], childRows: any[]) => any) | undefined;
595
614
  "onParent-child-link-change"?: ((parentKey: DataTableRowKey$1, shouldSelect: boolean) => any) | undefined;
596
615
  "onUpdate:data"?: ((data: DataRecord[]) => any) | undefined;
616
+ onSave?: ((rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
617
+ onCancel?: ((rowData: DataRecord, rowIndex: number) => any) | undefined;
597
618
  "onRow-add"?: ((newRow: DataRecord) => any) | undefined;
598
619
  "onRow-copy"?: ((originalRow: DataRecord, newRow: DataRecord) => any) | undefined;
599
620
  "onRow-move"?: ((row: DataRecord, fromIndex: number, toIndex: number) => any) | undefined;
@@ -602,8 +623,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
602
623
  "onColumn-change"?: ((columns: TableColumn[]) => any) | undefined;
603
624
  }>, {
604
625
  loading: MaybeRefLike<boolean>;
605
- config: TableConfig;
606
626
  rowKey: (row: DataRecord) => DataTableRowKey$1;
627
+ config: TableConfig;
607
628
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
608
629
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
609
630
  declare const _default: typeof __VLS_export;
@@ -707,7 +728,7 @@ interface TableManagerParams {
707
728
  config: TableManagerConfig;
708
729
  data: () => DataRecord[];
709
730
  rowKey: (row: DataRecord) => DataTableRowKey$1;
710
- emit: (...args: unknown[]) => void;
731
+ emit: (...args: any[]) => void;
711
732
  }
712
733
  /**
713
734
  * 事件处理器接口
@@ -790,7 +811,7 @@ declare function useTableManager(params: TableManagerParams): {
790
811
  cancel(): void; /** 保存编辑 */
791
812
  save(): Promise<void>; /** 是否正在编辑 */
792
813
  isEditing(rowKey: DataTableRowKey$1, columnKey?: string): boolean; /** 获取当前编辑数据 */
793
- getEditingData(): vue.Ref<Record<string, any>, Record<string, any>> | DataRecord | null;
814
+ getEditingData(): DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
794
815
  };
795
816
  expand: {
796
817
  /** 展开行 */row(rowKey: DataTableRowKey$1): Promise<void>; /** 折叠行 */
@@ -835,6 +856,9 @@ declare function useTableManager(params: TableManagerParams): {
835
856
  };
836
857
  //#endregion
837
858
  //#region src/components/C_Table/composables/useTableExpand.d.ts
859
+ /**
860
+ *
861
+ */
838
862
  declare function useTableExpand<T extends DataRecord = Record<string, any>, C = any>(options: UseTableExpandOptions<T, C>): UseTableExpandReturn<T, C>;
839
863
  //#endregion
840
864
  //#region src/components/C_Table/composables/useTableActions.d.ts
@@ -55,10 +55,10 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
55
55
  label: string;
56
56
  showLabel: boolean;
57
57
  color: string;
58
+ mode: RenderMode;
58
59
  bgColor: string;
59
60
  errorCorrectionLevel: ErrorCorrectionLevel;
60
61
  margin: number;
61
- mode: RenderMode;
62
62
  logo: LogoOptions;
63
63
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
64
64
  declare const _default: typeof __VLS_export;
@@ -37,7 +37,7 @@ interface Props {
37
37
  formItemList: SearchFormItem[];
38
38
  formParams: SearchFormParams;
39
39
  formSearchInputHistoryString?: string;
40
- size?: "small" | "medium" | "large";
40
+ size?: 'small' | 'medium' | 'large';
41
41
  config?: SearchConfig;
42
42
  }
43
43
  declare const __VLS_export: vue.DefineComponent<Props, {
@@ -55,16 +55,16 @@ 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
- size: "small" | "medium" | "large";
67
66
  bordered: boolean;
67
+ size: "small" | "medium" | "large";
68
68
  formItemList: SearchFormItem[];
69
69
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
70
70
  declare const _default: typeof __VLS_export;
@@ -107,11 +107,11 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
107
107
  onUndo?: (() => any) | undefined;
108
108
  onRedo?: (() => any) | undefined;
109
109
  }>, {
110
- width: number | string;
111
110
  height: number | string;
111
+ width: number | string;
112
+ readonly: boolean;
112
113
  showToolbar: boolean;
113
114
  disabled: boolean;
114
- readonly: boolean;
115
115
  maxHistory: number;
116
116
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
117
117
  declare const _default: typeof __VLS_export;
@@ -78,9 +78,9 @@ declare const __VLS_base: vue.DefineComponent<Props, SplitPaneExpose, {}, {}, {}
78
78
  "onDrag-start"?: ((size: number) => any) | undefined;
79
79
  "onDrag-end"?: ((size: number) => any) | undefined;
80
80
  }>, {
81
- direction: SplitDirection;
82
81
  disabled: boolean;
83
82
  defaultSize: number;
83
+ direction: SplitDirection;
84
84
  minSize: number;
85
85
  maxSize: number;
86
86
  collapsible: boolean;
@@ -106,9 +106,8 @@ declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {},
106
106
  labelField: string;
107
107
  childrenField: string;
108
108
  mode: TreeMode;
109
- draggable: boolean;
110
109
  actions: ActionConfig[];
111
- defaultExpandedKeys: (string | number)[];
110
+ draggable: boolean;
112
111
  keyField: string;
113
112
  searchPattern: string;
114
113
  searchable: boolean;
@@ -121,6 +120,7 @@ declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {},
121
120
  iconConfig: IconConfig;
122
121
  statusConfigs: StatusConfig[];
123
122
  defaultExpandAll: boolean;
123
+ defaultExpandedKeys: (string | number)[];
124
124
  defaultSelectedKeys: (string | number)[];
125
125
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
126
126
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -240,19 +240,19 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
240
240
  change: (value: WorkflowData) => any;
241
241
  "update:modelValue": (value: WorkflowData) => any;
242
242
  save: (data: WorkflowData) => any;
243
- "validate-error": (errors: ValidationError[]) => any;
244
243
  "node-click": (node: WorkflowNode) => any;
245
244
  "edge-click": (edge: WorkflowEdge) => any;
245
+ "validate-error": (errors: ValidationError[]) => any;
246
246
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
247
247
  onChange?: ((value: WorkflowData) => any) | undefined;
248
248
  "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
249
249
  onSave?: ((data: WorkflowData) => any) | undefined;
250
- "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
251
250
  "onNode-click"?: ((node: WorkflowNode) => any) | undefined;
252
251
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
252
+ "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
253
253
  }>, {
254
- theme: "light" | "dark";
255
254
  readonly: boolean;
255
+ theme: "light" | "dark";
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.4.4",
6
+ "version": "0.4.5",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "type": "module",
9
9
  "main": "dist/index.cjs",
@@ -1 +0,0 @@
1
- {"version":3,"file":"C_FullCalendar-BULCIlVK.css","names":[],"sources":["../src/components/C_FullCalendar/index.vue?vue&type=style&index=0&scoped=f993af8f&lang.css"],"sourcesContent":["/* unplugin-vue-components disabled */\n.c-full-calendar[data-v-f993af8f] {\r\n width: 100%;\n}\r\n"],"mappings":"AAAA;AACA;AACA;AACA"}