@robot-admin/naive-ui-components 0.6.30 → 0.6.31

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.
@@ -150,8 +150,8 @@ interface NotificationCenterExpose {
150
150
  //#endregion
151
151
  //#region src/components/C_NotificationCenter/index.vue.d.ts
152
152
  declare const __VLS_export: vue.DefineComponent<NotificationCenterProps, NotificationCenterExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
153
- delete: (ids: string[]) => any;
154
153
  itemClick: (message: NotificationMessage) => any;
154
+ delete: (ids: string[]) => any;
155
155
  read: (ids: string[]) => any;
156
156
  allRead: (category?: NotificationCategory | undefined) => any;
157
157
  unreadChange: (count: number) => any;
@@ -159,8 +159,8 @@ declare const __VLS_export: vue.DefineComponent<NotificationCenterProps, Notific
159
159
  newMessage: (message: NotificationMessage) => any;
160
160
  navigate: (url: string) => any;
161
161
  }, string, vue.PublicProps, Readonly<NotificationCenterProps> & Readonly<{
162
- onDelete?: ((ids: string[]) => any) | undefined;
163
162
  onItemClick?: ((message: NotificationMessage) => any) | undefined;
163
+ onDelete?: ((ids: string[]) => any) | undefined;
164
164
  onRead?: ((ids: string[]) => any) | undefined;
165
165
  onAllRead?: ((category?: NotificationCategory | undefined) => any) | undefined;
166
166
  onUnreadChange?: ((count: number) => any) | undefined;
@@ -196,16 +196,16 @@ type __VLS_Slots = {} & {
196
196
  area?: (props: typeof __VLS_11) => any;
197
197
  };
198
198
  declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
199
- change: (fileList: UploadFileItem[]) => any;
200
199
  success: (file: UploadFileItem, response: any) => any;
200
+ change: (fileList: UploadFileItem[]) => any;
201
201
  error: (file: UploadFileItem, error: Error) => any;
202
202
  progress: (file: UploadFileItem, percent: number) => any;
203
203
  remove: (file: UploadFileItem) => any;
204
204
  finish: (fileList: UploadFileItem[]) => any;
205
205
  exceed: (files: File[], fileList: UploadFileItem[]) => any;
206
206
  }, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
207
- onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
208
207
  onSuccess?: ((file: UploadFileItem, response: any) => any) | undefined;
208
+ onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
209
209
  onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
210
210
  onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
211
211
  onRemove?: ((file: UploadFileItem) => any) | undefined;
@@ -213,14 +213,14 @@ declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {},
213
213
  onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
214
214
  }>, {
215
215
  disabled: boolean;
216
- data: Record<string, any>;
217
216
  multiple: boolean;
217
+ data: Record<string, any>;
218
218
  draggable: boolean;
219
- maxSize: number;
220
219
  action: string;
221
220
  headers: Record<string, string>;
222
221
  directory: boolean;
223
222
  accept: string;
223
+ maxSize: number;
224
224
  maxCount: number;
225
225
  pasteable: boolean;
226
226
  chunked: boolean;
@@ -259,9 +259,9 @@ type PlayerInstance = InstanceType<typeof xgplayer.default>;
259
259
  //#endregion
260
260
  //#region src/components/C_VideoPlayer/index.vue.d.ts
261
261
  declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
262
- ready: () => any;
263
262
  error: (error: Error) => any;
264
263
  ended: () => any;
264
+ ready: () => any;
265
265
  stateChange: (state: PlayerState) => any;
266
266
  timeUpdate: (currentTime: number, duration: number) => any;
267
267
  qualityChange: (quality: QualityLevel) => any;
@@ -272,9 +272,9 @@ declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExp
272
272
  chapterChange: (chapter: Chapter) => any;
273
273
  progressUpdate: (data: ProgressData) => any;
274
274
  }, string, vue.PublicProps, Readonly<VideoPlayerProps> & Readonly<{
275
- onReady?: (() => any) | undefined;
276
275
  onError?: ((error: Error) => any) | undefined;
277
276
  onEnded?: (() => any) | undefined;
277
+ onReady?: (() => any) | undefined;
278
278
  onStateChange?: ((state: PlayerState) => any) | undefined;
279
279
  onTimeUpdate?: ((currentTime: number, duration: number) => any) | undefined;
280
280
  onQualityChange?: ((quality: QualityLevel) => any) | undefined;
package/dist/data.d.ts CHANGED
@@ -23,10 +23,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
23
23
  onMarkerClick?: ((marker: MapMarker$1, event: any) => any) | undefined;
24
24
  }>, {
25
25
  height: string;
26
+ center: [number, number];
26
27
  zoom: number;
27
28
  markers: MapMarker$1[];
28
29
  amapKey: string;
29
- center: [number, number];
30
30
  mapType: "osm" | "amap";
31
31
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
@@ -63,10 +63,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
63
63
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
64
64
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
65
65
  }>, {
66
- config: ActionBarConfig;
67
66
  actions: ActionItem[];
68
67
  leftActions: ActionItem[];
69
68
  rightActions: ActionItem[];
69
+ config: ActionBarConfig;
70
70
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
71
71
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
72
72
  declare const _default: typeof __VLS_export;
@@ -33,12 +33,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
33
33
  onClick?: ((event: MouseEvent) => any) | undefined;
34
34
  onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
35
35
  }>, {
36
- trim: boolean;
37
36
  code: string;
38
37
  language: string;
39
38
  showHeader: boolean;
40
39
  showLineNumbers: boolean;
41
40
  wordWrap: boolean;
41
+ trim: boolean;
42
42
  showFullscreen: boolean;
43
43
  autoLoadLanguage: boolean;
44
44
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -77,11 +77,11 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
77
77
  }>, {
78
78
  items: ContextMenuItem[];
79
79
  disabled: boolean;
80
+ zIndex: number;
80
81
  minWidth: number;
81
82
  maxWidth: number;
82
83
  subMenuPlacement: "right" | "left";
83
84
  autoClose: boolean;
84
- zIndex: number;
85
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
86
86
  declare const _default: typeof __VLS_export;
87
87
  //#endregion
@@ -31,9 +31,9 @@ declare const __VLS_export: vue.DefineComponent<Props, {
31
31
  disabled: boolean;
32
32
  theme: "light" | "dark";
33
33
  height: number;
34
- readonly: boolean;
35
34
  modelValue: string;
36
35
  placeholder: string;
36
+ readonly: boolean;
37
37
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
38
38
  declare const _default: typeof __VLS_export;
39
39
  //#endregion
@@ -89,12 +89,12 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
89
89
  onComplete?: (() => any) | undefined;
90
90
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
91
91
  }>, {
92
+ keyboard: boolean;
92
93
  steps: GuideStep[];
93
94
  doneBtnText: string;
94
95
  nextBtnText: string;
95
96
  prevBtnText: string;
96
97
  showProgress: boolean;
97
- keyboard: boolean;
98
98
  animate: boolean;
99
99
  allowClose: boolean;
100
100
  popoverClass: string;
@@ -49,15 +49,15 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
49
49
  onError?: ((type: string, error?: any) => any) | undefined;
50
50
  onLoad?: (() => any) | undefined;
51
51
  }>, {
52
- type: "iconify" | "unocss" | "component" | "svg" | "image";
53
52
  size: number | string;
54
- name: string | any;
53
+ clickable: boolean;
54
+ type: "iconify" | "unocss" | "component" | "svg" | "image";
55
55
  title: string;
56
- rotate: number;
57
- loading: boolean;
56
+ name: string | any;
58
57
  color: string;
58
+ loading: boolean;
59
59
  flip: "horizontal" | "vertical" | "both";
60
- clickable: boolean;
60
+ rotate: number;
61
61
  svgPath: string;
62
62
  viewBox: string;
63
63
  alt: string;
@@ -100,8 +100,8 @@ declare const __VLS_base: vue.DefineComponent<LoginProps, {
100
100
  "onRegister-send-code"?: ((phone: string) => any) | undefined;
101
101
  }>, {
102
102
  title: string;
103
- storageKey: string;
104
103
  loading: boolean;
104
+ storageKey: string;
105
105
  defaultUsername: string;
106
106
  defaultPassword: string;
107
107
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -62,8 +62,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
62
62
  height: string | number;
63
63
  modelValue: string;
64
64
  placeholder: string;
65
- isDark: boolean;
66
65
  mode: "edit" | "editable" | "preview";
66
+ isDark: boolean;
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
73
  theme: "default" | "minimal";
74
- mode: "list" | "single" | "loop" | "shuffle";
75
- autoplay: boolean;
76
74
  initialIndex: number;
77
75
  showPlaylist: boolean;
78
76
  showCover: boolean;
77
+ autoplay: boolean;
78
+ mode: "list" | "loop" | "single" | "shuffle";
79
79
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
80
80
  declare const _default: typeof __VLS_export;
81
81
  //#endregion
@@ -78,8 +78,8 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
78
78
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
79
79
  }>, {
80
80
  direction: OrgChartDirection;
81
- lineStyle: OrgChartLineStyle;
82
81
  lineColor: string;
82
+ lineStyle: OrgChartLineStyle;
83
83
  lineWidth: number;
84
84
  nodeSpacing: number;
85
85
  levelSpacing: number;
@@ -34,9 +34,9 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
- time: number;
38
37
  status: "default" | "success" | "error" | "warning" | "info";
39
38
  strokeWidth: number;
39
+ time: number;
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
42
42
  indicatorPlacement: "inside" | "outside";
@@ -89,8 +89,8 @@ declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue
89
89
  repeat: number;
90
90
  loading: boolean;
91
91
  borderRadius: string;
92
- animation: SkeletonAnimation;
93
92
  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;
@@ -24,9 +24,9 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
24
24
  onChange?: ((args_0: number) => any) | undefined;
25
25
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
26
26
  }>, {
27
+ clickable: boolean;
27
28
  direction: "horizontal" | "vertical";
28
29
  current: number;
29
- clickable: boolean;
30
30
  connected: boolean;
31
31
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
@@ -91,11 +91,11 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
91
91
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
92
  }>, {
93
93
  items: TimelineItem[];
94
- reverse: boolean;
95
94
  size: "small" | "medium" | "large";
95
+ reverse: boolean;
96
96
  mode: "vertical" | "horizontal";
97
- labelPlacement: "left" | "right" | "alternate";
98
97
  pending: boolean;
98
+ labelPlacement: "left" | "right" | "alternate";
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
101
101
  showTime: boolean;
@@ -61,10 +61,10 @@ type __VLS_Props = {
61
61
  size?: TransferProps['size'];
62
62
  };
63
63
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
- change: (targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any;
64
+ change: (targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any;
65
65
  "update:modelValue": (value: (string | number)[]) => any;
66
66
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
67
- onChange?: ((targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any) | undefined;
67
+ onChange?: ((targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any) | undefined;
68
68
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
69
69
  }>, {
70
70
  size: "small" | "medium" | "large";
@@ -648,11 +648,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
650
  theme: "light" | "dark";
651
- data: GanttTask[];
651
+ title: string;
652
652
  height: string | number;
653
- showToolbar: boolean;
654
653
  options: GanttOptions;
655
- title: string;
654
+ data: GanttTask[];
655
+ showToolbar: boolean;
656
656
  preset: GanttPreset;
657
657
  showFullscreenButton: boolean;
658
658
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -72,15 +72,15 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
72
72
  onItemClick?: ((item: AvatarItem) => any) | undefined;
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
- size: number;
76
- direction: "ltr" | "rtl";
77
75
  max: number;
76
+ size: number;
78
77
  overlap: number;
79
- clickable: boolean;
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,17 +20,17 @@ 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
- label: string;
26
+ showText: boolean;
27
+ fontSize: number;
28
+ textPosition: "bottom" | "top";
26
29
  lineColor: string;
30
+ background: string;
27
31
  showBorder: boolean;
32
+ label: string;
28
33
  showLabel: boolean;
29
- fontSize: number;
30
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
31
- background: string;
32
- showText: boolean;
33
- textPosition: "bottom" | "top";
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -18,20 +18,20 @@ 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
21
  success: (data: {
23
22
  token: string;
24
23
  timestamp: number;
25
24
  }) => any;
26
25
  fail: (error: string) => any;
26
+ change: (valid: boolean) => any;
27
27
  reset: () => any;
28
28
  }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
29
- onChange?: ((valid: boolean) => any) | undefined;
30
29
  onSuccess?: ((data: {
31
30
  token: string;
32
31
  timestamp: number;
33
32
  }) => any) | undefined;
34
33
  onFail?: ((error: string) => any) | undefined;
34
+ onChange?: ((valid: boolean) => any) | undefined;
35
35
  onReset?: (() => any) | undefined;
36
36
  }>, {
37
37
  triggerText: string;
@@ -104,8 +104,8 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
104
104
  "onEmoji-click"?: (() => any) | undefined;
105
105
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
106
  }>, {
107
- placeholder: string;
108
107
  title: string;
108
+ placeholder: string;
109
109
  showContacts: boolean;
110
110
  showTimestamp: boolean;
111
111
  showSendBtn: 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
+ initialView: CalendarViewType;
69
70
  editable: boolean;
70
71
  events: CalendarEvent[];
71
- initialView: CalendarViewType;
72
72
  showAddDialog: boolean;
73
73
  showEditDialog: boolean;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -70,22 +70,22 @@ 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
+ change: (activeKeys: string[]) => any;
73
74
  "update:activeKeys": (keys: string[]) => any;
74
75
  expand: (key: string) => any;
75
76
  collapse: (key: string) => any;
76
- change: (activeKeys: string[]) => any;
77
77
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
78
+ onChange?: ((activeKeys: string[]) => any) | undefined;
78
79
  "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
79
80
  onExpand?: ((key: string) => any) | undefined;
80
81
  onCollapse?: ((key: string) => any) | undefined;
81
- onChange?: ((activeKeys: string[]) => any) | undefined;
82
82
  }>, {
83
+ bordered: boolean;
83
84
  activeKeys: string[];
84
85
  defaultActiveKeys: string[];
85
86
  accordion: boolean;
86
87
  variant: CollapsePanelVariant;
87
88
  expandIconPosition: ExpandIconPosition;
88
- bordered: boolean;
89
89
  persistKey: string;
90
90
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
91
91
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -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
+ error: (error: Event) => any;
54
55
  ready: () => any;
55
56
  crop: (result: any) => any;
56
- error: (error: Event) => any;
57
57
  confirm: (result: any) => any;
58
58
  cancel: () => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
+ onError?: ((error: Event) => any) | undefined;
60
61
  onReady?: (() => any) | undefined;
61
62
  onCrop?: ((result: any) => any) | undefined;
62
- onError?: ((error: Event) => any) | undefined;
63
63
  onConfirm?: ((result: any) => any) | undefined;
64
64
  onCancel?: (() => any) | undefined;
65
65
  }>, {
66
66
  disabled: boolean;
67
67
  height: string | number;
68
- showToolbar: boolean;
69
68
  showPreview: boolean;
69
+ showToolbar: boolean;
70
70
  src: string;
71
71
  aspectRatio: number;
72
72
  outputFormat: CropOutputFormat;
@@ -116,20 +116,15 @@ 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";
119
120
  sort: boolean;
120
121
  disabled: boolean;
121
122
  modelValue: DraggableItem[];
122
- emptyText: string;
123
- direction: "vertical" | "horizontal";
124
- layout: LayoutMode;
125
- itemClass: string;
126
123
  delay: number;
127
- group: string | GroupOptions;
128
- alignItems: AlignItems;
129
- flexWrap: boolean;
130
- justifyContent: JustifyContent;
131
- animation: number;
124
+ emptyText: string;
132
125
  gap: string | number;
126
+ animation: number;
127
+ group: string | GroupOptions;
133
128
  handle: string;
134
129
  showHandle: boolean;
135
130
  ghostClass: string;
@@ -137,11 +132,16 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
137
132
  dragClass: string;
138
133
  wrapperClass: string;
139
134
  listClass: string;
135
+ itemClass: string;
140
136
  showEmptyState: boolean;
141
137
  swapThreshold: number;
142
138
  invertSwap: boolean;
139
+ layout: LayoutMode;
143
140
  gridColumns: number;
144
141
  gridRows: 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>;
@@ -430,13 +430,13 @@ declare const __VLS_base: vue.DefineComponent<CFormProps, {
430
430
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
431
431
  "update:modelValue": (model: Record<string, any>) => any;
432
432
  submit: (payload: SubmitEventPayload) => any;
433
- "validate-success": (model: Record<string, any>) => any;
434
433
  "validate-error": (errors: unknown) => any;
434
+ "validate-success": (model: Record<string, any>) => any;
435
435
  }, string, vue.PublicProps, Readonly<CFormProps> & Readonly<{
436
436
  "onUpdate:modelValue"?: ((model: Record<string, any>) => any) | undefined;
437
437
  onSubmit?: ((payload: SubmitEventPayload) => any) | undefined;
438
- "onValidate-success"?: ((model: Record<string, any>) => any) | undefined;
439
438
  "onValidate-error"?: ((errors: unknown) => any) | undefined;
439
+ "onValidate-success"?: ((model: Record<string, any>) => any) | undefined;
440
440
  }>, {
441
441
  config: FormConfig;
442
442
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -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,12 +1352,13 @@ declare const useDynamicFormState: () => {
1351
1352
  readonly keys?: readonly string[] | undefined;
1352
1353
  readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
1353
1354
  } | undefined;
1355
+ readonly trigger?: string | readonly string[] | undefined;
1356
+ readonly pattern?: (RegExp | string) | undefined;
1354
1357
  readonly key?: string | undefined;
1355
1358
  readonly level?: "warning" | "error" | undefined;
1359
+ readonly message?: string | ((a?: string) => string) | undefined;
1356
1360
  readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
1357
- readonly pattern?: (RegExp | string) | undefined;
1358
1361
  readonly min?: number | undefined;
1359
- readonly max?: number | undefined;
1360
1362
  readonly len?: number | undefined;
1361
1363
  readonly enum?: readonly (string | number | boolean | null | undefined)[] | undefined;
1362
1364
  readonly whitespace?: boolean | undefined;
@@ -1929,8 +1931,6 @@ declare const useDynamicFormState: () => {
1929
1931
  readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
1930
1932
  }[] | undefined;
1931
1933
  readonly transform?: ((value: Value) => Value) | undefined;
1932
- readonly message?: string | ((a?: string) => string) | undefined;
1933
- readonly trigger?: string | readonly string[] | undefined;
1934
1934
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
1935
1935
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
1936
1936
  }[] | undefined;
@@ -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,12 +3629,13 @@ declare const useDynamicFormState: () => {
3628
3629
  readonly keys?: readonly string[] | undefined;
3629
3630
  readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
3630
3631
  } | undefined;
3632
+ readonly trigger?: string | readonly string[] | undefined;
3633
+ readonly pattern?: (RegExp | string) | undefined;
3631
3634
  readonly key?: string | undefined;
3632
3635
  readonly level?: "warning" | "error" | undefined;
3636
+ readonly message?: string | ((a?: string) => string) | undefined;
3633
3637
  readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
3634
- readonly pattern?: (RegExp | string) | undefined;
3635
3638
  readonly min?: number | undefined;
3636
- readonly max?: number | undefined;
3637
3639
  readonly len?: number | undefined;
3638
3640
  readonly enum?: readonly (string | number | boolean | null | undefined)[] | undefined;
3639
3641
  readonly whitespace?: boolean | undefined;
@@ -4206,8 +4208,6 @@ declare const useDynamicFormState: () => {
4206
4208
  readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
4207
4209
  }[] | undefined;
4208
4210
  readonly transform?: ((value: Value) => Value) | undefined;
4209
- readonly message?: string | ((a?: string) => string) | undefined;
4210
- readonly trigger?: string | readonly string[] | undefined;
4211
4211
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
4212
4212
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
4213
4213
  }[] | undefined;
@@ -89,14 +89,14 @@ 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
- columns: number;
93
92
  loading: boolean;
94
- animationDuration: number;
93
+ columns: number;
95
94
  gap: number;
96
- infinite: boolean;
97
95
  lazy: boolean;
96
+ infinite: boolean;
98
97
  skeleton: boolean;
99
98
  skeletonCount: number;
99
+ animationDuration: number;
100
100
  breakpoints: WaterFallBreakpoint[];
101
101
  noMore: boolean;
102
102
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -593,7 +593,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
593
593
  clearRowSelection: () => void;
594
594
  resetToFirstPage: () => void;
595
595
  getSelectedRows: () => DataRecord[];
596
- getEditingData: () => DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
596
+ getEditingData: () => vue.Ref<Record<string, any>, Record<string, any>> | DataRecord | null;
597
597
  isEditing: (rowKey: DataTableRowKey$1, columnKey?: string) => boolean;
598
598
  isExpanded: (rowKey: DataTableRowKey$1) => boolean;
599
599
  getManager: () => {
@@ -602,7 +602,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
602
602
  cancel(): void;
603
603
  save(): Promise<void>;
604
604
  isEditing(rowKey: DataTableRowKey$1, columnKey?: string): boolean;
605
- getEditingData(): DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
605
+ getEditingData(): vue.Ref<Record<string, any>, Record<string, any>> | DataRecord | null;
606
606
  };
607
607
  expand: {
608
608
  row(rowKey: DataTableRowKey$1): Promise<void>;
@@ -642,8 +642,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
642
642
  clearAllSelections(): void;
643
643
  };
644
644
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
645
- save: (rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any;
646
645
  cancel: (rowData: DataRecord, rowIndex: number) => any;
646
+ save: (rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any;
647
647
  "pagination-change": (...args: unknown[]) => any;
648
648
  "row-delete": (...args: unknown[]) => any;
649
649
  "expand-change": (expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any;
@@ -658,8 +658,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
658
658
  "view-detail": (data: DataRecord) => any;
659
659
  "column-change": (columns: TableColumn[]) => any;
660
660
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
661
- onSave?: ((rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
662
661
  onCancel?: ((rowData: DataRecord, rowIndex: number) => any) | undefined;
662
+ onSave?: ((rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
663
663
  "onPagination-change"?: ((...args: unknown[]) => any) | undefined;
664
664
  "onRow-delete"?: ((...args: unknown[]) => any) | undefined;
665
665
  "onExpand-change"?: ((expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any) | undefined;
@@ -862,7 +862,7 @@ declare function useTableManager(params: TableManagerParams): {
862
862
  cancel(): void; /** 保存编辑 */
863
863
  save(): Promise<void>; /** 是否正在编辑 */
864
864
  isEditing(rowKey: DataTableRowKey$1, columnKey?: string): boolean; /** 获取当前编辑数据 */
865
- getEditingData(): DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
865
+ getEditingData(): vue.Ref<Record<string, any>, Record<string, any>> | DataRecord | null;
866
866
  };
867
867
  expand: {
868
868
  /** 展开行 */row(rowKey: DataTableRowKey$1): Promise<void>; /** 折叠行 */
@@ -51,12 +51,12 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
51
51
  onError?: ((error: Error) => any) | undefined;
52
52
  }>, {
53
53
  size: number;
54
+ showBorder: boolean;
54
55
  label: string;
55
- mode: RenderMode;
56
+ showLabel: boolean;
56
57
  color: string;
57
- showBorder: boolean;
58
+ mode: RenderMode;
58
59
  margin: number;
59
- showLabel: boolean;
60
60
  bgColor: string;
61
61
  errorCorrectionLevel: ErrorCorrectionLevel;
62
62
  logo: LogoOptions;
@@ -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";
@@ -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;
@@ -68,23 +68,23 @@ type __VLS_Slots = {} & {
68
68
  declare const __VLS_base: vue.DefineComponent<Props, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
69
69
  expand: (target: CollapseTarget) => any;
70
70
  collapse: (target: CollapseTarget) => any;
71
- resize: (firstSize: number, secondSize: number) => any;
72
71
  "drag-start": (size: number) => any;
73
72
  "drag-end": (size: number) => any;
73
+ resize: (firstSize: number, secondSize: number) => any;
74
74
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
75
75
  onExpand?: ((target: CollapseTarget) => any) | undefined;
76
76
  onCollapse?: ((target: CollapseTarget) => any) | undefined;
77
- onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
78
77
  "onDrag-start"?: ((size: number) => any) | undefined;
79
78
  "onDrag-end"?: ((size: number) => any) | undefined;
79
+ onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
80
80
  }>, {
81
+ direction: SplitDirection;
81
82
  disabled: boolean;
82
83
  step: number;
83
- direction: SplitDirection;
84
84
  collapsible: boolean;
85
+ maxSize: number;
85
86
  defaultSize: number;
86
87
  minSize: number;
87
- maxSize: number;
88
88
  showCollapseButton: boolean;
89
89
  gutterSize: number;
90
90
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -48,12 +48,12 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
48
48
  "onChange-start"?: ((time: number | null) => any) | undefined;
49
49
  "onChange-end"?: ((time: number | null) => any) | undefined;
50
50
  }>, {
51
+ format: string;
51
52
  placeholder: string;
52
53
  mode: TimeMode;
53
- attrs: Record<string, any>;
54
- format: 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,26 +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;
95
94
  "node-select": (node: TreeNodeData | null, selectedKeys: (string | number)[]) => any;
96
95
  "node-action": (action: string, node: TreeNodeData) => any;
97
96
  "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;
101
100
  "onNode-select"?: ((node: TreeNodeData | null, selectedKeys: (string | number)[]) => any) | undefined;
102
101
  "onNode-action"?: ((action: string, node: TreeNodeData) => any) | undefined;
103
102
  "onNode-drop"?: ((info: DropInfo) => any) | undefined;
103
+ onRefresh?: (() => any) | undefined;
104
104
  }>, {
105
- showToolbar: boolean;
106
- mode: TreeMode;
107
105
  labelField: string;
108
106
  childrenField: string;
107
+ actions: ActionConfig[];
108
+ mode: TreeMode;
109
+ showToolbar: boolean;
109
110
  keyField: string;
111
+ draggable: boolean;
110
112
  searchPattern: string;
111
113
  searchable: boolean;
112
114
  searchPlaceholder: string;
113
- draggable: boolean;
114
115
  showLine: boolean;
115
116
  addable: boolean;
116
117
  addText: string;
@@ -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)[];
@@ -241,15 +241,15 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
241
241
  "update:modelValue": (value: WorkflowData) => any;
242
242
  save: (data: WorkflowData) => any;
243
243
  "node-click": (node: WorkflowNode) => any;
244
- "validate-error": (errors: ValidationError[]) => 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
250
  "onNode-click"?: ((node: WorkflowNode) => any) | undefined;
251
- "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
252
251
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
252
+ "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
253
253
  }>, {
254
254
  theme: "light" | "dark";
255
255
  readonly: boolean;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.6.30",
6
+ "version": "0.6.31",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "type": "module",
9
9
  "main": "dist/index.cjs",