@robot-admin/naive-ui-components 0.10.1 → 0.10.3

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 (56) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +7 -3
  3. package/dist/C_Breadcrumb.d.cts +2 -1
  4. package/dist/C_Breadcrumb.d.ts +3 -2
  5. package/dist/C_Menu.cjs +1 -1
  6. package/dist/C_Menu.d.cts +2 -1
  7. package/dist/C_Menu.d.ts +3 -2
  8. package/dist/C_Menu.js +1 -1
  9. package/dist/C_TagsView.d.cts +2 -1
  10. package/dist/C_TagsView.d.ts +3 -2
  11. package/dist/constants2.d.ts +2 -2
  12. package/dist/constants3.d.ts +3 -3
  13. package/dist/constants4.d.ts +8 -8
  14. package/dist/constants5.d.ts +2 -2
  15. package/dist/data.d.ts +2 -2
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.ts +0 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.vue.d.ts +1 -1
  20. package/dist/index10.vue.d.ts +1 -1
  21. package/dist/index11.vue.d.ts +4 -4
  22. package/dist/index12.vue.d.ts +4 -4
  23. package/dist/index13.vue.d.ts +3 -3
  24. package/dist/index14.vue.d.ts +3 -3
  25. package/dist/index15.vue.d.ts +6 -6
  26. package/dist/index17.vue.d.ts +1 -1
  27. package/dist/index18.vue.d.ts +2 -2
  28. package/dist/index2.vue.d.ts +6 -6
  29. package/dist/index20.vue.d.ts +1 -1
  30. package/dist/index21.vue.d.ts +1 -1
  31. package/dist/index22.vue.d.ts +3 -3
  32. package/dist/index23.vue.d.ts +2 -2
  33. package/dist/index24.vue.d.ts +1 -1
  34. package/dist/index26.vue.d.ts +4 -4
  35. package/dist/index27.vue.d.ts +1 -1
  36. package/dist/index28.vue.d.ts +3 -3
  37. package/dist/index3.vue.d.ts +3 -3
  38. package/dist/index4.vue.d.ts +1 -1
  39. package/dist/index6.vue.d.ts +3 -3
  40. package/dist/index8.vue.d.ts +3 -3
  41. package/dist/useCalendarEvents.d.ts +1 -1
  42. package/dist/useCollapsePanel.d.ts +8 -8
  43. package/dist/useCropperCore.d.ts +6 -6
  44. package/dist/useDraggableLayout.d.ts +6 -6
  45. package/dist/useDynamicFormState.d.ts +2 -2
  46. package/dist/useEdgeInteraction.d.ts +1 -1
  47. package/dist/useGlobalSearch.d.ts +1 -1
  48. package/dist/useInfiniteScroll.d.ts +2 -2
  49. package/dist/useModalEdit.d.ts +2 -2
  50. package/dist/useQRCode.d.ts +2 -2
  51. package/dist/useSignatureHistory.d.ts +3 -3
  52. package/dist/useSplitResize.d.ts +6 -6
  53. package/dist/useTimeSelection.d.ts +2 -2
  54. package/dist/useTreeOperations.d.ts +4 -4
  55. package/dist/useWorkflowValidation.d.ts +3 -3
  56. package/package.json +3 -2
@@ -59,11 +59,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
59
59
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
60
60
  }>, {
61
61
  height: string | number;
62
+ mode: "edit" | "editable" | "preview";
63
+ placeholder: string;
62
64
  disabled: boolean;
63
65
  modelValue: string;
64
66
  isDark: boolean;
65
- placeholder: string;
66
- mode: "edit" | "editable" | "preview";
67
67
  tocNavPosition: "left" | "right";
68
68
  defaultFullscreen: boolean;
69
69
  autofocus: boolean;
@@ -60,22 +60,22 @@ type __VLS_Props = {
60
60
  theme?: AudioPlayerProps['theme'];
61
61
  };
62
62
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
63
- ended: (index: number) => any;
64
- pause: () => any;
65
63
  play: (index: number) => any;
64
+ pause: () => any;
65
+ ended: (index: number) => any;
66
66
  modeChange: (mode: string) => any;
67
67
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
68
- onEnded?: ((index: number) => any) | undefined;
69
- onPause?: (() => any) | undefined;
70
68
  onPlay?: ((index: number) => any) | undefined;
69
+ onPause?: (() => any) | undefined;
70
+ onEnded?: ((index: number) => any) | undefined;
71
71
  onModeChange?: ((mode: string) => any) | undefined;
72
72
  }>, {
73
- theme: "default" | "minimal";
74
- mode: "list" | "single" | "loop" | "shuffle";
73
+ mode: "list" | "loop" | "single" | "shuffle";
75
74
  initialIndex: number;
76
75
  showPlaylist: boolean;
77
76
  showCover: boolean;
78
77
  autoplay: boolean;
78
+ theme: "default" | "minimal";
79
79
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
80
80
  declare const _default: typeof __VLS_export;
81
81
  //#endregion
@@ -79,6 +79,7 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
79
79
  }>, {
80
80
  lineColor: string;
81
81
  direction: OrgChartDirection;
82
+ collapsible: boolean;
82
83
  lineStyle: OrgChartLineStyle;
83
84
  lineWidth: number;
84
85
  nodeSpacing: number;
@@ -88,7 +89,6 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
88
89
  initialZoom: number;
89
90
  minZoom: number;
90
91
  maxZoom: number;
91
- collapsible: boolean;
92
92
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
93
93
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
94
94
  declare const _default: typeof __VLS_export;
@@ -36,9 +36,9 @@ type __VLS_Slots = {} & {
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
37
  status: "default" | "success" | "error" | "warning" | "info";
38
38
  strokeWidth: number;
39
- time: number;
40
39
  percentage: number | number[];
41
40
  isAnimation: boolean;
41
+ time: number;
42
42
  indicatorPlacement: "inside" | "outside";
43
43
  showIndicator: boolean;
44
44
  unit: string;
@@ -86,11 +86,11 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- repeat: number;
90
- animation: SkeletonAnimation;
89
+ preset: SkeletonPreset;
91
90
  loading: boolean;
91
+ repeat: number;
92
92
  borderRadius: string;
93
- preset: SkeletonPreset;
93
+ animation: SkeletonAnimation;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
96
96
  declare const _default: typeof __VLS_export;
@@ -35,10 +35,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
35
35
  onChange?: ((args_0: number) => any) | undefined;
36
36
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
37
37
  }>, {
38
- direction: "horizontal" | "vertical";
38
+ connected: boolean;
39
39
  clickable: boolean;
40
+ direction: "horizontal" | "vertical";
40
41
  current: number;
41
- connected: boolean;
42
42
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  //#endregion
@@ -85,10 +85,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
85
85
  onClose?: ((fallbackPath: string) => any) | undefined;
86
86
  onCloseAll?: (() => any) | undefined;
87
87
  }>, {
88
- persistKey: string;
89
88
  homePath: string;
90
89
  homeTitle: string;
91
90
  homeIcon: string;
91
+ persistKey: string;
92
92
  contextMenuLabels: LegacyContextMenuLabels;
93
93
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
94
94
  declare const _default: typeof __VLS_export;
@@ -84,17 +84,17 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
84
  /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
85
  collapseAll: () => void;
86
86
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
- expand: (item: TimelineItem, expanded: boolean) => any;
88
87
  "item-click": (item: TimelineItem, index: number) => any;
88
+ expand: (item: TimelineItem, expanded: boolean) => any;
89
89
  }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
- onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
90
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
+ onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
92
92
  }>, {
93
93
  reverse: boolean;
94
- size: "small" | "medium" | "large";
95
- items: TimelineItem[];
96
94
  mode: "vertical" | "horizontal";
95
+ size: "small" | "medium" | "large";
97
96
  pending: boolean;
97
+ items: TimelineItem[];
98
98
  labelPlacement: "left" | "right" | "alternate";
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
@@ -67,7 +67,7 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
67
67
  onChange?: ((targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any) | undefined;
68
68
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
69
69
  }>, {
70
- size: "small" | "medium" | "large";
70
+ size: "medium" | "small" | "large";
71
71
  filterable: boolean;
72
72
  titles: [string, string];
73
73
  filterPlaceholder: string;
@@ -647,11 +647,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
647
647
  onTaskClick?: ((task: GanttTask, event: Event) => any) | undefined;
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
- title: string;
651
- data: GanttTask[];
652
650
  height: string | number;
653
- showToolbar: boolean;
654
651
  theme: "light" | "dark";
652
+ data: GanttTask[];
653
+ title: string;
654
+ showToolbar: boolean;
655
655
  options: GanttOptions;
656
656
  preset: GanttPreset;
657
657
  showFullscreenButton: boolean;
@@ -73,14 +73,14 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
75
  size: number;
76
- direction: "ltr" | "rtl";
77
- overlap: number;
78
- clickable: boolean;
79
76
  max: number;
77
+ overlap: number;
80
78
  shape: "circle" | "square";
81
79
  showStatus: boolean;
82
80
  showTooltip: boolean;
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,9 +20,9 @@ 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
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
23
24
  width: number;
24
25
  height: number;
25
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
26
26
  showText: boolean;
27
27
  fontSize: number;
28
28
  textPosition: "bottom" | "top";
@@ -19,23 +19,23 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
19
19
  show: () => void;
20
20
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
21
21
  change: (valid: boolean) => any;
22
+ reset: () => any;
22
23
  success: (data: {
23
24
  token: string;
24
25
  timestamp: number;
25
26
  }) => any;
26
- reset: () => any;
27
27
  fail: (error: string) => any;
28
28
  }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
29
29
  onChange?: ((valid: boolean) => any) | undefined;
30
+ onReset?: (() => any) | undefined;
30
31
  onSuccess?: ((data: {
31
32
  token: string;
32
33
  timestamp: number;
33
34
  }) => any) | undefined;
34
- onReset?: (() => any) | undefined;
35
35
  onFail?: ((error: string) => any) | undefined;
36
36
  }>, {
37
- theme: "light" | "dark";
38
37
  disabled: boolean;
38
+ theme: "light" | "dark";
39
39
  triggerText: string;
40
40
  images: string[];
41
41
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -86,26 +86,26 @@ type __VLS_Slots = {} & {
86
86
  declare const __VLS_base: vue.DefineComponent<ChatProps, {
87
87
  scrollToBottom: () => void;
88
88
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
89
- "load-more": () => any;
90
89
  send: (content: string) => any;
91
90
  "select-contact": (id: string) => any;
91
+ "load-more": () => any;
92
92
  "image-preview": (url: string) => any;
93
93
  "file-click": (msg: ChatMessage) => any;
94
94
  "file-upload": () => any;
95
95
  "emoji-click": () => any;
96
96
  resend: (msg: ChatMessage) => any;
97
97
  }, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
98
- "onLoad-more"?: (() => any) | undefined;
99
98
  onSend?: ((content: string) => any) | undefined;
100
99
  "onSelect-contact"?: ((id: string) => any) | undefined;
100
+ "onLoad-more"?: (() => any) | undefined;
101
101
  "onImage-preview"?: ((url: string) => any) | undefined;
102
102
  "onFile-click"?: ((msg: ChatMessage) => any) | undefined;
103
103
  "onFile-upload"?: (() => any) | undefined;
104
104
  "onEmoji-click"?: (() => any) | undefined;
105
105
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
106
  }>, {
107
- title: string;
108
107
  placeholder: string;
108
+ title: string;
109
109
  showContacts: boolean;
110
110
  showTimestamp: boolean;
111
111
  showSendBtn: boolean;
@@ -67,8 +67,8 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
67
67
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
68
68
  }>, {
69
69
  editable: boolean;
70
- events: CalendarEvent[];
71
70
  initialView: CalendarViewType;
71
+ events: CalendarEvent[];
72
72
  showAddDialog: boolean;
73
73
  showEditDialog: boolean;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -70,23 +70,23 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
70
70
  };
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
- "update:activeKeys": (keys: string[]) => any;
74
- expand: (key: string) => any;
75
- collapse: (key: string) => any;
76
73
  change: (activeKeys: string[]) => any;
74
+ collapse: (key: string) => any;
75
+ expand: (key: string) => any;
76
+ "update:activeKeys": (keys: string[]) => any;
77
77
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
78
- "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
79
- onExpand?: ((key: string) => any) | undefined;
80
- onCollapse?: ((key: string) => any) | undefined;
81
78
  onChange?: ((activeKeys: string[]) => any) | undefined;
79
+ onCollapse?: ((key: string) => any) | undefined;
80
+ onExpand?: ((key: string) => any) | undefined;
81
+ "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
82
82
  }>, {
83
+ bordered: boolean;
84
+ persistKey: string;
83
85
  activeKeys: string[];
84
86
  defaultActiveKeys: string[];
85
87
  accordion: boolean;
86
88
  variant: CollapsePanelVariant;
87
89
  expandIconPosition: ExpandIconPosition;
88
- bordered: boolean;
89
- persistKey: string;
90
90
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
91
91
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
92
92
  declare const _default: typeof __VLS_export;
@@ -51,28 +51,28 @@ 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;
55
54
  error: (error: Event) => any;
56
- cancel: () => any;
55
+ ready: () => any;
57
56
  crop: (result: any) => any;
58
57
  confirm: (result: any) => any;
58
+ cancel: () => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
- onReady?: (() => any) | undefined;
61
60
  onError?: ((error: Event) => any) | undefined;
62
- onCancel?: (() => any) | undefined;
61
+ onReady?: (() => any) | undefined;
63
62
  onCrop?: ((result: any) => any) | undefined;
64
63
  onConfirm?: ((result: any) => any) | undefined;
64
+ onCancel?: (() => any) | undefined;
65
65
  }>, {
66
66
  height: string | number;
67
- showToolbar: boolean;
68
67
  disabled: boolean;
69
68
  src: string;
70
- showPreview: boolean;
71
69
  aspectRatio: number;
72
70
  outputFormat: CropOutputFormat;
73
71
  outputQuality: number;
74
72
  maxOutputWidth: number;
75
73
  maxOutputHeight: number;
74
+ showPreview: boolean;
75
+ showToolbar: boolean;
76
76
  circular: boolean;
77
77
  modal: boolean;
78
78
  modalTitle: string;
@@ -119,9 +119,14 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
119
119
  sort: boolean;
120
120
  disabled: boolean;
121
121
  modelValue: DraggableItem[];
122
+ gap: string | number;
123
+ delay: number;
124
+ emptyText: string;
125
+ direction: "vertical" | "horizontal";
126
+ layout: LayoutMode;
127
+ itemClass: string;
122
128
  group: string | GroupOptions;
123
129
  animation: number;
124
- delay: number;
125
130
  handle: string;
126
131
  showHandle: boolean;
127
132
  ghostClass: string;
@@ -129,16 +134,11 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
129
134
  dragClass: string;
130
135
  wrapperClass: string;
131
136
  listClass: string;
132
- itemClass: string;
133
137
  showEmptyState: boolean;
134
- emptyText: string;
135
138
  swapThreshold: number;
136
139
  invertSwap: boolean;
137
- direction: "vertical" | "horizontal";
138
- layout: LayoutMode;
139
140
  gridColumns: number;
140
141
  gridRows: number;
141
- gap: string | number;
142
142
  flexWrap: boolean;
143
143
  justifyContent: JustifyContent;
144
144
  alignItems: AlignItems;
@@ -490,13 +490,13 @@ declare const __VLS_base: vue.DefineComponent<CFormProps, {
490
490
  asyncLoadingMap: vue.Ref<Record<string, boolean>, Record<string, boolean>>;
491
491
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
492
492
  "update:modelValue": (model: Record<string, any>) => any;
493
- submit: (payload: SubmitEventPayload) => any;
494
493
  "validate-error": (errors: unknown) => any;
494
+ submit: (payload: SubmitEventPayload) => any;
495
495
  "validate-success": (model: Record<string, any>) => any;
496
496
  }, string, vue.PublicProps, Readonly<CFormProps> & Readonly<{
497
497
  "onUpdate:modelValue"?: ((model: Record<string, any>) => any) | undefined;
498
- onSubmit?: ((payload: SubmitEventPayload) => any) | undefined;
499
498
  "onValidate-error"?: ((errors: unknown) => any) | undefined;
499
+ onSubmit?: ((payload: SubmitEventPayload) => any) | undefined;
500
500
  "onValidate-success"?: ((model: Record<string, any>) => any) | undefined;
501
501
  }>, {
502
502
  config: FormConfig;
@@ -261,9 +261,9 @@ declare const __VLS_export: vue.DefineComponent<Props, {
261
261
  }>, {
262
262
  width: string | number;
263
263
  height: string | number;
264
+ theme: "light" | "dark";
264
265
  readonly: boolean;
265
266
  showToolbar: boolean;
266
- theme: "light" | "dark";
267
267
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
268
268
  declare const _default: typeof __VLS_export;
269
269
  //#endregion
@@ -50,8 +50,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
50
50
  openDialog: () => Promise<void>;
51
51
  closeDialog: () => void;
52
52
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
53
- emptyText: string;
54
53
  placeholder: string;
54
+ emptyText: string;
55
55
  resultGroupTitle: string;
56
56
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
57
57
  declare const _default: typeof __VLS_export;
@@ -89,15 +89,15 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
89
89
  "onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
90
90
  "onImage-error"?: ((item: WaterFallItem) => any) | undefined;
91
91
  }>, {
92
- gap: number;
93
- loading: boolean;
94
92
  columns: number;
93
+ gap: number;
95
94
  lazy: boolean;
96
95
  infinite: boolean;
97
96
  skeleton: boolean;
98
97
  skeletonCount: number;
99
98
  animationDuration: number;
100
99
  breakpoints: WaterFallBreakpoint[];
100
+ loading: boolean;
101
101
  noMore: boolean;
102
102
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
103
103
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -884,8 +884,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
884
884
  getSelectedRows: () => DataRecord[];
885
885
  } | undefined;
886
886
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
887
- cancel: (rowData: DataRecord, rowIndex: number) => any;
888
887
  save: (rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any;
888
+ cancel: (rowData: DataRecord, rowIndex: number) => any;
889
889
  "pagination-change": (...args: unknown[]) => any;
890
890
  "row-delete": (...args: unknown[]) => any;
891
891
  "expand-change": (expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any;
@@ -900,8 +900,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
900
900
  "view-detail": (data: DataRecord) => any;
901
901
  "column-change": (columns: TableColumn[]) => any;
902
902
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
903
- onCancel?: ((rowData: DataRecord, rowIndex: number) => any) | undefined;
904
903
  onSave?: ((rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
904
+ onCancel?: ((rowData: DataRecord, rowIndex: number) => any) | undefined;
905
905
  "onPagination-change"?: ((...args: unknown[]) => any) | undefined;
906
906
  "onRow-delete"?: ((...args: unknown[]) => any) | undefined;
907
907
  "onExpand-change"?: ((expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any) | undefined;
@@ -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
- size: number;
54
53
  showBorder: boolean;
55
54
  label: string;
56
55
  showLabel: boolean;
57
- color: string;
58
56
  mode: RenderMode;
57
+ size: number;
58
+ color: string;
59
59
  margin: number;
60
60
  bgColor: string;
61
61
  errorCorrectionLevel: ErrorCorrectionLevel;
@@ -91,16 +91,16 @@ interface SignatureEmits {
91
91
  //#endregion
92
92
  //#region src/components/C_Signature/index.vue.d.ts
93
93
  declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
94
- clear: () => any;
95
94
  change: (data: SignatureStroke[]) => any;
95
+ clear: () => any;
96
96
  "start-draw": () => any;
97
97
  drawing: (point: SignaturePoint) => any;
98
98
  "end-draw": (stroke: SignatureStroke) => any;
99
99
  undo: () => any;
100
100
  redo: () => any;
101
101
  }, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
102
- onClear?: (() => any) | undefined;
103
102
  onChange?: ((data: SignatureStroke[]) => any) | undefined;
103
+ onClear?: (() => any) | undefined;
104
104
  "onStart-draw"?: (() => any) | undefined;
105
105
  onDrawing?: ((point: SignaturePoint) => any) | undefined;
106
106
  "onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
@@ -109,9 +109,9 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
109
109
  }>, {
110
110
  width: number | string;
111
111
  height: number | string;
112
+ disabled: boolean;
112
113
  readonly: boolean;
113
114
  showToolbar: boolean;
114
- disabled: boolean;
115
115
  maxHistory: number;
116
116
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
117
117
  declare const _default: typeof __VLS_export;
@@ -66,24 +66,24 @@ 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
- expand: (target: CollapseTarget) => any;
69
+ resize: (firstSize: number, secondSize: number) => any;
70
70
  collapse: (target: CollapseTarget) => any;
71
+ expand: (target: CollapseTarget) => any;
71
72
  "drag-start": (size: number) => any;
72
73
  "drag-end": (size: number) => any;
73
- resize: (firstSize: number, secondSize: number) => any;
74
74
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
75
- onExpand?: ((target: CollapseTarget) => any) | undefined;
75
+ onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
76
76
  onCollapse?: ((target: CollapseTarget) => any) | undefined;
77
+ onExpand?: ((target: CollapseTarget) => any) | undefined;
77
78
  "onDrag-start"?: ((size: number) => any) | undefined;
78
79
  "onDrag-end"?: ((size: number) => any) | undefined;
79
- onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
80
80
  }>, {
81
81
  disabled: boolean;
82
82
  direction: SplitDirection;
83
- collapsible: boolean;
84
- maxSize: number;
85
83
  defaultSize: number;
86
84
  minSize: number;
85
+ maxSize: number;
86
+ collapsible: boolean;
87
87
  showCollapseButton: boolean;
88
88
  gutterSize: number;
89
89
  step: number;
@@ -49,11 +49,11 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
49
49
  "onChange-end"?: ((time: number | null) => any) | undefined;
50
50
  }>, {
51
51
  format: string;
52
- placeholder: string;
53
- attrs: Record<string, any>;
54
52
  mode: TimeMode;
53
+ placeholder: string;
55
54
  startPlaceholder: string;
56
55
  endPlaceholder: string;
56
+ attrs: Record<string, any>;
57
57
  useHours: boolean;
58
58
  useMinutes: boolean;
59
59
  useSeconds: boolean;
@@ -91,22 +91,23 @@ 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
+ mode: TreeMode;
105
106
  showToolbar: boolean;
107
+ actions: ActionConfig[];
106
108
  draggable: boolean;
107
109
  labelField: string;
108
110
  childrenField: string;
109
- mode: TreeMode;
110
111
  keyField: string;
111
112
  searchPattern: string;
112
113
  searchable: boolean;
@@ -118,7 +119,6 @@ declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {},
118
119
  iconField: string;
119
120
  iconConfig: IconConfig;
120
121
  statusConfigs: StatusConfig[];
121
- actions: ActionConfig[];
122
122
  defaultExpandAll: boolean;
123
123
  defaultExpandedKeys: (string | number)[];
124
124
  defaultSelectedKeys: (string | number)[];
@@ -240,22 +240,22 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
240
240
  change: (value: WorkflowData) => any;
241
241
  "update:modelValue": (value: WorkflowData) => any;
242
242
  "node-click": (node: WorkflowNode) => any;
243
- save: (data: WorkflowData) => any;
244
243
  "edge-click": (edge: WorkflowEdge) => any;
244
+ save: (data: WorkflowData) => any;
245
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
  "onNode-click"?: ((node: WorkflowNode) => any) | undefined;
250
- onSave?: ((data: WorkflowData) => any) | undefined;
251
250
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
251
+ onSave?: ((data: WorkflowData) => any) | undefined;
252
252
  "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
253
253
  }>, {
254
- readonly: boolean;
255
254
  theme: "light" | "dark";
256
255
  users: User[];
257
256
  roles: Role[];
258
257
  departments: Department[];
258
+ readonly: boolean;
259
259
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
260
260
  declare const _default: typeof __VLS_export;
261
261
  //#endregion
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.10.1",
6
+ "version": "0.10.3",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "type": "module",
9
9
  "main": "dist/index.cjs",
@@ -60,10 +60,11 @@
60
60
  "build:scss": "node scripts/gen-global-scss.js && sass src/styles/global.scss dist/global-scss.css --style=compressed --no-source-map --load-path=src --silence-deprecation=legacy-js-api",
61
61
  "build:css": "node scripts/merge-css.js",
62
62
  "build:exports": "node scripts/gen-exports.js",
63
- "build": "tsdown && bun run build:scss && bun run build:css && bun run build:exports",
63
+ "build": "tsdown && bun run build:scss && bun run build:css && bun run build:exports && bun run check:dist",
64
64
  "type-check": "tsc --noEmit",
65
65
  "test": "bun test",
66
66
  "check:exports": "node scripts/check-export-conflicts.js",
67
+ "check:dist": "node scripts/check-dist-entries.js",
67
68
  "verify": "bun run type-check && bun run test && bun run check:exports && bun run build",
68
69
  "prepublishOnly": "bun run build",
69
70
  "release": "changeset publish",