@robot-admin/naive-ui-components 0.24.0 → 0.24.2
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 +14 -0
- package/README.md +4 -2
- package/README_EN.md +5 -1
- package/dist/C_Form.base.css +1 -103
- package/dist/C_Form.css +1 -103
- package/dist/C_FormModal.css +25 -12
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_Table.base.css +115 -211
- package/dist/C_Table.css +114 -108
- package/dist/C_Table2.cjs +2 -2
- package/dist/C_Table2.js +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants2.d.cts +4 -4
- package/dist/constants2.d.ts +4 -4
- package/dist/constants3.d.cts +4 -4
- package/dist/constants3.d.ts +4 -4
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data2.d.cts +4 -4
- package/dist/data2.d.ts +4 -4
- package/dist/density.cjs +1 -1
- package/dist/density.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 +2 -2
- package/dist/index10.vue.d.ts +2 -2
- package/dist/index11.vue.d.cts +2 -2
- package/dist/index13.vue.d.ts +1 -1
- package/dist/index14.vue.d.cts +1 -1
- package/dist/index15.vue.d.ts +6 -6
- package/dist/index16.vue.d.cts +6 -6
- package/dist/index18.vue.d.ts +1 -1
- package/dist/index19.vue.d.cts +1 -1
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index22.vue.d.ts +1 -1
- package/dist/index23.vue.d.cts +1 -1
- package/dist/index25.vue.d.cts +1 -1
- package/dist/index25.vue.d.ts +1 -1
- package/dist/index26.vue.d.cts +1 -1
- package/dist/index26.vue.d.ts +1 -1
- package/dist/index28.vue.d.cts +1 -1
- package/dist/index28.vue.d.ts +1 -1
- package/dist/index29.vue.d.cts +1 -1
- package/dist/index29.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index7.vue.d.ts +3 -3
- package/dist/index8.vue.d.cts +3 -3
- package/dist/index9.vue.d.ts +2 -2
- package/dist/mapUtils.d.cts +4 -4
- package/dist/mapUtils.d.ts +4 -4
- package/dist/presets.d.cts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/style.css +140 -223
- package/dist/useCalendarEvents.d.cts +2 -2
- package/dist/useCalendarEvents.d.ts +2 -2
- package/dist/useCropperCore.d.cts +8 -8
- package/dist/useCropperCore.d.ts +8 -8
- package/dist/useDynamicFormState.d.cts +6 -6
- package/dist/useDynamicFormState.d.ts +6 -6
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useInfiniteScroll.d.cts +1 -1
- package/dist/useInfiniteScroll.d.ts +1 -1
- package/dist/useQRCode.d.cts +1 -1
- package/dist/useQRCode.d.ts +1 -1
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +1 -1
- package/dist/useSplitResize.d.ts +1 -1
- package/dist/verification.d.cts +2 -2
- package/dist/verification.d.ts +2 -2
- package/docs/guides/form-density.md +11 -5
- package/docs/guides/table-density.md +1 -1
- package/package.json +1 -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
|
-
events: CalendarEvent[];
|
|
76
|
-
initialView: CalendarViewType;
|
|
77
75
|
editable: boolean;
|
|
76
|
+
initialView: CalendarViewType;
|
|
77
|
+
events: CalendarEvent[];
|
|
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
|
-
events: CalendarEvent[];
|
|
76
|
-
initialView: CalendarViewType;
|
|
77
75
|
editable: boolean;
|
|
76
|
+
initialView: CalendarViewType;
|
|
77
|
+
events: CalendarEvent[];
|
|
78
78
|
showAddDialog: boolean;
|
|
79
79
|
showEditDialog: boolean;
|
|
80
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -51,31 +51,31 @@ interface ImageCropperEmits {
|
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
|
-
ready: () => any;
|
|
55
54
|
error: (error: Error) => any;
|
|
56
|
-
confirm: (result: CropResult) => any;
|
|
57
55
|
cancel: () => any;
|
|
56
|
+
confirm: (result: CropResult) => any;
|
|
57
|
+
ready: () => any;
|
|
58
58
|
crop: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
|
-
onReady?: (() => any) | undefined;
|
|
61
60
|
onError?: ((error: Error) => any) | undefined;
|
|
62
|
-
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
61
|
onCancel?: (() => any) | undefined;
|
|
62
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
|
+
onReady?: (() => any) | undefined;
|
|
64
64
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
disabled: boolean;
|
|
67
67
|
height: string | number;
|
|
68
|
-
modal: boolean;
|
|
69
|
-
showToolbar: boolean;
|
|
70
|
-
aspectRatio: number;
|
|
71
|
-
showPreview: boolean;
|
|
72
68
|
modalTitle: string;
|
|
73
69
|
src: string;
|
|
70
|
+
aspectRatio: number;
|
|
74
71
|
outputFormat: CropOutputFormat;
|
|
75
72
|
outputQuality: number;
|
|
76
73
|
maxOutputWidth: number;
|
|
77
74
|
maxOutputHeight: number;
|
|
75
|
+
showPreview: boolean;
|
|
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
|
@@ -51,31 +51,31 @@ interface ImageCropperEmits {
|
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
|
-
ready: () => any;
|
|
55
54
|
error: (error: Error) => any;
|
|
56
|
-
confirm: (result: CropResult) => any;
|
|
57
55
|
cancel: () => any;
|
|
56
|
+
confirm: (result: CropResult) => any;
|
|
57
|
+
ready: () => any;
|
|
58
58
|
crop: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
|
-
onReady?: (() => any) | undefined;
|
|
61
60
|
onError?: ((error: Error) => any) | undefined;
|
|
62
|
-
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
61
|
onCancel?: (() => any) | undefined;
|
|
62
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
|
+
onReady?: (() => any) | undefined;
|
|
64
64
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
disabled: boolean;
|
|
67
67
|
height: string | number;
|
|
68
|
-
modal: boolean;
|
|
69
|
-
showToolbar: boolean;
|
|
70
|
-
aspectRatio: number;
|
|
71
|
-
showPreview: boolean;
|
|
72
68
|
modalTitle: string;
|
|
73
69
|
src: string;
|
|
70
|
+
aspectRatio: number;
|
|
74
71
|
outputFormat: CropOutputFormat;
|
|
75
72
|
outputQuality: number;
|
|
76
73
|
maxOutputWidth: number;
|
|
77
74
|
maxOutputHeight: number;
|
|
75
|
+
showPreview: boolean;
|
|
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
|
|
@@ -199,6 +199,8 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
|
|
|
199
199
|
//#region src/components/C_Table/index.vue.d.ts
|
|
200
200
|
declare const __VLS_export$2: <T extends object = DataRecord, C = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
201
201
|
props: vue.PublicProps & __VLS_PrettifyLocal$2<TableRuntimeProps<T, C> & {
|
|
202
|
+
onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
|
|
203
|
+
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
202
204
|
"onPagination-change"?: ((page: number, pageSize: number) => any) | undefined;
|
|
203
205
|
"onRow-delete"?: ((deletedRow: T, index: number) => any) | undefined;
|
|
204
206
|
"onBatch-action-error"?: ((error: unknown, actionKey: string) => any) | undefined;
|
|
@@ -214,8 +216,6 @@ declare const __VLS_export$2: <T extends object = DataRecord, C = unknown>(__VLS
|
|
|
214
216
|
"onChild-selection-change"?: ((parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => any) | undefined;
|
|
215
217
|
"onParent-child-link-change"?: ((parentKey: DataTableRowKey, shouldSelect: boolean) => any) | undefined;
|
|
216
218
|
"onUpdate:data"?: ((data: T[]) => any) | undefined;
|
|
217
|
-
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
218
|
-
onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
|
|
219
219
|
"onEdit-error"?: ((error: unknown) => any) | undefined;
|
|
220
220
|
}> & (typeof globalThis extends {
|
|
221
221
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -235,7 +235,7 @@ declare const __VLS_export$2: <T extends object = DataRecord, C = unknown>(__VLS
|
|
|
235
235
|
} & {
|
|
236
236
|
empty?: (props: {}) => any;
|
|
237
237
|
};
|
|
238
|
-
emit: ((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: "
|
|
238
|
+
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);
|
|
239
239
|
}>) => vue.VNode & {
|
|
240
240
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
241
241
|
};
|
|
@@ -284,7 +284,7 @@ interface UseTableColumnsOptions {
|
|
|
284
284
|
config: ComputedRef<ResolvedConfig>;
|
|
285
285
|
/** 只对已加载数据做有界抽样;外部独立使用此 hook 时可省略。 */
|
|
286
286
|
data?: ComputedRef<readonly DataRecord[]>;
|
|
287
|
-
getFont?: () => string;
|
|
287
|
+
getFont?: (header?: boolean) => string;
|
|
288
288
|
/** 默认列宽 */
|
|
289
289
|
columnWidth: number;
|
|
290
290
|
/** 区分使用侧显式统一列宽与内部默认值,不把默认值强加给弹性业务列。 */
|
|
@@ -1067,8 +1067,8 @@ interface FormModalEmits<T extends object = FormRecord> {
|
|
|
1067
1067
|
//#region src/components/C_FormModal/index.vue.d.ts
|
|
1068
1068
|
declare const __VLS_export: <T extends object = FormRecord>(__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<{
|
|
1069
1069
|
props: vue.PublicProps & __VLS_PrettifyLocal<FormModalProps<T> & {
|
|
1070
|
-
onClose?: (() => any) | undefined;
|
|
1071
1070
|
onSubmit?: ((payload: SubmitEventPayload<T>, saved: boolean) => any) | undefined;
|
|
1071
|
+
onClose?: (() => any) | undefined;
|
|
1072
1072
|
}> & (typeof globalThis extends {
|
|
1073
1073
|
__VLS_PROPS_FALLBACK: infer P;
|
|
1074
1074
|
} ? P : {});
|
|
@@ -1077,7 +1077,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
1077
1077
|
slots: {
|
|
1078
1078
|
[x: string]: ((props: any) => any) | undefined;
|
|
1079
1079
|
};
|
|
1080
|
-
emit: ((evt: "
|
|
1080
|
+
emit: ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void) & ((evt: "close") => void);
|
|
1081
1081
|
}>) => vue.VNode & {
|
|
1082
1082
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
1083
1083
|
};
|
|
@@ -189,6 +189,8 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
|
|
|
189
189
|
//#region src/components/C_Table/index.vue.d.ts
|
|
190
190
|
declare const __VLS_export$2: <T extends object = DataRecord, C = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
191
191
|
props: vue.PublicProps & __VLS_PrettifyLocal$2<TableRuntimeProps<T, C> & {
|
|
192
|
+
onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
|
|
193
|
+
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
192
194
|
"onPagination-change"?: ((page: number, pageSize: number) => any) | undefined;
|
|
193
195
|
"onRow-delete"?: ((deletedRow: T, index: number) => any) | undefined;
|
|
194
196
|
"onBatch-action-error"?: ((error: unknown, actionKey: string) => any) | undefined;
|
|
@@ -204,8 +206,6 @@ declare const __VLS_export$2: <T extends object = DataRecord, C = unknown>(__VLS
|
|
|
204
206
|
"onChild-selection-change"?: ((parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => any) | undefined;
|
|
205
207
|
"onParent-child-link-change"?: ((parentKey: DataTableRowKey, shouldSelect: boolean) => any) | undefined;
|
|
206
208
|
"onUpdate:data"?: ((data: T[]) => any) | undefined;
|
|
207
|
-
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
208
|
-
onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
|
|
209
209
|
"onEdit-error"?: ((error: unknown) => any) | undefined;
|
|
210
210
|
}> & (typeof globalThis extends {
|
|
211
211
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -225,7 +225,7 @@ declare const __VLS_export$2: <T extends object = DataRecord, C = unknown>(__VLS
|
|
|
225
225
|
} & {
|
|
226
226
|
empty?: (props: {}) => any;
|
|
227
227
|
};
|
|
228
|
-
emit: ((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: "
|
|
228
|
+
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);
|
|
229
229
|
}>) => vue.VNode & {
|
|
230
230
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
231
231
|
};
|
|
@@ -274,7 +274,7 @@ interface UseTableColumnsOptions {
|
|
|
274
274
|
config: ComputedRef<ResolvedConfig>;
|
|
275
275
|
/** 只对已加载数据做有界抽样;外部独立使用此 hook 时可省略。 */
|
|
276
276
|
data?: ComputedRef<readonly DataRecord[]>;
|
|
277
|
-
getFont?: () => string;
|
|
277
|
+
getFont?: (header?: boolean) => string;
|
|
278
278
|
/** 默认列宽 */
|
|
279
279
|
columnWidth: number;
|
|
280
280
|
/** 区分使用侧显式统一列宽与内部默认值,不把默认值强加给弹性业务列。 */
|
|
@@ -1057,8 +1057,8 @@ interface FormModalEmits<T extends object = FormRecord> {
|
|
|
1057
1057
|
//#region src/components/C_FormModal/index.vue.d.ts
|
|
1058
1058
|
declare const __VLS_export: <T extends object = FormRecord>(__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<{
|
|
1059
1059
|
props: vue.PublicProps & __VLS_PrettifyLocal<FormModalProps<T> & {
|
|
1060
|
-
onClose?: (() => any) | undefined;
|
|
1061
1060
|
onSubmit?: ((payload: SubmitEventPayload<T>, saved: boolean) => any) | undefined;
|
|
1061
|
+
onClose?: (() => any) | undefined;
|
|
1062
1062
|
}> & (typeof globalThis extends {
|
|
1063
1063
|
__VLS_PROPS_FALLBACK: infer P;
|
|
1064
1064
|
} ? P : {});
|
|
@@ -1067,7 +1067,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
1067
1067
|
slots: {
|
|
1068
1068
|
[x: string]: ((props: any) => any) | undefined;
|
|
1069
1069
|
};
|
|
1070
|
-
emit: ((evt: "
|
|
1070
|
+
emit: ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void) & ((evt: "close") => void);
|
|
1071
1071
|
}>) => vue.VNode & {
|
|
1072
1072
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
1073
1073
|
};
|
package/dist/useFullscreen.d.cts
CHANGED
|
@@ -94,11 +94,11 @@ interface ExcelLoadResult {
|
|
|
94
94
|
//#endregion
|
|
95
95
|
//#region src/components/C_FilePreview/index.vue.d.ts
|
|
96
96
|
declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
97
|
-
download: (file: string | File) => any;
|
|
98
97
|
preview: (file: string | File) => any;
|
|
98
|
+
download: (file: string | File) => any;
|
|
99
99
|
}, string, vue.PublicProps, Readonly<FilePreviewProps> & Readonly<{
|
|
100
|
-
onDownload?: ((file: string | File) => any) | undefined;
|
|
101
100
|
onPreview?: ((file: string | File) => any) | undefined;
|
|
101
|
+
onDownload?: ((file: string | File) => any) | undefined;
|
|
102
102
|
}>, {
|
|
103
103
|
inline: boolean;
|
|
104
104
|
fileName: string;
|
package/dist/useFullscreen.d.ts
CHANGED
|
@@ -94,11 +94,11 @@ interface ExcelLoadResult {
|
|
|
94
94
|
//#endregion
|
|
95
95
|
//#region src/components/C_FilePreview/index.vue.d.ts
|
|
96
96
|
declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
97
|
-
download: (file: string | File) => any;
|
|
98
97
|
preview: (file: string | File) => any;
|
|
98
|
+
download: (file: string | File) => any;
|
|
99
99
|
}, string, vue.PublicProps, Readonly<FilePreviewProps> & Readonly<{
|
|
100
|
-
onDownload?: ((file: string | File) => any) | undefined;
|
|
101
100
|
onPreview?: ((file: string | File) => any) | undefined;
|
|
101
|
+
onDownload?: ((file: string | File) => any) | undefined;
|
|
102
102
|
}>, {
|
|
103
103
|
inline: boolean;
|
|
104
104
|
fileName: string;
|
|
@@ -87,9 +87,9 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
|
|
|
87
87
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
|
+
loading: boolean;
|
|
90
91
|
virtualScroll: boolean;
|
|
91
92
|
gap: number;
|
|
92
|
-
loading: boolean;
|
|
93
93
|
columns: number;
|
|
94
94
|
lazy: boolean;
|
|
95
95
|
infinite: boolean;
|
|
@@ -87,9 +87,9 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
|
|
|
87
87
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
|
+
loading: boolean;
|
|
90
91
|
virtualScroll: boolean;
|
|
91
92
|
gap: number;
|
|
92
|
-
loading: boolean;
|
|
93
93
|
columns: number;
|
|
94
94
|
lazy: boolean;
|
|
95
95
|
infinite: boolean;
|
package/dist/useQRCode.d.cts
CHANGED
|
@@ -54,11 +54,11 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
54
54
|
size: number;
|
|
55
55
|
color: string;
|
|
56
56
|
mode: RenderMode;
|
|
57
|
+
showBorder: boolean;
|
|
57
58
|
bgColor: string;
|
|
58
59
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
59
60
|
margin: number;
|
|
60
61
|
logo: LogoOptions;
|
|
61
|
-
showBorder: boolean;
|
|
62
62
|
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -54,11 +54,11 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
54
54
|
size: number;
|
|
55
55
|
color: string;
|
|
56
56
|
mode: RenderMode;
|
|
57
|
+
showBorder: boolean;
|
|
57
58
|
bgColor: string;
|
|
58
59
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
59
60
|
margin: number;
|
|
60
61
|
logo: LogoOptions;
|
|
61
|
-
showBorder: boolean;
|
|
62
62
|
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
@@ -92,18 +92,18 @@ interface SignatureEmits {
|
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/components/C_Signature/index.vue.d.ts
|
|
94
94
|
declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
95
|
-
clear: () => any;
|
|
96
|
-
error: (error: Error) => any;
|
|
97
95
|
change: (data: SignatureStroke[]) => any;
|
|
96
|
+
error: (error: Error) => any;
|
|
97
|
+
clear: () => any;
|
|
98
98
|
"start-draw": () => any;
|
|
99
99
|
drawing: (point: SignaturePoint) => any;
|
|
100
100
|
"end-draw": (stroke: SignatureStroke) => any;
|
|
101
101
|
undo: () => any;
|
|
102
102
|
redo: () => any;
|
|
103
103
|
}, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
|
|
104
|
-
onClear?: (() => any) | undefined;
|
|
105
|
-
onError?: ((error: Error) => any) | undefined;
|
|
106
104
|
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
105
|
+
onError?: ((error: Error) => any) | undefined;
|
|
106
|
+
onClear?: (() => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
109
109
|
"onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
|
|
@@ -92,18 +92,18 @@ interface SignatureEmits {
|
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/components/C_Signature/index.vue.d.ts
|
|
94
94
|
declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
95
|
-
clear: () => any;
|
|
96
|
-
error: (error: Error) => any;
|
|
97
95
|
change: (data: SignatureStroke[]) => any;
|
|
96
|
+
error: (error: Error) => any;
|
|
97
|
+
clear: () => any;
|
|
98
98
|
"start-draw": () => any;
|
|
99
99
|
drawing: (point: SignaturePoint) => any;
|
|
100
100
|
"end-draw": (stroke: SignatureStroke) => any;
|
|
101
101
|
undo: () => any;
|
|
102
102
|
redo: () => any;
|
|
103
103
|
}, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
|
|
104
|
-
onClear?: (() => any) | undefined;
|
|
105
|
-
onError?: ((error: Error) => any) | undefined;
|
|
106
104
|
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
105
|
+
onError?: ((error: Error) => any) | undefined;
|
|
106
|
+
onClear?: (() => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
109
109
|
"onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
|
|
@@ -71,9 +71,9 @@ declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {
|
|
|
71
71
|
}>, {
|
|
72
72
|
disabled: boolean;
|
|
73
73
|
direction: SplitDirection;
|
|
74
|
+
maxSize: number;
|
|
74
75
|
defaultSize: number;
|
|
75
76
|
minSize: number;
|
|
76
|
-
maxSize: number;
|
|
77
77
|
minFirstSize: number;
|
|
78
78
|
minSecondSize: number;
|
|
79
79
|
collapsible: boolean;
|
package/dist/useSplitResize.d.ts
CHANGED
|
@@ -71,9 +71,9 @@ declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {
|
|
|
71
71
|
}>, {
|
|
72
72
|
disabled: boolean;
|
|
73
73
|
direction: SplitDirection;
|
|
74
|
+
maxSize: number;
|
|
74
75
|
defaultSize: number;
|
|
75
76
|
minSize: number;
|
|
76
|
-
maxSize: number;
|
|
77
77
|
minFirstSize: number;
|
|
78
78
|
minSecondSize: number;
|
|
79
79
|
collapsible: boolean;
|
package/dist/verification.d.cts
CHANGED
|
@@ -78,19 +78,19 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
|
|
|
78
78
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
79
79
|
change: (valid: boolean) => any;
|
|
80
80
|
success: (data: CaptchaSuccessPayload) => any;
|
|
81
|
-
reset: () => any;
|
|
82
81
|
fail: (error: string) => any;
|
|
83
82
|
"verify-error": (error: unknown) => any;
|
|
84
83
|
"load-error": (error: unknown) => any;
|
|
85
84
|
"visible-change": (visible: boolean) => any;
|
|
85
|
+
reset: () => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
|
|
87
87
|
onChange?: ((valid: boolean) => any) | undefined;
|
|
88
88
|
onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
|
|
89
|
-
onReset?: (() => any) | undefined;
|
|
90
89
|
onFail?: ((error: string) => any) | undefined;
|
|
91
90
|
"onVerify-error"?: ((error: unknown) => any) | undefined;
|
|
92
91
|
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
93
92
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
93
|
+
onReset?: (() => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
95
|
disabled: boolean;
|
|
96
96
|
theme: "light" | "dark";
|
package/dist/verification.d.ts
CHANGED
|
@@ -78,19 +78,19 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
|
|
|
78
78
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
79
79
|
change: (valid: boolean) => any;
|
|
80
80
|
success: (data: CaptchaSuccessPayload) => any;
|
|
81
|
-
reset: () => any;
|
|
82
81
|
fail: (error: string) => any;
|
|
83
82
|
"verify-error": (error: unknown) => any;
|
|
84
83
|
"load-error": (error: unknown) => any;
|
|
85
84
|
"visible-change": (visible: boolean) => any;
|
|
85
|
+
reset: () => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
|
|
87
87
|
onChange?: ((valid: boolean) => any) | undefined;
|
|
88
88
|
onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
|
|
89
|
-
onReset?: (() => any) | undefined;
|
|
90
89
|
onFail?: ((error: string) => any) | undefined;
|
|
91
90
|
"onVerify-error"?: ((error: unknown) => any) | undefined;
|
|
92
91
|
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
93
92
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
93
|
+
onReset?: (() => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
95
|
disabled: boolean;
|
|
96
96
|
theme: "light" | "dark";
|
|
@@ -15,11 +15,11 @@ import type { ComponentDensity } from '@robot-admin/naive-ui-components/C_Form'
|
|
|
15
15
|
const density = ref<ComponentDensity>('compact')
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
| 密度 | 字段与操作按钮 | 布局间距
|
|
19
|
-
| ------------- | -------------- |
|
|
20
|
-
| `default` | `medium` | 16px
|
|
21
|
-
| `compact` | `small` | 8px
|
|
22
|
-
| `comfortable` | `large` | 20px
|
|
18
|
+
| 密度 | 字段与操作按钮 | 布局间距 | 卡片留白 | 表单反馈预留高度 |
|
|
19
|
+
| ------------- | -------------- | --------------- | -------- | ---------------- |
|
|
20
|
+
| `default` | `medium` | 16px | 24px | 24px |
|
|
21
|
+
| `compact` | `small` | 横 8px / 纵 4px | 12px | 2px |
|
|
22
|
+
| `comfortable` | `large` | 20px | 28px | 28px |
|
|
23
23
|
|
|
24
24
|
反馈预留高度是最小值,校验错误可自然撑开。密度支持响应式切换,切换不会清空表单值、搜索草稿、折叠条件或分组展开状态;不同实例可以使用不同密度。
|
|
25
25
|
|
|
@@ -110,3 +110,9 @@ const fields = [
|
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
`focusTarget` 上下文还提供 `field`、字段表单项的 `element`(可能为空)和当前 `model`。即使异步适配器忽略取消,库也会拒绝旧元素;没有可聚焦目标时诚实返回 `false`,由使用侧保留错误摘要或提示导航限制。
|
|
113
|
+
|
|
114
|
+
## 密集录入与性能
|
|
115
|
+
|
|
116
|
+
紧凑表单与搜索默认纵向行距 4px,空反馈预留 2px;校验文案使用自然高度,多行错误不裁切、不盖住下一行。C_FormModal 的紧凑壳同步收紧,内容过高时在弹窗内部滚动,页脚保留可操作空间。显式的 grid.yGap / gutter 仍优先。
|
|
117
|
+
|
|
118
|
+
Grid 和 Dynamic 字段不再执行逐字段入场或布局尺寸动画,Inline 不再对尺寸设置 transition: all。保留控件自身的焦点、悬停及校验反馈。配置与字段定义稳定时,表单控件按自身响应式依赖更新;400 字段回归检查单字段输入不会重绘其余 399 个控件。v-model 仍按既有契约输出独立的完整模型快照,成本随模型大小增长;大量字段建议按业务使用现有 Tabs/Steps 分区,明细数据继续交给虚拟表格。
|
|
@@ -117,4 +117,4 @@ const columns = [
|
|
|
117
117
|
|
|
118
118
|
测宽不额外挂载或执行 render;图标、进度条和复杂自定义内容请显式指定 width。数据与字典更新会触发新的有界测量,配置和缓存只属于当前组件实例。此版本将未声明宽度的业务列由自然布局改为有界内容宽度;既有显式布局及原生 table-layout 覆盖仍保留。
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
表头默认完整展示,不随单元格 ellipsis 配置省略。所有业务列的最小宽度计入完整标题及排序/筛选控件;初始布局、显式窄列宽、恢复列设置与拖拽缩列均受此下限保护。360px 仅限制数据内容测宽;标题更长时允许超过该值,并使用表格内部横向滚动。复杂自定义标题请配置 minWidth。
|