@robot-admin/naive-ui-components 0.6.17 → 0.6.18
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_Table.js.map +1 -1
- package/dist/C_Table2.js.map +1 -1
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.ts +4 -4
- package/dist/constants3.d.ts +4 -4
- package/dist/constants4.d.ts +4 -4
- package/dist/constants5.d.ts +2 -2
- package/dist/data.d.ts +2 -2
- package/dist/index10.vue.d.ts +1 -1
- package/dist/index11.vue.d.ts +2 -2
- package/dist/index12.vue.d.ts +1 -1
- package/dist/index13.vue.d.ts +2 -2
- package/dist/index15.vue.d.ts +3 -3
- package/dist/index16.vue.d.ts +2 -2
- package/dist/index17.vue.d.ts +1 -1
- package/dist/index18.vue.d.ts +6 -6
- package/dist/index20.vue.d.ts +2 -2
- package/dist/index21.vue.d.ts +1 -1
- package/dist/index24.vue.d.ts +5 -5
- package/dist/index25.vue.d.ts +2 -2
- package/dist/index26.vue.d.ts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index4.vue.d.ts +3 -3
- package/dist/index6.vue.d.ts +4 -4
- package/dist/index7.vue.d.ts +2 -2
- package/dist/index8.vue.d.ts +1 -1
- package/dist/index9.vue.d.ts +2 -2
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.ts +2 -2
- package/dist/useCropperCore.d.ts +3 -3
- package/dist/useDraggableLayout.d.ts +5 -5
- package/dist/useDynamicFormState.d.ts +10 -10
- package/dist/useInfiniteScroll.d.ts +6 -6
- package/dist/useModalEdit.d.ts +13 -12
- package/dist/useQRCode.d.ts +4 -4
- package/dist/useSearchState.d.ts +2 -2
- package/dist/useSplitResize.d.ts +5 -5
- package/dist/useTimeSelection.d.ts +2 -2
- package/dist/useTreeOperations.d.ts +5 -5
- package/dist/useWorkflowValidation.d.ts +2 -2
- package/package.json +1 -1
|
@@ -429,13 +429,13 @@ declare const __VLS_base: vue.DefineComponent<CFormProps, {
|
|
|
429
429
|
shouldShowDefaultActions: vue.ComputedRef<boolean>;
|
|
430
430
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
431
431
|
"update:modelValue": (model: Record<string, any>) => any;
|
|
432
|
-
submit: (payload: SubmitEventPayload) => any;
|
|
433
432
|
"validate-error": (errors: unknown) => any;
|
|
433
|
+
submit: (payload: SubmitEventPayload) => any;
|
|
434
434
|
"validate-success": (model: Record<string, any>) => any;
|
|
435
435
|
}, string, vue.PublicProps, Readonly<CFormProps> & Readonly<{
|
|
436
436
|
"onUpdate:modelValue"?: ((model: Record<string, any>) => any) | undefined;
|
|
437
|
-
onSubmit?: ((payload: SubmitEventPayload) => any) | undefined;
|
|
438
437
|
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
438
|
+
onSubmit?: ((payload: SubmitEventPayload) => any) | undefined;
|
|
439
439
|
"onValidate-success"?: ((model: Record<string, any>) => any) | undefined;
|
|
440
440
|
}>, {
|
|
441
441
|
config: FormConfig;
|
|
@@ -1295,6 +1295,10 @@ 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;
|
|
1299
|
+
readonly max?: number | undefined;
|
|
1300
|
+
readonly level?: "warning" | "error" | undefined;
|
|
1301
|
+
readonly key?: string | undefined;
|
|
1298
1302
|
readonly options?: {
|
|
1299
1303
|
readonly suppressWarning?: boolean | undefined;
|
|
1300
1304
|
readonly suppressValidatorError?: boolean | undefined;
|
|
@@ -1352,11 +1356,7 @@ declare const useDynamicFormState: () => {
|
|
|
1352
1356
|
} | undefined;
|
|
1353
1357
|
readonly trigger?: string | readonly string[] | undefined;
|
|
1354
1358
|
readonly pattern?: (RegExp | string) | undefined;
|
|
1355
|
-
readonly required?: boolean | undefined;
|
|
1356
|
-
readonly key?: string | undefined;
|
|
1357
|
-
readonly max?: number | undefined;
|
|
1358
1359
|
readonly message?: string | ((a?: string) => string) | undefined;
|
|
1359
|
-
readonly level?: "warning" | "error" | undefined;
|
|
1360
1360
|
readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
|
|
1361
1361
|
readonly min?: number | undefined;
|
|
1362
1362
|
readonly len?: number | undefined;
|
|
@@ -3572,6 +3572,10 @@ declare const useDynamicFormState: () => {
|
|
|
3572
3572
|
} | undefined;
|
|
3573
3573
|
readonly rules?: readonly {
|
|
3574
3574
|
readonly type?: RuleType | undefined;
|
|
3575
|
+
readonly required?: boolean | undefined;
|
|
3576
|
+
readonly max?: number | undefined;
|
|
3577
|
+
readonly level?: "warning" | "error" | undefined;
|
|
3578
|
+
readonly key?: string | undefined;
|
|
3575
3579
|
readonly options?: {
|
|
3576
3580
|
readonly suppressWarning?: boolean | undefined;
|
|
3577
3581
|
readonly suppressValidatorError?: boolean | undefined;
|
|
@@ -3629,11 +3633,7 @@ declare const useDynamicFormState: () => {
|
|
|
3629
3633
|
} | undefined;
|
|
3630
3634
|
readonly trigger?: string | readonly string[] | undefined;
|
|
3631
3635
|
readonly pattern?: (RegExp | string) | undefined;
|
|
3632
|
-
readonly required?: boolean | undefined;
|
|
3633
|
-
readonly key?: string | undefined;
|
|
3634
|
-
readonly max?: number | undefined;
|
|
3635
3636
|
readonly message?: string | ((a?: string) => string) | undefined;
|
|
3636
|
-
readonly level?: "warning" | "error" | undefined;
|
|
3637
3637
|
readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
|
|
3638
3638
|
readonly min?: number | undefined;
|
|
3639
3639
|
readonly len?: number | undefined;
|
|
@@ -79,24 +79,24 @@ type __VLS_Slots = {} & {
|
|
|
79
79
|
footer?: (props: typeof __VLS_5) => any;
|
|
80
80
|
};
|
|
81
81
|
declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
82
|
-
"item-click": (item: WaterFallItem, index: number) => any;
|
|
83
82
|
"load-more": () => any;
|
|
83
|
+
"item-click": (item: WaterFallItem, index: number) => any;
|
|
84
84
|
"image-loaded": (item: WaterFallItem) => any;
|
|
85
85
|
"image-error": (item: WaterFallItem) => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
87
|
-
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
88
87
|
"onLoad-more"?: (() => any) | undefined;
|
|
88
|
+
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
89
89
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
90
90
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
91
91
|
}>, {
|
|
92
|
-
loading: boolean;
|
|
93
|
-
gap: number;
|
|
94
92
|
columns: number;
|
|
95
|
-
|
|
93
|
+
gap: number;
|
|
94
|
+
loading: boolean;
|
|
95
|
+
animationDuration: 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;
|
|
@@ -595,8 +596,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
|
|
|
595
596
|
clearAllSelections(): void;
|
|
596
597
|
};
|
|
597
598
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
598
|
-
cancel: (rowData: DataRecord, rowIndex: number) => any;
|
|
599
599
|
save: (rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any;
|
|
600
|
+
cancel: (rowData: DataRecord, rowIndex: number) => any;
|
|
600
601
|
"pagination-change": (...args: unknown[]) => any;
|
|
601
602
|
"row-delete": (...args: unknown[]) => any;
|
|
602
603
|
"expand-change": (expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any;
|
|
@@ -611,8 +612,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
|
|
|
611
612
|
"view-detail": (data: DataRecord) => any;
|
|
612
613
|
"column-change": (columns: TableColumn[]) => any;
|
|
613
614
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
614
|
-
onCancel?: ((rowData: DataRecord, rowIndex: number) => any) | undefined;
|
|
615
615
|
onSave?: ((rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
616
|
+
onCancel?: ((rowData: DataRecord, rowIndex: number) => any) | undefined;
|
|
616
617
|
"onPagination-change"?: ((...args: unknown[]) => any) | undefined;
|
|
617
618
|
"onRow-delete"?: ((...args: unknown[]) => any) | undefined;
|
|
618
619
|
"onExpand-change"?: ((expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any) | undefined;
|
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
|
-
label: string;
|
|
54
|
-
size: number;
|
|
55
|
-
color: string;
|
|
56
53
|
mode: RenderMode;
|
|
57
|
-
|
|
54
|
+
size: number;
|
|
58
55
|
showBorder: boolean;
|
|
56
|
+
label: string;
|
|
59
57
|
showLabel: boolean;
|
|
58
|
+
color: string;
|
|
59
|
+
margin: number;
|
|
60
60
|
bgColor: string;
|
|
61
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
62
62
|
logo: LogoOptions;
|
package/dist/useSearchState.d.ts
CHANGED
|
@@ -55,12 +55,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
55
55
|
cleanFn: () => void;
|
|
56
56
|
changeFoldState: () => void;
|
|
57
57
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
58
|
-
search: (params: SearchFormParams) => any;
|
|
59
58
|
reset: () => any;
|
|
59
|
+
search: (params: SearchFormParams) => any;
|
|
60
60
|
"change-params": (params: SearchFormParams) => any;
|
|
61
61
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
62
|
-
onSearch?: ((params: SearchFormParams) => any) | undefined;
|
|
63
62
|
onReset?: (() => any) | undefined;
|
|
63
|
+
onSearch?: ((params: SearchFormParams) => any) | undefined;
|
|
64
64
|
"onChange-params"?: ((params: SearchFormParams) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
size: "small" | "medium" | "large";
|
package/dist/useSplitResize.d.ts
CHANGED
|
@@ -66,22 +66,22 @@ 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
|
-
resize: (firstSize: number, secondSize: number) => any;
|
|
71
69
|
"drag-start": (size: number) => any;
|
|
72
70
|
"drag-end": (size: number) => any;
|
|
71
|
+
expand: (target: CollapseTarget) => any;
|
|
73
72
|
collapse: (target: CollapseTarget) => any;
|
|
73
|
+
resize: (firstSize: number, secondSize: number) => any;
|
|
74
74
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
75
|
-
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
76
|
-
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
77
75
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
78
76
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
77
|
+
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
79
78
|
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
79
|
+
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
81
|
disabled: boolean;
|
|
82
|
+
direction: SplitDirection;
|
|
82
83
|
step: number;
|
|
83
84
|
maxSize: number;
|
|
84
|
-
direction: SplitDirection;
|
|
85
85
|
defaultSize: number;
|
|
86
86
|
minSize: number;
|
|
87
87
|
collapsible: boolean;
|
|
@@ -50,10 +50,9 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
|
|
|
50
50
|
}>, {
|
|
51
51
|
placeholder: string;
|
|
52
52
|
mode: TimeMode;
|
|
53
|
-
|
|
53
|
+
format: string;
|
|
54
54
|
startPlaceholder: string;
|
|
55
55
|
endPlaceholder: string;
|
|
56
|
-
format: string;
|
|
57
56
|
useHours: boolean;
|
|
58
57
|
useMinutes: boolean;
|
|
59
58
|
useSeconds: boolean;
|
|
@@ -62,6 +61,7 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
|
|
|
62
61
|
secondStep: number;
|
|
63
62
|
startTimeProps: Record<string, any>;
|
|
64
63
|
endTimeProps: Record<string, any>;
|
|
64
|
+
attrs: Record<string, any>;
|
|
65
65
|
defaultStartTime: number | null;
|
|
66
66
|
defaultEndTime: number | null;
|
|
67
67
|
defaultSingleTime: number | null;
|
|
@@ -91,23 +91,23 @@ 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
|
-
labelField: string;
|
|
106
|
-
childrenField: string;
|
|
107
105
|
mode: TreeMode;
|
|
108
106
|
showToolbar: boolean;
|
|
109
|
-
actions: ActionConfig[];
|
|
110
107
|
draggable: boolean;
|
|
108
|
+
actions: ActionConfig[];
|
|
109
|
+
labelField: string;
|
|
110
|
+
childrenField: string;
|
|
111
111
|
keyField: string;
|
|
112
112
|
searchPattern: string;
|
|
113
113
|
searchable: boolean;
|
|
@@ -237,15 +237,15 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
|
|
|
237
237
|
conditionNodes: number;
|
|
238
238
|
}>;
|
|
239
239
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
240
|
-
"update:modelValue": (value: WorkflowData) => any;
|
|
241
240
|
change: (value: WorkflowData) => any;
|
|
241
|
+
"update:modelValue": (value: WorkflowData) => any;
|
|
242
242
|
save: (data: WorkflowData) => any;
|
|
243
243
|
"node-click": (node: WorkflowNode) => any;
|
|
244
244
|
"edge-click": (edge: WorkflowEdge) => any;
|
|
245
245
|
"validate-error": (errors: ValidationError[]) => any;
|
|
246
246
|
}, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
|
|
247
|
-
"onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
|
|
248
247
|
onChange?: ((value: WorkflowData) => any) | undefined;
|
|
248
|
+
"onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
|
|
249
249
|
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
250
250
|
"onNode-click"?: ((node: WorkflowNode) => any) | undefined;
|
|
251
251
|
"onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
|