@robot-admin/naive-ui-components 0.8.0 → 0.8.1

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @robot-admin/naive-ui-components
2
2
 
3
- ## 0.8.0
3
+ ## 0.8.1
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -118,9 +118,9 @@ declare const __VLS_export: vue.DefineComponent<CronProps, {
118
118
  onChange?: ((value: string) => any) | undefined;
119
119
  "onValidation-change"?: ((result: CronValidation) => any) | undefined;
120
120
  }>, {
121
- modelValue: string;
122
- disabled: boolean;
123
121
  height: string | number;
122
+ disabled: boolean;
123
+ modelValue: string;
124
124
  showPreview: boolean;
125
125
  previewCount: number;
126
126
  showTemplates: boolean;
@@ -120,14 +120,14 @@ declare const __VLS_export: vue.DefineComponent<FormulaEditorProps, FormulaEdito
120
120
  onChange?: ((value: string) => any) | undefined;
121
121
  "onValidation-change"?: ((result: FormulaValidation) => any) | undefined;
122
122
  }>, {
123
- modelValue: string;
123
+ height: string | number;
124
124
  placeholder: string;
125
125
  disabled: boolean;
126
- height: string | number;
126
+ modelValue: string;
127
+ showPreview: boolean;
127
128
  variables: FormulaVariable[];
128
129
  functions: FormulaFunction[];
129
130
  sampleData: Record<string, number | string | boolean>;
130
- showPreview: boolean;
131
131
  showKeyboard: boolean;
132
132
  showVariablePanel: boolean;
133
133
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -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;
@@ -217,7 +217,7 @@ declare function useNotificationCore(props: NotificationCenterProps): {
217
217
  actionText?: string | undefined;
218
218
  extra?: Record<string, unknown> | undefined;
219
219
  }[]>;
220
- activeCategory: vue.Ref<"all" | NotificationCategory, "all" | NotificationCategory>;
220
+ activeCategory: vue.Ref<NotificationCategory | "all", NotificationCategory | "all">;
221
221
  loading: vue.Ref<boolean, boolean>;
222
222
  total: vue.Ref<number, number>;
223
223
  page: vue.Ref<number, number>;
@@ -196,18 +196,18 @@ 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
  error: (file: UploadFileItem, error: Error) => any;
201
- progress: (file: UploadFileItem, percent: number) => any;
202
200
  success: (file: UploadFileItem, response: any) => any;
201
+ change: (fileList: UploadFileItem[]) => any;
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
  onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
209
- onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
210
208
  onSuccess?: ((file: UploadFileItem, response: any) => any) | undefined;
209
+ onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
210
+ onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
211
211
  onRemove?: ((file: UploadFileItem) => any) | undefined;
212
212
  onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
213
213
  onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
@@ -216,12 +216,12 @@ declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {},
216
216
  data: Record<string, any>;
217
217
  multiple: boolean;
218
218
  maxSize: number;
219
+ draggable: boolean;
219
220
  action: string;
220
221
  headers: Record<string, string>;
221
222
  directory: boolean;
222
223
  accept: string;
223
224
  maxCount: number;
224
- draggable: boolean;
225
225
  pasteable: boolean;
226
226
  chunked: boolean;
227
227
  chunkSize: number;
@@ -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
- ended: () => any;
263
262
  error: (error: Error) => any;
264
263
  ready: () => any;
264
+ ended: () => 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
- onEnded?: (() => any) | undefined;
276
275
  onError?: ((error: Error) => any) | undefined;
277
276
  onReady?: (() => any) | undefined;
277
+ onEnded?: (() => 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,8 +23,8 @@ 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];
27
26
  zoom: number;
27
+ center: [number, number];
28
28
  markers: MapMarker$1[];
29
29
  amapKey: string;
30
30
  mapType: "osm" | "amap";
@@ -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;
66
67
  actions: ActionItem[];
67
68
  leftActions: ActionItem[];
68
69
  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;
36
37
  code: string;
37
38
  language: string;
38
39
  showHeader: boolean;
39
40
  showLineNumbers: boolean;
40
41
  wordWrap: boolean;
41
- trim: boolean;
42
42
  showFullscreen: boolean;
43
43
  autoLoadLanguage: boolean;
44
44
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -61,25 +61,25 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
61
61
  close: () => void; /** 当前是否可见 */
62
62
  visible: vue.ComputedRef<boolean>;
63
63
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
64
- close: () => any;
65
64
  select: (item: ContextMenuItem) => any;
65
+ close: () => any;
66
66
  open: (position: {
67
67
  x: number;
68
68
  y: number;
69
69
  }) => any;
70
70
  }, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
71
- onClose?: (() => any) | undefined;
72
71
  onSelect?: ((item: ContextMenuItem) => any) | undefined;
72
+ onClose?: (() => any) | undefined;
73
73
  onOpen?: ((position: {
74
74
  x: number;
75
75
  y: number;
76
76
  }) => any) | undefined;
77
77
  }>, {
78
- disabled: boolean;
79
78
  items: ContextMenuItem[];
80
- maxWidth: number;
81
- minWidth: number;
79
+ disabled: boolean;
82
80
  zIndex: number;
81
+ minWidth: number;
82
+ maxWidth: number;
83
83
  subMenuPlacement: "right" | "left";
84
84
  autoClose: boolean;
85
85
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -24,19 +24,19 @@ interface Props {
24
24
  declare const __VLS_export: vue.DefineComponent<Props, {
25
25
  clearAll: () => void;
26
26
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
27
+ change: (value: string | [string, string] | null) => any;
27
28
  "update:singleDate": (value: DateValue) => any;
28
29
  "update:singleDateTime": (value: DateValue) => any;
29
30
  "update:dateRange": (value: DateRangeValue) => any;
30
31
  "update:dateTimeRange": (value: DateRangeValue) => any;
31
32
  "update:smartRange": (value: DateRangeValue) => any;
32
- change: (value: string | [string, string] | null) => any;
33
33
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
34
+ onChange?: ((value: string | [string, string] | null) => any) | undefined;
34
35
  "onUpdate:singleDate"?: ((value: DateValue) => any) | undefined;
35
36
  "onUpdate:singleDateTime"?: ((value: DateValue) => any) | undefined;
36
37
  "onUpdate:dateRange"?: ((value: DateRangeValue) => any) | undefined;
37
38
  "onUpdate:dateTimeRange"?: ((value: DateRangeValue) => any) | undefined;
38
39
  "onUpdate:smartRange"?: ((value: DateRangeValue) => any) | undefined;
39
- onChange?: ((value: string | [string, string] | null) => any) | undefined;
40
40
  }>, {
41
41
  placeholder: string;
42
42
  disabled: boolean;
@@ -28,12 +28,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
28
28
  "onEditor-mounted"?: ((editor: any) => any) | undefined;
29
29
  "onEditor-change"?: ((html: string) => any) | undefined;
30
30
  }>, {
31
- modelValue: string;
31
+ height: number;
32
32
  placeholder: string;
33
33
  disabled: boolean;
34
- readonly: boolean;
35
- height: number;
36
34
  theme: "light" | "dark";
35
+ modelValue: string;
36
+ readonly: boolean;
37
37
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
38
38
  declare const _default: typeof __VLS_export;
39
39
  //#endregion
@@ -79,22 +79,22 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
79
79
  resetCompleted: () => void;
80
80
  isCompleted: () => boolean;
81
81
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
82
- close: (currentStep: number) => any;
83
82
  start: () => any;
84
83
  complete: () => any;
84
+ close: (currentStep: number) => any;
85
85
  "step-change": (stepIndex: number, step: GuideStep) => any;
86
86
  }, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
87
- onClose?: ((currentStep: number) => any) | undefined;
88
87
  onStart?: (() => any) | undefined;
89
88
  onComplete?: (() => any) | undefined;
89
+ onClose?: ((currentStep: number) => any) | undefined;
90
90
  "onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
91
91
  }>, {
92
92
  steps: GuideStep[];
93
- keyboard: boolean;
94
93
  doneBtnText: string;
95
94
  nextBtnText: string;
96
95
  prevBtnText: string;
97
96
  showProgress: boolean;
97
+ keyboard: boolean;
98
98
  animate: boolean;
99
99
  allowClose: boolean;
100
100
  popoverClass: string;
@@ -41,23 +41,23 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
41
41
  errorMessage: Readonly<vue.Ref<string, string>>; /** DOM引用 */
42
42
  el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
43
43
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
44
- click: (event: MouseEvent) => any;
45
44
  error: (type: string, error?: any) => any;
45
+ click: (event: MouseEvent) => any;
46
46
  load: () => any;
47
47
  }, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
48
- onClick?: ((event: MouseEvent) => any) | undefined;
49
48
  onError?: ((type: string, error?: any) => any) | undefined;
49
+ onClick?: ((event: MouseEvent) => any) | undefined;
50
50
  onLoad?: (() => any) | undefined;
51
51
  }>, {
52
- size: number | string;
53
52
  type: "iconify" | "unocss" | "component" | "svg" | "image";
53
+ size: number | string;
54
54
  clickable: boolean;
55
- name: string | any;
56
55
  title: string;
57
56
  color: string;
57
+ name: string | any;
58
+ flip: "horizontal" | "vertical" | "both";
58
59
  loading: boolean;
59
60
  rotate: number;
60
- flip: "horizontal" | "vertical" | "both";
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
- loading: boolean;
104
103
  storageKey: string;
104
+ loading: boolean;
105
105
  defaultUsername: string;
106
106
  defaultPassword: string;
107
107
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -58,12 +58,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
58
58
  "onAuto-save"?: ((text: string) => any) | undefined;
59
59
  "onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
60
60
  }>, {
61
- modelValue: string;
61
+ height: string | number;
62
62
  placeholder: string;
63
63
  disabled: boolean;
64
- height: string | number;
64
+ modelValue: string;
65
65
  mode: "edit" | "editable" | "preview";
66
- autoSave: boolean;
67
66
  isDark: boolean;
68
67
  tocNavPosition: "left" | "right";
69
68
  defaultFullscreen: boolean;
@@ -73,6 +72,7 @@ declare const __VLS_export: vue.DefineComponent<Props, {
73
72
  rightToolbar: string;
74
73
  maxLength: number;
75
74
  showWordCount: boolean;
75
+ autoSave: boolean;
76
76
  autoSaveInterval: number;
77
77
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
78
78
  declare const _default: typeof __VLS_export;
@@ -60,18 +60,18 @@ 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: "single" | "list" | "loop" | "shuffle";
74
+ mode: "list" | "loop" | "single" | "shuffle";
75
75
  initialIndex: number;
76
76
  showPlaylist: boolean;
77
77
  showCover: boolean;
@@ -77,9 +77,8 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
77
77
  "onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
78
78
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
79
79
  }>, {
80
- direction: OrgChartDirection;
81
80
  lineColor: string;
82
- collapsible: boolean;
81
+ direction: OrgChartDirection;
83
82
  lineStyle: OrgChartLineStyle;
84
83
  lineWidth: number;
85
84
  nodeSpacing: number;
@@ -89,6 +88,7 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
89
88
  initialZoom: number;
90
89
  minZoom: number;
91
90
  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;
@@ -34,13 +34,13 @@ 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
- strokeWidth: number;
39
- status: "default" | "success" | "error" | "warning" | "info";
40
37
  percentage: number | number[];
41
38
  isAnimation: boolean;
39
+ time: number;
42
40
  indicatorPlacement: "inside" | "outside";
43
41
  showIndicator: boolean;
42
+ status: "default" | "success" | "error" | "warning" | "info";
43
+ strokeWidth: number;
44
44
  unit: string;
45
45
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
46
46
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -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
- loading: boolean;
91
- animation: SkeletonAnimation;
92
89
  borderRadius: string;
90
+ loading: boolean;
91
+ repeat: number;
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;
@@ -90,12 +90,12 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
90
90
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
91
  "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
92
  }>, {
93
- size: "small" | "medium" | "large";
94
93
  reverse: boolean;
95
94
  items: TimelineItem[];
95
+ size: "small" | "medium" | "large";
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;
@@ -62,12 +62,12 @@ type __VLS_Props = {
62
62
  };
63
63
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
64
  "update:modelValue": (value: (string | number)[]) => any;
65
- change: (targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any;
65
+ change: (targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any;
66
66
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
67
67
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
- onChange?: ((targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any) | undefined;
68
+ onChange?: ((targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (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;
@@ -648,11 +648,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
650
  height: string | number;
651
+ title: string;
651
652
  theme: "light" | "dark";
652
653
  data: GanttTask[];
653
- title: string;
654
- options: GanttOptions;
655
654
  showToolbar: boolean;
655
+ options: GanttOptions;
656
656
  preset: GanttPreset;
657
657
  showFullscreenButton: boolean;
658
658
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -72,8 +72,8 @@ 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
75
  max: number;
76
+ size: number;
77
77
  overlap: number;
78
78
  shape: "circle" | "square";
79
79
  showStatus: boolean;
@@ -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
- height: number;
24
- width: number;
25
- label: string;
26
- showBorder: boolean;
27
- showLabel: boolean;
28
23
  format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
24
+ width: number;
25
+ height: number;
29
26
  showText: boolean;
30
27
  fontSize: number;
31
28
  textPosition: "bottom" | "top";
32
29
  lineColor: string;
33
30
  background: string;
31
+ showBorder: boolean;
32
+ label: string;
33
+ showLabel: boolean;
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
  reset: () => any;
23
22
  success: (data: {
24
23
  token: string;
25
24
  timestamp: number;
26
25
  }) => any;
26
+ change: (valid: boolean) => any;
27
27
  fail: (error: string) => any;
28
28
  }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
29
- onChange?: ((valid: boolean) => any) | undefined;
30
29
  onReset?: (() => any) | undefined;
31
30
  onSuccess?: ((data: {
32
31
  token: string;
33
32
  timestamp: number;
34
33
  }) => any) | undefined;
34
+ onChange?: ((valid: boolean) => any) | undefined;
35
35
  onFail?: ((error: string) => any) | undefined;
36
36
  }>, {
37
37
  disabled: boolean;
@@ -105,13 +105,13 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
105
105
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
106
  }>, {
107
107
  placeholder: string;
108
- title: string;
109
- messages: ChatMessage[];
110
108
  showContacts: boolean;
111
109
  showTimestamp: boolean;
112
110
  showSendBtn: boolean;
113
111
  loadingHistory: boolean;
112
+ title: string;
114
113
  contacts: ChatContact[];
114
+ messages: ChatMessage[];
115
115
  currentContactId: string;
116
116
  selfAvatar: string;
117
117
  selfName: string;
@@ -66,8 +66,8 @@ 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;
70
+ initialView: CalendarViewType;
71
71
  events: CalendarEvent[];
72
72
  showAddDialog: boolean;
73
73
  showEditDialog: boolean;
@@ -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
- cancel: () => any;
55
54
  error: (error: Event) => any;
56
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
- onCancel?: (() => any) | undefined;
61
60
  onError?: ((error: Event) => any) | undefined;
62
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
- disabled: boolean;
67
66
  height: string | number;
68
- aspectRatio: number;
69
- showPreview: boolean;
67
+ disabled: boolean;
68
+ showToolbar: boolean;
70
69
  src: string;
70
+ aspectRatio: number;
71
71
  outputFormat: CropOutputFormat;
72
72
  outputQuality: number;
73
73
  maxOutputWidth: number;
74
74
  maxOutputHeight: number;
75
- showToolbar: boolean;
75
+ showPreview: boolean;
76
76
  circular: boolean;
77
77
  modal: boolean;
78
78
  modalTitle: string;
@@ -116,20 +116,20 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
116
116
  "onItem-remove"?: ((item: DraggableItem, index: number) => any) | undefined;
117
117
  "onList-change"?: ((list: DraggableItem[]) => any) | undefined;
118
118
  }>, {
119
- modelValue: DraggableItem[];
120
- disabled: boolean;
121
119
  sort: boolean;
122
120
  direction: "vertical" | "horizontal";
121
+ disabled: boolean;
122
+ modelValue: DraggableItem[];
123
+ delay: number;
124
+ animation: number;
125
+ emptyText: string;
123
126
  layout: LayoutMode;
124
- itemClass: string;
125
127
  group: string | GroupOptions;
126
128
  alignItems: AlignItems;
127
129
  flexWrap: boolean;
128
130
  justifyContent: JustifyContent;
129
- animation: number;
130
131
  gap: string | number;
131
- delay: number;
132
- emptyText: string;
132
+ itemClass: string;
133
133
  handle: string;
134
134
  showHandle: boolean;
135
135
  ghostClass: string;
@@ -468,13 +468,13 @@ declare const __VLS_base: vue.DefineComponent<CFormProps, {
468
468
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
469
469
  "update:modelValue": (model: Record<string, any>) => any;
470
470
  submit: (payload: SubmitEventPayload) => any;
471
- "validate-success": (model: Record<string, any>) => any;
472
471
  "validate-error": (errors: unknown) => any;
472
+ "validate-success": (model: Record<string, any>) => any;
473
473
  }, string, vue.PublicProps, Readonly<CFormProps> & Readonly<{
474
474
  "onUpdate:modelValue"?: ((model: Record<string, any>) => any) | undefined;
475
475
  onSubmit?: ((payload: SubmitEventPayload) => any) | undefined;
476
- "onValidate-success"?: ((model: Record<string, any>) => any) | undefined;
477
476
  "onValidate-error"?: ((errors: unknown) => any) | undefined;
477
+ "onValidate-success"?: ((model: Record<string, any>) => any) | undefined;
478
478
  }>, {
479
479
  config: FormConfig;
480
480
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -1422,8 +1422,10 @@ declare const useDynamicFormState: () => {
1422
1422
  readonly keys?: readonly string[] | undefined;
1423
1423
  readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
1424
1424
  } | undefined;
1425
- readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
1425
+ readonly trigger?: string | readonly string[] | undefined;
1426
1426
  readonly pattern?: (RegExp | string) | undefined;
1427
+ readonly message?: string | ((a?: string) => string) | undefined;
1428
+ readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
1427
1429
  readonly min?: number | undefined;
1428
1430
  readonly len?: number | undefined;
1429
1431
  readonly enum?: readonly (string | number | boolean | null | undefined)[] | undefined;
@@ -1997,8 +1999,6 @@ declare const useDynamicFormState: () => {
1997
1999
  readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
1998
2000
  }[] | undefined;
1999
2001
  readonly transform?: ((value: Value) => Value) | undefined;
2000
- readonly message?: string | ((a?: string) => string) | undefined;
2001
- readonly trigger?: string | readonly string[] | undefined;
2002
2002
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
2003
2003
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
2004
2004
  }[] | undefined;
@@ -3705,8 +3705,10 @@ declare const useDynamicFormState: () => {
3705
3705
  readonly keys?: readonly string[] | undefined;
3706
3706
  readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
3707
3707
  } | undefined;
3708
- readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
3708
+ readonly trigger?: string | readonly string[] | undefined;
3709
3709
  readonly pattern?: (RegExp | string) | undefined;
3710
+ readonly message?: string | ((a?: string) => string) | undefined;
3711
+ readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
3710
3712
  readonly min?: number | undefined;
3711
3713
  readonly len?: number | undefined;
3712
3714
  readonly enum?: readonly (string | number | boolean | null | undefined)[] | undefined;
@@ -4280,8 +4282,6 @@ declare const useDynamicFormState: () => {
4280
4282
  readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
4281
4283
  }[] | undefined;
4282
4284
  readonly transform?: ((value: Value) => Value) | undefined;
4283
- readonly message?: string | ((a?: string) => string) | undefined;
4284
- readonly trigger?: string | readonly string[] | undefined;
4285
4285
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
4286
4286
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
4287
4287
  }[] | undefined;
@@ -259,10 +259,10 @@ declare const __VLS_export: vue.DefineComponent<Props, {
259
259
  onReady?: ((graph: any) => any) | undefined;
260
260
  "onData-change"?: ((data: DiagramData) => any) | undefined;
261
261
  }>, {
262
- readonly: boolean;
262
+ width: string | number;
263
263
  height: string | number;
264
264
  theme: "light" | "dark";
265
- width: string | number;
265
+ readonly: boolean;
266
266
  showToolbar: boolean;
267
267
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
268
268
  declare const _default: typeof __VLS_export;
@@ -827,7 +827,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
827
827
  clearRowSelection: () => void;
828
828
  resetToFirstPage: () => void;
829
829
  getSelectedRows: () => DataRecord[];
830
- getEditingData: () => DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
830
+ getEditingData: () => vue.Ref<Record<string, any>, Record<string, any>> | DataRecord | null;
831
831
  isEditing: (rowKey: DataTableRowKey$1, columnKey?: string) => boolean;
832
832
  isExpanded: (rowKey: DataTableRowKey$1) => boolean;
833
833
  getManager: () => {
@@ -836,7 +836,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
836
836
  cancel(): void;
837
837
  save(): Promise<void>;
838
838
  isEditing(rowKey: DataTableRowKey$1, columnKey?: string): boolean;
839
- getEditingData(): DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
839
+ getEditingData(): vue.Ref<Record<string, any>, Record<string, any>> | DataRecord | null;
840
840
  };
841
841
  expand: {
842
842
  row(rowKey: DataTableRowKey$1): Promise<void>;
@@ -885,6 +885,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
885
885
  } | undefined;
886
886
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
887
887
  cancel: (rowData: DataRecord, rowIndex: number) => any;
888
+ save: (rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any;
888
889
  "pagination-change": (...args: unknown[]) => any;
889
890
  "row-delete": (...args: unknown[]) => any;
890
891
  "expand-change": (expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any;
@@ -892,7 +893,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
892
893
  "child-selection-change": (parentKey: DataTableRowKey$1, childKeys: DataTableRowKey$1[], childRows: any[]) => any;
893
894
  "parent-child-link-change": (parentKey: DataTableRowKey$1, shouldSelect: boolean) => any;
894
895
  "update:data": (data: DataRecord[]) => any;
895
- save: (rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any;
896
896
  "row-add": (newRow: DataRecord) => any;
897
897
  "row-copy": (originalRow: DataRecord, newRow: DataRecord) => any;
898
898
  "row-move": (row: DataRecord, fromIndex: number, toIndex: number) => any;
@@ -901,6 +901,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
901
901
  "column-change": (columns: TableColumn[]) => any;
902
902
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
903
903
  onCancel?: ((rowData: DataRecord, rowIndex: number) => any) | undefined;
904
+ onSave?: ((rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
904
905
  "onPagination-change"?: ((...args: unknown[]) => any) | undefined;
905
906
  "onRow-delete"?: ((...args: unknown[]) => any) | undefined;
906
907
  "onExpand-change"?: ((expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any) | undefined;
@@ -908,7 +909,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
908
909
  "onChild-selection-change"?: ((parentKey: DataTableRowKey$1, childKeys: DataTableRowKey$1[], childRows: any[]) => any) | undefined;
909
910
  "onParent-child-link-change"?: ((parentKey: DataTableRowKey$1, shouldSelect: boolean) => any) | undefined;
910
911
  "onUpdate:data"?: ((data: DataRecord[]) => any) | undefined;
911
- onSave?: ((rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
912
912
  "onRow-add"?: ((newRow: DataRecord) => any) | undefined;
913
913
  "onRow-copy"?: ((originalRow: DataRecord, newRow: DataRecord) => any) | undefined;
914
914
  "onRow-move"?: ((row: DataRecord, fromIndex: number, toIndex: number) => any) | undefined;
@@ -1158,7 +1158,7 @@ declare function useTableManager(params: TableManagerParams): {
1158
1158
  cancel(): void; /** 保存编辑 */
1159
1159
  save(): Promise<void>; /** 是否正在编辑 */
1160
1160
  isEditing(rowKey: DataTableRowKey$1, columnKey?: string): boolean; /** 获取当前编辑数据 */
1161
- getEditingData(): DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
1161
+ getEditingData(): vue.Ref<Record<string, any>, Record<string, any>> | DataRecord | null;
1162
1162
  };
1163
1163
  expand: {
1164
1164
  /** 展开行 */row(rowKey: DataTableRowKey$1): Promise<void>; /** 折叠行 */
@@ -50,13 +50,13 @@ 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
- mode: RenderMode;
53
+ showBorder: boolean;
55
54
  label: string;
55
+ showLabel: boolean;
56
+ size: number;
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;
@@ -107,10 +107,10 @@ 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
+ height: number | string;
110
112
  disabled: boolean;
111
113
  readonly: boolean;
112
- height: number | string;
113
- width: number | string;
114
114
  showToolbar: boolean;
115
115
  maxHistory: number;
116
116
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -78,15 +78,15 @@ 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
- disabled: boolean;
82
81
  direction: SplitDirection;
83
- step: number;
82
+ disabled: boolean;
83
+ collapsible: boolean;
84
84
  defaultSize: number;
85
85
  minSize: number;
86
86
  maxSize: number;
87
- collapsible: boolean;
88
87
  showCollapseButton: boolean;
89
88
  gutterSize: number;
89
+ step: number;
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;
@@ -48,12 +48,11 @@ 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
54
  startPlaceholder: string;
54
55
  endPlaceholder: string;
55
- attrs: Record<string, any>;
56
- format: string;
57
56
  useHours: boolean;
58
57
  useMinutes: boolean;
59
58
  useSeconds: boolean;
@@ -62,6 +61,7 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
62
61
  secondStep: number;
63
62
  startTimeProps: Record<string, any>;
64
63
  endTimeProps: Record<string, any>;
64
+ attrs: Record<string, any>;
65
65
  defaultStartTime: number | null;
66
66
  defaultEndTime: number | null;
67
67
  defaultSingleTime: number | null;
@@ -102,13 +102,14 @@ declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {},
102
102
  "onNode-action"?: ((action: string, node: TreeNodeData) => any) | undefined;
103
103
  "onNode-drop"?: ((info: DropInfo) => any) | undefined;
104
104
  }>, {
105
+ showToolbar: boolean;
105
106
  mode: TreeMode;
106
- actions: ActionConfig[];
107
107
  labelField: string;
108
108
  keyField: string;
109
109
  childrenField: string;
110
- showToolbar: boolean;
111
110
  draggable: boolean;
111
+ actions: ActionConfig[];
112
+ defaultExpandAll: boolean;
112
113
  searchPattern: string;
113
114
  searchable: boolean;
114
115
  searchPlaceholder: string;
@@ -119,7 +120,6 @@ declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {},
119
120
  iconField: string;
120
121
  iconConfig: IconConfig;
121
122
  statusConfigs: StatusConfig[];
122
- defaultExpandAll: boolean;
123
123
  defaultExpandedKeys: (string | number)[];
124
124
  defaultSelectedKeys: (string | number)[];
125
125
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -239,20 +239,20 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
239
239
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
240
240
  "update:modelValue": (value: WorkflowData) => any;
241
241
  change: (value: WorkflowData) => any;
242
- "validate-error": (errors: ValidationError[]) => any;
243
- save: (data: WorkflowData) => any;
244
242
  "node-click": (node: WorkflowNode) => any;
243
+ save: (data: WorkflowData) => any;
245
244
  "edge-click": (edge: WorkflowEdge) => any;
245
+ "validate-error": (errors: ValidationError[]) => any;
246
246
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
247
247
  "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
248
248
  onChange?: ((value: WorkflowData) => any) | undefined;
249
- "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
250
- onSave?: ((data: WorkflowData) => any) | undefined;
251
249
  "onNode-click"?: ((node: WorkflowNode) => any) | undefined;
250
+ onSave?: ((data: WorkflowData) => any) | undefined;
252
251
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
252
+ "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
253
253
  }>, {
254
- readonly: boolean;
255
254
  theme: "light" | "dark";
255
+ readonly: boolean;
256
256
  users: User[];
257
257
  roles: Role[];
258
258
  departments: Department[];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.8.0",
6
+ "version": "0.8.1",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "type": "module",
9
9
  "main": "dist/index.cjs",