@robot-admin/naive-ui-components 0.17.1 → 0.17.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.
- package/CHANGELOG.md +18 -0
- package/dist/C_AntV.css +105 -105
- package/dist/C_AntV2.cjs +3 -3
- package/dist/C_AntV2.js +3 -3
- package/dist/C_AudioPlayer.css +53 -53
- package/dist/C_AudioPlayer2.cjs +1 -1
- package/dist/C_AudioPlayer2.js +1 -1
- package/dist/C_FilePreview.css +38 -38
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_FullCalendar.css +10 -11
- package/dist/C_FullCalendar2.cjs +1 -1
- package/dist/C_FullCalendar2.js +1 -1
- package/dist/C_Table.base.css +109 -109
- package/dist/C_Table.css +109 -109
- package/dist/C_Tabs.css +18 -18
- package/dist/C_TagsView.css +51 -51
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_VideoPlayer.css +20 -20
- package/dist/C_VideoPlayer2.cjs +2 -2
- package/dist/C_VideoPlayer2.js +3 -3
- package/dist/C_VtableGantt.css +44 -29
- package/dist/C_VtableGantt2.cjs +1 -1
- package/dist/C_VtableGantt2.js +1 -1
- package/dist/C_WorkFlow.css +111 -111
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants4.d.cts +6 -6
- package/dist/constants4.d.ts +6 -6
- package/dist/constants5.d.cts +11 -10
- package/dist/constants5.d.ts +11 -10
- package/dist/data.d.cts +13 -13
- package/dist/data.d.ts +13 -13
- package/dist/data2.cjs +1 -1
- package/dist/data2.js +1 -1
- package/dist/index.vue.d.cts +6 -6
- package/dist/index.vue.d.ts +6 -6
- package/dist/index10.vue.d.cts +5 -5
- package/dist/index10.vue.d.ts +4 -4
- package/dist/index11.vue.d.cts +4 -4
- package/dist/index11.vue.d.ts +6 -6
- package/dist/index12.vue.d.cts +6 -6
- package/dist/index13.vue.d.ts +5 -5
- package/dist/index14.vue.d.cts +5 -5
- package/dist/index14.vue.d.ts +5 -5
- package/dist/index15.vue.d.cts +5 -5
- package/dist/index15.vue.d.ts +2 -2
- package/dist/index16.vue.d.cts +2 -2
- package/dist/index17.vue.d.ts +1 -1
- package/dist/index18.vue.d.cts +1 -1
- package/dist/index18.vue.d.ts +6 -6
- package/dist/index19.vue.d.cts +6 -6
- package/dist/index19.vue.d.ts +5 -5
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +1 -1
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index22.vue.d.ts +2 -2
- package/dist/index23.vue.d.cts +1 -1
- package/dist/index23.vue.d.ts +1 -1
- package/dist/index25.vue.d.cts +8 -3
- package/dist/index25.vue.d.ts +8 -3
- package/dist/index27.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index28.vue.d.cts +4 -4
- package/dist/index28.vue.d.ts +4 -4
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index4.vue.d.cts +5 -5
- package/dist/index5.vue.d.ts +2 -2
- package/dist/index6.vue.d.cts +2 -2
- package/dist/index6.vue.d.ts +4 -4
- package/dist/index7.vue.d.cts +4 -4
- package/dist/index7.vue.d.ts +2 -2
- package/dist/index8.vue.d.cts +2 -2
- package/dist/index8.vue.d.ts +4 -4
- package/dist/index9.vue.d.cts +4 -4
- package/dist/index9.vue.d.ts +5 -5
- package/dist/mapUtils.d.cts +2 -2
- package/dist/mapUtils.d.ts +2 -2
- package/dist/presets.d.cts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/style.css +559 -545
- package/dist/useCalendarEvents.d.cts +10 -0
- package/dist/useCalendarEvents.d.ts +10 -0
- package/dist/useCollapsePanel.d.cts +3 -3
- package/dist/useCollapsePanel.d.ts +3 -3
- package/dist/useCropperCore.d.cts +5 -5
- package/dist/useCropperCore.d.ts +5 -5
- package/dist/useDraggableLayout.d.cts +7 -7
- package/dist/useDraggableLayout.d.ts +7 -7
- package/dist/useDynamicFormState.d.cts +3 -3
- package/dist/useDynamicFormState.d.ts +3 -3
- package/dist/useEdgeInteraction.d.cts +4 -2
- package/dist/useEdgeInteraction.d.ts +4 -2
- package/dist/useFullscreen.d.cts +5 -3
- package/dist/useFullscreen.d.ts +5 -3
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSearchState.d.cts +5 -5
- package/dist/useSearchState.d.ts +5 -5
- package/dist/useSignatureHistory.d.cts +6 -6
- package/dist/useSignatureHistory.d.ts +6 -6
- package/dist/useSplitResize.d.cts +8 -8
- package/dist/useSplitResize.d.ts +8 -8
- package/dist/useTableQuery.cjs +3 -3
- package/dist/useTableQuery.d.cts +12 -12
- package/dist/useTableQuery.d.ts +12 -12
- package/dist/useTableQuery.js +3 -3
- package/dist/useTimeSelection.d.cts +4 -4
- package/dist/useTimeSelection.d.ts +4 -4
- package/dist/useWorkflowValidation.d.cts +9 -4
- package/dist/useWorkflowValidation.d.ts +9 -4
- package/dist/verification.d.cts +5 -5
- package/dist/verification.d.ts +5 -5
- package/docs/components.en.md +4 -0
- package/docs/components.md +4 -0
- package/docs/guides/table-density.md +6 -0
- package/package.json +1 -1
package/dist/constants5.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { Ref, ShallowRef } from "vue";
|
|
2
|
+
import { MaybeRefOrGetter, Ref, ShallowRef } from "vue";
|
|
3
3
|
import * as xgplayer from "xgplayer";
|
|
4
4
|
import { IDefinition, IPlayerOptions } from "xgplayer";
|
|
5
5
|
|
|
@@ -257,32 +257,32 @@ interface VideoPlayerExpose {
|
|
|
257
257
|
type PlayerInstance = InstanceType<typeof xgplayer.default>;
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/components/C_VideoPlayer/index.vue.d.ts
|
|
260
|
-
declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
260
|
+
declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
261
261
|
error: (error: Error) => any;
|
|
262
|
-
ended: () => any;
|
|
263
262
|
ready: () => any;
|
|
263
|
+
ended: () => any;
|
|
264
264
|
stateChange: (state: PlayerState) => any;
|
|
265
|
-
timeUpdate: (currentTime: number, duration: number) => any;
|
|
266
265
|
qualityChange: (quality: QualityLevel) => any;
|
|
267
266
|
rateChange: (rate: number) => any;
|
|
268
267
|
fullscreenChange: (isFullscreen: boolean) => any;
|
|
269
268
|
bookmarkChange: (bookmarks: Bookmark[]) => any;
|
|
270
|
-
quizAnswer: (quizId: string, answer: string | string[], isCorrect: boolean) => any;
|
|
271
269
|
chapterChange: (chapter: Chapter) => any;
|
|
272
270
|
progressUpdate: (data: ProgressData) => any;
|
|
271
|
+
quizAnswer: (quizId: string, answer: string | string[], isCorrect: boolean) => any;
|
|
272
|
+
timeUpdate: (currentTime: number, duration: number) => any;
|
|
273
273
|
}, string, vue.PublicProps, Readonly<VideoPlayerProps> & Readonly<{
|
|
274
274
|
onError?: ((error: Error) => any) | undefined;
|
|
275
|
-
onEnded?: (() => any) | undefined;
|
|
276
275
|
onReady?: (() => any) | undefined;
|
|
276
|
+
onEnded?: (() => any) | undefined;
|
|
277
277
|
onStateChange?: ((state: PlayerState) => any) | undefined;
|
|
278
|
-
onTimeUpdate?: ((currentTime: number, duration: number) => any) | undefined;
|
|
279
278
|
onQualityChange?: ((quality: QualityLevel) => any) | undefined;
|
|
280
279
|
onRateChange?: ((rate: number) => any) | undefined;
|
|
281
280
|
onFullscreenChange?: ((isFullscreen: boolean) => any) | undefined;
|
|
282
281
|
onBookmarkChange?: ((bookmarks: Bookmark[]) => any) | undefined;
|
|
283
|
-
onQuizAnswer?: ((quizId: string, answer: string | string[], isCorrect: boolean) => any) | undefined;
|
|
284
282
|
onChapterChange?: ((chapter: Chapter) => any) | undefined;
|
|
285
283
|
onProgressUpdate?: ((data: ProgressData) => any) | undefined;
|
|
284
|
+
onQuizAnswer?: ((quizId: string, answer: string | string[], isCorrect: boolean) => any) | undefined;
|
|
285
|
+
onTimeUpdate?: ((currentTime: number, duration: number) => any) | undefined;
|
|
286
286
|
}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
287
287
|
declare const _default: typeof __VLS_export;
|
|
288
288
|
//#endregion
|
|
@@ -330,7 +330,7 @@ declare function usePlaybackControl(playerRef: ShallowRef<PlayerInstance | null>
|
|
|
330
330
|
* - localStorage 持久化
|
|
331
331
|
* - 按时间排序
|
|
332
332
|
*/
|
|
333
|
-
declare function useBookmarks(url: Ref<string>, currentTime: Ref<number>, seekFn: (time: number) => void, initialBookmarks?: Bookmark[]): {
|
|
333
|
+
declare function useBookmarks(url: Ref<string>, currentTime: Ref<number>, seekFn: (time: number) => void, initialBookmarks?: MaybeRefOrGetter<Bookmark[] | undefined>): {
|
|
334
334
|
bookmarks: Ref<{
|
|
335
335
|
id: string;
|
|
336
336
|
time: number;
|
|
@@ -375,7 +375,7 @@ declare function useChapters(chapters: Ref<Chapter[]>, currentTime: Ref<number>,
|
|
|
375
375
|
//#endregion
|
|
376
376
|
//#region src/components/C_VideoPlayer/composables/useSubtitle.d.ts
|
|
377
377
|
/** 字幕管理:复用轨道请求,且迟到的请求不能覆盖新的语言选择。 */
|
|
378
|
-
declare function useSubtitle(playerRef: ShallowRef<PlayerInstance | null>, subtitles?: SubtitleTrack[]
|
|
378
|
+
declare function useSubtitle(playerRef: ShallowRef<PlayerInstance | null>, subtitles?: MaybeRefOrGetter<SubtitleTrack[] | undefined>, currentTime?: Ref<number>): {
|
|
379
379
|
activeLanguage: Ref<string | null, string | null>;
|
|
380
380
|
subtitleList: Ref<{
|
|
381
381
|
language: string;
|
|
@@ -392,6 +392,7 @@ declare function useSubtitle(playerRef: ShallowRef<PlayerInstance | null>, subti
|
|
|
392
392
|
hasSubtitles: vue.ComputedRef<boolean>;
|
|
393
393
|
isLoading: Ref<boolean, boolean>;
|
|
394
394
|
initSubtitles: () => Promise<void>;
|
|
395
|
+
resetSubtitles: () => void;
|
|
395
396
|
switchSubtitle: (language: string) => Promise<void>;
|
|
396
397
|
closeSubtitle: () => void;
|
|
397
398
|
toggleSubtitle: () => void;
|
package/dist/constants5.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { Ref, ShallowRef } from "vue";
|
|
2
|
+
import { MaybeRefOrGetter, Ref, ShallowRef } from "vue";
|
|
3
3
|
import * as xgplayer from "xgplayer";
|
|
4
4
|
import { IDefinition, IPlayerOptions } from "xgplayer";
|
|
5
5
|
|
|
@@ -257,32 +257,32 @@ interface VideoPlayerExpose {
|
|
|
257
257
|
type PlayerInstance = InstanceType<typeof xgplayer.default>;
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/components/C_VideoPlayer/index.vue.d.ts
|
|
260
|
-
declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
260
|
+
declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
261
261
|
error: (error: Error) => any;
|
|
262
|
-
ended: () => any;
|
|
263
262
|
ready: () => any;
|
|
263
|
+
ended: () => any;
|
|
264
264
|
stateChange: (state: PlayerState) => any;
|
|
265
|
-
timeUpdate: (currentTime: number, duration: number) => any;
|
|
266
265
|
qualityChange: (quality: QualityLevel) => any;
|
|
267
266
|
rateChange: (rate: number) => any;
|
|
268
267
|
fullscreenChange: (isFullscreen: boolean) => any;
|
|
269
268
|
bookmarkChange: (bookmarks: Bookmark[]) => any;
|
|
270
|
-
quizAnswer: (quizId: string, answer: string | string[], isCorrect: boolean) => any;
|
|
271
269
|
chapterChange: (chapter: Chapter) => any;
|
|
272
270
|
progressUpdate: (data: ProgressData) => any;
|
|
271
|
+
quizAnswer: (quizId: string, answer: string | string[], isCorrect: boolean) => any;
|
|
272
|
+
timeUpdate: (currentTime: number, duration: number) => any;
|
|
273
273
|
}, string, vue.PublicProps, Readonly<VideoPlayerProps> & Readonly<{
|
|
274
274
|
onError?: ((error: Error) => any) | undefined;
|
|
275
|
-
onEnded?: (() => any) | undefined;
|
|
276
275
|
onReady?: (() => any) | undefined;
|
|
276
|
+
onEnded?: (() => any) | undefined;
|
|
277
277
|
onStateChange?: ((state: PlayerState) => any) | undefined;
|
|
278
|
-
onTimeUpdate?: ((currentTime: number, duration: number) => any) | undefined;
|
|
279
278
|
onQualityChange?: ((quality: QualityLevel) => any) | undefined;
|
|
280
279
|
onRateChange?: ((rate: number) => any) | undefined;
|
|
281
280
|
onFullscreenChange?: ((isFullscreen: boolean) => any) | undefined;
|
|
282
281
|
onBookmarkChange?: ((bookmarks: Bookmark[]) => any) | undefined;
|
|
283
|
-
onQuizAnswer?: ((quizId: string, answer: string | string[], isCorrect: boolean) => any) | undefined;
|
|
284
282
|
onChapterChange?: ((chapter: Chapter) => any) | undefined;
|
|
285
283
|
onProgressUpdate?: ((data: ProgressData) => any) | undefined;
|
|
284
|
+
onQuizAnswer?: ((quizId: string, answer: string | string[], isCorrect: boolean) => any) | undefined;
|
|
285
|
+
onTimeUpdate?: ((currentTime: number, duration: number) => any) | undefined;
|
|
286
286
|
}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
287
287
|
declare const _default: typeof __VLS_export;
|
|
288
288
|
//#endregion
|
|
@@ -330,7 +330,7 @@ declare function usePlaybackControl(playerRef: ShallowRef<PlayerInstance | null>
|
|
|
330
330
|
* - localStorage 持久化
|
|
331
331
|
* - 按时间排序
|
|
332
332
|
*/
|
|
333
|
-
declare function useBookmarks(url: Ref<string>, currentTime: Ref<number>, seekFn: (time: number) => void, initialBookmarks?: Bookmark[]): {
|
|
333
|
+
declare function useBookmarks(url: Ref<string>, currentTime: Ref<number>, seekFn: (time: number) => void, initialBookmarks?: MaybeRefOrGetter<Bookmark[] | undefined>): {
|
|
334
334
|
bookmarks: Ref<{
|
|
335
335
|
id: string;
|
|
336
336
|
time: number;
|
|
@@ -375,7 +375,7 @@ declare function useChapters(chapters: Ref<Chapter[]>, currentTime: Ref<number>,
|
|
|
375
375
|
//#endregion
|
|
376
376
|
//#region src/components/C_VideoPlayer/composables/useSubtitle.d.ts
|
|
377
377
|
/** 字幕管理:复用轨道请求,且迟到的请求不能覆盖新的语言选择。 */
|
|
378
|
-
declare function useSubtitle(playerRef: ShallowRef<PlayerInstance | null>, subtitles?: SubtitleTrack[]
|
|
378
|
+
declare function useSubtitle(playerRef: ShallowRef<PlayerInstance | null>, subtitles?: MaybeRefOrGetter<SubtitleTrack[] | undefined>, currentTime?: Ref<number>): {
|
|
379
379
|
activeLanguage: Ref<string | null, string | null>;
|
|
380
380
|
subtitleList: Ref<{
|
|
381
381
|
language: string;
|
|
@@ -392,6 +392,7 @@ declare function useSubtitle(playerRef: ShallowRef<PlayerInstance | null>, subti
|
|
|
392
392
|
hasSubtitles: vue.ComputedRef<boolean>;
|
|
393
393
|
isLoading: Ref<boolean, boolean>;
|
|
394
394
|
initSubtitles: () => Promise<void>;
|
|
395
|
+
resetSubtitles: () => void;
|
|
395
396
|
switchSubtitle: (language: string) => Promise<void>;
|
|
396
397
|
closeSubtitle: () => void;
|
|
397
398
|
toggleSubtitle: () => void;
|
package/dist/data.d.cts
CHANGED
|
@@ -65,28 +65,28 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_37>]?: (props: typeof _
|
|
|
65
65
|
declare const __VLS_base: vue.DefineComponent<CTabsProps, {
|
|
66
66
|
activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
|
|
67
67
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
68
|
-
close: (value: TabsValue) => any;
|
|
69
|
-
add: () => any;
|
|
70
|
-
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
71
68
|
"update:modelValue": (value: TabsValue) => any;
|
|
69
|
+
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
70
|
+
add: () => any;
|
|
71
|
+
close: (value: TabsValue) => any;
|
|
72
72
|
}, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
|
|
73
|
-
onClose?: ((value: TabsValue) => any) | undefined;
|
|
74
|
-
onAdd?: (() => any) | undefined;
|
|
75
|
-
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
76
73
|
"onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
|
|
74
|
+
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
75
|
+
onAdd?: (() => any) | undefined;
|
|
76
|
+
onClose?: ((value: TabsValue) => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
|
+
modelValue: TabsValue | null;
|
|
78
79
|
type: TabsType;
|
|
79
80
|
size: TabsSize;
|
|
80
|
-
addable: boolean;
|
|
81
|
-
animated: boolean;
|
|
82
|
-
closable: boolean;
|
|
83
|
-
placement: TabsPlacement;
|
|
84
|
-
displayDirective: TabsDisplayDirective;
|
|
85
|
-
modelValue: TabsValue | null;
|
|
86
|
-
items: readonly TabsItem[];
|
|
87
81
|
defaultValue: TabsValue | null;
|
|
82
|
+
items: readonly TabsItem[];
|
|
83
|
+
placement: TabsPlacement;
|
|
88
84
|
justifyContent: TabsJustifyContent;
|
|
85
|
+
animated: boolean;
|
|
86
|
+
closable: boolean;
|
|
87
|
+
addable: boolean;
|
|
89
88
|
tabsOnly: boolean;
|
|
89
|
+
displayDirective: TabsDisplayDirective;
|
|
90
90
|
paneClass: string;
|
|
91
91
|
paneStyle: string | vue.CSSProperties;
|
|
92
92
|
beforeChange: (target: TabsValue, current: TabsValue | null) => boolean | Promise<boolean>;
|
package/dist/data.d.ts
CHANGED
|
@@ -65,28 +65,28 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_37>]?: (props: typeof _
|
|
|
65
65
|
declare const __VLS_base: vue.DefineComponent<CTabsProps, {
|
|
66
66
|
activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
|
|
67
67
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
68
|
-
close: (value: TabsValue) => any;
|
|
69
|
-
add: () => any;
|
|
70
|
-
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
71
68
|
"update:modelValue": (value: TabsValue) => any;
|
|
69
|
+
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
70
|
+
add: () => any;
|
|
71
|
+
close: (value: TabsValue) => any;
|
|
72
72
|
}, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
|
|
73
|
-
onClose?: ((value: TabsValue) => any) | undefined;
|
|
74
|
-
onAdd?: (() => any) | undefined;
|
|
75
|
-
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
76
73
|
"onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
|
|
74
|
+
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
75
|
+
onAdd?: (() => any) | undefined;
|
|
76
|
+
onClose?: ((value: TabsValue) => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
|
+
modelValue: TabsValue | null;
|
|
78
79
|
type: TabsType;
|
|
79
80
|
size: TabsSize;
|
|
80
|
-
addable: boolean;
|
|
81
|
-
animated: boolean;
|
|
82
|
-
closable: boolean;
|
|
83
|
-
placement: TabsPlacement;
|
|
84
|
-
displayDirective: TabsDisplayDirective;
|
|
85
|
-
modelValue: TabsValue | null;
|
|
86
|
-
items: readonly TabsItem[];
|
|
87
81
|
defaultValue: TabsValue | null;
|
|
82
|
+
items: readonly TabsItem[];
|
|
83
|
+
placement: TabsPlacement;
|
|
88
84
|
justifyContent: TabsJustifyContent;
|
|
85
|
+
animated: boolean;
|
|
86
|
+
closable: boolean;
|
|
87
|
+
addable: boolean;
|
|
89
88
|
tabsOnly: boolean;
|
|
89
|
+
displayDirective: TabsDisplayDirective;
|
|
90
90
|
paneClass: string;
|
|
91
91
|
paneStyle: string | vue.CSSProperties;
|
|
92
92
|
beforeChange: (target: TabsValue, current: TabsValue | null) => boolean | Promise<boolean>;
|
package/dist/data2.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk.cjs`);const e=require(`./C_Icon2.cjs`),t=require(`./export-helper.cjs`);let n=require(`vue`),r=require(`naive-ui`);const i={key:1,class:`c-tabs__label`},a=(0,n.defineComponent)({name:`C_Tabs`,__name:`index`,props:{modelValue:{default:void 0},defaultValue:{default:void 0},items:{default:()=>[]},type:{default:`line`},size:{default:`small`},placement:{default:`top`},justifyContent:{default:`start`},animated:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},tabsOnly:{type:Boolean,default:!1},displayDirective:{default:`show:lazy`},paneClass:{default:void 0},paneStyle:{default:void 0},beforeChange:{type:Function,default:void 0}},emits:[`update:modelValue`,`change`,`close`,`add`],setup(t,{expose:a,emit:o}){let s=t,c=o,l=(0,n.defineComponent)({name:`CTabsRenderNode`,props:{render:{type:Function,required:!0},item:{type:Object,required:!0}},setup(e){return()=>e.render(e.item)}}),u=()=>s.items.find(e=>!e.disabled)?.key??null,
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./C_Icon2.cjs`),t=require(`./export-helper.cjs`);let n=require(`vue`),r=require(`naive-ui`);const i={key:1,class:`c-tabs__label`},a=(0,n.defineComponent)({name:`C_Tabs`,__name:`index`,props:{modelValue:{default:void 0},defaultValue:{default:void 0},items:{default:()=>[]},type:{default:`line`},size:{default:`small`},placement:{default:`top`},justifyContent:{default:`start`},animated:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},tabsOnly:{type:Boolean,default:!1},displayDirective:{default:`show:lazy`},paneClass:{default:void 0},paneStyle:{default:void 0},beforeChange:{type:Function,default:void 0}},emits:[`update:modelValue`,`change`,`close`,`add`],setup(t,{expose:a,emit:o}){let s=t,c=o,l=(0,n.defineComponent)({name:`CTabsRenderNode`,props:{render:{type:Function,required:!0},item:{type:Object,required:!0}},setup(e){return()=>e.render(e.item)}}),u=e=>e!=null&&s.items.some(t=>t.key===e&&!t.disabled),d=()=>u(s.defaultValue)?s.defaultValue:s.items.find(e=>!e.disabled)?.key??null,f=(0,n.ref)(d()),p=0,m=!1,h=(0,n.computed)({get:()=>{let e=s.modelValue===void 0?f.value:s.modelValue;return e===null||u(e)?e:d()},set:e=>{e!==null&&!u(e)||h.value!==e&&(s.modelValue===void 0&&(f.value=e),e!==null&&(c(`update:modelValue`,e),c(`change`,e,s.items.find(t=>t.key===e))))}}),g=(0,n.computed)(()=>h.value),_=e=>{h.value=e},v=async(e,t)=>{let n=++p;if(!u(e))return!1;try{return(!s.beforeChange||await s.beforeChange(e,t??null)!==!1)&&!m&&n===p&&u(e)&&h.value===(t??null)}catch{return!1}},y=e=>`pane-${String(e.key)}`;return(0,n.watch)([()=>s.modelValue,()=>s.defaultValue,()=>s.items.map(e=>[e.key,e.disabled])],()=>{let e=s.modelValue===void 0?f.value:s.modelValue;if(s.modelValue!==void 0&&(f.value=s.modelValue),e===null&&s.modelValue===null||u(e))return;let t=d();e!==t&&(p+=1,s.modelValue===void 0&&(f.value=t),t!==null&&(c(`update:modelValue`,t),c(`change`,t,s.items.find(e=>e.key===t))))},{deep:!0,immediate:!0}),(0,n.onBeforeUnmount)(()=>{m=!0,p+=1}),a({activeValue:h}),(a,o)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.NTabs),{value:g.value,"onUpdate:value":_,class:(0,n.normalizeClass)([`c-tabs`,[`is-${t.type}`,{"is-tabs-only":t.tabsOnly}]]),type:t.type,size:t.size,placement:t.placement,"justify-content":t.justifyContent,animated:t.animated,closable:t.closable,addable:t.addable,"on-before-leave":v,onClose:o[0]||=e=>c(`close`,e),onAdd:o[1]||=e=>c(`add`)},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.items,o=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.NTabPane),{key:o.key,name:o.key,disabled:o.disabled,closable:o.closable,"display-directive":t.displayDirective,class:(0,n.normalizeClass)(t.paneClass),style:(0,n.normalizeStyle)(t.paneStyle)},{tab:(0,n.withCtx)(()=>[(0,n.renderSlot)(a.$slots,`tab`,{item:o,active:h.value===o.key},()=>[o.renderTab?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(l),{key:0,render:o.renderTab,item:o},null,8,[`render`,`item`])):((0,n.openBlock)(),(0,n.createElementBlock)(`span`,i,[o.icon?((0,n.openBlock)(),(0,n.createBlock)(e.t,{key:0,class:`c-tabs__icon`,name:o.icon,size:14},null,8,[`name`])):(0,n.createCommentVNode)(`v-if`,!0),(0,n.createElementVNode)(`span`,null,(0,n.toDisplayString)(o.label),1),o.badge===void 0?(0,n.createCommentVNode)(`v-if`,!0):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.NBadge),{key:1,class:`c-tabs__badge`,value:o.badge,type:o.badgeType||`info`},null,8,[`value`,`type`]))]))],!0)]),default:(0,n.withCtx)(()=>[t.tabsOnly?(0,n.createCommentVNode)(`v-if`,!0):(0,n.renderSlot)(a.$slots,y(o),{item:o,active:h.value===o.key},()=>[o.render?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(l),{key:0,render:o.render,item:o},null,8,[`render`,`item`])):(0,n.renderSlot)(a.$slots,`pane`,{item:o,active:h.value===o.key},void 0,!0,1)],!0,0)]),_:2},1032,[`name`,`disabled`,`closable`,`display-directive`,`class`,`style`]))),128))]),_:3},8,[`value`,`class`,`type`,`size`,`placement`,`justify-content`,`animated`,`closable`,`addable`]))}});var o=t.t(a,[[`__scopeId`,`data-v-2d475220`]]);function s(e){let t=new Set;for(let n of e){if(typeof n.key!=`string`&&typeof n.key!=`number`)throw TypeError(`C_Tabs 的 item.key 必须是字符串或数字`);if(typeof n.key==`string`&&n.key.trim().length===0)throw TypeError(`C_Tabs 的 item.key 不能为空`);if(t.has(n.key))throw RangeError(`C_Tabs 存在重复 key: ${String(n.key)}`);if(typeof n.label!=`string`||n.label.trim().length===0)throw TypeError(`C_Tabs 的 ${String(n.key)} 缺少有效 label`);t.add(n.key)}return e}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
package/dist/data2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./C_Icon2.js";import{t}from"./export-helper.js";import{Fragment as n,computed as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,defineComponent as c,normalizeClass as l,normalizeStyle as u,
|
|
1
|
+
import{t as e}from"./C_Icon2.js";import{t}from"./export-helper.js";import{Fragment as n,computed as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,defineComponent as c,normalizeClass as l,normalizeStyle as u,onBeforeUnmount as d,openBlock as f,ref as p,renderList as m,renderSlot as h,toDisplayString as g,unref as _,watch as v,withCtx as y}from"vue";import{NBadge as b,NTabPane as x,NTabs as S}from"naive-ui";const C={key:1,class:`c-tabs__label`};var w=t(c({name:`C_Tabs`,__name:`index`,props:{modelValue:{default:void 0},defaultValue:{default:void 0},items:{default:()=>[]},type:{default:`line`},size:{default:`small`},placement:{default:`top`},justifyContent:{default:`start`},animated:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},tabsOnly:{type:Boolean,default:!1},displayDirective:{default:`show:lazy`},paneClass:{default:void 0},paneStyle:{default:void 0},beforeChange:{type:Function,default:void 0}},emits:[`update:modelValue`,`change`,`close`,`add`],setup(t,{expose:w,emit:T}){let E=t,D=T,O=c({name:`CTabsRenderNode`,props:{render:{type:Function,required:!0},item:{type:Object,required:!0}},setup(e){return()=>e.render(e.item)}}),k=e=>e!=null&&E.items.some(t=>t.key===e&&!t.disabled),A=()=>k(E.defaultValue)?E.defaultValue:E.items.find(e=>!e.disabled)?.key??null,j=p(A()),M=0,N=!1,P=r({get:()=>{let e=E.modelValue===void 0?j.value:E.modelValue;return e===null||k(e)?e:A()},set:e=>{e!==null&&!k(e)||P.value!==e&&(E.modelValue===void 0&&(j.value=e),e!==null&&(D(`update:modelValue`,e),D(`change`,e,E.items.find(t=>t.key===e))))}}),F=r(()=>P.value),I=e=>{P.value=e},L=async(e,t)=>{let n=++M;if(!k(e))return!1;try{return(!E.beforeChange||await E.beforeChange(e,t??null)!==!1)&&!N&&n===M&&k(e)&&P.value===(t??null)}catch{return!1}},R=e=>`pane-${String(e.key)}`;return v([()=>E.modelValue,()=>E.defaultValue,()=>E.items.map(e=>[e.key,e.disabled])],()=>{let e=E.modelValue===void 0?j.value:E.modelValue;if(E.modelValue!==void 0&&(j.value=E.modelValue),e===null&&E.modelValue===null||k(e))return;let t=A();e!==t&&(M+=1,E.modelValue===void 0&&(j.value=t),t!==null&&(D(`update:modelValue`,t),D(`change`,t,E.items.find(e=>e.key===t))))},{deep:!0,immediate:!0}),d(()=>{N=!0,M+=1}),w({activeValue:P}),(r,c)=>(f(),i(_(S),{value:F.value,"onUpdate:value":I,class:l([`c-tabs`,[`is-${t.type}`,{"is-tabs-only":t.tabsOnly}]]),type:t.type,size:t.size,placement:t.placement,"justify-content":t.justifyContent,animated:t.animated,closable:t.closable,addable:t.addable,"on-before-leave":L,onClose:c[0]||=e=>D(`close`,e),onAdd:c[1]||=e=>D(`add`)},{default:y(()=>[(f(!0),o(n,null,m(t.items,n=>(f(),i(_(x),{key:n.key,name:n.key,disabled:n.disabled,closable:n.closable,"display-directive":t.displayDirective,class:l(t.paneClass),style:u(t.paneStyle)},{tab:y(()=>[h(r.$slots,`tab`,{item:n,active:P.value===n.key},()=>[n.renderTab?(f(),i(_(O),{key:0,render:n.renderTab,item:n},null,8,[`render`,`item`])):(f(),o(`span`,C,[n.icon?(f(),i(e,{key:0,class:`c-tabs__icon`,name:n.icon,size:14},null,8,[`name`])):a(`v-if`,!0),s(`span`,null,g(n.label),1),n.badge===void 0?a(`v-if`,!0):(f(),i(_(b),{key:1,class:`c-tabs__badge`,value:n.badge,type:n.badgeType||`info`},null,8,[`value`,`type`]))]))],!0)]),default:y(()=>[t.tabsOnly?a(`v-if`,!0):h(r.$slots,R(n),{item:n,active:P.value===n.key},()=>[n.render?(f(),i(_(O),{key:0,render:n.render,item:n},null,8,[`render`,`item`])):h(r.$slots,`pane`,{item:n,active:P.value===n.key},void 0,!0,1)],!0,0)]),_:2},1032,[`name`,`disabled`,`closable`,`display-directive`,`class`,`style`]))),128))]),_:3},8,[`value`,`class`,`type`,`size`,`placement`,`justify-content`,`animated`,`closable`,`addable`]))}}),[[`__scopeId`,`data-v-2d475220`]]);function T(e){let t=new Set;for(let n of e){if(typeof n.key!=`string`&&typeof n.key!=`number`)throw TypeError(`C_Tabs 的 item.key 必须是字符串或数字`);if(typeof n.key==`string`&&n.key.trim().length===0)throw TypeError(`C_Tabs 的 item.key 不能为空`);if(t.has(n.key))throw RangeError(`C_Tabs 存在重复 key: ${String(n.key)}`);if(typeof n.label!=`string`||n.label.trim().length===0)throw TypeError(`C_Tabs 的 ${String(n.key)} 缺少有效 label`);t.add(n.key)}return e}export{w as n,T as t};
|
package/dist/index.vue.d.cts
CHANGED
|
@@ -61,23 +61,23 @@ type __VLS_Props = {
|
|
|
61
61
|
};
|
|
62
62
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
63
63
|
error: (error: unknown) => any;
|
|
64
|
-
ended: (index: number) => any;
|
|
65
|
-
pause: () => any;
|
|
66
64
|
play: (index: number) => any;
|
|
65
|
+
pause: () => any;
|
|
66
|
+
ended: (index: number) => any;
|
|
67
67
|
modeChange: (mode: string) => any;
|
|
68
68
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
69
69
|
onError?: ((error: unknown) => any) | undefined;
|
|
70
|
-
onEnded?: ((index: number) => any) | undefined;
|
|
71
|
-
onPause?: (() => any) | undefined;
|
|
72
70
|
onPlay?: ((index: number) => any) | undefined;
|
|
71
|
+
onPause?: (() => any) | undefined;
|
|
72
|
+
onEnded?: ((index: number) => any) | undefined;
|
|
73
73
|
onModeChange?: ((mode: string) => any) | undefined;
|
|
74
74
|
}>, {
|
|
75
|
+
autoplay: boolean;
|
|
76
|
+
mode: "loop" | "list" | "single" | "shuffle";
|
|
75
77
|
theme: "default" | "minimal";
|
|
76
|
-
mode: "single" | "list" | "loop" | "shuffle";
|
|
77
78
|
initialIndex: number;
|
|
78
79
|
showPlaylist: boolean;
|
|
79
80
|
showCover: boolean;
|
|
80
|
-
autoplay: boolean;
|
|
81
81
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
82
82
|
declare const _default: typeof __VLS_export;
|
|
83
83
|
//#endregion
|
package/dist/index.vue.d.ts
CHANGED
|
@@ -61,23 +61,23 @@ type __VLS_Props = {
|
|
|
61
61
|
};
|
|
62
62
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
63
63
|
error: (error: unknown) => any;
|
|
64
|
-
ended: (index: number) => any;
|
|
65
|
-
pause: () => any;
|
|
66
64
|
play: (index: number) => any;
|
|
65
|
+
pause: () => any;
|
|
66
|
+
ended: (index: number) => any;
|
|
67
67
|
modeChange: (mode: string) => any;
|
|
68
68
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
69
69
|
onError?: ((error: unknown) => any) | undefined;
|
|
70
|
-
onEnded?: ((index: number) => any) | undefined;
|
|
71
|
-
onPause?: (() => any) | undefined;
|
|
72
70
|
onPlay?: ((index: number) => any) | undefined;
|
|
71
|
+
onPause?: (() => any) | undefined;
|
|
72
|
+
onEnded?: ((index: number) => any) | undefined;
|
|
73
73
|
onModeChange?: ((mode: string) => any) | undefined;
|
|
74
74
|
}>, {
|
|
75
|
+
autoplay: boolean;
|
|
76
|
+
mode: "loop" | "list" | "single" | "shuffle";
|
|
75
77
|
theme: "default" | "minimal";
|
|
76
|
-
mode: "single" | "list" | "loop" | "shuffle";
|
|
77
78
|
initialIndex: number;
|
|
78
79
|
showPlaylist: boolean;
|
|
79
80
|
showCover: boolean;
|
|
80
|
-
autoplay: boolean;
|
|
81
81
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
82
82
|
declare const _default: typeof __VLS_export;
|
|
83
83
|
//#endregion
|
package/dist/index10.vue.d.cts
CHANGED
|
@@ -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
|
-
select: (item: ContextMenuItem) => any;
|
|
66
64
|
open: (position: {
|
|
67
65
|
x: number;
|
|
68
66
|
y: number;
|
|
69
67
|
}) => any;
|
|
68
|
+
close: () => any;
|
|
69
|
+
select: (item: ContextMenuItem) => any;
|
|
70
70
|
}, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
|
|
71
|
-
onClose?: (() => any) | undefined;
|
|
72
|
-
onSelect?: ((item: ContextMenuItem) => any) | undefined;
|
|
73
71
|
onOpen?: ((position: {
|
|
74
72
|
x: number;
|
|
75
73
|
y: number;
|
|
76
74
|
}) => any) | undefined;
|
|
75
|
+
onClose?: (() => any) | undefined;
|
|
76
|
+
onSelect?: ((item: ContextMenuItem) => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
78
|
disabled: boolean;
|
|
79
|
+
items: ContextMenuItem[];
|
|
79
80
|
zIndex: number;
|
|
80
81
|
minWidth: number;
|
|
81
82
|
maxWidth: number;
|
|
82
|
-
items: ContextMenuItem[];
|
|
83
83
|
subMenuPlacement: "right" | "left";
|
|
84
84
|
autoClose: boolean;
|
|
85
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index10.vue.d.ts
CHANGED
|
@@ -43,25 +43,25 @@ interface DateExpose {
|
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/components/C_Date/index.vue.d.ts
|
|
45
45
|
declare const __VLS_export: vue.DefineComponent<DateProps, DateExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
46
|
-
change: (value: DateModelValue) => any;
|
|
47
46
|
"update:modelValue": (value: DateModelValue) => any;
|
|
47
|
+
change: (value: DateModelValue) => any;
|
|
48
48
|
"update:singleDate": (value: DateValue) => any;
|
|
49
49
|
"update:singleDateTime": (value: DateValue) => any;
|
|
50
50
|
"update:dateRange": (value: DateRangeValue) => any;
|
|
51
51
|
"update:dateTimeRange": (value: DateRangeValue) => any;
|
|
52
52
|
"update:smartRange": (value: DateRangeValue) => any;
|
|
53
53
|
}, string, vue.PublicProps, Readonly<DateProps> & Readonly<{
|
|
54
|
-
onChange?: ((value: DateModelValue) => any) | undefined;
|
|
55
54
|
"onUpdate:modelValue"?: ((value: DateModelValue) => any) | undefined;
|
|
55
|
+
onChange?: ((value: DateModelValue) => any) | undefined;
|
|
56
56
|
"onUpdate:singleDate"?: ((value: DateValue) => any) | undefined;
|
|
57
57
|
"onUpdate:singleDateTime"?: ((value: DateValue) => any) | undefined;
|
|
58
58
|
"onUpdate:dateRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
59
59
|
"onUpdate:dateTimeRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
60
60
|
"onUpdate:smartRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
61
61
|
}>, {
|
|
62
|
-
placeholder: string;
|
|
63
|
-
mode: DatePickerMode;
|
|
64
62
|
disabled: boolean;
|
|
63
|
+
mode: DatePickerMode;
|
|
64
|
+
placeholder: string;
|
|
65
65
|
startPlaceholder: string;
|
|
66
66
|
endPlaceholder: string;
|
|
67
67
|
disabledBeforeToday: boolean;
|
package/dist/index11.vue.d.cts
CHANGED
|
@@ -43,25 +43,25 @@ interface DateExpose {
|
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/components/C_Date/index.vue.d.ts
|
|
45
45
|
declare const __VLS_export: vue.DefineComponent<DateProps, DateExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
46
|
-
change: (value: DateModelValue) => any;
|
|
47
46
|
"update:modelValue": (value: DateModelValue) => any;
|
|
47
|
+
change: (value: DateModelValue) => any;
|
|
48
48
|
"update:singleDate": (value: DateValue) => any;
|
|
49
49
|
"update:singleDateTime": (value: DateValue) => any;
|
|
50
50
|
"update:dateRange": (value: DateRangeValue) => any;
|
|
51
51
|
"update:dateTimeRange": (value: DateRangeValue) => any;
|
|
52
52
|
"update:smartRange": (value: DateRangeValue) => any;
|
|
53
53
|
}, string, vue.PublicProps, Readonly<DateProps> & Readonly<{
|
|
54
|
-
onChange?: ((value: DateModelValue) => any) | undefined;
|
|
55
54
|
"onUpdate:modelValue"?: ((value: DateModelValue) => any) | undefined;
|
|
55
|
+
onChange?: ((value: DateModelValue) => any) | undefined;
|
|
56
56
|
"onUpdate:singleDate"?: ((value: DateValue) => any) | undefined;
|
|
57
57
|
"onUpdate:singleDateTime"?: ((value: DateValue) => any) | undefined;
|
|
58
58
|
"onUpdate:dateRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
59
59
|
"onUpdate:dateTimeRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
60
60
|
"onUpdate:smartRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
61
61
|
}>, {
|
|
62
|
-
placeholder: string;
|
|
63
|
-
mode: DatePickerMode;
|
|
64
62
|
disabled: boolean;
|
|
63
|
+
mode: DatePickerMode;
|
|
64
|
+
placeholder: string;
|
|
65
65
|
startPlaceholder: string;
|
|
66
66
|
endPlaceholder: string;
|
|
67
67
|
disabledBeforeToday: boolean;
|
package/dist/index11.vue.d.ts
CHANGED
|
@@ -42,22 +42,22 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
42
42
|
} | null>>;
|
|
43
43
|
isInitialized: Readonly<vue.Ref<boolean, boolean>>;
|
|
44
44
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
45
|
-
error: (error: Error) => any;
|
|
46
45
|
"update:modelValue": (value: string) => any;
|
|
46
|
+
error: (error: Error) => any;
|
|
47
47
|
"editor-mounted": (editor: EditorInstance) => any;
|
|
48
48
|
"editor-change": (html: string) => any;
|
|
49
49
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
50
|
-
onError?: ((error: Error) => any) | undefined;
|
|
51
50
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
51
|
+
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
"onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
|
|
53
53
|
"onEditor-change"?: ((html: string) => any) | undefined;
|
|
54
54
|
}>, {
|
|
55
|
-
|
|
56
|
-
theme: "light" | "dark";
|
|
57
|
-
height: number;
|
|
55
|
+
modelValue: string;
|
|
58
56
|
disabled: boolean;
|
|
57
|
+
height: number;
|
|
58
|
+
theme: "light" | "dark";
|
|
59
|
+
placeholder: string;
|
|
59
60
|
readonly: boolean;
|
|
60
|
-
modelValue: string;
|
|
61
61
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
62
62
|
declare const _default: typeof __VLS_export;
|
|
63
63
|
//#endregion
|
package/dist/index12.vue.d.cts
CHANGED
|
@@ -42,22 +42,22 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
42
42
|
} | null>>;
|
|
43
43
|
isInitialized: Readonly<vue.Ref<boolean, boolean>>;
|
|
44
44
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
45
|
-
error: (error: Error) => any;
|
|
46
45
|
"update:modelValue": (value: string) => any;
|
|
46
|
+
error: (error: Error) => any;
|
|
47
47
|
"editor-mounted": (editor: EditorInstance) => any;
|
|
48
48
|
"editor-change": (html: string) => any;
|
|
49
49
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
50
|
-
onError?: ((error: Error) => any) | undefined;
|
|
51
50
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
51
|
+
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
"onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
|
|
53
53
|
"onEditor-change"?: ((html: string) => any) | undefined;
|
|
54
54
|
}>, {
|
|
55
|
-
|
|
56
|
-
theme: "light" | "dark";
|
|
57
|
-
height: number;
|
|
55
|
+
modelValue: string;
|
|
58
56
|
disabled: boolean;
|
|
57
|
+
height: number;
|
|
58
|
+
theme: "light" | "dark";
|
|
59
|
+
placeholder: string;
|
|
59
60
|
readonly: boolean;
|
|
60
|
-
modelValue: string;
|
|
61
61
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
62
62
|
declare const _default: typeof __VLS_export;
|
|
63
63
|
//#endregion
|
package/dist/index13.vue.d.ts
CHANGED
|
@@ -97,20 +97,21 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
|
|
|
97
97
|
resetCompleted: () => void;
|
|
98
98
|
isCompleted: () => boolean;
|
|
99
99
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
100
|
+
error: (error: unknown) => any;
|
|
101
|
+
close: (currentStep: number) => any;
|
|
100
102
|
start: () => any;
|
|
101
103
|
complete: () => any;
|
|
102
|
-
close: (currentStep: number) => any;
|
|
103
104
|
skip: (currentStep: number) => any;
|
|
104
105
|
"step-change": (stepIndex: number, step: GuideStep) => any;
|
|
105
|
-
error: (error: unknown) => any;
|
|
106
106
|
}, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
|
|
107
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
108
|
+
onClose?: ((currentStep: number) => any) | undefined;
|
|
107
109
|
onStart?: (() => any) | undefined;
|
|
108
110
|
onComplete?: (() => any) | undefined;
|
|
109
|
-
onClose?: ((currentStep: number) => any) | undefined;
|
|
110
111
|
onSkip?: ((currentStep: number) => any) | undefined;
|
|
111
112
|
"onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
|
|
112
|
-
onError?: ((error: unknown) => any) | undefined;
|
|
113
113
|
}>, {
|
|
114
|
+
keyboard: boolean;
|
|
114
115
|
steps: GuideStep[];
|
|
115
116
|
doneBtnText: string;
|
|
116
117
|
nextBtnText: string;
|
|
@@ -118,7 +119,6 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
|
|
|
118
119
|
showSkipButton: boolean;
|
|
119
120
|
skipBtnText: string;
|
|
120
121
|
showProgress: boolean;
|
|
121
|
-
keyboard: boolean;
|
|
122
122
|
animate: boolean;
|
|
123
123
|
allowClose: boolean;
|
|
124
124
|
skipMissingElements: boolean;
|
package/dist/index14.vue.d.cts
CHANGED
|
@@ -97,20 +97,21 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
|
|
|
97
97
|
resetCompleted: () => void;
|
|
98
98
|
isCompleted: () => boolean;
|
|
99
99
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
100
|
+
error: (error: unknown) => any;
|
|
101
|
+
close: (currentStep: number) => any;
|
|
100
102
|
start: () => any;
|
|
101
103
|
complete: () => any;
|
|
102
|
-
close: (currentStep: number) => any;
|
|
103
104
|
skip: (currentStep: number) => any;
|
|
104
105
|
"step-change": (stepIndex: number, step: GuideStep) => any;
|
|
105
|
-
error: (error: unknown) => any;
|
|
106
106
|
}, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
|
|
107
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
108
|
+
onClose?: ((currentStep: number) => any) | undefined;
|
|
107
109
|
onStart?: (() => any) | undefined;
|
|
108
110
|
onComplete?: (() => any) | undefined;
|
|
109
|
-
onClose?: ((currentStep: number) => any) | undefined;
|
|
110
111
|
onSkip?: ((currentStep: number) => any) | undefined;
|
|
111
112
|
"onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
|
|
112
|
-
onError?: ((error: unknown) => any) | undefined;
|
|
113
113
|
}>, {
|
|
114
|
+
keyboard: boolean;
|
|
114
115
|
steps: GuideStep[];
|
|
115
116
|
doneBtnText: string;
|
|
116
117
|
nextBtnText: string;
|
|
@@ -118,7 +119,6 @@ declare const __VLS_export: vue.DefineComponent<GuideProps, {
|
|
|
118
119
|
showSkipButton: boolean;
|
|
119
120
|
skipBtnText: string;
|
|
120
121
|
showProgress: boolean;
|
|
121
|
-
keyboard: boolean;
|
|
122
122
|
animate: boolean;
|
|
123
123
|
allowClose: boolean;
|
|
124
124
|
skipMissingElements: boolean;
|
package/dist/index14.vue.d.ts
CHANGED
|
@@ -30,18 +30,18 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
|
|
|
30
30
|
errorMessage: Readonly<vue.Ref<string, string>>;
|
|
31
31
|
el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
32
32
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
33
|
-
error: (type: string, error?: unknown) => any;
|
|
34
33
|
click: (event: MouseEvent | KeyboardEvent) => any;
|
|
34
|
+
error: (type: string, error?: unknown) => any;
|
|
35
35
|
load: () => any;
|
|
36
36
|
}, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
|
|
37
|
-
onError?: ((type: string, error?: unknown) => any) | undefined;
|
|
38
37
|
onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
38
|
+
onError?: ((type: string, error?: unknown) => any) | undefined;
|
|
39
39
|
onLoad?: (() => any) | undefined;
|
|
40
40
|
}>, {
|
|
41
|
-
title: string;
|
|
42
41
|
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
43
|
-
|
|
42
|
+
ariaLabel: string;
|
|
44
43
|
size: number | string;
|
|
44
|
+
color: string;
|
|
45
45
|
svgPath: string;
|
|
46
46
|
viewBox: string;
|
|
47
47
|
alt: string;
|
|
@@ -49,7 +49,7 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
|
|
|
49
49
|
loading: boolean;
|
|
50
50
|
fallbackIcon: string;
|
|
51
51
|
loadTimeout: number;
|
|
52
|
-
|
|
52
|
+
title: string;
|
|
53
53
|
customClass: string;
|
|
54
54
|
rotate: number;
|
|
55
55
|
flip: "horizontal" | "vertical" | "both";
|
package/dist/index15.vue.d.cts
CHANGED
|
@@ -30,18 +30,18 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
|
|
|
30
30
|
errorMessage: Readonly<vue.Ref<string, string>>;
|
|
31
31
|
el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
32
32
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
33
|
-
error: (type: string, error?: unknown) => any;
|
|
34
33
|
click: (event: MouseEvent | KeyboardEvent) => any;
|
|
34
|
+
error: (type: string, error?: unknown) => any;
|
|
35
35
|
load: () => any;
|
|
36
36
|
}, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
|
|
37
|
-
onError?: ((type: string, error?: unknown) => any) | undefined;
|
|
38
37
|
onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
38
|
+
onError?: ((type: string, error?: unknown) => any) | undefined;
|
|
39
39
|
onLoad?: (() => any) | undefined;
|
|
40
40
|
}>, {
|
|
41
|
-
title: string;
|
|
42
41
|
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
43
|
-
|
|
42
|
+
ariaLabel: string;
|
|
44
43
|
size: number | string;
|
|
44
|
+
color: string;
|
|
45
45
|
svgPath: string;
|
|
46
46
|
viewBox: string;
|
|
47
47
|
alt: string;
|
|
@@ -49,7 +49,7 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
|
|
|
49
49
|
loading: boolean;
|
|
50
50
|
fallbackIcon: string;
|
|
51
51
|
loadTimeout: number;
|
|
52
|
-
|
|
52
|
+
title: string;
|
|
53
53
|
customClass: string;
|
|
54
54
|
rotate: number;
|
|
55
55
|
flip: "horizontal" | "vertical" | "both";
|
package/dist/index15.vue.d.ts
CHANGED
|
@@ -19,11 +19,11 @@ type __VLS_Props = {
|
|
|
19
19
|
tooltip?: string;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
22
|
-
change: (key: string) => any;
|
|
23
22
|
"update:modelValue": (key: string) => any;
|
|
23
|
+
change: (key: string) => any;
|
|
24
24
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
onChange?: ((key: string) => any) | undefined;
|
|
26
25
|
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
26
|
+
onChange?: ((key: string) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
modelValue: string;
|
|
29
29
|
options: LegacyLanguageOption[];
|