@robot-admin/naive-ui-components 0.22.0 → 0.22.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 +8 -0
- package/README.md +3 -1
- package/README_EN.md +3 -1
- package/dist/C_Captcha.d.ts +2 -0
- package/dist/C_Form.base.css +58 -58
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +58 -58
- package/dist/C_Form.d.cts +3 -1
- package/dist/C_Form.d.ts +3 -2
- package/dist/C_Form.js +1 -1
- package/dist/C_FormModal.css +10 -10
- package/dist/C_FormModal.d.ts +1 -0
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +56 -56
- package/dist/C_FormSearch.d.ts +2 -1
- package/dist/C_FormSearch2.cjs +1 -1
- package/dist/C_FormSearch2.js +1 -1
- package/dist/C_Login.d.ts +3 -0
- package/dist/C_Table.base.css +58 -58
- package/dist/C_Table.css +58 -58
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +5 -2
- package/dist/C_Tree.d.cts +1 -1
- package/dist/C_Tree.d.ts +5 -2
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +4 -1
- package/dist/config.d.ts +4 -2
- package/dist/config.js +1 -1
- package/dist/config2.d.ts +14 -0
- package/dist/constants3.d.cts +1 -1
- package/dist/constants3.d.ts +1 -1
- package/dist/constants4.d.cts +8 -8
- package/dist/constants4.d.ts +8 -8
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data.d.cts +4 -4
- package/dist/data.d.ts +4 -4
- package/dist/dateRange.d.ts +1 -2
- package/dist/density.cjs +1 -1
- package/dist/density.js +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +7 -5
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +5 -5
- package/dist/index.vue.d.ts +5 -5
- package/dist/index10.vue.d.cts +3 -3
- package/dist/index10.vue.d.ts +5 -5
- package/dist/index11.vue.d.cts +5 -5
- package/dist/index11.vue.d.ts +1 -1
- package/dist/index12.vue.d.cts +1 -1
- package/dist/index12.vue.d.ts +3 -3
- package/dist/index13.vue.d.cts +3 -3
- package/dist/index13.vue.d.ts +8 -8
- package/dist/index14.vue.d.cts +8 -8
- package/dist/index17.vue.d.ts +2 -2
- package/dist/index18.vue.d.cts +2 -2
- package/dist/index18.vue.d.ts +2 -2
- package/dist/index19.vue.d.cts +2 -2
- package/dist/index19.vue.d.ts +2 -2
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +1 -1
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index22.vue.d.ts +2 -2
- package/dist/index24.vue.d.cts +1 -1
- package/dist/index24.vue.d.ts +1 -1
- package/dist/index25.vue.d.cts +5 -5
- package/dist/index25.vue.d.ts +5 -5
- package/dist/index26.vue.d.cts +2 -2
- package/dist/index26.vue.d.ts +2 -2
- package/dist/index3.vue.d.cts +3 -3
- package/dist/index3.vue.d.ts +3 -3
- package/dist/index4.vue.d.cts +2 -2
- package/dist/index8.vue.d.ts +1 -1
- package/dist/index9.vue.d.cts +1 -1
- package/dist/index9.vue.d.ts +3 -3
- package/dist/style.css +124 -124
- 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 +4 -4
- package/dist/useCropperCore.d.ts +4 -4
- package/dist/useDynamicFormState.d.cts +6 -579
- package/dist/useDynamicFormState.d.ts +6 -579
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFormConfig.cjs +1 -0
- package/dist/useFormConfig.d.cts +576 -0
- package/dist/useFormConfig.d.ts +611 -0
- package/dist/useFormConfig.js +1 -0
- package/dist/useFullscreen.d.cts +3 -3
- package/dist/useFullscreen.d.ts +3 -3
- package/dist/useInfiniteScroll.d.cts +1 -1
- package/dist/useInfiniteScroll.d.ts +1 -1
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.cts +6 -6
- package/dist/useSplitResize.d.ts +6 -6
- package/dist/useTableQuery.d.cts +9 -9
- package/dist/useTableQuery.d.ts +11 -22
- package/dist/useWorkflowValidation.d.cts +3 -3
- package/dist/useWorkflowValidation.d.ts +3 -3
- package/dist/verification.d.cts +4 -4
- package/dist/verification.d.ts +5 -5
- package/docs/guides/form-density.en.md +17 -3
- package/docs/guides/form-density.md +17 -3
- package/docs/guides/usage.en.md +1 -1
- package/package.json +1 -1
- package/dist/contracts.d.ts +0 -24
- package/dist/density.d.ts +0 -15
package/dist/useQRCode.d.cts
CHANGED
|
@@ -50,13 +50,13 @@ 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
|
+
mode: RenderMode;
|
|
53
54
|
size: number;
|
|
54
55
|
color: string;
|
|
55
|
-
mode: RenderMode;
|
|
56
|
-
margin: number;
|
|
57
|
-
bgColor: string;
|
|
58
56
|
label: string;
|
|
57
|
+
bgColor: string;
|
|
59
58
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
59
|
+
margin: number;
|
|
60
60
|
logo: LogoOptions;
|
|
61
61
|
showBorder: boolean;
|
|
62
62
|
showLabel: boolean;
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -50,13 +50,13 @@ 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
|
+
mode: RenderMode;
|
|
53
54
|
size: number;
|
|
54
55
|
color: string;
|
|
55
|
-
mode: RenderMode;
|
|
56
|
-
margin: number;
|
|
57
|
-
bgColor: string;
|
|
58
56
|
label: string;
|
|
57
|
+
bgColor: string;
|
|
59
58
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
59
|
+
margin: number;
|
|
60
60
|
logo: LogoOptions;
|
|
61
61
|
showBorder: boolean;
|
|
62
62
|
showLabel: boolean;
|
|
@@ -92,27 +92,27 @@ 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
|
+
change: (data: SignatureStroke[]) => any;
|
|
95
96
|
clear: () => any;
|
|
96
97
|
error: (error: Error) => any;
|
|
97
|
-
change: (data: SignatureStroke[]) => 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
|
+
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
104
105
|
onClear?: (() => any) | undefined;
|
|
105
106
|
onError?: ((error: Error) => any) | undefined;
|
|
106
|
-
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
109
109
|
"onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
|
|
110
110
|
onUndo?: (() => any) | undefined;
|
|
111
111
|
onRedo?: (() => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
|
+
height: number | string;
|
|
113
114
|
disabled: boolean;
|
|
114
115
|
readonly: boolean;
|
|
115
|
-
height: number | string;
|
|
116
116
|
width: number | string;
|
|
117
117
|
showToolbar: boolean;
|
|
118
118
|
maxHistory: number;
|
|
@@ -92,27 +92,27 @@ 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
|
+
change: (data: SignatureStroke[]) => any;
|
|
95
96
|
clear: () => any;
|
|
96
97
|
error: (error: Error) => any;
|
|
97
|
-
change: (data: SignatureStroke[]) => 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
|
+
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
104
105
|
onClear?: (() => any) | undefined;
|
|
105
106
|
onError?: ((error: Error) => any) | undefined;
|
|
106
|
-
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
109
109
|
"onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
|
|
110
110
|
onUndo?: (() => any) | undefined;
|
|
111
111
|
onRedo?: (() => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
|
+
height: number | string;
|
|
113
114
|
disabled: boolean;
|
|
114
115
|
readonly: boolean;
|
|
115
|
-
height: number | string;
|
|
116
116
|
width: number | string;
|
|
117
117
|
showToolbar: boolean;
|
|
118
118
|
maxHistory: number;
|
|
@@ -55,31 +55,31 @@ 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
58
|
"update:size": (size: number) => any;
|
|
59
|
+
resize: (firstSize: number, secondSize: number) => any;
|
|
61
60
|
collapse: (target: CollapseTarget) => any;
|
|
61
|
+
expand: (target: CollapseTarget) => any;
|
|
62
62
|
"drag-start": (size: number) => any;
|
|
63
63
|
"drag-end": (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
65
|
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
66
|
+
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
68
67
|
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
68
|
+
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
69
69
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
70
70
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
72
|
disabled: boolean;
|
|
73
|
+
maxSize: number;
|
|
73
74
|
direction: SplitDirection;
|
|
74
|
-
step: number;
|
|
75
75
|
defaultSize: number;
|
|
76
76
|
minSize: number;
|
|
77
|
-
maxSize: number;
|
|
78
77
|
minFirstSize: number;
|
|
79
78
|
minSecondSize: number;
|
|
80
79
|
collapsible: boolean;
|
|
81
80
|
showCollapseButton: boolean;
|
|
82
81
|
gutterSize: number;
|
|
82
|
+
step: number;
|
|
83
83
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
84
84
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
85
85
|
declare const _default: typeof __VLS_export;
|
package/dist/useSplitResize.d.ts
CHANGED
|
@@ -55,31 +55,31 @@ 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
58
|
"update:size": (size: number) => any;
|
|
59
|
+
resize: (firstSize: number, secondSize: number) => any;
|
|
61
60
|
collapse: (target: CollapseTarget) => any;
|
|
61
|
+
expand: (target: CollapseTarget) => any;
|
|
62
62
|
"drag-start": (size: number) => any;
|
|
63
63
|
"drag-end": (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
65
|
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
66
|
+
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
68
67
|
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
68
|
+
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
69
69
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
70
70
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
72
|
disabled: boolean;
|
|
73
|
+
maxSize: number;
|
|
73
74
|
direction: SplitDirection;
|
|
74
|
-
step: number;
|
|
75
75
|
defaultSize: number;
|
|
76
76
|
minSize: number;
|
|
77
|
-
maxSize: number;
|
|
78
77
|
minFirstSize: number;
|
|
79
78
|
minSecondSize: number;
|
|
80
79
|
collapsible: boolean;
|
|
81
80
|
showCollapseButton: boolean;
|
|
82
81
|
gutterSize: number;
|
|
82
|
+
step: number;
|
|
83
83
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
84
84
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
85
85
|
declare const _default: typeof __VLS_export;
|
package/dist/useTableQuery.d.cts
CHANGED
|
@@ -1079,6 +1079,8 @@ type ColumnWithKey = TableColumn & {
|
|
|
1079
1079
|
//#region src/components/C_Table/index.vue.d.ts
|
|
1080
1080
|
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<{
|
|
1081
1081
|
props: vue.PublicProps & __VLS_PrettifyLocal$1<TableRuntimeProps<T, C> & {
|
|
1082
|
+
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
1083
|
+
onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
|
|
1082
1084
|
"onPagination-change"?: ((page: number, pageSize: number) => any) | undefined;
|
|
1083
1085
|
"onRow-delete"?: ((deletedRow: T, index: number) => any) | undefined;
|
|
1084
1086
|
"onBatch-action-error"?: ((error: unknown, actionKey: string) => any) | undefined;
|
|
@@ -1094,8 +1096,6 @@ declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS
|
|
|
1094
1096
|
"onChild-selection-change"?: ((parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => any) | undefined;
|
|
1095
1097
|
"onParent-child-link-change"?: ((parentKey: DataTableRowKey, shouldSelect: boolean) => any) | undefined;
|
|
1096
1098
|
"onUpdate:data"?: ((data: T[]) => any) | undefined;
|
|
1097
|
-
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
1098
|
-
onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
|
|
1099
1099
|
"onEdit-error"?: ((error: unknown) => any) | undefined;
|
|
1100
1100
|
}> & (typeof globalThis extends {
|
|
1101
1101
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1113,7 +1113,7 @@ declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS
|
|
|
1113
1113
|
} & {
|
|
1114
1114
|
loading?: (props: {}) => any;
|
|
1115
1115
|
};
|
|
1116
|
-
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: "
|
|
1116
|
+
emit: ((evt: "save", rowData: T, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "cancel", rowData: T, rowIndex: number) => 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);
|
|
1117
1117
|
}>) => vue.VNode & {
|
|
1118
1118
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
1119
1119
|
};
|
|
@@ -1750,14 +1750,14 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
1750
1750
|
props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
|
|
1751
1751
|
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
1752
1752
|
onRefresh?: (() => any) | undefined;
|
|
1753
|
-
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "unselect" | "expand" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
1754
|
-
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
1755
|
-
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
1756
1753
|
"onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
|
|
1757
|
-
"onUpdate:
|
|
1758
|
-
"onUpdate:
|
|
1754
|
+
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
1755
|
+
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
1756
|
+
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
1759
1757
|
"onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
|
|
1760
1758
|
"onNode-action"?: ((action: string, node: T) => any) | undefined;
|
|
1759
|
+
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
1760
|
+
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
1761
1761
|
}> & (typeof globalThis extends {
|
|
1762
1762
|
__VLS_PROPS_FALLBACK: infer P;
|
|
1763
1763
|
} ? P : {});
|
|
@@ -1768,7 +1768,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
1768
1768
|
}>) => void;
|
|
1769
1769
|
attrs: any;
|
|
1770
1770
|
slots: TreeSlots<T>;
|
|
1771
|
-
emit: ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "
|
|
1771
|
+
emit: ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "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) & ((evt: "load-error", error: unknown, node: T) => void);
|
|
1772
1772
|
}>) => vue.VNode & {
|
|
1773
1773
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
1774
1774
|
};
|
package/dist/useTableQuery.d.ts
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
import { f as ActionItem, s as ActionBarConfig } from "./presets.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as ResolvedComponentDensity, t as ComponentDensity } from "./density.js";
|
|
2
|
+
import { X as ComponentLocale, Y as ComponentFeedback, d as ResolvedComponentDensity, u as ComponentDensity } from "./useFormConfig.js";
|
|
4
3
|
import * as vue from "vue";
|
|
5
4
|
import { App, ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter, Ref, VNodeChild } from "vue";
|
|
6
5
|
import { DataTableBaseColumn, DataTableColumn, DataTableRowKey, FormItemRule, PaginationProps, TreeInst, TreeOption, TreeProps } from "naive-ui";
|
|
7
6
|
import { HLJSApi } from "highlight.js";
|
|
8
7
|
|
|
9
|
-
//#region src/composables/useComponentLocale.d.ts
|
|
10
|
-
/** Bind the UI-independent translator to this Vue application and local configuration. */
|
|
11
|
-
declare function useComponentLocale(local?: MaybeRefOrGetter<ComponentLocale | undefined>): {
|
|
12
|
-
t: (key: string, params?: Record<string, string | number>) => string;
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/adapters/naive/feedback.d.ts
|
|
16
|
-
/** Reuse Naive providers when present and safely degrade to injected/no-op feedback. */
|
|
17
|
-
declare function useComponentFeedback(local?: MaybeRefOrGetter<ComponentFeedback | undefined>): Required<ComponentFeedback>;
|
|
18
|
-
//#endregion
|
|
19
8
|
//#region src/components/C_Table/composables/usePrintWatermark.d.ts
|
|
20
9
|
interface WatermarkConfig {
|
|
21
10
|
text: string;
|
|
@@ -1079,6 +1068,8 @@ type ColumnWithKey = TableColumn & {
|
|
|
1079
1068
|
//#region src/components/C_Table/index.vue.d.ts
|
|
1080
1069
|
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<{
|
|
1081
1070
|
props: vue.PublicProps & __VLS_PrettifyLocal$1<TableRuntimeProps<T, C> & {
|
|
1071
|
+
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
1072
|
+
onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
|
|
1082
1073
|
"onPagination-change"?: ((page: number, pageSize: number) => any) | undefined;
|
|
1083
1074
|
"onRow-delete"?: ((deletedRow: T, index: number) => any) | undefined;
|
|
1084
1075
|
"onBatch-action-error"?: ((error: unknown, actionKey: string) => any) | undefined;
|
|
@@ -1094,8 +1085,6 @@ declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS
|
|
|
1094
1085
|
"onChild-selection-change"?: ((parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => any) | undefined;
|
|
1095
1086
|
"onParent-child-link-change"?: ((parentKey: DataTableRowKey, shouldSelect: boolean) => any) | undefined;
|
|
1096
1087
|
"onUpdate:data"?: ((data: T[]) => any) | undefined;
|
|
1097
|
-
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
1098
|
-
onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
|
|
1099
1088
|
"onEdit-error"?: ((error: unknown) => any) | undefined;
|
|
1100
1089
|
}> & (typeof globalThis extends {
|
|
1101
1090
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -1113,7 +1102,7 @@ declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS
|
|
|
1113
1102
|
} & {
|
|
1114
1103
|
loading?: (props: {}) => any;
|
|
1115
1104
|
};
|
|
1116
|
-
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: "
|
|
1105
|
+
emit: ((evt: "save", rowData: T, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "cancel", rowData: T, rowIndex: number) => 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);
|
|
1117
1106
|
}>) => vue.VNode & {
|
|
1118
1107
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
1119
1108
|
};
|
|
@@ -1750,14 +1739,14 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
1750
1739
|
props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
|
|
1751
1740
|
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
1752
1741
|
onRefresh?: (() => any) | undefined;
|
|
1753
|
-
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "select" | "unselect" | "expand" | "collapse" | "check" | "uncheck">) => any) | undefined;
|
|
1754
|
-
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
1755
|
-
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
1756
1742
|
"onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
|
|
1757
|
-
"onUpdate:
|
|
1758
|
-
"onUpdate:
|
|
1743
|
+
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
1744
|
+
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
1745
|
+
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
1759
1746
|
"onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
|
|
1760
1747
|
"onNode-action"?: ((action: string, node: T) => any) | undefined;
|
|
1748
|
+
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
1749
|
+
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
1761
1750
|
}> & (typeof globalThis extends {
|
|
1762
1751
|
__VLS_PROPS_FALLBACK: infer P;
|
|
1763
1752
|
} ? P : {});
|
|
@@ -1768,7 +1757,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
1768
1757
|
}>) => void;
|
|
1769
1758
|
attrs: any;
|
|
1770
1759
|
slots: TreeSlots<T>;
|
|
1771
|
-
emit: ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "
|
|
1760
|
+
emit: ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "filter" | "collapse" | "expand" | "select" | "unselect" | "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) & ((evt: "load-error", error: unknown, node: T) => void);
|
|
1772
1761
|
}>) => vue.VNode & {
|
|
1773
1762
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
1774
1763
|
};
|
|
@@ -1954,4 +1943,4 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
|
|
|
1954
1943
|
cancel: () => void;
|
|
1955
1944
|
};
|
|
1956
1945
|
//#endregion
|
|
1957
|
-
export { MaybeRefLike as $, PrintWatermarkOptions as $t, HighlightPluginOptions as A, createEditModeChecker as At, useRowEdit as B, mergeGlobalConfig as Bt, TreeNodeData as C, ExpandConfig$1 as Ct, TreeSlots as D, ToolbarConfig as Dt, TreeRenderContext as E, TableConfig as Et, useCellEdit as F, FormatterConfig as Ft, _default$1 as G, useCrossPageSelection as Gt, defineTableColumns as H, CrossPageSelectionConfig as Ht, usePagination as I, FormatterType as It, ChildSelectionState as J, UseRowDragReturn as Jt, ApiFunction as K, RowDragConfig as Kt, useTableActions as L, TABLE_GLOBAL_CONFIG_KEY as Lt, setupHighlight as M, ExportConfig as Mt, useHighlight as N, exportTableData as Nt, TreeUpdateMeta as O, TreeConfig as Ot, useModalEdit as P, ColumnFormatter as Pt, EditMode as Q, useDynamicRows as Qt, useTableExpand as R, TableGlobalConfig as Rt, TreeNativeProps as S, ErrorConfig as St, TreeProps$1 as T, SummaryConfig as Tt, defineTableConfig as U, UseCrossPageSelectionOptions as Ut, useTableColumns as V, useTableGlobalConfig as Vt, validateTableRowKeys as W, UseCrossPageSelectionReturn as Wt, CustomAction as X, DynamicRowsOptions as Xt, ColumnWithKey as Y, useRowDrag as Yt, DataRecord as Z, DynamicRowsReturn as Zt, StatusType as _, BatchActionsConfig as _t, getItem as a, SelectOption as at, TreeKey as b, DisplayConfig as bt, setItem as c, TableColumn as ct, _default as d, TableManagerApi as dt, printPresets as en, NormalTableColumn as et, ActionConfig as f, TableProps as ft, StatusConfig as g, UseTableExpandReturn as gt, IconConfig as h, UseTableExpandOptions as ht, useTableQuery as i, RowAction as it, createHighlight as j, resolveConfig as jt, HighlightAPI as k, VirtualScrollConfig as kt, useTreeOperations as l, TableEmits as lt, DropInfo as m, TableRowKeyIssue as mt, TableQueryResult as n,
|
|
1946
|
+
export { MaybeRefLike as $, PrintWatermarkOptions as $t, HighlightPluginOptions as A, createEditModeChecker as At, useRowEdit as B, mergeGlobalConfig as Bt, TreeNodeData as C, ExpandConfig$1 as Ct, TreeSlots as D, ToolbarConfig as Dt, TreeRenderContext as E, TableConfig as Et, useCellEdit as F, FormatterConfig as Ft, _default$1 as G, useCrossPageSelection as Gt, defineTableColumns as H, CrossPageSelectionConfig as Ht, usePagination as I, FormatterType as It, ChildSelectionState as J, UseRowDragReturn as Jt, ApiFunction as K, RowDragConfig as Kt, useTableActions as L, TABLE_GLOBAL_CONFIG_KEY as Lt, setupHighlight as M, ExportConfig as Mt, useHighlight as N, exportTableData as Nt, TreeUpdateMeta as O, TreeConfig as Ot, useModalEdit as P, ColumnFormatter as Pt, EditMode as Q, useDynamicRows as Qt, useTableExpand as R, TableGlobalConfig as Rt, TreeNativeProps as S, ErrorConfig as St, TreeProps$1 as T, SummaryConfig as Tt, defineTableConfig as U, UseCrossPageSelectionOptions as Ut, useTableColumns as V, useTableGlobalConfig as Vt, validateTableRowKeys as W, UseCrossPageSelectionReturn as Wt, CustomAction as X, DynamicRowsOptions as Xt, ColumnWithKey as Y, useRowDrag as Yt, DataRecord as Z, DynamicRowsReturn as Zt, StatusType as _, BatchActionsConfig as _t, getItem as a, SelectOption as at, TreeKey as b, DisplayConfig as bt, setItem as c, TableColumn as ct, _default as d, TableManagerApi as dt, printPresets as en, NormalTableColumn as et, ActionConfig as f, TableProps as ft, StatusConfig as g, UseTableExpandReturn as gt, IconConfig as h, UseTableExpandOptions as ht, useTableQuery as i, RowAction as it, createHighlight as j, resolveConfig as jt, HighlightAPI as k, VirtualScrollConfig as kt, useTreeOperations as l, TableEmits as lt, DropInfo as m, TableRowKeyIssue as mt, TableQueryResult as n, ParentChildLinkMode as nt, removeAllItem as o, SimpleTableActions as ot, ButtonType as p, TableRowKey as pt, BuiltInTableColumn as q, UseRowDragOptions as qt, UseTableQueryOptions as r, RenderFunction as rt, removeItem as s, StrictTableColumn as st, TableQueryContext as t, usePrintWatermark as tn, PaginationConfig as tt, presetConfigs as u, TableInstance as ut, TreeEmits as v, ColumnDragConfig as vt, TreeOption$1 as w, SelectionConfig$1 as wt, TreeMode as x, EditConfig as xt, TreeExpose as y, CrudBinding as yt, useTableManager as z, applyFormatter as zt };
|
|
@@ -262,19 +262,19 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
|
|
|
262
262
|
"update:modelValue": (value: WorkflowData) => any;
|
|
263
263
|
change: (value: WorkflowData) => any;
|
|
264
264
|
save: (data: WorkflowData) => any;
|
|
265
|
-
"validate-error": (errors: ValidationError[]) => any;
|
|
266
265
|
"node-click": (node: WorkflowNode<NodeType>) => any;
|
|
267
266
|
"edge-click": (edge: WorkflowEdge) => any;
|
|
267
|
+
"validate-error": (errors: ValidationError[]) => any;
|
|
268
268
|
}, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
|
|
269
269
|
"onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
|
|
270
270
|
onChange?: ((value: WorkflowData) => any) | undefined;
|
|
271
271
|
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
272
|
-
"onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
|
|
273
272
|
"onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
|
|
274
273
|
"onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
|
|
274
|
+
"onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
|
|
275
275
|
}>, {
|
|
276
|
-
readonly: boolean;
|
|
277
276
|
theme: "light" | "dark";
|
|
277
|
+
readonly: boolean;
|
|
278
278
|
users: User[];
|
|
279
279
|
roles: Role[];
|
|
280
280
|
departments: Department[];
|
|
@@ -262,19 +262,19 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
|
|
|
262
262
|
"update:modelValue": (value: WorkflowData) => any;
|
|
263
263
|
change: (value: WorkflowData) => any;
|
|
264
264
|
save: (data: WorkflowData) => any;
|
|
265
|
-
"validate-error": (errors: ValidationError[]) => any;
|
|
266
265
|
"node-click": (node: WorkflowNode<NodeType>) => any;
|
|
267
266
|
"edge-click": (edge: WorkflowEdge) => any;
|
|
267
|
+
"validate-error": (errors: ValidationError[]) => any;
|
|
268
268
|
}, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
|
|
269
269
|
"onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
|
|
270
270
|
onChange?: ((value: WorkflowData) => any) | undefined;
|
|
271
271
|
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
272
|
-
"onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
|
|
273
272
|
"onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
|
|
274
273
|
"onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
|
|
274
|
+
"onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
|
|
275
275
|
}>, {
|
|
276
|
-
readonly: boolean;
|
|
277
276
|
theme: "light" | "dark";
|
|
277
|
+
readonly: boolean;
|
|
278
278
|
users: User[];
|
|
279
279
|
roles: Role[];
|
|
280
280
|
departments: Department[];
|
package/dist/verification.d.cts
CHANGED
|
@@ -76,20 +76,20 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
|
|
|
76
76
|
reset: () => void;
|
|
77
77
|
show: () => void;
|
|
78
78
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
79
|
-
success: (data: CaptchaSuccessPayload) => any;
|
|
80
79
|
change: (valid: boolean) => any;
|
|
80
|
+
success: (data: CaptchaSuccessPayload) => any;
|
|
81
81
|
reset: () => any;
|
|
82
|
+
"load-error": (error: unknown) => any;
|
|
82
83
|
fail: (error: string) => any;
|
|
83
84
|
"verify-error": (error: unknown) => any;
|
|
84
|
-
"load-error": (error: unknown) => any;
|
|
85
85
|
"visible-change": (visible: boolean) => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
|
|
87
|
-
onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
|
|
88
87
|
onChange?: ((valid: boolean) => any) | undefined;
|
|
88
|
+
onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
|
|
89
89
|
onReset?: (() => any) | undefined;
|
|
90
|
+
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
90
91
|
onFail?: ((error: string) => any) | undefined;
|
|
91
92
|
"onVerify-error"?: ((error: unknown) => any) | undefined;
|
|
92
|
-
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
93
93
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
95
|
disabled: boolean;
|
package/dist/verification.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as ComponentLocale, Y as ComponentFeedback } from "./useFormConfig.js";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_Captcha/types.d.ts
|
|
@@ -76,20 +76,20 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
|
|
|
76
76
|
reset: () => void;
|
|
77
77
|
show: () => void;
|
|
78
78
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
79
|
-
success: (data: CaptchaSuccessPayload) => any;
|
|
80
79
|
change: (valid: boolean) => any;
|
|
80
|
+
success: (data: CaptchaSuccessPayload) => any;
|
|
81
81
|
reset: () => any;
|
|
82
|
+
"load-error": (error: unknown) => any;
|
|
82
83
|
fail: (error: string) => any;
|
|
83
84
|
"verify-error": (error: unknown) => any;
|
|
84
|
-
"load-error": (error: unknown) => any;
|
|
85
85
|
"visible-change": (visible: boolean) => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
|
|
87
|
-
onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
|
|
88
87
|
onChange?: ((valid: boolean) => any) | undefined;
|
|
88
|
+
onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
|
|
89
89
|
onReset?: (() => any) | undefined;
|
|
90
|
+
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
90
91
|
onFail?: ((error: string) => any) | undefined;
|
|
91
92
|
"onVerify-error"?: ((error: unknown) => any) | undefined;
|
|
92
|
-
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
93
93
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
95
|
disabled: boolean;
|
|
@@ -18,12 +18,14 @@ const density = ref<ComponentDensity>('compact')
|
|
|
18
18
|
| Density | Field and button size | Layout gap | Card padding | Form feedback minimum |
|
|
19
19
|
| ------------- | --------------------- | ---------- | ------------ | --------------------- |
|
|
20
20
|
| `default` | `medium` | 16px | 24px | 24px |
|
|
21
|
-
| `compact` | `small` | 8px | 12px |
|
|
21
|
+
| `compact` | `small` | 8px | 12px | 4px |
|
|
22
22
|
| `comfortable` | `large` | 20px | 28px | 28px |
|
|
23
23
|
|
|
24
24
|
Validation feedback can grow beyond its minimum height. Changing density preserves form values, search drafts, expanded filters, and card collapse state. Each instance owns its density.
|
|
25
25
|
|
|
26
|
-
Omitting `density` retains existing spacing and the default `medium` size. Explicit `C_Form` `config.size`, `C_FormSearch` `size`, field `attrs.size`, and individual layout gaps take precedence over the preset.
|
|
26
|
+
Omitting `density` retains existing field and layout spacing and the default `medium` size; action areas no longer reserve an unused validation row. Explicit `C_Form` `config.size`, `C_FormSearch` `size`, field `attrs.size`, and individual layout gaps take precedence over the preset.
|
|
27
|
+
|
|
28
|
+
Responsive grids constrain horizontal gaps to the available container width, preventing accumulated gaps across 24 tracks from overflowing narrow modals. Wide screens retain the configured gap, vertical spacing stays independent, and Naive UI continues to calculate offsets. Set `grid.responsive: false` to preserve fixed spacing.
|
|
27
29
|
|
|
28
30
|
Existing native `size` passthrough on `C_Form` retains its final-override priority and synchronizes fields and buttons. Prefer `config` for new integrations.
|
|
29
31
|
|
|
@@ -39,4 +41,16 @@ All eight form layouts support density: default, inline, grid, card, tabs, steps
|
|
|
39
41
|
|
|
40
42
|
Density presets are plain data and preserve lazy loading of layouts and fields.
|
|
41
43
|
|
|
42
|
-
`C_FormModal`
|
|
44
|
+
`C_FormModal` defaults to `compact` and inherits application form density. Compact modals use `small` fields and `tiny` footer buttons, matching compact action bars. Explicit `config.size` still controls both fields and buttons; explicit `default` / `comfortable` density uses its corresponding size. Table editor modals inherit table density as well.
|
|
45
|
+
|
|
46
|
+
## Application defaults with on-demand imports
|
|
47
|
+
|
|
48
|
+
Provide defaults once during application startup. Local `config.density` takes precedence; search inherits only density, not form layout, callbacks or size.
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
import { FORM_GLOBAL_CONFIG_KEY } from '@robot-admin/naive-ui-components/config'
|
|
52
|
+
|
|
53
|
+
app.provide(FORM_GLOBAL_CONFIG_KEY, { density: 'compact' })
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Compact search fields default to 208px and fill the available width on narrow screens; explicit field `attrs.style.width` takes precedence. Compact numeric fields hide step buttons by default while preserving keyboard Up / Down, step, precision and limits. Set `attrs: { showButton: true }` when buttons are useful. Naive UI still owns number handling and themes; the text input avoids browser-native number spinners. Field `attrs.inputProps` can override accessible names and numeric semantics.
|
|
@@ -18,14 +18,16 @@ const density = ref<ComponentDensity>('compact')
|
|
|
18
18
|
| 密度 | 字段与操作按钮 | 布局间距 | 卡片留白 | 表单反馈预留高度 |
|
|
19
19
|
| ------------- | -------------- | -------- | -------- | ---------------- |
|
|
20
20
|
| `default` | `medium` | 16px | 24px | 24px |
|
|
21
|
-
| `compact` | `small` | 8px | 12px |
|
|
21
|
+
| `compact` | `small` | 8px | 12px | 4px |
|
|
22
22
|
| `comfortable` | `large` | 20px | 28px | 28px |
|
|
23
23
|
|
|
24
24
|
反馈预留高度是最小值,校验错误可自然撑开。密度支持响应式切换,切换不会清空表单值、搜索草稿、折叠条件或分组展开状态;不同实例可以使用不同密度。
|
|
25
25
|
|
|
26
26
|
## 保留明确覆盖
|
|
27
27
|
|
|
28
|
-
已有项目未配置 `density`
|
|
28
|
+
已有项目未配置 `density` 时保留原来的字段、布局间距和默认 `medium` 尺寸;无校验职责的操作区不再保留空反馈行。显式配置的控件尺寸、字段尺寸和布局间距继续优先,不需要迁移旧用法。
|
|
29
|
+
|
|
30
|
+
响应式网格会根据容器宽度约束横向间距,避免 24 栅格的累计间距撑破窄弹窗;宽屏仍使用配置值,纵向间距独立,偏移继续交给 Naive UI 处理。`grid.responsive: false` 可保留固定的间距行为。
|
|
29
31
|
|
|
30
32
|
已有 `C_Form` 原生 `size` 透传继续按原有末尾覆盖顺序生效,并同步字段与操作按钮;新接入推荐统一使用 `config`。
|
|
31
33
|
|
|
@@ -56,4 +58,16 @@ const largeFields = { density: 'compact', size: 'large' } as const
|
|
|
56
58
|
|
|
57
59
|
卡片、网格等布局仍按需加载。密度预设仅为纯数据,不引入额外 UI 依赖。
|
|
58
60
|
|
|
59
|
-
`C_FormModal`
|
|
61
|
+
`C_FormModal` 默认使用 `compact`,也继承应用级表单密度;紧凑弹窗的字段为 `small`,页脚按钮为 `tiny`,与紧凑操作栏一致。显式 `config.size` 仍同时控制字段和按钮;显式 `default` / `comfortable` 密度使用对应尺寸。表格编辑弹窗也会继承表格密度。
|
|
62
|
+
|
|
63
|
+
## 按需设置应用默认值
|
|
64
|
+
|
|
65
|
+
在应用启动时提供一次即可,局部的 `config.density` 优先,搜索只继承密度,不继承表单布局、回调或尺寸。
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
import { FORM_GLOBAL_CONFIG_KEY } from '@robot-admin/naive-ui-components/config'
|
|
69
|
+
|
|
70
|
+
app.provide(FORM_GLOBAL_CONFIG_KEY, { density: 'compact' })
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
紧凑搜索的字段默认宽度为 208px,窄屏自动占满可用宽度;显式字段 `attrs.style.width` 仍可覆盖。紧凑数字字段默认隐藏增减按钮,保留键盘 ↑ / ↓、步长、精度及上下限;需要按钮的字段配置 `attrs: { showButton: true }`。控件继续使用 Naive UI 的数值处理与主题,输入为文本,不叠加浏览器原生数字箭头;`attrs.inputProps` 可覆盖可访问名称和数值语义。
|
package/docs/guides/usage.en.md
CHANGED
|
@@ -270,7 +270,7 @@ For create/edit flows, `C_FormModal` consumes a structural headless `editor` dir
|
|
|
270
270
|
</template>
|
|
271
271
|
```
|
|
272
272
|
|
|
273
|
-
The editor contract is structural: the component package does not depend on a request library. Any controller exposing `visible/mode/model/title/loading/setModel/close/submit` can drive it. The default uses a responsive 620px width, `small` form controls, and a right-aligned icon-based `C_ActionBar`
|
|
273
|
+
The editor contract is structural: the component package does not depend on a request library. Any controller exposing `visible/mode/model/title/loading/setModel/close/submit` can drive it. The default uses a responsive 620px width, compact density, `small` form controls, and a right-aligned icon-based `C_ActionBar` with `tiny` footer buttons. Close button, mask close, and Escape remain enabled by default and can be disabled for high-risk forms.
|
|
274
274
|
|
|
275
275
|
For remote tables, `useTableQuery` owns cancellation, latest-request-wins behavior, pagination, and loading. Destructure its `bindings` and use `<C_Table v-bind="bindings" />`:
|
|
276
276
|
|
package/package.json
CHANGED
package/dist/contracts.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//#region src/core/contracts.d.ts
|
|
2
|
-
/** UI-independent feedback and locale protocols. No framework runtime is imported here. */
|
|
3
|
-
interface ConfirmOptions {
|
|
4
|
-
title: string;
|
|
5
|
-
content: string;
|
|
6
|
-
positiveText?: string;
|
|
7
|
-
negativeText?: string;
|
|
8
|
-
type?: 'warning' | 'error' | 'info' | 'success';
|
|
9
|
-
}
|
|
10
|
-
interface ComponentFeedback {
|
|
11
|
-
success?: (message: string) => void;
|
|
12
|
-
error?: (message: string, cause?: unknown) => void;
|
|
13
|
-
warning?: (message: string) => void;
|
|
14
|
-
info?: (message: string) => void;
|
|
15
|
-
confirm?: (options: ConfirmOptions) => boolean | Promise<boolean>;
|
|
16
|
-
}
|
|
17
|
-
type ComponentLocaleName = 'zh-CN' | 'en-US';
|
|
18
|
-
interface ComponentLocale {
|
|
19
|
-
locale?: ComponentLocaleName;
|
|
20
|
-
messages?: Record<string, string>;
|
|
21
|
-
t?: (key: string, params?: Record<string, string | number>) => string;
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { ConfirmOptions as i, ComponentLocale as n, ComponentLocaleName as r, ComponentFeedback as t };
|
package/dist/density.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region src/core/density.d.ts
|
|
2
|
-
/** UI 密度协议与纯数据预设,不依赖 Vue、Naive UI 或浏览器。 */
|
|
3
|
-
type ComponentDensity = 'default' | 'compact' | 'comfortable';
|
|
4
|
-
interface ResolvedComponentDensity {
|
|
5
|
-
density: ComponentDensity;
|
|
6
|
-
size: 'small' | 'medium' | 'large';
|
|
7
|
-
gap: number;
|
|
8
|
-
rowGap: number;
|
|
9
|
-
padding: number;
|
|
10
|
-
formItemGap: number;
|
|
11
|
-
}
|
|
12
|
-
/** 每次返回独立预设,显式控件尺寸与布局配置由消费组件在上层覆盖。 */
|
|
13
|
-
declare const resolveComponentDensity: (density?: ComponentDensity) => ResolvedComponentDensity;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { ResolvedComponentDensity as n, resolveComponentDensity as r, ComponentDensity as t };
|