@robot-admin/naive-ui-components 0.30.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +2 -2
- package/README_EN.md +2 -2
- package/dist/C_ActionBar.css +1 -2
- package/dist/C_AntV.css +1 -2
- package/dist/C_AudioPlayer.css +1 -2
- package/dist/C_AvatarGroup.css +1 -2
- package/dist/C_Barcode.css +1 -2
- package/dist/C_Breadcrumb.css +1 -2
- package/dist/C_Captcha.css +1 -2
- package/dist/C_Cascade.css +1 -2
- package/dist/C_Chat.css +1 -2
- package/dist/C_City.css +1 -2
- package/dist/C_Code.css +1 -2
- package/dist/C_CollapsePanel.css +1 -2
- package/dist/C_ContextMenu.css +1 -2
- package/dist/C_Cron.css +1 -2
- package/dist/C_Date.css +1 -2
- package/dist/C_Density.css +1 -1
- package/dist/C_Draggable.css +1 -2
- package/dist/C_Editor.css +1 -2
- package/dist/C_ErrorSummary.css +1 -2
- package/dist/C_FilePreview.css +1 -2
- package/dist/C_Form.base.css +1 -2
- package/dist/C_FormSearch.css +67 -68
- package/dist/C_FormulaEditor.css +1 -2
- package/dist/C_FullCalendar.css +1 -2
- package/dist/C_GlobalSearch.css +1 -2
- package/dist/C_Guide.css +1 -2
- package/dist/C_Icon.css +1 -2
- package/dist/C_ImageCropper.css +1 -2
- package/dist/C_Language.css +1 -2
- package/dist/C_Loading.css +1 -2
- package/dist/C_Login.css +1 -2
- package/dist/C_Map.css +1 -2
- package/dist/C_Markdown.css +1 -2
- package/dist/C_Menu.css +1 -2
- package/dist/C_NotificationCenter.css +1 -2
- package/dist/C_OrgChart.css +1 -2
- package/dist/C_PageLoading.css +1 -2
- package/dist/C_Progress.css +1 -1
- package/dist/C_QRCode.css +1 -2
- package/dist/C_SectionNav.css +1 -2
- package/dist/C_Signature.css +1 -2
- package/dist/C_Skeleton.css +1 -2
- package/dist/C_SplitPane.css +1 -2
- package/dist/C_Steps.css +1 -2
- package/dist/C_Table.base.css +110 -111
- package/dist/C_Table.css +109 -109
- package/dist/C_Table2.cjs +2 -2
- package/dist/C_Table2.js +2 -2
- package/dist/C_Tabs.css +1 -2
- package/dist/C_TagsView.css +1 -2
- package/dist/C_Theme.css +1 -2
- package/dist/C_Time.css +1 -2
- package/dist/C_Timeline.css +1 -2
- package/dist/C_Transfer.css +1 -2
- package/dist/C_Tree.css +1 -2
- package/dist/C_Upload.css +1 -2
- package/dist/C_VideoPlayer.css +1 -2
- package/dist/C_VtableGantt.css +1 -2
- package/dist/C_WaterFall.css +1 -2
- package/dist/C_WorkFlow.css +1 -2
- package/dist/constants3.d.cts +1 -1
- package/dist/constants3.d.ts +1 -1
- package/dist/constants4.d.cts +4 -4
- package/dist/constants4.d.ts +4 -4
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data2.d.cts +9 -9
- package/dist/data2.d.ts +9 -9
- package/dist/formField.cjs +1 -1
- package/dist/formField.d.cts +2 -0
- package/dist/formField.d.ts +2 -0
- package/dist/formField.js +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/helpers2.cjs +1 -1
- package/dist/helpers2.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.cts +3 -3
- package/dist/index10.vue.d.ts +3 -3
- package/dist/index11.vue.d.cts +3 -3
- package/dist/index12.vue.d.ts +2 -2
- package/dist/index13.vue.d.cts +2 -2
- package/dist/index14.vue.d.ts +2 -2
- package/dist/index15.vue.d.cts +2 -2
- package/dist/index15.vue.d.ts +2 -2
- package/dist/index16.vue.d.cts +2 -2
- package/dist/index16.vue.d.ts +5 -5
- package/dist/index17.vue.d.cts +5 -5
- package/dist/index18.vue.d.ts +1 -1
- package/dist/index19.vue.d.cts +1 -1
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index2.vue.d.cts +1 -1
- package/dist/index2.vue.d.ts +1 -1
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +2 -2
- package/dist/index21.vue.d.cts +2 -2
- 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 +2 -2
- package/dist/index25.vue.d.ts +2 -2
- package/dist/index26.vue.d.cts +2 -2
- package/dist/index26.vue.d.ts +2 -2
- package/dist/index29.vue.d.cts +5 -5
- package/dist/index29.vue.d.ts +5 -5
- package/dist/index3.vue.d.cts +4 -4
- package/dist/index3.vue.d.ts +4 -4
- package/dist/index7.vue.d.ts +3 -3
- package/dist/index8.vue.d.cts +3 -3
- package/dist/index9.vue.d.ts +3 -3
- package/dist/mapUtils.d.cts +2 -2
- package/dist/mapUtils.d.ts +2 -2
- package/dist/options.cjs +1 -1
- package/dist/options.js +1 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/shared-tokens.css +1 -0
- package/dist/style.css +175 -175
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +4 -4
- package/dist/useCollapsePanel.d.ts +4 -4
- package/dist/useCropperCore.d.cts +8 -8
- package/dist/useCropperCore.d.ts +8 -8
- package/dist/useDynamicFormState.d.cts +2 -2
- package/dist/useDynamicFormState.d.ts +2 -2
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useGlobalSearch.d.cts +1 -1
- package/dist/useGlobalSearch.d.ts +1 -1
- package/dist/useInfiniteScroll.d.cts +4 -4
- package/dist/useInfiniteScroll.d.ts +4 -4
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +2 -2
- package/dist/useSignatureHistory.d.ts +2 -2
- package/dist/useSplitResize.d.cts +10 -10
- package/dist/useSplitResize.d.ts +10 -10
- package/dist/useTableQuery.d.cts +9 -8
- package/dist/useTableQuery.d.ts +9 -8
- package/dist/useWorkflowValidation.d.cts +34 -34
- package/dist/useWorkflowValidation.d.ts +34 -34
- package/dist/verification.d.cts +4 -4
- package/dist/verification.d.ts +4 -4
- package/docs/guides/runtime-performance.md +10 -0
- package/package.json +2 -1
|
@@ -72,9 +72,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
72
72
|
}) => any) | undefined;
|
|
73
73
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
74
74
|
}>, {
|
|
75
|
-
editable: boolean;
|
|
76
75
|
events: CalendarEvent[];
|
|
77
76
|
initialView: CalendarViewType;
|
|
77
|
+
editable: boolean;
|
|
78
78
|
showAddDialog: boolean;
|
|
79
79
|
showEditDialog: boolean;
|
|
80
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -72,9 +72,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
72
72
|
}) => any) | undefined;
|
|
73
73
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
74
74
|
}>, {
|
|
75
|
-
editable: boolean;
|
|
76
75
|
events: CalendarEvent[];
|
|
77
76
|
initialView: CalendarViewType;
|
|
77
|
+
editable: boolean;
|
|
78
78
|
showAddDialog: boolean;
|
|
79
79
|
showEditDialog: boolean;
|
|
80
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -72,21 +72,21 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __
|
|
|
72
72
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
73
73
|
change: (activeKeys: string[]) => any;
|
|
74
74
|
expand: (key: string) => any;
|
|
75
|
-
collapse: (key: string) => any;
|
|
76
75
|
"update:activeKeys": (keys: string[]) => any;
|
|
76
|
+
collapse: (key: string) => any;
|
|
77
77
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
78
78
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
79
79
|
onExpand?: ((key: string) => any) | undefined;
|
|
80
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
81
80
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
81
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
|
-
bordered: boolean;
|
|
84
83
|
persistKey: string;
|
|
85
|
-
accordion: boolean;
|
|
86
84
|
activeKeys: string[];
|
|
87
85
|
defaultActiveKeys: string[];
|
|
86
|
+
accordion: boolean;
|
|
88
87
|
variant: CollapsePanelVariant;
|
|
89
88
|
expandIconPosition: ExpandIconPosition;
|
|
89
|
+
bordered: boolean;
|
|
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;
|
|
@@ -72,21 +72,21 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __
|
|
|
72
72
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
73
73
|
change: (activeKeys: string[]) => any;
|
|
74
74
|
expand: (key: string) => any;
|
|
75
|
-
collapse: (key: string) => any;
|
|
76
75
|
"update:activeKeys": (keys: string[]) => any;
|
|
76
|
+
collapse: (key: string) => any;
|
|
77
77
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
78
78
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
79
79
|
onExpand?: ((key: string) => any) | undefined;
|
|
80
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
81
80
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
81
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
|
-
bordered: boolean;
|
|
84
83
|
persistKey: string;
|
|
85
|
-
accordion: boolean;
|
|
86
84
|
activeKeys: string[];
|
|
87
85
|
defaultActiveKeys: string[];
|
|
86
|
+
accordion: boolean;
|
|
88
87
|
variant: CollapsePanelVariant;
|
|
89
88
|
expandIconPosition: ExpandIconPosition;
|
|
89
|
+
bordered: boolean;
|
|
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;
|
|
@@ -52,25 +52,25 @@ interface ImageCropperEmits {
|
|
|
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
54
|
error: (error: Error) => any;
|
|
55
|
-
cancel: () => any;
|
|
56
|
-
confirm: (result: CropResult) => any;
|
|
57
55
|
ready: () => any;
|
|
56
|
+
confirm: (result: CropResult) => any;
|
|
57
|
+
cancel: () => any;
|
|
58
58
|
crop: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
60
|
onError?: ((error: Error) => any) | undefined;
|
|
61
|
-
onCancel?: (() => any) | undefined;
|
|
62
|
-
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
61
|
onReady?: (() => any) | undefined;
|
|
62
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
|
+
onCancel?: (() => any) | undefined;
|
|
64
64
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
height: string | number;
|
|
67
66
|
disabled: boolean;
|
|
68
|
-
|
|
69
|
-
modalTitle: string;
|
|
67
|
+
height: string | number;
|
|
70
68
|
showPreview: boolean;
|
|
71
|
-
aspectRatio: number;
|
|
72
69
|
modal: boolean;
|
|
70
|
+
showToolbar: boolean;
|
|
71
|
+
modalTitle: string;
|
|
73
72
|
src: string;
|
|
73
|
+
aspectRatio: number;
|
|
74
74
|
outputFormat: CropOutputFormat;
|
|
75
75
|
outputQuality: number;
|
|
76
76
|
maxOutputWidth: number;
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -52,25 +52,25 @@ interface ImageCropperEmits {
|
|
|
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
54
|
error: (error: Error) => any;
|
|
55
|
-
cancel: () => any;
|
|
56
|
-
confirm: (result: CropResult) => any;
|
|
57
55
|
ready: () => any;
|
|
56
|
+
confirm: (result: CropResult) => any;
|
|
57
|
+
cancel: () => any;
|
|
58
58
|
crop: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
60
|
onError?: ((error: Error) => any) | undefined;
|
|
61
|
-
onCancel?: (() => any) | undefined;
|
|
62
|
-
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
61
|
onReady?: (() => any) | undefined;
|
|
62
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
|
+
onCancel?: (() => any) | undefined;
|
|
64
64
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
height: string | number;
|
|
67
66
|
disabled: boolean;
|
|
68
|
-
|
|
69
|
-
modalTitle: string;
|
|
67
|
+
height: string | number;
|
|
70
68
|
showPreview: boolean;
|
|
71
|
-
aspectRatio: number;
|
|
72
69
|
modal: boolean;
|
|
70
|
+
showToolbar: boolean;
|
|
71
|
+
modalTitle: string;
|
|
73
72
|
src: string;
|
|
73
|
+
aspectRatio: number;
|
|
74
74
|
outputFormat: CropOutputFormat;
|
|
75
75
|
outputQuality: number;
|
|
76
76
|
maxOutputWidth: number;
|
|
@@ -13,9 +13,9 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
13
13
|
renderers?: Record<string, FormRenderer>;
|
|
14
14
|
} & {
|
|
15
15
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
16
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
17
16
|
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
18
17
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
18
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
19
19
|
}> & (typeof globalThis extends {
|
|
20
20
|
__VLS_PROPS_FALLBACK: infer P;
|
|
21
21
|
} ? P : {});
|
|
@@ -52,7 +52,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
52
52
|
}>) => void;
|
|
53
53
|
attrs: any;
|
|
54
54
|
slots: FormSlots<T>;
|
|
55
|
-
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "
|
|
55
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
|
|
56
56
|
}>) => vue.VNode & {
|
|
57
57
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
58
58
|
};
|
|
@@ -13,9 +13,9 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
13
13
|
renderers?: Record<string, FormRenderer>;
|
|
14
14
|
} & {
|
|
15
15
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
16
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
17
16
|
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
18
17
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
18
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
19
19
|
}> & (typeof globalThis extends {
|
|
20
20
|
__VLS_PROPS_FALLBACK: infer P;
|
|
21
21
|
} ? P : {});
|
|
@@ -52,7 +52,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
52
52
|
}>) => void;
|
|
53
53
|
attrs: any;
|
|
54
54
|
slots: FormSlots<T>;
|
|
55
|
-
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "
|
|
55
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
|
|
56
56
|
}>) => vue.VNode & {
|
|
57
57
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
58
58
|
};
|
|
@@ -264,10 +264,10 @@ 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
|
-
readonly: boolean;
|
|
268
267
|
theme: "light" | "dark";
|
|
269
268
|
width: string | number;
|
|
270
269
|
height: string | number;
|
|
270
|
+
readonly: boolean;
|
|
271
271
|
showToolbar: boolean;
|
|
272
272
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
273
273
|
declare const _default: typeof __VLS_export;
|
|
@@ -264,10 +264,10 @@ 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
|
-
readonly: boolean;
|
|
268
267
|
theme: "light" | "dark";
|
|
269
268
|
width: string | number;
|
|
270
269
|
height: string | number;
|
|
270
|
+
readonly: boolean;
|
|
271
271
|
showToolbar: boolean;
|
|
272
272
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
273
273
|
declare const _default: typeof __VLS_export;
|
|
@@ -52,8 +52,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
52
52
|
openDialog: () => Promise<void>;
|
|
53
53
|
closeDialog: () => void;
|
|
54
54
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
55
|
-
placeholder: string;
|
|
56
55
|
emptyText: string;
|
|
56
|
+
placeholder: string;
|
|
57
57
|
resultGroupTitle: string;
|
|
58
58
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
59
59
|
declare const _default: typeof __VLS_export;
|
|
@@ -52,8 +52,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
52
52
|
openDialog: () => Promise<void>;
|
|
53
53
|
closeDialog: () => void;
|
|
54
54
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
55
|
-
placeholder: string;
|
|
56
55
|
emptyText: string;
|
|
56
|
+
placeholder: string;
|
|
57
57
|
resultGroupTitle: string;
|
|
58
58
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
59
59
|
declare const _default: typeof __VLS_export;
|
|
@@ -77,20 +77,20 @@ type __VLS_Slots = {} & {
|
|
|
77
77
|
footer?: (props: typeof __VLS_5) => any;
|
|
78
78
|
};
|
|
79
79
|
declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
80
|
-
"item-click": (item: WaterFallItem, index: number) => any;
|
|
81
80
|
"load-more": () => any;
|
|
81
|
+
"item-click": (item: WaterFallItem, index: number) => any;
|
|
82
82
|
"image-loaded": (item: WaterFallItem) => any;
|
|
83
83
|
"image-error": (item: WaterFallItem) => any;
|
|
84
84
|
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
85
|
-
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
86
85
|
"onLoad-more"?: (() => any) | undefined;
|
|
86
|
+
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
87
87
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
|
-
columns: number;
|
|
91
90
|
loading: boolean;
|
|
92
|
-
|
|
91
|
+
columns: number;
|
|
93
92
|
gap: number;
|
|
93
|
+
virtualScroll: boolean;
|
|
94
94
|
lazy: boolean;
|
|
95
95
|
infinite: boolean;
|
|
96
96
|
skeleton: boolean;
|
|
@@ -77,20 +77,20 @@ type __VLS_Slots = {} & {
|
|
|
77
77
|
footer?: (props: typeof __VLS_5) => any;
|
|
78
78
|
};
|
|
79
79
|
declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
80
|
-
"item-click": (item: WaterFallItem, index: number) => any;
|
|
81
80
|
"load-more": () => any;
|
|
81
|
+
"item-click": (item: WaterFallItem, index: number) => any;
|
|
82
82
|
"image-loaded": (item: WaterFallItem) => any;
|
|
83
83
|
"image-error": (item: WaterFallItem) => any;
|
|
84
84
|
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
85
|
-
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
86
85
|
"onLoad-more"?: (() => any) | undefined;
|
|
86
|
+
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
87
87
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
|
-
columns: number;
|
|
91
90
|
loading: boolean;
|
|
92
|
-
|
|
91
|
+
columns: number;
|
|
93
92
|
gap: number;
|
|
93
|
+
virtualScroll: boolean;
|
|
94
94
|
lazy: boolean;
|
|
95
95
|
infinite: boolean;
|
|
96
96
|
skeleton: boolean;
|
package/dist/useQRCode.d.cts
CHANGED
|
@@ -50,14 +50,14 @@ 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
|
-
label: string;
|
|
54
53
|
size: number;
|
|
55
|
-
mode: RenderMode;
|
|
56
54
|
color: string;
|
|
55
|
+
label: string;
|
|
56
|
+
mode: RenderMode;
|
|
57
57
|
showBorder: boolean;
|
|
58
|
-
showLabel: boolean;
|
|
59
58
|
margin: number;
|
|
60
59
|
bgColor: string;
|
|
60
|
+
showLabel: boolean;
|
|
61
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
62
62
|
logo: LogoOptions;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -50,14 +50,14 @@ 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
|
-
label: string;
|
|
54
53
|
size: number;
|
|
55
|
-
mode: RenderMode;
|
|
56
54
|
color: string;
|
|
55
|
+
label: string;
|
|
56
|
+
mode: RenderMode;
|
|
57
57
|
showBorder: boolean;
|
|
58
|
-
showLabel: boolean;
|
|
59
58
|
margin: number;
|
|
60
59
|
bgColor: string;
|
|
60
|
+
showLabel: boolean;
|
|
61
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
62
62
|
logo: LogoOptions;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -110,10 +110,10 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
110
110
|
onUndo?: (() => any) | undefined;
|
|
111
111
|
onRedo?: (() => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
|
-
|
|
113
|
+
disabled: boolean;
|
|
114
114
|
width: number | string;
|
|
115
115
|
height: number | string;
|
|
116
|
-
|
|
116
|
+
readonly: boolean;
|
|
117
117
|
showToolbar: boolean;
|
|
118
118
|
maxHistory: number;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -110,10 +110,10 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
110
110
|
onUndo?: (() => any) | undefined;
|
|
111
111
|
onRedo?: (() => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
|
-
|
|
113
|
+
disabled: boolean;
|
|
114
114
|
width: number | string;
|
|
115
115
|
height: number | string;
|
|
116
|
-
|
|
116
|
+
readonly: boolean;
|
|
117
117
|
showToolbar: boolean;
|
|
118
118
|
maxHistory: number;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -55,29 +55,29 @@ type __VLS_Slots = {
|
|
|
55
55
|
second(props: PanelInfo): unknown;
|
|
56
56
|
};
|
|
57
57
|
declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
58
|
-
resize: (firstSize: number, secondSize: number) => any;
|
|
59
|
-
expand: (target: CollapseTarget) => any;
|
|
60
|
-
"update:size": (size: number) => any;
|
|
61
|
-
collapse: (target: CollapseTarget) => any;
|
|
62
58
|
"drag-start": (size: number) => any;
|
|
63
59
|
"drag-end": (size: number) => any;
|
|
60
|
+
expand: (target: CollapseTarget) => any;
|
|
61
|
+
collapse: (target: CollapseTarget) => any;
|
|
62
|
+
resize: (firstSize: number, secondSize: number) => any;
|
|
63
|
+
"update:size": (size: number) => any;
|
|
64
64
|
}, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
|
|
65
|
-
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
66
|
-
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
67
|
-
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
68
|
-
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
69
65
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
70
66
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
67
|
+
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
68
|
+
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
69
|
+
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
70
|
+
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
72
|
disabled: boolean;
|
|
73
73
|
direction: SplitDirection;
|
|
74
|
-
|
|
74
|
+
collapsible: boolean;
|
|
75
75
|
step: number;
|
|
76
|
+
maxSize: number;
|
|
76
77
|
defaultSize: number;
|
|
77
78
|
minSize: number;
|
|
78
79
|
minFirstSize: number;
|
|
79
80
|
minSecondSize: number;
|
|
80
|
-
collapsible: boolean;
|
|
81
81
|
showCollapseButton: boolean;
|
|
82
82
|
gutterSize: number;
|
|
83
83
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/useSplitResize.d.ts
CHANGED
|
@@ -55,29 +55,29 @@ type __VLS_Slots = {
|
|
|
55
55
|
second(props: PanelInfo): unknown;
|
|
56
56
|
};
|
|
57
57
|
declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
58
|
-
resize: (firstSize: number, secondSize: number) => any;
|
|
59
|
-
expand: (target: CollapseTarget) => any;
|
|
60
|
-
"update:size": (size: number) => any;
|
|
61
|
-
collapse: (target: CollapseTarget) => any;
|
|
62
58
|
"drag-start": (size: number) => any;
|
|
63
59
|
"drag-end": (size: number) => any;
|
|
60
|
+
expand: (target: CollapseTarget) => any;
|
|
61
|
+
collapse: (target: CollapseTarget) => any;
|
|
62
|
+
resize: (firstSize: number, secondSize: number) => any;
|
|
63
|
+
"update:size": (size: number) => any;
|
|
64
64
|
}, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
|
|
65
|
-
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
66
|
-
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
67
|
-
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
68
|
-
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
69
65
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
70
66
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
67
|
+
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
68
|
+
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
69
|
+
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
70
|
+
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
72
|
disabled: boolean;
|
|
73
73
|
direction: SplitDirection;
|
|
74
|
-
|
|
74
|
+
collapsible: boolean;
|
|
75
75
|
step: number;
|
|
76
|
+
maxSize: number;
|
|
76
77
|
defaultSize: number;
|
|
77
78
|
minSize: number;
|
|
78
79
|
minFirstSize: number;
|
|
79
80
|
minSecondSize: number;
|
|
80
|
-
collapsible: boolean;
|
|
81
81
|
showCollapseButton: boolean;
|
|
82
82
|
gutterSize: number;
|
|
83
83
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/useTableQuery.d.cts
CHANGED
|
@@ -19,8 +19,8 @@ declare function useComponentFeedback(local?: MaybeRefOrGetter<ComponentFeedback
|
|
|
19
19
|
//#region src/components/C_Table/index.vue.d.ts
|
|
20
20
|
declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
21
21
|
props: vue.PublicProps & __VLS_PrettifyLocal$1<TableRuntimeProps<T, C> & {
|
|
22
|
-
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
23
22
|
onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
|
|
23
|
+
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
24
24
|
"onPagination-change"?: ((page: number, pageSize: number) => any) | undefined;
|
|
25
25
|
"onRow-delete"?: ((deletedRow: T, index: number) => any) | undefined;
|
|
26
26
|
"onBatch-action-error"?: ((error: unknown, actionKey: string) => any) | undefined;
|
|
@@ -55,7 +55,7 @@ declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS
|
|
|
55
55
|
} & {
|
|
56
56
|
empty?: (props: {}) => any;
|
|
57
57
|
};
|
|
58
|
-
emit: ((evt: "
|
|
58
|
+
emit: ((evt: "cancel", rowData: T, rowIndex: number) => void) & ((evt: "save", rowData: T, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "pagination-change", page: number, pageSize: number) => void) & ((evt: "row-delete", deletedRow: T, index: number) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<T>[]) => void) & ((evt: "row-add", newRow: T) => void) & ((evt: "row-copy", originalRow: T, newRow: T) => void) & ((evt: "row-move", row: T, fromIndex: number, toIndex: number) => void) & ((evt: "row-selection-change", selectedKey: DataTableRowKey | null, selectedRow: T | null) => void) & ((evt: "view-detail", data: T) => void) & ((evt: "column-change", columns: TableColumn<T>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: T | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: T[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: T[]) => void) & ((evt: "edit-error", error: unknown) => void);
|
|
59
59
|
}>) => vue.VNode & {
|
|
60
60
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
61
61
|
};
|
|
@@ -68,7 +68,7 @@ declare function defineTableColumns<T extends object>(columns: StrictTableColumn
|
|
|
68
68
|
/** Preserve row types across edit, action, summary and batch callbacks. */
|
|
69
69
|
declare function defineTableConfig<T extends object, C = unknown>(config: TableConfig<T, C>): TableConfig<T, C>;
|
|
70
70
|
/** Find missing and duplicate row keys before stateful table features consume them. */
|
|
71
|
-
declare function validateTableRowKeys<T extends object>(data: readonly T[], rowKey: (row: T) => DataTableRowKey | null | undefined): TableRowKeyIssue<T>[];
|
|
71
|
+
declare function validateTableRowKeys<T extends object>(data: readonly T[], rowKey: (row: T) => DataTableRowKey | null | undefined, childrenKey?: string): TableRowKeyIssue<T>[];
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/components/C_Table/composables/useTableColumns.d.ts
|
|
74
74
|
/** useTableColumns 中对 tableManager 的最小依赖接口 */
|
|
@@ -105,6 +105,7 @@ interface UseTableColumnsOptions {
|
|
|
105
105
|
/** 只对已加载数据做有界抽样;外部独立使用此 hook 时可省略。 */
|
|
106
106
|
data?: ComputedRef<readonly DataRecord[]>;
|
|
107
107
|
getFont?: (header?: boolean) => string;
|
|
108
|
+
fontRevision?: Readonly<Ref<number>>;
|
|
108
109
|
/** 默认列宽 */
|
|
109
110
|
columnWidth: number;
|
|
110
111
|
/** 区分使用侧显式统一列宽与内部默认值,不把默认值强加给弹性业务列。 */
|
|
@@ -697,15 +698,15 @@ interface TreeSlots<T extends object = TreeOption$1> {
|
|
|
697
698
|
declare const __VLS_export: <T extends object = TreeNodeData>(__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<{
|
|
698
699
|
props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
|
|
699
700
|
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
700
|
-
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "unselect" | "expand" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
701
701
|
onRefresh?: (() => any) | undefined;
|
|
702
|
+
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
703
|
+
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
702
704
|
"onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
|
|
703
|
-
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "
|
|
704
|
-
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "
|
|
705
|
+
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
706
|
+
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
705
707
|
"onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
|
|
706
708
|
"onNode-action"?: ((action: string, node: T) => any) | undefined;
|
|
707
709
|
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
708
|
-
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
709
710
|
}> & (typeof globalThis extends {
|
|
710
711
|
__VLS_PROPS_FALLBACK: infer P;
|
|
711
712
|
} ? P : {});
|
|
@@ -716,7 +717,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
716
717
|
}>) => void;
|
|
717
718
|
attrs: any;
|
|
718
719
|
slots: TreeSlots<T>;
|
|
719
|
-
emit: ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "
|
|
720
|
+
emit: ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void);
|
|
720
721
|
}>) => vue.VNode & {
|
|
721
722
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
722
723
|
};
|
package/dist/useTableQuery.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ import { HLJSApi } from "highlight.js";
|
|
|
9
9
|
//#region src/components/C_Table/index.vue.d.ts
|
|
10
10
|
declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
11
11
|
props: vue.PublicProps & __VLS_PrettifyLocal$1<TableRuntimeProps<T, C> & {
|
|
12
|
-
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
13
12
|
onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
|
|
13
|
+
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
14
14
|
"onPagination-change"?: ((page: number, pageSize: number) => any) | undefined;
|
|
15
15
|
"onRow-delete"?: ((deletedRow: T, index: number) => any) | undefined;
|
|
16
16
|
"onBatch-action-error"?: ((error: unknown, actionKey: string) => any) | undefined;
|
|
@@ -45,7 +45,7 @@ declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS
|
|
|
45
45
|
} & {
|
|
46
46
|
empty?: (props: {}) => any;
|
|
47
47
|
};
|
|
48
|
-
emit: ((evt: "
|
|
48
|
+
emit: ((evt: "cancel", rowData: T, rowIndex: number) => void) & ((evt: "save", rowData: T, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "pagination-change", page: number, pageSize: number) => void) & ((evt: "row-delete", deletedRow: T, index: number) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<T>[]) => void) & ((evt: "row-add", newRow: T) => void) & ((evt: "row-copy", originalRow: T, newRow: T) => void) & ((evt: "row-move", row: T, fromIndex: number, toIndex: number) => void) & ((evt: "row-selection-change", selectedKey: DataTableRowKey | null, selectedRow: T | null) => void) & ((evt: "view-detail", data: T) => void) & ((evt: "column-change", columns: TableColumn<T>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: T | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: T[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: T[]) => void) & ((evt: "edit-error", error: unknown) => void);
|
|
49
49
|
}>) => vue.VNode & {
|
|
50
50
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
51
51
|
};
|
|
@@ -58,7 +58,7 @@ declare function defineTableColumns<T extends object>(columns: StrictTableColumn
|
|
|
58
58
|
/** Preserve row types across edit, action, summary and batch callbacks. */
|
|
59
59
|
declare function defineTableConfig<T extends object, C = unknown>(config: TableConfig<T, C>): TableConfig<T, C>;
|
|
60
60
|
/** Find missing and duplicate row keys before stateful table features consume them. */
|
|
61
|
-
declare function validateTableRowKeys<T extends object>(data: readonly T[], rowKey: (row: T) => DataTableRowKey | null | undefined): TableRowKeyIssue<T>[];
|
|
61
|
+
declare function validateTableRowKeys<T extends object>(data: readonly T[], rowKey: (row: T) => DataTableRowKey | null | undefined, childrenKey?: string): TableRowKeyIssue<T>[];
|
|
62
62
|
//#endregion
|
|
63
63
|
//#region src/components/C_Table/composables/useTableColumns.d.ts
|
|
64
64
|
/** useTableColumns 中对 tableManager 的最小依赖接口 */
|
|
@@ -95,6 +95,7 @@ interface UseTableColumnsOptions {
|
|
|
95
95
|
/** 只对已加载数据做有界抽样;外部独立使用此 hook 时可省略。 */
|
|
96
96
|
data?: ComputedRef<readonly DataRecord[]>;
|
|
97
97
|
getFont?: (header?: boolean) => string;
|
|
98
|
+
fontRevision?: Readonly<Ref<number>>;
|
|
98
99
|
/** 默认列宽 */
|
|
99
100
|
columnWidth: number;
|
|
100
101
|
/** 区分使用侧显式统一列宽与内部默认值,不把默认值强加给弹性业务列。 */
|
|
@@ -687,15 +688,15 @@ interface TreeSlots<T extends object = TreeOption$1> {
|
|
|
687
688
|
declare const __VLS_export: <T extends object = TreeNodeData>(__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<{
|
|
688
689
|
props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
|
|
689
690
|
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
690
|
-
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "unselect" | "expand" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
691
691
|
onRefresh?: (() => any) | undefined;
|
|
692
|
+
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
693
|
+
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
692
694
|
"onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
|
|
693
|
-
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "
|
|
694
|
-
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "
|
|
695
|
+
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
696
|
+
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
695
697
|
"onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
|
|
696
698
|
"onNode-action"?: ((action: string, node: T) => any) | undefined;
|
|
697
699
|
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
698
|
-
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
699
700
|
}> & (typeof globalThis extends {
|
|
700
701
|
__VLS_PROPS_FALLBACK: infer P;
|
|
701
702
|
} ? P : {});
|
|
@@ -706,7 +707,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
706
707
|
}>) => void;
|
|
707
708
|
attrs: any;
|
|
708
709
|
slots: TreeSlots<T>;
|
|
709
|
-
emit: ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "
|
|
710
|
+
emit: ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "expand" | "unselect" | "collapse" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void);
|
|
710
711
|
}>) => vue.VNode & {
|
|
711
712
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
712
713
|
};
|