@robot-admin/naive-ui-components 0.40.3 → 0.40.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +101 -79
- package/README_EN.md +110 -67
- package/dist/BPMN.cjs +1 -1
- package/dist/BPMN.js +1 -1
- package/dist/C_ActionBar.css +58 -52
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.css +108 -108
- package/dist/C_AvatarGroup.css +29 -29
- package/dist/C_AvatarGroup2.cjs +1 -1
- package/dist/C_AvatarGroup2.js +1 -1
- package/dist/C_Barcode.css +6 -6
- package/dist/C_Barcode.d.cts +2 -2
- package/dist/C_Barcode.d.ts +2 -2
- package/dist/C_Barcode2.cjs +1 -1
- package/dist/C_Barcode2.js +1 -1
- package/dist/C_Captcha.css +42 -42
- package/dist/C_Captcha2.cjs +1 -1
- package/dist/C_Captcha2.js +1 -1
- package/dist/C_Cascade.css +4 -4
- package/dist/C_Cascade.d.cts +2 -2
- package/dist/C_Cascade.d.ts +2 -2
- package/dist/C_Cascade2.cjs +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_City.css +35 -35
- package/dist/C_City2.cjs +1 -1
- package/dist/C_City2.js +1 -1
- package/dist/C_Code.css +27 -27
- package/dist/C_Code.d.cts +2 -2
- package/dist/C_Code.d.ts +2 -2
- package/dist/C_Code2.cjs +1 -1
- package/dist/C_Code2.js +1 -1
- package/dist/C_CollapsePanel2.cjs +1 -1
- package/dist/C_CollapsePanel2.js +1 -1
- package/dist/C_ContextMenu.css +3 -3
- package/dist/C_ContextMenu2.cjs +1 -1
- package/dist/C_ContextMenu2.js +1 -1
- package/dist/C_Editor.css +13 -13
- package/dist/C_Editor.d.cts +2 -2
- package/dist/C_Editor.d.ts +2 -2
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_FilePreview.css +104 -104
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_FormModal.css +58 -52
- package/dist/C_GlobalSearch.css +139 -136
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +3 -3
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Language.css +2 -2
- package/dist/C_Language2.cjs +1 -1
- package/dist/C_Language2.js +1 -1
- package/dist/C_Login.css +136 -121
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Markdown.css +37 -37
- package/dist/C_Markdown.d.cts +2 -2
- package/dist/C_Markdown.d.ts +2 -2
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_NotificationCenter.css +51 -36
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_Progress.d.cts +2 -2
- package/dist/C_Progress.d.ts +2 -2
- package/dist/C_Progress2.cjs +1 -1
- package/dist/C_Progress2.js +1 -1
- package/dist/C_Signature.css +15 -15
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_Steps.css +39 -39
- package/dist/C_Steps.d.cts +2 -2
- package/dist/C_Steps.d.ts +2 -2
- package/dist/C_Steps2.cjs +1 -1
- package/dist/C_Steps2.js +1 -1
- package/dist/C_Table.base.css +58 -52
- package/dist/C_Table.css +58 -52
- package/dist/C_Table2.cjs +2 -2
- package/dist/C_Table2.js +2 -2
- package/dist/C_TagsView.css +60 -50
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_Timeline.css +53 -53
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_WaterFall.css +41 -41
- package/dist/C_WaterFall.d.cts +2 -2
- package/dist/C_WaterFall.d.ts +2 -2
- package/dist/C_WaterFall2.cjs +1 -1
- package/dist/C_WaterFall2.js +1 -1
- package/dist/C_WorkFlow.css +93 -92
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/ER.cjs +1 -1
- package/dist/ER.js +1 -1
- package/dist/UML.cjs +3 -3
- package/dist/UML.js +3 -3
- package/dist/component-config.d.ts +2 -0
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants3.d.cts +6 -6
- package/dist/constants3.d.ts +6 -6
- package/dist/constants4.d.cts +5 -5
- package/dist/constants4.d.ts +5 -5
- package/dist/context.d.cts +2 -0
- package/dist/data2.d.cts +7 -7
- package/dist/data2.d.ts +7 -7
- package/dist/editors.d.cts +8 -8
- package/dist/editors.d.ts +8 -8
- package/dist/graphEditSession.cjs +1 -0
- package/dist/graphEditSession.js +1 -0
- package/dist/index.d.cts +9 -10
- package/dist/index.d.ts +9 -9
- package/dist/index.vue.d.cts +3 -3
- package/dist/index.vue.d.ts +3 -3
- package/dist/index10.vue.d.cts +0 -1
- package/dist/index10.vue.d.ts +12 -9
- package/dist/index11.vue.d.cts +12 -9
- package/dist/index11.vue.d.ts +4 -4
- package/dist/index12.vue.d.cts +4 -4
- package/dist/index13.vue.d.ts +19 -16
- package/dist/index14.vue.d.cts +19 -16
- package/dist/index16.vue.d.ts +5 -10
- package/dist/index17.vue.d.cts +5 -10
- package/dist/index17.vue.d.ts +6 -6
- package/dist/index18.vue.d.cts +6 -6
- package/dist/index18.vue.d.ts +2 -7
- package/dist/index19.vue.d.cts +2 -7
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +0 -1
- package/dist/index21.vue.d.cts +0 -1
- package/dist/index21.vue.d.ts +18 -16
- package/dist/index22.vue.d.cts +18 -16
- package/dist/index24.vue.d.cts +10 -7
- package/dist/index24.vue.d.ts +10 -7
- package/dist/index27.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index28.vue.d.cts +12 -19
- package/dist/index28.vue.d.ts +12 -19
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index30.vue.d.cts +2 -9
- package/dist/index30.vue.d.ts +2 -9
- package/dist/index31.vue.d.cts +4 -4
- package/dist/index31.vue.d.ts +4 -4
- package/dist/index32.vue.d.cts +2 -2
- package/dist/index32.vue.d.ts +2 -2
- package/dist/index4.vue.d.cts +13 -10
- package/dist/index4.vue.d.ts +13 -10
- package/dist/index7.vue.d.ts +12 -12
- package/dist/index8.vue.d.cts +12 -12
- package/dist/index9.vue.d.ts +0 -1
- 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/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/style.css +1056 -1006
- package/dist/types.d.cts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +5 -5
- package/dist/useCollapsePanel.d.ts +5 -5
- package/dist/useCropperCore.d.cts +6 -6
- package/dist/useCropperCore.d.ts +6 -6
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useGlobalSearch.d.cts +1 -5
- package/dist/useGlobalSearch.d.ts +1 -5
- package/dist/useInfiniteScroll.d.cts +42 -70
- package/dist/useInfiniteScroll.d.ts +42 -70
- package/dist/useQRCode.d.cts +5 -5
- package/dist/useQRCode.d.ts +5 -5
- package/dist/useScopedComponentLocale.cjs +1 -0
- package/dist/useScopedComponentLocale.js +1 -0
- package/dist/useSignatureHistory.d.cts +11 -6
- package/dist/useSignatureHistory.d.ts +11 -6
- package/dist/useSplitResize.d.cts +4 -4
- package/dist/useSplitResize.d.ts +4 -4
- package/dist/useTimeSelection.d.cts +3 -3
- package/dist/useTimeSelection.d.ts +3 -3
- package/dist/useWorkflowValidation.d.cts +89 -84
- package/dist/useWorkflowValidation.d.ts +89 -84
- package/dist/verification.d.cts +6 -6
- package/dist/verification.d.ts +6 -6
- package/docs/component-audit-closure-0.40.4.md +62 -0
- package/docs/engineering.en.md +6 -0
- package/docs/engineering.md +6 -0
- package/docs/guides/api-migration.md +17 -1
- package/docs/guides/search-workflows.md +2 -0
- package/docs/guides/transfer.md +2 -0
- package/docs/guides/usage.en.md +15 -1
- package/docs/guides/usage.md +24 -1
- package/docs/guides/workflow.md +5 -1
- package/package.json +1 -1
- package/dist/readonlyGraph.cjs +0 -1
- package/dist/readonlyGraph.js +0 -1
package/dist/types.d.cts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -79,9 +79,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
79
79
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
80
80
|
"onEvent-resized"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
81
81
|
}>, {
|
|
82
|
+
events: CalendarEvent[];
|
|
82
83
|
initialView: CalendarViewType;
|
|
83
84
|
editable: boolean;
|
|
84
|
-
events: CalendarEvent[];
|
|
85
85
|
showAddDialog: boolean;
|
|
86
86
|
showEditDialog: boolean;
|
|
87
87
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
79
79
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
80
80
|
"onEvent-resized"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
81
81
|
}>, {
|
|
82
|
+
events: CalendarEvent[];
|
|
82
83
|
initialView: CalendarViewType;
|
|
83
84
|
editable: boolean;
|
|
84
|
-
events: CalendarEvent[];
|
|
85
85
|
showAddDialog: boolean;
|
|
86
86
|
showEditDialog: boolean;
|
|
87
87
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -73,19 +73,19 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
73
73
|
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 };
|
|
74
74
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
75
|
change: (activeKeys: string[]) => any;
|
|
76
|
-
expand: (key: string) => any;
|
|
77
|
-
"update:activeKeys": (keys: string[]) => any;
|
|
78
76
|
collapse: (key: string) => any;
|
|
77
|
+
"update:activeKeys": (keys: string[]) => any;
|
|
78
|
+
expand: (key: string) => any;
|
|
79
79
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
80
80
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
|
-
onExpand?: ((key: string) => any) | undefined;
|
|
82
|
-
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
83
81
|
onCollapse?: ((key: string) => any) | undefined;
|
|
82
|
+
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
83
|
+
onExpand?: ((key: string) => any) | undefined;
|
|
84
84
|
}>, {
|
|
85
85
|
bordered: boolean;
|
|
86
|
-
accordion: boolean;
|
|
87
86
|
activeKeys: string[];
|
|
88
87
|
defaultActiveKeys: string[];
|
|
88
|
+
accordion: boolean;
|
|
89
89
|
variant: CollapsePanelVariant;
|
|
90
90
|
expandIconPosition: ExpandIconPosition;
|
|
91
91
|
persistKey: string;
|
|
@@ -73,19 +73,19 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
73
73
|
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 };
|
|
74
74
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
75
|
change: (activeKeys: string[]) => any;
|
|
76
|
-
expand: (key: string) => any;
|
|
77
|
-
"update:activeKeys": (keys: string[]) => any;
|
|
78
76
|
collapse: (key: string) => any;
|
|
77
|
+
"update:activeKeys": (keys: string[]) => any;
|
|
78
|
+
expand: (key: string) => any;
|
|
79
79
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
80
80
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
|
-
onExpand?: ((key: string) => any) | undefined;
|
|
82
|
-
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
83
81
|
onCollapse?: ((key: string) => any) | undefined;
|
|
82
|
+
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
83
|
+
onExpand?: ((key: string) => any) | undefined;
|
|
84
84
|
}>, {
|
|
85
85
|
bordered: boolean;
|
|
86
|
-
accordion: boolean;
|
|
87
86
|
activeKeys: string[];
|
|
88
87
|
defaultActiveKeys: string[];
|
|
88
|
+
accordion: boolean;
|
|
89
89
|
variant: CollapsePanelVariant;
|
|
90
90
|
expandIconPosition: ExpandIconPosition;
|
|
91
91
|
persistKey: string;
|
|
@@ -54,28 +54,28 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
|
|
|
54
54
|
error: (error: Error) => any;
|
|
55
55
|
cancel: () => any;
|
|
56
56
|
confirm: (result: CropResult) => any;
|
|
57
|
-
ready: () => any;
|
|
58
57
|
crop: (result: CropResult) => any;
|
|
58
|
+
ready: () => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
60
|
onError?: ((error: Error) => any) | undefined;
|
|
61
61
|
onCancel?: (() => any) | undefined;
|
|
62
62
|
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
|
-
onReady?: (() => any) | undefined;
|
|
64
63
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
64
|
+
onReady?: (() => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
disabled: boolean;
|
|
67
66
|
height: string | number;
|
|
68
|
-
|
|
69
|
-
showToolbar: boolean;
|
|
67
|
+
disabled: boolean;
|
|
70
68
|
showPreview: boolean;
|
|
69
|
+
modalTitle: string;
|
|
71
70
|
src: string;
|
|
72
71
|
aspectRatio: number;
|
|
73
|
-
modalTitle: string;
|
|
74
72
|
outputFormat: CropOutputFormat;
|
|
75
73
|
outputQuality: number;
|
|
76
74
|
maxOutputWidth: number;
|
|
77
75
|
maxOutputHeight: number;
|
|
76
|
+
showToolbar: boolean;
|
|
78
77
|
circular: boolean;
|
|
78
|
+
modal: boolean;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -54,28 +54,28 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
|
|
|
54
54
|
error: (error: Error) => any;
|
|
55
55
|
cancel: () => any;
|
|
56
56
|
confirm: (result: CropResult) => any;
|
|
57
|
-
ready: () => any;
|
|
58
57
|
crop: (result: CropResult) => any;
|
|
58
|
+
ready: () => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
60
|
onError?: ((error: Error) => any) | undefined;
|
|
61
61
|
onCancel?: (() => any) | undefined;
|
|
62
62
|
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
|
-
onReady?: (() => any) | undefined;
|
|
64
63
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
64
|
+
onReady?: (() => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
disabled: boolean;
|
|
67
66
|
height: string | number;
|
|
68
|
-
|
|
69
|
-
showToolbar: boolean;
|
|
67
|
+
disabled: boolean;
|
|
70
68
|
showPreview: boolean;
|
|
69
|
+
modalTitle: string;
|
|
71
70
|
src: string;
|
|
72
71
|
aspectRatio: number;
|
|
73
|
-
modalTitle: string;
|
|
74
72
|
outputFormat: CropOutputFormat;
|
|
75
73
|
outputQuality: number;
|
|
76
74
|
maxOutputWidth: number;
|
|
77
75
|
maxOutputHeight: number;
|
|
76
|
+
showToolbar: boolean;
|
|
78
77
|
circular: boolean;
|
|
78
|
+
modal: boolean;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
|
@@ -264,9 +264,9 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
264
264
|
onReady?: ((graph: Graph) => any) | undefined;
|
|
265
265
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
266
266
|
}>, {
|
|
267
|
-
width: string | number;
|
|
268
267
|
height: string | number;
|
|
269
268
|
readonly: boolean;
|
|
269
|
+
width: string | number;
|
|
270
270
|
showToolbar: boolean;
|
|
271
271
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
272
272
|
declare const _default: typeof __VLS_export;
|
|
@@ -264,9 +264,9 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
264
264
|
onReady?: ((graph: Graph) => any) | undefined;
|
|
265
265
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
266
266
|
}>, {
|
|
267
|
-
width: string | number;
|
|
268
267
|
height: string | number;
|
|
269
268
|
readonly: boolean;
|
|
269
|
+
width: string | number;
|
|
270
270
|
showToolbar: boolean;
|
|
271
271
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
272
272
|
declare const _default: typeof __VLS_export;
|
package/dist/useFullscreen.d.cts
CHANGED
|
@@ -96,12 +96,12 @@ interface ExcelLoadResult {
|
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/components/C_FilePreview/index.vue.d.ts
|
|
98
98
|
declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
99
|
-
preview: (file: string | File) => any;
|
|
100
99
|
download: (file: string | File) => any;
|
|
100
|
+
preview: (file: string | File) => any;
|
|
101
101
|
"update:show": (show: boolean) => any;
|
|
102
102
|
}, string, vue.PublicProps, Readonly<FilePreviewProps> & Readonly<{
|
|
103
|
-
onPreview?: ((file: string | File) => any) | undefined;
|
|
104
103
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
104
|
+
onPreview?: ((file: string | File) => any) | undefined;
|
|
105
105
|
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
106
106
|
}>, {
|
|
107
107
|
show: boolean;
|
package/dist/useFullscreen.d.ts
CHANGED
|
@@ -96,12 +96,12 @@ interface ExcelLoadResult {
|
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/components/C_FilePreview/index.vue.d.ts
|
|
98
98
|
declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
99
|
-
preview: (file: string | File) => any;
|
|
100
99
|
download: (file: string | File) => any;
|
|
100
|
+
preview: (file: string | File) => any;
|
|
101
101
|
"update:show": (show: boolean) => any;
|
|
102
102
|
}, string, vue.PublicProps, Readonly<FilePreviewProps> & Readonly<{
|
|
103
|
-
onPreview?: ((file: string | File) => any) | undefined;
|
|
104
103
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
104
|
+
onPreview?: ((file: string | File) => any) | undefined;
|
|
105
105
|
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
106
106
|
}>, {
|
|
107
107
|
show: boolean;
|
|
@@ -59,11 +59,7 @@ interface Props {
|
|
|
59
59
|
declare const __VLS_export: vue.DefineComponent<Props, {
|
|
60
60
|
openDialog: () => Promise<void>;
|
|
61
61
|
closeDialog: () => void;
|
|
62
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
63
|
-
placeholder: string;
|
|
64
|
-
emptyText: string;
|
|
65
|
-
resultGroupTitle: string;
|
|
66
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
62
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
67
63
|
declare const _default: typeof __VLS_export;
|
|
68
64
|
//#endregion
|
|
69
65
|
//#region src/components/C_GlobalSearch/composables/useGlobalSearch.d.ts
|
|
@@ -59,11 +59,7 @@ interface Props {
|
|
|
59
59
|
declare const __VLS_export: vue.DefineComponent<Props, {
|
|
60
60
|
openDialog: () => Promise<void>;
|
|
61
61
|
closeDialog: () => void;
|
|
62
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
63
|
-
placeholder: string;
|
|
64
|
-
emptyText: string;
|
|
65
|
-
resultGroupTitle: string;
|
|
66
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
62
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
67
63
|
declare const _default: typeof __VLS_export;
|
|
68
64
|
//#endregion
|
|
69
65
|
//#region src/components/C_GlobalSearch/composables/useGlobalSearch.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { Ref } from "vue";
|
|
2
|
+
import { DeepReadonly, Ref, UnwrapRef, VNodeChild } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_WaterFall/types.d.ts
|
|
5
5
|
interface WaterFallItem {
|
|
@@ -11,8 +11,10 @@ interface WaterFallItem {
|
|
|
11
11
|
description?: string;
|
|
12
12
|
[key: string]: any;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/** 深代理保留既有只读与 Ref 解包语义;由包内部推导,调用方无需转换。 */
|
|
15
|
+
type WaterFallRenderedItem<T extends WaterFallItem = WaterFallItem> = DeepReadonly<UnwrapRef<T>>;
|
|
16
|
+
interface WaterFallLayoutItem<T extends WaterFallItem = WaterFallItem> {
|
|
17
|
+
item: T;
|
|
16
18
|
columnIndex: number;
|
|
17
19
|
x: number;
|
|
18
20
|
y: number;
|
|
@@ -30,8 +32,8 @@ interface WaterFallBreakpoint {
|
|
|
30
32
|
columns: number;
|
|
31
33
|
}
|
|
32
34
|
type InfiniteScrollStatus = 'idle' | 'loading' | 'no-more' | 'error';
|
|
33
|
-
interface WaterFallProps {
|
|
34
|
-
items:
|
|
35
|
+
interface WaterFallProps<T extends WaterFallItem = WaterFallItem> {
|
|
36
|
+
items: readonly T[];
|
|
35
37
|
columns?: number;
|
|
36
38
|
gap?: number;
|
|
37
39
|
lazy?: boolean;
|
|
@@ -45,11 +47,11 @@ interface WaterFallProps {
|
|
|
45
47
|
loading?: boolean;
|
|
46
48
|
noMore?: boolean;
|
|
47
49
|
}
|
|
48
|
-
interface WaterFallEmits {
|
|
50
|
+
interface WaterFallEmits<T extends WaterFallItem = WaterFallItem> {
|
|
49
51
|
'load-more': [];
|
|
50
|
-
'item-click': [item:
|
|
51
|
-
'image-loaded': [item:
|
|
52
|
-
'image-error': [item:
|
|
52
|
+
'item-click': [item: WaterFallRenderedItem<T>, index: number];
|
|
53
|
+
'image-loaded': [item: WaterFallRenderedItem<T>];
|
|
54
|
+
'image-error': [item: WaterFallRenderedItem<T>];
|
|
53
55
|
}
|
|
54
56
|
interface WaterFallExpose {
|
|
55
57
|
relayout: () => void;
|
|
@@ -57,55 +59,41 @@ interface WaterFallExpose {
|
|
|
57
59
|
getColumns: () => number;
|
|
58
60
|
getContainerHeight: () => number;
|
|
59
61
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
item:
|
|
62
|
+
/** 业务字段由 items 推导;自定义卡片不需要转为库内部类型。 */
|
|
63
|
+
interface WaterFallSlots<T extends WaterFallItem = WaterFallItem> {
|
|
64
|
+
item?: (context: {
|
|
65
|
+
item: WaterFallRenderedItem<T>;
|
|
64
66
|
index: number;
|
|
65
67
|
width: number;
|
|
66
68
|
height: number;
|
|
67
|
-
}
|
|
69
|
+
}) => VNodeChild;
|
|
70
|
+
skeleton?: () => VNodeChild;
|
|
71
|
+
footer?: (context: {
|
|
68
72
|
status: InfiniteScrollStatus;
|
|
69
73
|
paused: boolean;
|
|
70
74
|
loadMore: () => void;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
}) => VNodeChild;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/C_WaterFall/index.vue.d.ts
|
|
79
|
+
declare const __VLS_export: <T extends WaterFallItem = WaterFallItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
80
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<WaterFallProps<T> & {
|
|
81
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
82
|
+
"onItem-click"?: ((item: vue.DeepReadonly<vue.UnwrapRef<T>>, index: number) => any) | undefined;
|
|
83
|
+
"onImage-loaded"?: ((item: vue.DeepReadonly<vue.UnwrapRef<T>>) => any) | undefined;
|
|
84
|
+
"onImage-error"?: ((item: vue.DeepReadonly<vue.UnwrapRef<T>>) => any) | undefined;
|
|
85
|
+
}> & (typeof globalThis extends {
|
|
86
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
87
|
+
} ? P : {});
|
|
88
|
+
expose: (exposed: vue.ShallowUnwrapRef<WaterFallExpose>) => void;
|
|
89
|
+
attrs: any;
|
|
90
|
+
slots: WaterFallSlots<T>;
|
|
91
|
+
emit: ((evt: "load-more") => void) & ((evt: "item-click", item: vue.DeepReadonly<vue.UnwrapRef<T>>, index: number) => void) & ((evt: "image-loaded", item: vue.DeepReadonly<vue.UnwrapRef<T>>) => void) & ((evt: "image-error", item: vue.DeepReadonly<vue.UnwrapRef<T>>) => void);
|
|
92
|
+
}>) => vue.VNode & {
|
|
93
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
78
94
|
};
|
|
79
|
-
declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
80
|
-
"item-click": (item: WaterFallItem, index: number) => any;
|
|
81
|
-
"load-more": () => any;
|
|
82
|
-
"image-loaded": (item: WaterFallItem) => any;
|
|
83
|
-
"image-error": (item: WaterFallItem) => any;
|
|
84
|
-
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
85
|
-
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
86
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
87
|
-
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
|
-
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
|
-
}>, {
|
|
90
|
-
columns: number;
|
|
91
|
-
virtualScroll: boolean;
|
|
92
|
-
loading: boolean;
|
|
93
|
-
gap: number;
|
|
94
|
-
infinite: boolean;
|
|
95
|
-
lazy: boolean;
|
|
96
|
-
skeleton: boolean;
|
|
97
|
-
skeletonCount: number;
|
|
98
|
-
animationDuration: number;
|
|
99
|
-
breakpoints: WaterFallBreakpoint[];
|
|
100
|
-
noMore: boolean;
|
|
101
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
102
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
103
95
|
declare const _default: typeof __VLS_export;
|
|
104
|
-
type
|
|
105
|
-
new (): {
|
|
106
|
-
$slots: S;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
96
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
109
97
|
//#endregion
|
|
110
98
|
//#region src/components/C_WaterFall/constants.d.ts
|
|
111
99
|
declare const DEFAULT_GAP = 16;
|
|
@@ -128,19 +116,11 @@ declare function useResponsiveColumns(containerRef: Ref<HTMLElement | undefined>
|
|
|
128
116
|
/**
|
|
129
117
|
*
|
|
130
118
|
*/
|
|
131
|
-
declare function useWaterFallLayout(items: Ref<
|
|
119
|
+
declare function useWaterFallLayout<T extends WaterFallItem = WaterFallItem>(items: Readonly<Ref<readonly T[]>>, columns: Readonly<Ref<number>>, containerWidth: Readonly<Ref<number>>, gap: Ref<number>, options?: {
|
|
132
120
|
batchImageLoads?: boolean;
|
|
133
121
|
}): {
|
|
134
122
|
layoutItems: Readonly<Ref<readonly {
|
|
135
|
-
readonly item:
|
|
136
|
-
readonly [x: string]: any;
|
|
137
|
-
readonly id: string | number;
|
|
138
|
-
readonly src: string;
|
|
139
|
-
readonly width: number;
|
|
140
|
-
readonly height: number;
|
|
141
|
-
readonly title?: string | undefined;
|
|
142
|
-
readonly description?: string | undefined;
|
|
143
|
-
};
|
|
123
|
+
readonly item: vue.DeepReadonly<vue.UnwrapRef<T>>;
|
|
144
124
|
readonly columnIndex: number;
|
|
145
125
|
readonly x: number;
|
|
146
126
|
readonly y: number;
|
|
@@ -148,15 +128,7 @@ declare function useWaterFallLayout(items: Ref<WaterFallItem[]>, columns: Readon
|
|
|
148
128
|
readonly height: number;
|
|
149
129
|
readonly totalHeight?: number | undefined;
|
|
150
130
|
}[], readonly {
|
|
151
|
-
readonly item:
|
|
152
|
-
readonly [x: string]: any;
|
|
153
|
-
readonly id: string | number;
|
|
154
|
-
readonly src: string;
|
|
155
|
-
readonly width: number;
|
|
156
|
-
readonly height: number;
|
|
157
|
-
readonly title?: string | undefined;
|
|
158
|
-
readonly description?: string | undefined;
|
|
159
|
-
};
|
|
131
|
+
readonly item: vue.DeepReadonly<vue.UnwrapRef<T>>;
|
|
160
132
|
readonly columnIndex: number;
|
|
161
133
|
readonly x: number;
|
|
162
134
|
readonly y: number;
|
|
@@ -178,4 +150,4 @@ declare function useInfiniteScroll(sentinelRef: Ref<HTMLElement | undefined>, en
|
|
|
178
150
|
resume: () => void;
|
|
179
151
|
};
|
|
180
152
|
//#endregion
|
|
181
|
-
export { WaterFallLayoutItem as _, DEFAULT_BREAKPOINTS as a, INFINITE_SCROLL_THRESHOLD as c, InfiniteScrollStatus as d, WaterFallBreakpoint as f, WaterFallItem as g, WaterFallExpose as h, DEFAULT_ANIMATION_DURATION as i, SKELETON_HEIGHT_RANGE as l, WaterFallEmits as m, useWaterFallLayout as n, DEFAULT_GAP as o, WaterFallColumn as p, useResponsiveColumns as r, DEFAULT_SKELETON_COUNT as s, useInfiniteScroll as t, _default as u, WaterFallProps as v };
|
|
153
|
+
export { WaterFallLayoutItem as _, DEFAULT_BREAKPOINTS as a, WaterFallSlots as b, INFINITE_SCROLL_THRESHOLD as c, InfiniteScrollStatus as d, WaterFallBreakpoint as f, WaterFallItem as g, WaterFallExpose as h, DEFAULT_ANIMATION_DURATION as i, SKELETON_HEIGHT_RANGE as l, WaterFallEmits as m, useWaterFallLayout as n, DEFAULT_GAP as o, WaterFallColumn as p, useResponsiveColumns as r, DEFAULT_SKELETON_COUNT as s, useInfiniteScroll as t, _default as u, WaterFallProps as v, WaterFallRenderedItem as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { Ref } from "vue";
|
|
2
|
+
import { DeepReadonly, Ref, UnwrapRef, VNodeChild } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_WaterFall/types.d.ts
|
|
5
5
|
interface WaterFallItem {
|
|
@@ -11,8 +11,10 @@ interface WaterFallItem {
|
|
|
11
11
|
description?: string;
|
|
12
12
|
[key: string]: any;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/** 深代理保留既有只读与 Ref 解包语义;由包内部推导,调用方无需转换。 */
|
|
15
|
+
type WaterFallRenderedItem<T extends WaterFallItem = WaterFallItem> = DeepReadonly<UnwrapRef<T>>;
|
|
16
|
+
interface WaterFallLayoutItem<T extends WaterFallItem = WaterFallItem> {
|
|
17
|
+
item: T;
|
|
16
18
|
columnIndex: number;
|
|
17
19
|
x: number;
|
|
18
20
|
y: number;
|
|
@@ -30,8 +32,8 @@ interface WaterFallBreakpoint {
|
|
|
30
32
|
columns: number;
|
|
31
33
|
}
|
|
32
34
|
type InfiniteScrollStatus = 'idle' | 'loading' | 'no-more' | 'error';
|
|
33
|
-
interface WaterFallProps {
|
|
34
|
-
items:
|
|
35
|
+
interface WaterFallProps<T extends WaterFallItem = WaterFallItem> {
|
|
36
|
+
items: readonly T[];
|
|
35
37
|
columns?: number;
|
|
36
38
|
gap?: number;
|
|
37
39
|
lazy?: boolean;
|
|
@@ -45,11 +47,11 @@ interface WaterFallProps {
|
|
|
45
47
|
loading?: boolean;
|
|
46
48
|
noMore?: boolean;
|
|
47
49
|
}
|
|
48
|
-
interface WaterFallEmits {
|
|
50
|
+
interface WaterFallEmits<T extends WaterFallItem = WaterFallItem> {
|
|
49
51
|
'load-more': [];
|
|
50
|
-
'item-click': [item:
|
|
51
|
-
'image-loaded': [item:
|
|
52
|
-
'image-error': [item:
|
|
52
|
+
'item-click': [item: WaterFallRenderedItem<T>, index: number];
|
|
53
|
+
'image-loaded': [item: WaterFallRenderedItem<T>];
|
|
54
|
+
'image-error': [item: WaterFallRenderedItem<T>];
|
|
53
55
|
}
|
|
54
56
|
interface WaterFallExpose {
|
|
55
57
|
relayout: () => void;
|
|
@@ -57,55 +59,41 @@ interface WaterFallExpose {
|
|
|
57
59
|
getColumns: () => number;
|
|
58
60
|
getContainerHeight: () => number;
|
|
59
61
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
item:
|
|
62
|
+
/** 业务字段由 items 推导;自定义卡片不需要转为库内部类型。 */
|
|
63
|
+
interface WaterFallSlots<T extends WaterFallItem = WaterFallItem> {
|
|
64
|
+
item?: (context: {
|
|
65
|
+
item: WaterFallRenderedItem<T>;
|
|
64
66
|
index: number;
|
|
65
67
|
width: number;
|
|
66
68
|
height: number;
|
|
67
|
-
}
|
|
69
|
+
}) => VNodeChild;
|
|
70
|
+
skeleton?: () => VNodeChild;
|
|
71
|
+
footer?: (context: {
|
|
68
72
|
status: InfiniteScrollStatus;
|
|
69
73
|
paused: boolean;
|
|
70
74
|
loadMore: () => void;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
}) => VNodeChild;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/C_WaterFall/index.vue.d.ts
|
|
79
|
+
declare const __VLS_export: <T extends WaterFallItem = WaterFallItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
80
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<WaterFallProps<T> & {
|
|
81
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
82
|
+
"onItem-click"?: ((item: vue.DeepReadonly<vue.UnwrapRef<T>>, index: number) => any) | undefined;
|
|
83
|
+
"onImage-loaded"?: ((item: vue.DeepReadonly<vue.UnwrapRef<T>>) => any) | undefined;
|
|
84
|
+
"onImage-error"?: ((item: vue.DeepReadonly<vue.UnwrapRef<T>>) => any) | undefined;
|
|
85
|
+
}> & (typeof globalThis extends {
|
|
86
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
87
|
+
} ? P : {});
|
|
88
|
+
expose: (exposed: vue.ShallowUnwrapRef<WaterFallExpose>) => void;
|
|
89
|
+
attrs: any;
|
|
90
|
+
slots: WaterFallSlots<T>;
|
|
91
|
+
emit: ((evt: "load-more") => void) & ((evt: "item-click", item: vue.DeepReadonly<vue.UnwrapRef<T>>, index: number) => void) & ((evt: "image-loaded", item: vue.DeepReadonly<vue.UnwrapRef<T>>) => void) & ((evt: "image-error", item: vue.DeepReadonly<vue.UnwrapRef<T>>) => void);
|
|
92
|
+
}>) => vue.VNode & {
|
|
93
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
78
94
|
};
|
|
79
|
-
declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
80
|
-
"item-click": (item: WaterFallItem, index: number) => any;
|
|
81
|
-
"load-more": () => any;
|
|
82
|
-
"image-loaded": (item: WaterFallItem) => any;
|
|
83
|
-
"image-error": (item: WaterFallItem) => any;
|
|
84
|
-
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
85
|
-
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
86
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
87
|
-
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
|
-
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
|
-
}>, {
|
|
90
|
-
columns: number;
|
|
91
|
-
virtualScroll: boolean;
|
|
92
|
-
loading: boolean;
|
|
93
|
-
gap: number;
|
|
94
|
-
infinite: boolean;
|
|
95
|
-
lazy: boolean;
|
|
96
|
-
skeleton: boolean;
|
|
97
|
-
skeletonCount: number;
|
|
98
|
-
animationDuration: number;
|
|
99
|
-
breakpoints: WaterFallBreakpoint[];
|
|
100
|
-
noMore: boolean;
|
|
101
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
102
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
103
95
|
declare const _default: typeof __VLS_export;
|
|
104
|
-
type
|
|
105
|
-
new (): {
|
|
106
|
-
$slots: S;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
96
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
109
97
|
//#endregion
|
|
110
98
|
//#region src/components/C_WaterFall/constants.d.ts
|
|
111
99
|
declare const DEFAULT_GAP = 16;
|
|
@@ -128,19 +116,11 @@ declare function useResponsiveColumns(containerRef: Ref<HTMLElement | undefined>
|
|
|
128
116
|
/**
|
|
129
117
|
*
|
|
130
118
|
*/
|
|
131
|
-
declare function useWaterFallLayout(items: Ref<
|
|
119
|
+
declare function useWaterFallLayout<T extends WaterFallItem = WaterFallItem>(items: Readonly<Ref<readonly T[]>>, columns: Readonly<Ref<number>>, containerWidth: Readonly<Ref<number>>, gap: Ref<number>, options?: {
|
|
132
120
|
batchImageLoads?: boolean;
|
|
133
121
|
}): {
|
|
134
122
|
layoutItems: Readonly<Ref<readonly {
|
|
135
|
-
readonly item:
|
|
136
|
-
readonly [x: string]: any;
|
|
137
|
-
readonly id: string | number;
|
|
138
|
-
readonly src: string;
|
|
139
|
-
readonly width: number;
|
|
140
|
-
readonly height: number;
|
|
141
|
-
readonly title?: string | undefined;
|
|
142
|
-
readonly description?: string | undefined;
|
|
143
|
-
};
|
|
123
|
+
readonly item: vue.DeepReadonly<vue.UnwrapRef<T>>;
|
|
144
124
|
readonly columnIndex: number;
|
|
145
125
|
readonly x: number;
|
|
146
126
|
readonly y: number;
|
|
@@ -148,15 +128,7 @@ declare function useWaterFallLayout(items: Ref<WaterFallItem[]>, columns: Readon
|
|
|
148
128
|
readonly height: number;
|
|
149
129
|
readonly totalHeight?: number | undefined;
|
|
150
130
|
}[], readonly {
|
|
151
|
-
readonly item:
|
|
152
|
-
readonly [x: string]: any;
|
|
153
|
-
readonly id: string | number;
|
|
154
|
-
readonly src: string;
|
|
155
|
-
readonly width: number;
|
|
156
|
-
readonly height: number;
|
|
157
|
-
readonly title?: string | undefined;
|
|
158
|
-
readonly description?: string | undefined;
|
|
159
|
-
};
|
|
131
|
+
readonly item: vue.DeepReadonly<vue.UnwrapRef<T>>;
|
|
160
132
|
readonly columnIndex: number;
|
|
161
133
|
readonly x: number;
|
|
162
134
|
readonly y: number;
|
|
@@ -178,4 +150,4 @@ declare function useInfiniteScroll(sentinelRef: Ref<HTMLElement | undefined>, en
|
|
|
178
150
|
resume: () => void;
|
|
179
151
|
};
|
|
180
152
|
//#endregion
|
|
181
|
-
export { WaterFallLayoutItem as _, DEFAULT_BREAKPOINTS as a, INFINITE_SCROLL_THRESHOLD as c, InfiniteScrollStatus as d, WaterFallBreakpoint as f, WaterFallItem as g, WaterFallExpose as h, DEFAULT_ANIMATION_DURATION as i, SKELETON_HEIGHT_RANGE as l, WaterFallEmits as m, useWaterFallLayout as n, DEFAULT_GAP as o, WaterFallColumn as p, useResponsiveColumns as r, DEFAULT_SKELETON_COUNT as s, useInfiniteScroll as t, _default as u, WaterFallProps as v };
|
|
153
|
+
export { WaterFallLayoutItem as _, DEFAULT_BREAKPOINTS as a, WaterFallSlots as b, INFINITE_SCROLL_THRESHOLD as c, InfiniteScrollStatus as d, WaterFallBreakpoint as f, WaterFallItem as g, WaterFallExpose as h, DEFAULT_ANIMATION_DURATION as i, SKELETON_HEIGHT_RANGE as l, WaterFallEmits as m, useWaterFallLayout as n, DEFAULT_GAP as o, WaterFallColumn as p, useResponsiveColumns as r, DEFAULT_SKELETON_COUNT as s, useInfiniteScroll as t, _default as u, WaterFallProps as v, WaterFallRenderedItem as y };
|
package/dist/useQRCode.d.cts
CHANGED
|
@@ -50,16 +50,16 @@ 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
|
-
color: string;
|
|
55
53
|
label: string;
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
color: string;
|
|
55
|
+
size: number;
|
|
58
56
|
mode: RenderMode;
|
|
59
|
-
|
|
57
|
+
showBorder: boolean;
|
|
60
58
|
bgColor: string;
|
|
61
59
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
60
|
+
margin: number;
|
|
62
61
|
logo: LogoOptions;
|
|
62
|
+
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
//#endregion
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -50,16 +50,16 @@ 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
|
-
color: string;
|
|
55
53
|
label: string;
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
color: string;
|
|
55
|
+
size: number;
|
|
58
56
|
mode: RenderMode;
|
|
59
|
-
|
|
57
|
+
showBorder: boolean;
|
|
60
58
|
bgColor: string;
|
|
61
59
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
60
|
+
margin: number;
|
|
62
61
|
logo: LogoOptions;
|
|
62
|
+
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./context.cjs`),t=require(`./locale.cjs`);let n=require(`vue`);function r(r,i,a){let o=(0,n.getCurrentInstance)()?(0,n.inject)(e.r,{}):{},s=(0,n.computed)(()=>(0,n.toValue)(a)?.locale??o.locale??`zh-CN`),c=(0,n.computed)(()=>({...s.value===`en-US`?i:r,...o.messages,...(0,n.toValue)(a)?.messages})),l={get locale(){return s.value},get messages(){return c.value},get t(){return(0,n.toValue)(a)?.t??o.t}};return{locale:s,configured:(0,n.computed)(()=>!!((0,n.toValue)(a)||o.locale||o.messages||o.t)),t:(e,n)=>t.t(e,l,{},n)}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./context.js";import{t}from"./locale.js";import{computed as n,getCurrentInstance as r,inject as i,toValue as a}from"vue";function o(o,s,c){let l=r()?i(e,{}):{},u=n(()=>a(c)?.locale??l.locale??`zh-CN`),d=n(()=>({...u.value===`en-US`?s:o,...l.messages,...a(c)?.messages})),f={get locale(){return u.value},get messages(){return d.value},get t(){return a(c)?.t??l.t}};return{locale:u,configured:n(()=>!!(a(c)||l.locale||l.messages||l.t)),t:(e,n)=>t(e,f,{},n)}}export{o as t};
|