@robot-admin/naive-ui-components 0.6.17 → 0.6.19
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/dist/C_Form.d.cts +2 -2
- package/dist/C_Form.d.ts +2 -2
- package/dist/C_Table.js.map +1 -1
- package/dist/C_Table2.js.map +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants2.d.ts +1 -1
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.ts +4 -4
- package/dist/data.d.ts +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index10.vue.d.ts +3 -3
- package/dist/index11.vue.d.ts +1 -1
- package/dist/index13.vue.d.ts +1 -1
- package/dist/index15.vue.d.ts +2 -2
- package/dist/index18.vue.d.ts +3 -3
- package/dist/index2.vue.d.ts +5 -5
- package/dist/index21.vue.d.ts +1 -1
- package/dist/index22.vue.d.ts +1 -1
- package/dist/index24.vue.d.ts +2 -2
- package/dist/index26.vue.d.ts +2 -2
- package/dist/index3.vue.d.ts +1 -1
- package/dist/index4.vue.d.ts +3 -3
- package/dist/index6.vue.d.ts +2 -2
- package/dist/index8.vue.d.ts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.ts +3 -3
- package/dist/useCropperCore.d.ts +4 -4
- package/dist/useDraggableLayout.d.ts +7 -7
- package/dist/useDynamicFormState.d.ts +11 -11
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useInfiniteScroll.d.ts +3 -3
- package/dist/useModalEdit.d.ts +11 -10
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.ts +1 -1
- package/dist/useSplitResize.d.ts +6 -6
- package/dist/useTimeSelection.d.ts +2 -2
- package/dist/useTreeOperations.d.ts +4 -4
- package/dist/useWorkflowValidation.d.ts +4 -4
- package/package.json +1 -1
|
@@ -430,13 +430,13 @@ declare const __VLS_base: vue.DefineComponent<CFormProps, {
|
|
|
430
430
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
431
431
|
"update:modelValue": (model: Record<string, any>) => any;
|
|
432
432
|
submit: (payload: SubmitEventPayload) => any;
|
|
433
|
-
"validate-error": (errors: unknown) => any;
|
|
434
433
|
"validate-success": (model: Record<string, any>) => any;
|
|
434
|
+
"validate-error": (errors: unknown) => any;
|
|
435
435
|
}, string, vue.PublicProps, Readonly<CFormProps> & Readonly<{
|
|
436
436
|
"onUpdate:modelValue"?: ((model: Record<string, any>) => any) | undefined;
|
|
437
437
|
onSubmit?: ((payload: SubmitEventPayload) => any) | undefined;
|
|
438
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
439
438
|
"onValidate-success"?: ((model: Record<string, any>) => any) | undefined;
|
|
439
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
440
440
|
}>, {
|
|
441
441
|
config: FormConfig;
|
|
442
442
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -1295,6 +1295,7 @@ declare const useDynamicFormState: () => {
|
|
|
1295
1295
|
readonly placeholder?: string | undefined;
|
|
1296
1296
|
readonly rules?: readonly {
|
|
1297
1297
|
readonly type?: RuleType | undefined;
|
|
1298
|
+
readonly required?: boolean | undefined;
|
|
1298
1299
|
readonly options?: {
|
|
1299
1300
|
readonly suppressWarning?: boolean | undefined;
|
|
1300
1301
|
readonly suppressValidatorError?: boolean | undefined;
|
|
@@ -1352,11 +1353,7 @@ declare const useDynamicFormState: () => {
|
|
|
1352
1353
|
} | undefined;
|
|
1353
1354
|
readonly trigger?: string | readonly string[] | undefined;
|
|
1354
1355
|
readonly pattern?: (RegExp | string) | undefined;
|
|
1355
|
-
readonly required?: boolean | undefined;
|
|
1356
|
-
readonly key?: string | undefined;
|
|
1357
1356
|
readonly max?: number | undefined;
|
|
1358
|
-
readonly message?: string | ((a?: string) => string) | undefined;
|
|
1359
|
-
readonly level?: "warning" | "error" | undefined;
|
|
1360
1357
|
readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
|
|
1361
1358
|
readonly min?: number | undefined;
|
|
1362
1359
|
readonly len?: number | undefined;
|
|
@@ -1931,7 +1928,10 @@ declare const useDynamicFormState: () => {
|
|
|
1931
1928
|
readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
1932
1929
|
}[] | undefined;
|
|
1933
1930
|
readonly transform?: ((value: Value) => Value) | undefined;
|
|
1931
|
+
readonly message?: string | ((a?: string) => string) | undefined;
|
|
1932
|
+
readonly key?: string | undefined;
|
|
1934
1933
|
readonly renderMessage?: (() => vue.VNodeChild) | undefined;
|
|
1934
|
+
readonly level?: "warning" | "error" | undefined;
|
|
1935
1935
|
readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
|
|
1936
1936
|
}[] | undefined;
|
|
1937
1937
|
readonly attrs?: {
|
|
@@ -3572,6 +3572,7 @@ declare const useDynamicFormState: () => {
|
|
|
3572
3572
|
} | undefined;
|
|
3573
3573
|
readonly rules?: readonly {
|
|
3574
3574
|
readonly type?: RuleType | undefined;
|
|
3575
|
+
readonly required?: boolean | undefined;
|
|
3575
3576
|
readonly options?: {
|
|
3576
3577
|
readonly suppressWarning?: boolean | undefined;
|
|
3577
3578
|
readonly suppressValidatorError?: boolean | undefined;
|
|
@@ -3629,11 +3630,7 @@ declare const useDynamicFormState: () => {
|
|
|
3629
3630
|
} | undefined;
|
|
3630
3631
|
readonly trigger?: string | readonly string[] | undefined;
|
|
3631
3632
|
readonly pattern?: (RegExp | string) | undefined;
|
|
3632
|
-
readonly required?: boolean | undefined;
|
|
3633
|
-
readonly key?: string | undefined;
|
|
3634
3633
|
readonly max?: number | undefined;
|
|
3635
|
-
readonly message?: string | ((a?: string) => string) | undefined;
|
|
3636
|
-
readonly level?: "warning" | "error" | undefined;
|
|
3637
3634
|
readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
|
|
3638
3635
|
readonly min?: number | undefined;
|
|
3639
3636
|
readonly len?: number | undefined;
|
|
@@ -4208,7 +4205,10 @@ declare const useDynamicFormState: () => {
|
|
|
4208
4205
|
readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
4209
4206
|
}[] | undefined;
|
|
4210
4207
|
readonly transform?: ((value: Value) => Value) | undefined;
|
|
4208
|
+
readonly message?: string | ((a?: string) => string) | undefined;
|
|
4209
|
+
readonly key?: string | undefined;
|
|
4211
4210
|
readonly renderMessage?: (() => vue.VNodeChild) | undefined;
|
|
4211
|
+
readonly level?: "warning" | "error" | undefined;
|
|
4212
4212
|
readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
|
|
4213
4213
|
}[] | undefined;
|
|
4214
4214
|
}[];
|
|
@@ -4244,5 +4244,5 @@ type DynamicFormStateType = ReturnType<typeof useDynamicFormState>;
|
|
|
4244
4244
|
*/
|
|
4245
4245
|
declare const DYNAMIC_FORM_STATE_KEY: unique symbol;
|
|
4246
4246
|
//#endregion
|
|
4247
|
-
export {
|
|
4247
|
+
export { LayoutType as A, FormInstance as C, InlineLayoutConfig as D, GridLayoutConfig as E, SubmitEventPayload as M, TabsLayoutConfig as N, LabelPlacement as O, DynamicFormState as S, FormOption as T, shouldShowActions as _, ComponentMap as a, CustomLayoutConfig as b, useFormRenderer as c, FORM_DEFAULTS as d, FormConfig as f, resolveFormConfig as g, ResolvedFormConfig as h, useDynamicFormState as i, StepsLayoutConfig as j, LayoutConfig as k, useFormState as l, LayoutCallbacks as m, DynamicFormStateType as n, FormRenderer as o, LAYOUTS_WITH_OWN_CONTROLS as p, FIELD_TYPE_OPTIONS as r, registerRenderer as s, DYNAMIC_FORM_STATE_KEY as t, _default as u, CardLayoutConfig as v, FormModel as w, DynamicFormConfig as x, ComponentType as y };
|
|
4248
4248
|
//# sourceMappingURL=useDynamicFormState.d.ts.map
|
|
@@ -259,9 +259,9 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
259
259
|
onReady?: ((graph: any) => any) | undefined;
|
|
260
260
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
261
261
|
}>, {
|
|
262
|
-
theme: "light" | "dark";
|
|
263
262
|
width: string | number;
|
|
264
263
|
height: string | number;
|
|
264
|
+
theme: "light" | "dark";
|
|
265
265
|
readonly: boolean;
|
|
266
266
|
showToolbar: boolean;
|
|
267
267
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/useFullscreen.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ type __VLS_Props = {
|
|
|
9
9
|
autoPreview?: boolean;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
|
-
preview: (file: string | File) => any;
|
|
13
12
|
download: (file: string | File) => any;
|
|
13
|
+
preview: (file: string | File) => any;
|
|
14
14
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onPreview?: ((file: string | File) => any) | undefined;
|
|
16
15
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
16
|
+
onPreview?: ((file: string | File) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
fileName: string;
|
|
19
19
|
autoPreview: boolean;
|
|
@@ -90,13 +90,13 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
|
|
|
90
90
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
91
91
|
}>, {
|
|
92
92
|
loading: boolean;
|
|
93
|
-
|
|
93
|
+
animationDuration: number;
|
|
94
94
|
columns: number;
|
|
95
|
-
|
|
95
|
+
gap: number;
|
|
96
96
|
infinite: boolean;
|
|
97
|
+
lazy: boolean;
|
|
97
98
|
skeleton: boolean;
|
|
98
99
|
skeletonCount: number;
|
|
99
|
-
animationDuration: number;
|
|
100
100
|
breakpoints: WaterFallBreakpoint[];
|
|
101
101
|
noMore: boolean;
|
|
102
102
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/useModalEdit.d.ts
CHANGED
|
@@ -398,18 +398,19 @@ declare function useDynamicRows<T extends DataRecord = DataRecord>(data: Ref<T[]
|
|
|
398
398
|
//#endregion
|
|
399
399
|
//#region src/components/C_Table/composables/useTableConfig.d.ts
|
|
400
400
|
/**
|
|
401
|
-
* 可绑定到 C_Table 的 CRUD
|
|
402
|
-
*
|
|
403
|
-
*
|
|
404
|
-
*
|
|
401
|
+
* 可绑定到 C_Table 的 CRUD 对象接口(桥接类型)
|
|
402
|
+
*
|
|
403
|
+
* C_Table 内部已将 data/columns 规范化为 DataRecord/TableColumn,
|
|
404
|
+
* 此接口对 columns/actions 使用 any[] 避免 TableColumn<any> 结构展开异常,
|
|
405
|
+
* 同时允许 useTableCrud<T>() 任意子类型直接传入而无需类型断言。
|
|
405
406
|
*/
|
|
406
|
-
interface CrudBinding
|
|
407
|
-
data: Ref<
|
|
407
|
+
interface CrudBinding {
|
|
408
|
+
data: Ref<any[]>;
|
|
408
409
|
loading: Ref<boolean>;
|
|
409
|
-
columns: ComputedRef<
|
|
410
|
-
actions?: ComputedRef<
|
|
411
|
-
pagination?: ComputedRef<
|
|
412
|
-
tableRef?: Ref<
|
|
410
|
+
columns: ComputedRef<any[]>;
|
|
411
|
+
actions?: ComputedRef<any>;
|
|
412
|
+
pagination?: ComputedRef<any>;
|
|
413
|
+
tableRef?: Ref<any>;
|
|
413
414
|
save?: (...args: any[]) => any;
|
|
414
415
|
handleCancel?: () => void;
|
|
415
416
|
handlePaginationChange?: (page: number, pageSize: number) => void;
|
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
|
+
showBorder: boolean;
|
|
53
54
|
label: string;
|
|
55
|
+
showLabel: boolean;
|
|
54
56
|
size: number;
|
|
55
57
|
color: string;
|
|
56
|
-
mode: RenderMode;
|
|
57
58
|
margin: number;
|
|
58
|
-
|
|
59
|
-
showLabel: boolean;
|
|
59
|
+
mode: RenderMode;
|
|
60
60
|
bgColor: string;
|
|
61
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
62
62
|
logo: LogoOptions;
|
|
@@ -107,9 +107,9 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
107
107
|
onUndo?: (() => any) | undefined;
|
|
108
108
|
onRedo?: (() => any) | undefined;
|
|
109
109
|
}>, {
|
|
110
|
-
disabled: boolean;
|
|
111
110
|
width: number | string;
|
|
112
111
|
height: number | string;
|
|
112
|
+
disabled: boolean;
|
|
113
113
|
readonly: boolean;
|
|
114
114
|
showToolbar: boolean;
|
|
115
115
|
maxHistory: number;
|
package/dist/useSplitResize.d.ts
CHANGED
|
@@ -66,24 +66,24 @@ type __VLS_Slots = {} & {
|
|
|
66
66
|
second?: (props: typeof __VLS_13) => any;
|
|
67
67
|
};
|
|
68
68
|
declare const __VLS_base: vue.DefineComponent<Props, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
69
|
-
expand: (target: CollapseTarget) => any;
|
|
70
69
|
resize: (firstSize: number, secondSize: number) => any;
|
|
70
|
+
collapse: (target: CollapseTarget) => any;
|
|
71
71
|
"drag-start": (size: number) => any;
|
|
72
72
|
"drag-end": (size: number) => any;
|
|
73
|
-
|
|
73
|
+
expand: (target: CollapseTarget) => any;
|
|
74
74
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
75
|
-
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
76
75
|
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
76
|
+
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
77
77
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
78
78
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
79
|
-
|
|
79
|
+
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
81
|
disabled: boolean;
|
|
82
|
-
step: number;
|
|
83
|
-
maxSize: number;
|
|
84
82
|
direction: SplitDirection;
|
|
83
|
+
step: number;
|
|
85
84
|
defaultSize: number;
|
|
86
85
|
minSize: number;
|
|
86
|
+
maxSize: number;
|
|
87
87
|
collapsible: boolean;
|
|
88
88
|
showCollapseButton: boolean;
|
|
89
89
|
gutterSize: number;
|
|
@@ -48,12 +48,12 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
|
|
|
48
48
|
"onChange-start"?: ((time: number | null) => any) | undefined;
|
|
49
49
|
"onChange-end"?: ((time: number | null) => any) | undefined;
|
|
50
50
|
}>, {
|
|
51
|
+
format: string;
|
|
51
52
|
placeholder: string;
|
|
52
|
-
mode: TimeMode;
|
|
53
53
|
attrs: Record<string, any>;
|
|
54
|
+
mode: TimeMode;
|
|
54
55
|
startPlaceholder: string;
|
|
55
56
|
endPlaceholder: string;
|
|
56
|
-
format: string;
|
|
57
57
|
useHours: boolean;
|
|
58
58
|
useMinutes: boolean;
|
|
59
59
|
useSeconds: boolean;
|
|
@@ -91,22 +91,22 @@ type __VLS_Slots = {} & {
|
|
|
91
91
|
};
|
|
92
92
|
declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
93
93
|
add: (parentNode?: TreeNodeData | undefined) => any;
|
|
94
|
+
refresh: () => any;
|
|
94
95
|
"node-select": (node: TreeNodeData | null, selectedKeys: (string | number)[]) => any;
|
|
95
96
|
"node-action": (action: string, node: TreeNodeData) => any;
|
|
96
97
|
"node-drop": (info: DropInfo) => any;
|
|
97
|
-
refresh: () => any;
|
|
98
98
|
}, string, vue.PublicProps, Readonly<TreeProps> & Readonly<{
|
|
99
99
|
onAdd?: ((parentNode?: TreeNodeData | undefined) => any) | undefined;
|
|
100
|
+
onRefresh?: (() => any) | undefined;
|
|
100
101
|
"onNode-select"?: ((node: TreeNodeData | null, selectedKeys: (string | number)[]) => any) | undefined;
|
|
101
102
|
"onNode-action"?: ((action: string, node: TreeNodeData) => any) | undefined;
|
|
102
103
|
"onNode-drop"?: ((info: DropInfo) => any) | undefined;
|
|
103
|
-
onRefresh?: (() => any) | undefined;
|
|
104
104
|
}>, {
|
|
105
105
|
labelField: string;
|
|
106
106
|
childrenField: string;
|
|
107
|
-
mode: TreeMode;
|
|
108
|
-
showToolbar: boolean;
|
|
109
107
|
actions: ActionConfig[];
|
|
108
|
+
showToolbar: boolean;
|
|
109
|
+
mode: TreeMode;
|
|
110
110
|
draggable: boolean;
|
|
111
111
|
keyField: string;
|
|
112
112
|
searchPattern: string;
|
|
@@ -239,17 +239,17 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
|
|
|
239
239
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
240
240
|
"update:modelValue": (value: WorkflowData) => any;
|
|
241
241
|
change: (value: WorkflowData) => any;
|
|
242
|
-
|
|
242
|
+
"validate-error": (errors: ValidationError[]) => any;
|
|
243
243
|
"node-click": (node: WorkflowNode) => any;
|
|
244
244
|
"edge-click": (edge: WorkflowEdge) => any;
|
|
245
|
-
|
|
245
|
+
save: (data: WorkflowData) => any;
|
|
246
246
|
}, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
|
|
247
247
|
"onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
|
|
248
248
|
onChange?: ((value: WorkflowData) => any) | undefined;
|
|
249
|
-
|
|
249
|
+
"onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
|
|
250
250
|
"onNode-click"?: ((node: WorkflowNode) => any) | undefined;
|
|
251
251
|
"onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
|
|
252
|
-
|
|
252
|
+
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
253
253
|
}>, {
|
|
254
254
|
theme: "light" | "dark";
|
|
255
255
|
readonly: boolean;
|