@robot-admin/naive-ui-components 0.11.8 → 0.13.0
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 +26 -0
- package/README.md +172 -29
- package/README_EN.md +171 -28
- package/SECURITY.md +1 -0
- package/dist/C_ActionBar.cjs +1 -1
- package/dist/C_ActionBar.css +67 -67
- package/dist/C_ActionBar.d.cts +2 -2
- package/dist/C_ActionBar.d.ts +2 -2
- package/dist/C_ActionBar.js +1 -1
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.css +70 -70
- package/dist/C_AntV2.cjs +3 -3
- package/dist/C_AntV2.js +3 -3
- package/dist/C_AudioPlayer.css +81 -66
- package/dist/C_AudioPlayer.d.cts +1 -1
- package/dist/C_AudioPlayer.d.ts +1 -1
- package/dist/C_AudioPlayer2.cjs +1 -1
- package/dist/C_AudioPlayer2.js +1 -1
- package/dist/C_AvatarGroup.css +40 -25
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup.d.ts +1 -1
- 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 +1 -1
- package/dist/C_Barcode.d.ts +1 -1
- package/dist/C_Barcode2.cjs +1 -1
- package/dist/C_Barcode2.js +1 -1
- package/dist/C_Breadcrumb.css +14 -14
- package/dist/C_Breadcrumb.d.cts +1 -1
- package/dist/C_Breadcrumb.d.ts +1 -1
- package/dist/C_Breadcrumb2.cjs +1 -1
- package/dist/C_Breadcrumb2.js +1 -1
- package/dist/C_Captcha.cjs +1 -1
- package/dist/C_Captcha.css +193 -51
- package/dist/C_Captcha.d.cts +2 -3
- package/dist/C_Captcha.d.ts +2 -3
- package/dist/C_Captcha.js +1 -1
- package/dist/C_Captcha2.cjs +1 -1
- package/dist/C_Captcha2.js +1 -1
- package/dist/C_Cascade.css +2 -2
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_Cascade2.cjs +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_Chat.css +96 -78
- package/dist/C_Chat.d.cts +1 -1
- package/dist/C_Chat.d.ts +1 -1
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_City.css +52 -28
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_City2.cjs +1 -1
- package/dist/C_City2.js +1 -1
- package/dist/C_Code.css +48 -42
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_Code2.cjs +1 -1
- package/dist/C_Code2.js +1 -1
- package/dist/C_CollapsePanel.css +14 -14
- package/dist/C_CollapsePanel2.cjs +1 -1
- package/dist/C_CollapsePanel2.js +1 -1
- package/dist/C_ContextMenu.css +14 -14
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_ContextMenu2.cjs +1 -1
- package/dist/C_ContextMenu2.js +1 -1
- package/dist/C_Cron.css +94 -55
- package/dist/C_Cron2.cjs +1 -1
- package/dist/C_Cron2.js +1 -1
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Date2.cjs +1 -1
- package/dist/C_Date2.js +1 -1
- package/dist/C_Draggable.css +48 -48
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_Editor.css +13 -14
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_FilePreview.css +18 -18
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +36 -36
- package/dist/C_Form.css +49 -50
- package/dist/C_Form2.cjs +1 -1
- package/dist/C_Form2.js +1 -1
- package/dist/C_FormModal.cjs +1 -0
- package/dist/C_FormModal.css +41 -0
- package/dist/C_FormModal.d.cts +2 -0
- package/dist/C_FormModal.d.ts +3 -0
- package/dist/C_FormModal.js +1 -0
- package/dist/C_FormModal2.cjs +1 -0
- package/dist/C_FormModal2.js +1 -0
- package/dist/C_FormSearch.css +45 -45
- package/dist/C_FormSearch2.cjs +1 -1
- package/dist/C_FormSearch2.js +1 -1
- package/dist/C_FormulaEditor.css +94 -55
- package/dist/C_FormulaEditor2.cjs +2 -2
- package/dist/C_FormulaEditor2.js +2 -2
- package/dist/C_FullCalendar.css +8 -1
- package/dist/C_FullCalendar2.cjs +1 -1
- package/dist/C_FullCalendar2.js +1 -1
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +14 -14
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Icon.css +14 -14
- package/dist/C_Icon2.cjs +1 -1
- package/dist/C_Icon2.js +1 -1
- package/dist/C_ImageCropper.css +22 -22
- package/dist/C_ImageCropper2.cjs +1 -1
- package/dist/C_ImageCropper2.js +1 -1
- package/dist/C_Language.css +14 -14
- package/dist/C_Language2.cjs +1 -1
- package/dist/C_Language2.js +1 -1
- package/dist/C_Login.css +232 -149
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Map.css +3 -3
- package/dist/C_Map2.cjs +1 -1
- package/dist/C_Map2.js +1 -1
- package/dist/C_Markdown.css +35 -35
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_Menu.d.cts +1 -1
- package/dist/C_Menu2.cjs +1 -1
- package/dist/C_Menu2.js +1 -1
- package/dist/C_NotificationCenter.css +30 -30
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_OrgChart.css +4 -0
- package/dist/C_OrgChart2.cjs +1 -1
- package/dist/C_OrgChart2.js +1 -1
- package/dist/C_Progress2.cjs +1 -1
- package/dist/C_Progress2.js +1 -1
- package/dist/C_QRCode.css +8 -8
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_Signature.css +14 -14
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_Skeleton2.cjs +1 -1
- package/dist/C_Skeleton2.js +1 -1
- package/dist/C_SplitPane.css +39 -39
- package/dist/C_SplitPane2.cjs +1 -1
- package/dist/C_SplitPane2.js +1 -1
- package/dist/C_Steps.css +48 -38
- package/dist/C_Steps2.cjs +1 -1
- package/dist/C_Steps2.js +1 -1
- package/dist/C_Table.base.css +160 -160
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +173 -174
- package/dist/C_Table.d.ts +4 -3
- package/dist/C_Table.js +1 -1
- package/dist/C_Tabs.cjs +1 -0
- package/dist/C_Tabs.css +1 -0
- package/dist/C_Tabs.d.cts +2 -0
- package/dist/C_Tabs.d.ts +2 -0
- package/dist/C_Tabs.js +1 -0
- package/dist/C_TagsView.css +52 -52
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_Theme.css +14 -14
- package/dist/C_Theme2.cjs +1 -1
- package/dist/C_Theme2.js +1 -1
- package/dist/C_Time.css +4 -4
- package/dist/C_Time2.cjs +1 -1
- package/dist/C_Time2.js +1 -1
- package/dist/C_Timeline.css +76 -58
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Transfer.css +51 -51
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.css +35 -32
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/C_Upload.css +53 -50
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_VideoPlayer.css +17 -13
- package/dist/C_VideoPlayer2.cjs +2 -2
- package/dist/C_VideoPlayer2.js +2 -2
- package/dist/C_VtableGantt.css +19 -19
- package/dist/C_VtableGantt2.cjs +1 -1
- package/dist/C_VtableGantt2.js +1 -1
- package/dist/C_WaterFall.css +19 -15
- package/dist/C_WaterFall2.cjs +1 -1
- package/dist/C_WaterFall2.js +1 -1
- package/dist/C_WorkFlow.css +123 -123
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants2.d.cts +3 -3
- package/dist/constants2.d.ts +3 -3
- package/dist/constants3.d.cts +8 -4
- package/dist/constants3.d.ts +8 -4
- package/dist/constants4.d.cts +6 -6
- package/dist/constants4.d.ts +6 -6
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data.d.cts +108 -0
- package/dist/data.d.ts +108 -0
- package/dist/data2.cjs +1 -0
- package/dist/data2.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +49 -49
- package/dist/index.d.ts +51 -49
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +74 -69
- package/dist/index.vue.d.ts +74 -69
- package/dist/index10.vue.d.cts +80 -39
- package/dist/index10.vue.d.ts +68 -77
- package/dist/index11.vue.d.cts +68 -77
- package/dist/index11.vue.d.ts +54 -69
- package/dist/index12.vue.d.cts +54 -69
- package/dist/index12.vue.d.ts +52 -58
- package/dist/index13.vue.d.cts +52 -58
- package/dist/index13.vue.d.ts +1 -1
- package/dist/index14.vue.d.cts +1 -1
- package/dist/index14.vue.d.ts +14 -47
- package/dist/index15.vue.d.cts +14 -47
- package/dist/index16.vue.d.ts +15 -12
- package/dist/index17.vue.d.cts +15 -12
- package/dist/index17.vue.d.ts +4 -4
- package/dist/index18.vue.d.cts +4 -4
- package/dist/index18.vue.d.ts +2 -2
- package/dist/index19.vue.d.cts +1 -1
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index2.vue.d.cts +70 -65
- package/dist/index2.vue.d.ts +70 -65
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index24.vue.d.cts +3 -3
- package/dist/index24.vue.d.ts +3 -3
- package/dist/index25.vue.d.cts +1 -1
- package/dist/index25.vue.d.ts +1 -1
- package/dist/index26.vue.d.cts +5 -5
- package/dist/index26.vue.d.ts +5 -5
- package/dist/index27.vue.d.cts +1 -1
- package/dist/index27.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +30 -80
- package/dist/index3.vue.d.ts +30 -80
- package/dist/index4.vue.d.cts +130 -30
- package/dist/index4.vue.d.ts +22 -30
- package/dist/index5.vue.d.cts +18 -126
- package/dist/index5.vue.d.ts +22 -19
- package/dist/index6.vue.d.cts +22 -19
- package/dist/index6.vue.d.ts +117 -22
- package/dist/index7.vue.d.cts +117 -22
- package/dist/index7.vue.d.ts +17 -110
- package/dist/index8.vue.d.cts +17 -110
- package/dist/index8.vue.d.ts +37 -24
- package/dist/index9.vue.d.cts +37 -24
- package/dist/index9.vue.d.ts +80 -39
- package/dist/mapUtils.d.cts +2 -2
- package/dist/mapUtils.d.ts +2 -2
- package/dist/presets.d.cts +96 -0
- package/dist/presets.d.ts +96 -0
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/style.css +1735 -1400
- package/dist/useCalendarEvents.d.cts +23 -18
- package/dist/useCalendarEvents.d.ts +23 -18
- package/dist/useCollapsePanel.d.cts +4 -3
- package/dist/useCollapsePanel.d.ts +4 -3
- package/dist/useCropperCore.d.cts +32 -17
- package/dist/useCropperCore.d.ts +32 -17
- package/dist/useDraggableLayout.d.cts +2 -2
- package/dist/useDraggableLayout.d.ts +2 -2
- package/dist/useDynamicFormState.d.cts +7 -2
- package/dist/useDynamicFormState.d.ts +7 -2
- package/dist/useEdgeInteraction.d.cts +20 -19
- package/dist/useEdgeInteraction.d.ts +20 -19
- package/dist/useFullscreen.d.cts +6 -6
- package/dist/useFullscreen.d.ts +6 -6
- package/dist/useInfiniteScroll.d.cts +1 -1
- package/dist/useInfiniteScroll.d.ts +1 -1
- package/dist/useQRCode.d.cts +5 -4
- package/dist/useQRCode.d.ts +5 -4
- package/dist/useSearchState.d.cts +9 -9
- package/dist/useSearchState.d.ts +9 -9
- package/dist/useSignatureHistory.d.cts +18 -10
- package/dist/useSignatureHistory.d.ts +18 -10
- package/dist/useSplitResize.d.cts +7 -7
- package/dist/useSplitResize.d.ts +7 -7
- package/dist/useTableQuery.cjs +3 -3
- package/dist/useTableQuery.d.cts +12 -5
- package/dist/useTableQuery.d.ts +12 -5
- package/dist/useTableQuery.js +3 -3
- package/dist/useTimeSelection.d.cts +6 -3
- package/dist/useTimeSelection.d.ts +6 -3
- package/dist/useTreeOperations.d.cts +8 -8
- package/dist/useTreeOperations.d.ts +8 -8
- package/dist/useWorkflowValidation.d.cts +6 -4
- package/dist/useWorkflowValidation.d.ts +6 -4
- package/dist/verification.d.cts +71 -6
- package/dist/verification.d.ts +71 -6
- package/package.json +5 -3
- package/dist/types.d.ts +0 -58
- package/dist/types2.d.cts +0 -58
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
import { Ref } from "vue";
|
|
3
|
-
import { CalendarOptions } from "@fullcalendar/core";
|
|
3
|
+
import { CalendarApi, CalendarOptions, EventApi } from "@fullcalendar/core";
|
|
4
4
|
|
|
5
5
|
//#region src/components/C_FullCalendar/types.d.ts
|
|
6
6
|
interface CalendarEvent {
|
|
@@ -12,11 +12,11 @@ interface CalendarEvent {
|
|
|
12
12
|
editable?: boolean;
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
}
|
|
15
|
-
type CalendarViewType =
|
|
15
|
+
type CalendarViewType = 'dayGridMonth' | 'dayGridWeek' | 'dayGridDay' | 'listWeek';
|
|
16
16
|
interface CalendarEditForm {
|
|
17
17
|
id: string;
|
|
18
18
|
title: string;
|
|
19
|
-
date: number;
|
|
19
|
+
date: number | null;
|
|
20
20
|
startTime: string;
|
|
21
21
|
endTime: string;
|
|
22
22
|
color: string;
|
|
@@ -29,17 +29,17 @@ interface CalendarProps {
|
|
|
29
29
|
showEditDialog?: boolean;
|
|
30
30
|
}
|
|
31
31
|
interface CalendarEmits {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
'update:events': [events: CalendarEvent[]];
|
|
33
|
+
'event-added': [event: CalendarEvent];
|
|
34
|
+
'event-updated': [event: Partial<CalendarEvent>];
|
|
35
|
+
'event-deleted': [event: {
|
|
36
36
|
id: string;
|
|
37
37
|
title: string;
|
|
38
38
|
}];
|
|
39
|
-
|
|
39
|
+
'event-dropped': [event: Partial<CalendarEvent>];
|
|
40
40
|
}
|
|
41
41
|
interface CalendarExpose {
|
|
42
|
-
getApi: () =>
|
|
42
|
+
getApi: () => CalendarApi | undefined;
|
|
43
43
|
addEvent: (event: CalendarEvent) => void;
|
|
44
44
|
updateEvent: (eventData: Partial<CalendarEvent>) => void;
|
|
45
45
|
deleteEvent: (eventId: string) => void;
|
|
@@ -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
|
-
editable: boolean;
|
|
70
69
|
initialView: CalendarViewType;
|
|
70
|
+
editable: boolean;
|
|
71
71
|
events: CalendarEvent[];
|
|
72
72
|
showAddDialog: boolean;
|
|
73
73
|
showEditDialog: boolean;
|
|
@@ -105,23 +105,29 @@ type EmitFn = {
|
|
|
105
105
|
*
|
|
106
106
|
*/
|
|
107
107
|
declare function useCalendarEvents(props: CalendarProps, emit: EmitFn): {
|
|
108
|
-
calendarRef: Ref<
|
|
108
|
+
calendarRef: Ref<{
|
|
109
|
+
getApi: () => CalendarApi;
|
|
110
|
+
} | null, {
|
|
111
|
+
getApi: () => CalendarApi;
|
|
112
|
+
} | {
|
|
113
|
+
getApi: () => CalendarApi;
|
|
114
|
+
} | null>;
|
|
109
115
|
calendarOptions: Ref<CalendarOptions, CalendarOptions>;
|
|
110
116
|
showActionDialog: Ref<boolean, boolean>;
|
|
111
117
|
showEditModal: Ref<boolean, boolean>;
|
|
112
118
|
isEditing: Ref<boolean, boolean>;
|
|
113
|
-
selectedEvent:
|
|
119
|
+
selectedEvent: vue.ShallowRef<EventApi | null, EventApi | null>;
|
|
114
120
|
editForm: Ref<{
|
|
115
121
|
id: string;
|
|
116
122
|
title: string;
|
|
117
|
-
date: number;
|
|
123
|
+
date: number | null;
|
|
118
124
|
startTime: string;
|
|
119
125
|
endTime: string;
|
|
120
126
|
color: string;
|
|
121
127
|
}, CalendarEditForm | {
|
|
122
128
|
id: string;
|
|
123
129
|
title: string;
|
|
124
|
-
date: number;
|
|
130
|
+
date: number | null;
|
|
125
131
|
startTime: string;
|
|
126
132
|
endTime: string;
|
|
127
133
|
color: string;
|
|
@@ -131,16 +137,15 @@ declare function useCalendarEvents(props: CalendarProps, emit: EmitFn): {
|
|
|
131
137
|
saveEvent: () => boolean;
|
|
132
138
|
deleteEvent: () => void;
|
|
133
139
|
expose: {
|
|
134
|
-
getApi: () =>
|
|
140
|
+
getApi: () => CalendarApi | undefined;
|
|
135
141
|
addEvent: (event: CalendarEvent) => void;
|
|
136
142
|
updateEvent: (eventData: Partial<CalendarEvent>) => void;
|
|
137
143
|
deleteEvent: (eventId: string) => void;
|
|
138
144
|
getEvents: () => {
|
|
139
|
-
|
|
145
|
+
start: string | Date;
|
|
146
|
+
end: string | Date | undefined;
|
|
140
147
|
id: string;
|
|
141
148
|
title: string;
|
|
142
|
-
start: Date | string;
|
|
143
|
-
end?: (Date | string) | undefined;
|
|
144
149
|
color?: string | undefined;
|
|
145
150
|
editable?: boolean | undefined;
|
|
146
151
|
}[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
import { Ref } from "vue";
|
|
3
|
-
import { CalendarOptions } from "@fullcalendar/core";
|
|
3
|
+
import { CalendarApi, CalendarOptions, EventApi } from "@fullcalendar/core";
|
|
4
4
|
|
|
5
5
|
//#region src/components/C_FullCalendar/types.d.ts
|
|
6
6
|
interface CalendarEvent {
|
|
@@ -12,11 +12,11 @@ interface CalendarEvent {
|
|
|
12
12
|
editable?: boolean;
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
}
|
|
15
|
-
type CalendarViewType =
|
|
15
|
+
type CalendarViewType = 'dayGridMonth' | 'dayGridWeek' | 'dayGridDay' | 'listWeek';
|
|
16
16
|
interface CalendarEditForm {
|
|
17
17
|
id: string;
|
|
18
18
|
title: string;
|
|
19
|
-
date: number;
|
|
19
|
+
date: number | null;
|
|
20
20
|
startTime: string;
|
|
21
21
|
endTime: string;
|
|
22
22
|
color: string;
|
|
@@ -29,17 +29,17 @@ interface CalendarProps {
|
|
|
29
29
|
showEditDialog?: boolean;
|
|
30
30
|
}
|
|
31
31
|
interface CalendarEmits {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
'update:events': [events: CalendarEvent[]];
|
|
33
|
+
'event-added': [event: CalendarEvent];
|
|
34
|
+
'event-updated': [event: Partial<CalendarEvent>];
|
|
35
|
+
'event-deleted': [event: {
|
|
36
36
|
id: string;
|
|
37
37
|
title: string;
|
|
38
38
|
}];
|
|
39
|
-
|
|
39
|
+
'event-dropped': [event: Partial<CalendarEvent>];
|
|
40
40
|
}
|
|
41
41
|
interface CalendarExpose {
|
|
42
|
-
getApi: () =>
|
|
42
|
+
getApi: () => CalendarApi | undefined;
|
|
43
43
|
addEvent: (event: CalendarEvent) => void;
|
|
44
44
|
updateEvent: (eventData: Partial<CalendarEvent>) => void;
|
|
45
45
|
deleteEvent: (eventId: string) => void;
|
|
@@ -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
|
-
editable: boolean;
|
|
70
69
|
initialView: CalendarViewType;
|
|
70
|
+
editable: boolean;
|
|
71
71
|
events: CalendarEvent[];
|
|
72
72
|
showAddDialog: boolean;
|
|
73
73
|
showEditDialog: boolean;
|
|
@@ -105,23 +105,29 @@ type EmitFn = {
|
|
|
105
105
|
*
|
|
106
106
|
*/
|
|
107
107
|
declare function useCalendarEvents(props: CalendarProps, emit: EmitFn): {
|
|
108
|
-
calendarRef: Ref<
|
|
108
|
+
calendarRef: Ref<{
|
|
109
|
+
getApi: () => CalendarApi;
|
|
110
|
+
} | null, {
|
|
111
|
+
getApi: () => CalendarApi;
|
|
112
|
+
} | {
|
|
113
|
+
getApi: () => CalendarApi;
|
|
114
|
+
} | null>;
|
|
109
115
|
calendarOptions: Ref<CalendarOptions, CalendarOptions>;
|
|
110
116
|
showActionDialog: Ref<boolean, boolean>;
|
|
111
117
|
showEditModal: Ref<boolean, boolean>;
|
|
112
118
|
isEditing: Ref<boolean, boolean>;
|
|
113
|
-
selectedEvent:
|
|
119
|
+
selectedEvent: vue.ShallowRef<EventApi | null, EventApi | null>;
|
|
114
120
|
editForm: Ref<{
|
|
115
121
|
id: string;
|
|
116
122
|
title: string;
|
|
117
|
-
date: number;
|
|
123
|
+
date: number | null;
|
|
118
124
|
startTime: string;
|
|
119
125
|
endTime: string;
|
|
120
126
|
color: string;
|
|
121
127
|
}, CalendarEditForm | {
|
|
122
128
|
id: string;
|
|
123
129
|
title: string;
|
|
124
|
-
date: number;
|
|
130
|
+
date: number | null;
|
|
125
131
|
startTime: string;
|
|
126
132
|
endTime: string;
|
|
127
133
|
color: string;
|
|
@@ -131,16 +137,15 @@ declare function useCalendarEvents(props: CalendarProps, emit: EmitFn): {
|
|
|
131
137
|
saveEvent: () => boolean;
|
|
132
138
|
deleteEvent: () => void;
|
|
133
139
|
expose: {
|
|
134
|
-
getApi: () =>
|
|
140
|
+
getApi: () => CalendarApi | undefined;
|
|
135
141
|
addEvent: (event: CalendarEvent) => void;
|
|
136
142
|
updateEvent: (eventData: Partial<CalendarEvent>) => void;
|
|
137
143
|
deleteEvent: (eventId: string) => void;
|
|
138
144
|
getEvents: () => {
|
|
139
|
-
|
|
145
|
+
start: string | Date;
|
|
146
|
+
end: string | Date | undefined;
|
|
140
147
|
id: string;
|
|
141
148
|
title: string;
|
|
142
|
-
start: Date | string;
|
|
143
|
-
end?: (Date | string) | undefined;
|
|
144
149
|
color?: string | undefined;
|
|
145
150
|
editable?: boolean | undefined;
|
|
146
151
|
}[];
|
|
@@ -71,22 +71,22 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
71
71
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
|
|
72
72
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
73
73
|
change: (activeKeys: string[]) => any;
|
|
74
|
-
"update:activeKeys": (keys: string[]) => any;
|
|
75
74
|
expand: (key: string) => any;
|
|
76
75
|
collapse: (key: string) => any;
|
|
76
|
+
"update:activeKeys": (keys: string[]) => any;
|
|
77
77
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
78
78
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
79
|
-
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
80
79
|
onExpand?: ((key: string) => any) | undefined;
|
|
81
80
|
onCollapse?: ((key: string) => any) | undefined;
|
|
81
|
+
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
83
|
bordered: boolean;
|
|
84
|
+
persistKey: string;
|
|
84
85
|
activeKeys: string[];
|
|
85
86
|
defaultActiveKeys: string[];
|
|
86
87
|
accordion: boolean;
|
|
87
88
|
variant: CollapsePanelVariant;
|
|
88
89
|
expandIconPosition: ExpandIconPosition;
|
|
89
|
-
persistKey: string;
|
|
90
90
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
91
91
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
92
92
|
declare const _default: typeof __VLS_export;
|
|
@@ -115,6 +115,7 @@ interface UseCollapsePanelOptions {
|
|
|
115
115
|
/** 单面板折叠回调 */
|
|
116
116
|
onCollapse?: (key: string) => void;
|
|
117
117
|
}
|
|
118
|
+
/** Decode persisted keys without trusting localStorage JSON shape. */
|
|
118
119
|
/**
|
|
119
120
|
* 折叠面板展开/折叠核心逻辑
|
|
120
121
|
*/
|
|
@@ -71,22 +71,22 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
71
71
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
|
|
72
72
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
73
73
|
change: (activeKeys: string[]) => any;
|
|
74
|
-
"update:activeKeys": (keys: string[]) => any;
|
|
75
74
|
expand: (key: string) => any;
|
|
76
75
|
collapse: (key: string) => any;
|
|
76
|
+
"update:activeKeys": (keys: string[]) => any;
|
|
77
77
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
78
78
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
79
|
-
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
80
79
|
onExpand?: ((key: string) => any) | undefined;
|
|
81
80
|
onCollapse?: ((key: string) => any) | undefined;
|
|
81
|
+
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
83
|
bordered: boolean;
|
|
84
|
+
persistKey: string;
|
|
84
85
|
activeKeys: string[];
|
|
85
86
|
defaultActiveKeys: string[];
|
|
86
87
|
accordion: boolean;
|
|
87
88
|
variant: CollapsePanelVariant;
|
|
88
89
|
expandIconPosition: ExpandIconPosition;
|
|
89
|
-
persistKey: string;
|
|
90
90
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
91
91
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
92
92
|
declare const _default: typeof __VLS_export;
|
|
@@ -115,6 +115,7 @@ interface UseCollapsePanelOptions {
|
|
|
115
115
|
/** 单面板折叠回调 */
|
|
116
116
|
onCollapse?: (key: string) => void;
|
|
117
117
|
}
|
|
118
|
+
/** Decode persisted keys without trusting localStorage JSON shape. */
|
|
118
119
|
/**
|
|
119
120
|
* 折叠面板展开/折叠核心逻辑
|
|
120
121
|
*/
|
|
@@ -2,7 +2,7 @@ import * as vue from "vue";
|
|
|
2
2
|
import { Ref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_ImageCropper/types.d.ts
|
|
5
|
-
type CropOutputFormat =
|
|
5
|
+
type CropOutputFormat = 'png' | 'jpeg' | 'webp';
|
|
6
6
|
interface AspectRatioPreset {
|
|
7
7
|
label: string;
|
|
8
8
|
value: number;
|
|
@@ -44,59 +44,74 @@ interface ImageCropperExpose {
|
|
|
44
44
|
interface ImageCropperEmits {
|
|
45
45
|
crop: [result: CropResult];
|
|
46
46
|
ready: [];
|
|
47
|
-
error: [error:
|
|
47
|
+
error: [error: Error];
|
|
48
48
|
confirm: [result: CropResult];
|
|
49
49
|
cancel: [];
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
|
-
error: (error:
|
|
54
|
+
error: (error: Error) => any;
|
|
55
55
|
ready: () => any;
|
|
56
56
|
cancel: () => any;
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
crop: (result: CropResult) => any;
|
|
58
|
+
confirm: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
|
-
onError?: ((error:
|
|
60
|
+
onError?: ((error: Error) => any) | undefined;
|
|
61
61
|
onReady?: (() => any) | undefined;
|
|
62
62
|
onCancel?: (() => any) | undefined;
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
onCrop?: ((result: CropResult) => any) | undefined;
|
|
64
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
height: string | number;
|
|
67
|
+
showToolbar: boolean;
|
|
67
68
|
disabled: boolean;
|
|
68
|
-
showPreview: boolean;
|
|
69
69
|
src: string;
|
|
70
|
-
showToolbar: boolean;
|
|
71
70
|
aspectRatio: number;
|
|
72
|
-
modal: boolean;
|
|
73
71
|
outputFormat: CropOutputFormat;
|
|
74
72
|
outputQuality: number;
|
|
75
73
|
maxOutputWidth: number;
|
|
76
74
|
maxOutputHeight: number;
|
|
75
|
+
showPreview: boolean;
|
|
77
76
|
circular: boolean;
|
|
77
|
+
modal: boolean;
|
|
78
78
|
modalTitle: string;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region src/components/C_ImageCropper/composables/useCropperCore.d.ts
|
|
83
|
+
interface CropperInstance {
|
|
84
|
+
rotateLeft: () => void;
|
|
85
|
+
rotateRight: () => void;
|
|
86
|
+
changeScale: (step: number) => void;
|
|
87
|
+
refresh: () => void;
|
|
88
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
89
|
+
}
|
|
83
90
|
interface UseCropperCoreOptions {
|
|
84
91
|
format?: Ref<CropOutputFormat>;
|
|
85
92
|
quality?: Ref<number>;
|
|
86
93
|
maxWidth?: Ref<number>;
|
|
87
94
|
maxHeight?: Ref<number>;
|
|
88
95
|
}
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
*/
|
|
96
|
+
/** Manage the vue-cropper instance and serialize a single crop snapshot. */
|
|
92
97
|
declare function useCropperCore(options?: UseCropperCoreOptions): {
|
|
93
|
-
cropperRef: Ref<
|
|
98
|
+
cropperRef: Ref<{
|
|
99
|
+
rotateLeft: () => void;
|
|
100
|
+
rotateRight: () => void;
|
|
101
|
+
changeScale: (step: number) => void;
|
|
102
|
+
refresh: () => void;
|
|
103
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
104
|
+
} | null, CropperInstance | {
|
|
105
|
+
rotateLeft: () => void;
|
|
106
|
+
rotateRight: () => void;
|
|
107
|
+
changeScale: (step: number) => void;
|
|
108
|
+
refresh: () => void;
|
|
109
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
110
|
+
} | null>;
|
|
94
111
|
rotate: (angle: number) => void;
|
|
95
112
|
rotateLeft: () => void;
|
|
96
113
|
rotateRight: () => void;
|
|
97
114
|
zoom: (scale: number) => void;
|
|
98
|
-
flipX: () => void;
|
|
99
|
-
flipY: () => void;
|
|
100
115
|
reset: () => void;
|
|
101
116
|
getCropResult: () => Promise<CropResult>;
|
|
102
117
|
};
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vue from "vue";
|
|
|
2
2
|
import { Ref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_ImageCropper/types.d.ts
|
|
5
|
-
type CropOutputFormat =
|
|
5
|
+
type CropOutputFormat = 'png' | 'jpeg' | 'webp';
|
|
6
6
|
interface AspectRatioPreset {
|
|
7
7
|
label: string;
|
|
8
8
|
value: number;
|
|
@@ -44,59 +44,74 @@ interface ImageCropperExpose {
|
|
|
44
44
|
interface ImageCropperEmits {
|
|
45
45
|
crop: [result: CropResult];
|
|
46
46
|
ready: [];
|
|
47
|
-
error: [error:
|
|
47
|
+
error: [error: Error];
|
|
48
48
|
confirm: [result: CropResult];
|
|
49
49
|
cancel: [];
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
|
-
error: (error:
|
|
54
|
+
error: (error: Error) => any;
|
|
55
55
|
ready: () => any;
|
|
56
56
|
cancel: () => any;
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
crop: (result: CropResult) => any;
|
|
58
|
+
confirm: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
|
-
onError?: ((error:
|
|
60
|
+
onError?: ((error: Error) => any) | undefined;
|
|
61
61
|
onReady?: (() => any) | undefined;
|
|
62
62
|
onCancel?: (() => any) | undefined;
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
onCrop?: ((result: CropResult) => any) | undefined;
|
|
64
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
height: string | number;
|
|
67
|
+
showToolbar: boolean;
|
|
67
68
|
disabled: boolean;
|
|
68
|
-
showPreview: boolean;
|
|
69
69
|
src: string;
|
|
70
|
-
showToolbar: boolean;
|
|
71
70
|
aspectRatio: number;
|
|
72
|
-
modal: boolean;
|
|
73
71
|
outputFormat: CropOutputFormat;
|
|
74
72
|
outputQuality: number;
|
|
75
73
|
maxOutputWidth: number;
|
|
76
74
|
maxOutputHeight: number;
|
|
75
|
+
showPreview: boolean;
|
|
77
76
|
circular: boolean;
|
|
77
|
+
modal: boolean;
|
|
78
78
|
modalTitle: string;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region src/components/C_ImageCropper/composables/useCropperCore.d.ts
|
|
83
|
+
interface CropperInstance {
|
|
84
|
+
rotateLeft: () => void;
|
|
85
|
+
rotateRight: () => void;
|
|
86
|
+
changeScale: (step: number) => void;
|
|
87
|
+
refresh: () => void;
|
|
88
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
89
|
+
}
|
|
83
90
|
interface UseCropperCoreOptions {
|
|
84
91
|
format?: Ref<CropOutputFormat>;
|
|
85
92
|
quality?: Ref<number>;
|
|
86
93
|
maxWidth?: Ref<number>;
|
|
87
94
|
maxHeight?: Ref<number>;
|
|
88
95
|
}
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
*/
|
|
96
|
+
/** Manage the vue-cropper instance and serialize a single crop snapshot. */
|
|
92
97
|
declare function useCropperCore(options?: UseCropperCoreOptions): {
|
|
93
|
-
cropperRef: Ref<
|
|
98
|
+
cropperRef: Ref<{
|
|
99
|
+
rotateLeft: () => void;
|
|
100
|
+
rotateRight: () => void;
|
|
101
|
+
changeScale: (step: number) => void;
|
|
102
|
+
refresh: () => void;
|
|
103
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
104
|
+
} | null, CropperInstance | {
|
|
105
|
+
rotateLeft: () => void;
|
|
106
|
+
rotateRight: () => void;
|
|
107
|
+
changeScale: (step: number) => void;
|
|
108
|
+
refresh: () => void;
|
|
109
|
+
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
110
|
+
} | null>;
|
|
94
111
|
rotate: (angle: number) => void;
|
|
95
112
|
rotateLeft: () => void;
|
|
96
113
|
rotateRight: () => void;
|
|
97
114
|
zoom: (scale: number) => void;
|
|
98
|
-
flipX: () => void;
|
|
99
|
-
flipY: () => void;
|
|
100
115
|
reset: () => void;
|
|
101
116
|
getCropResult: () => Promise<CropResult>;
|
|
102
117
|
};
|
|
@@ -118,9 +118,10 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
118
118
|
}>, {
|
|
119
119
|
sort: boolean;
|
|
120
120
|
modelValue: DraggableItem[];
|
|
121
|
+
direction: "vertical" | "horizontal";
|
|
121
122
|
disabled: boolean;
|
|
123
|
+
itemClass: string;
|
|
122
124
|
delay: number;
|
|
123
|
-
direction: "vertical" | "horizontal";
|
|
124
125
|
emptyText: string;
|
|
125
126
|
group: string | GroupOptions;
|
|
126
127
|
animation: number;
|
|
@@ -131,7 +132,6 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
131
132
|
dragClass: string;
|
|
132
133
|
wrapperClass: string;
|
|
133
134
|
listClass: string;
|
|
134
|
-
itemClass: string;
|
|
135
135
|
showEmptyState: boolean;
|
|
136
136
|
swapThreshold: number;
|
|
137
137
|
invertSwap: boolean;
|
|
@@ -118,9 +118,10 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
118
118
|
}>, {
|
|
119
119
|
sort: boolean;
|
|
120
120
|
modelValue: DraggableItem[];
|
|
121
|
+
direction: "vertical" | "horizontal";
|
|
121
122
|
disabled: boolean;
|
|
123
|
+
itemClass: string;
|
|
122
124
|
delay: number;
|
|
123
|
-
direction: "vertical" | "horizontal";
|
|
124
125
|
emptyText: string;
|
|
125
126
|
group: string | GroupOptions;
|
|
126
127
|
animation: number;
|
|
@@ -131,7 +132,6 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
131
132
|
dragClass: string;
|
|
132
133
|
wrapperClass: string;
|
|
133
134
|
listClass: string;
|
|
134
|
-
itemClass: string;
|
|
135
135
|
showEmptyState: boolean;
|
|
136
136
|
swapThreshold: number;
|
|
137
137
|
invertSwap: boolean;
|
|
@@ -352,9 +352,14 @@ interface FormStepActionsSlotProps {
|
|
|
352
352
|
nextStep: () => Promise<void>;
|
|
353
353
|
previousStep: () => void;
|
|
354
354
|
goToStep: (stepIndex: number) => Promise<void>;
|
|
355
|
+
/** Validate and submit the complete form, including fields in other steps. */
|
|
356
|
+
submit: () => Promise<boolean>;
|
|
357
|
+
submitting: boolean;
|
|
355
358
|
}
|
|
356
359
|
/** C_Form 对外公开的具名插槽。 */
|
|
357
360
|
interface FormSlots<T extends object = FormRecord> {
|
|
361
|
+
/** Field-specific named slots are intentionally open-ended. */
|
|
362
|
+
[slotName: string]: ((props: any) => unknown) | undefined;
|
|
358
363
|
action?: (props: FormActionSlotProps<T>) => unknown;
|
|
359
364
|
'tab-actions'?: (props: FormTabActionsSlotProps) => unknown;
|
|
360
365
|
'step-actions'?: (props: FormStepActionsSlotProps) => unknown;
|
|
@@ -581,8 +586,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
581
586
|
renderers?: Record<string, FormRenderer>;
|
|
582
587
|
} & {
|
|
583
588
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
584
|
-
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
585
589
|
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
590
|
+
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
586
591
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
587
592
|
}> & (typeof globalThis extends {
|
|
588
593
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -626,7 +631,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
626
631
|
}>) => void;
|
|
627
632
|
attrs: any;
|
|
628
633
|
slots: FormSlots<T>;
|
|
629
|
-
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "
|
|
634
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void);
|
|
630
635
|
}>) => vue.VNode & {
|
|
631
636
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
632
637
|
};
|
|
@@ -352,9 +352,14 @@ interface FormStepActionsSlotProps {
|
|
|
352
352
|
nextStep: () => Promise<void>;
|
|
353
353
|
previousStep: () => void;
|
|
354
354
|
goToStep: (stepIndex: number) => Promise<void>;
|
|
355
|
+
/** Validate and submit the complete form, including fields in other steps. */
|
|
356
|
+
submit: () => Promise<boolean>;
|
|
357
|
+
submitting: boolean;
|
|
355
358
|
}
|
|
356
359
|
/** C_Form 对外公开的具名插槽。 */
|
|
357
360
|
interface FormSlots<T extends object = FormRecord> {
|
|
361
|
+
/** Field-specific named slots are intentionally open-ended. */
|
|
362
|
+
[slotName: string]: ((props: any) => unknown) | undefined;
|
|
358
363
|
action?: (props: FormActionSlotProps<T>) => unknown;
|
|
359
364
|
'tab-actions'?: (props: FormTabActionsSlotProps) => unknown;
|
|
360
365
|
'step-actions'?: (props: FormStepActionsSlotProps) => unknown;
|
|
@@ -581,8 +586,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
581
586
|
renderers?: Record<string, FormRenderer>;
|
|
582
587
|
} & {
|
|
583
588
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
584
|
-
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
585
589
|
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
590
|
+
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
586
591
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
587
592
|
}> & (typeof globalThis extends {
|
|
588
593
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -626,7 +631,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
626
631
|
}>) => void;
|
|
627
632
|
attrs: any;
|
|
628
633
|
slots: FormSlots<T>;
|
|
629
|
-
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "
|
|
634
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void);
|
|
630
635
|
}>) => vue.VNode & {
|
|
631
636
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
632
637
|
};
|