yc-pro-components 0.0.80 → 0.0.82
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/es/components/check-card/index.d.ts +38 -38
- package/es/components/check-card/src/index.vue.d.ts +3 -3
- package/es/components/check-card-group/index.d.ts +4 -4
- package/es/components/check-card-group/src/index.vue.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +11 -11
- package/es/components/date-picker/src/index.vue.d.ts +11 -11
- package/es/components/dialog/index.d.ts +83 -83
- package/es/components/dialog/src/index.vue.d.ts +7 -7
- package/es/components/dialog-form/index.d.ts +38 -38
- package/es/components/dialog-form/src/index.vue.d.ts +10 -10
- package/es/components/display-item/index.d.ts +18 -18
- package/es/components/display-item/src/index.vue.d.ts +18 -18
- package/es/components/drawer-form/index.d.ts +126 -126
- package/es/components/drawer-form/src/index.vue.d.ts +29 -29
- package/es/components/form/index.d.ts +49 -49
- package/es/components/form/src/form-content.vue.d.ts +28 -28
- package/es/components/form/src/index.vue.d.ts +16 -16
- package/es/components/form-item/index.d.ts +66 -66
- package/es/components/form-item/src/index.vue.d.ts +19 -19
- package/es/components/input-tag/index.d.ts +1 -1
- package/es/components/input-tag/src/index.vue.d.ts +1 -1
- package/es/components/page/index.d.ts +390 -378
- package/es/components/page/src/index.vue.d.ts +134 -130
- package/es/components/pagination/index.d.ts +11 -11
- package/es/components/pagination/src/index.vue.d.ts +2 -2
- package/es/components/popover/index.d.ts +42 -42
- package/es/components/popover/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +22 -22
- package/es/components/radio/src/index.vue.d.ts +22 -22
- package/es/components/render/index.d.ts +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +171 -171
- package/es/components/search/src/index.vue.d.ts +54 -54
- package/es/components/steps-form/index.d.ts +23 -23
- package/es/components/steps-form/src/index.vue.d.ts +2 -2
- package/es/components/table/index.d.ts +6 -0
- package/es/components/table/src/index.vue.d.ts +2 -0
- package/es/components/table/src/index.vue2.mjs +30 -1
- package/es/components/table/src/table-action-bar.vue.d.ts +1 -1
- package/es/components/table/src/table-column.vue.d.ts +18 -18
- package/es/components/utils/index.d.ts +2 -2
- package/es/components/yc-card/index.d.ts +19 -19
- package/es/components/yc-card/src/index.vue.d.ts +1 -1
- package/es/components/yc-count-to/index.d.ts +1 -1
- package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/es/components/yc-download-dialog/index.d.ts +19 -19
- package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-drawer/store.d.ts +5 -5
- package/es/components/yc-form-container-header/index.d.ts +12 -12
- package/es/components/yc-more-actions/index.d.ts +16 -16
- package/es/components/yc-more-actions/src/index.vue.d.ts +2 -2
- package/es/components/yc-plus-page/src/header-filter-cell.vue.d.ts +3 -3
- package/es/components/yc-plus-page/src/header-filter-cell.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/header-filter-cell.vue2.mjs +17 -0
- package/es/components/yc-plus-page/src/index.vue.d.ts +269 -257
- package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/es/components/yc-segmented/index.d.ts +1 -1
- package/es/components/yc-segmented/src/index.d.ts +1 -1
- package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/es/components/yc-status-dialog/src/index.vue.d.ts +5 -5
- package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/hooks/usePlusFormReset.d.ts +402 -402
- package/es/index.css +11 -11
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.js +50 -4
- package/index.min.css +1 -1
- package/index.min.js +12 -12
- package/index.min.mjs +12 -12
- package/index.mjs +50 -4
- package/lib/components/check-card/index.d.ts +38 -38
- package/lib/components/check-card/src/index.vue.d.ts +3 -3
- package/lib/components/check-card-group/index.d.ts +4 -4
- package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
- package/lib/components/date-picker/index.d.ts +11 -11
- package/lib/components/date-picker/src/index.vue.d.ts +11 -11
- package/lib/components/dialog/index.d.ts +83 -83
- package/lib/components/dialog/src/index.vue.d.ts +7 -7
- package/lib/components/dialog-form/index.d.ts +38 -38
- package/lib/components/dialog-form/src/index.vue.d.ts +10 -10
- package/lib/components/display-item/index.d.ts +18 -18
- package/lib/components/display-item/src/index.vue.d.ts +18 -18
- package/lib/components/drawer-form/index.d.ts +126 -126
- package/lib/components/drawer-form/src/index.vue.d.ts +29 -29
- package/lib/components/form/index.d.ts +49 -49
- package/lib/components/form/src/form-content.vue.d.ts +28 -28
- package/lib/components/form/src/index.vue.d.ts +16 -16
- package/lib/components/form-item/index.d.ts +66 -66
- package/lib/components/form-item/src/index.vue.d.ts +19 -19
- package/lib/components/input-tag/index.d.ts +1 -1
- package/lib/components/input-tag/src/index.vue.d.ts +1 -1
- package/lib/components/page/index.d.ts +390 -378
- package/lib/components/page/src/index.vue.d.ts +134 -130
- package/lib/components/pagination/index.d.ts +11 -11
- package/lib/components/pagination/src/index.vue.d.ts +2 -2
- package/lib/components/popover/index.d.ts +42 -42
- package/lib/components/popover/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +22 -22
- package/lib/components/radio/src/index.vue.d.ts +22 -22
- package/lib/components/render/index.d.ts +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +171 -171
- package/lib/components/search/src/index.vue.d.ts +54 -54
- package/lib/components/steps-form/index.d.ts +23 -23
- package/lib/components/steps-form/src/index.vue.d.ts +2 -2
- package/lib/components/table/index.d.ts +6 -0
- package/lib/components/table/src/index.vue.d.ts +2 -0
- package/lib/components/table/src/index.vue2.js +30 -1
- package/lib/components/table/src/table-action-bar.vue.d.ts +1 -1
- package/lib/components/table/src/table-column.vue.d.ts +18 -18
- package/lib/components/utils/index.d.ts +2 -2
- package/lib/components/yc-card/index.d.ts +19 -19
- package/lib/components/yc-card/src/index.vue.d.ts +1 -1
- package/lib/components/yc-count-to/index.d.ts +1 -1
- package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/lib/components/yc-download-dialog/index.d.ts +19 -19
- package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-drawer/store.d.ts +5 -5
- package/lib/components/yc-form-container-header/index.d.ts +12 -12
- package/lib/components/yc-more-actions/index.d.ts +16 -16
- package/lib/components/yc-more-actions/src/index.vue.d.ts +2 -2
- package/lib/components/yc-plus-page/src/header-filter-cell.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/src/header-filter-cell.vue.js +1 -1
- package/lib/components/yc-plus-page/src/header-filter-cell.vue2.js +17 -0
- package/lib/components/yc-plus-page/src/index.vue.d.ts +269 -257
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/lib/components/yc-segmented/index.d.ts +1 -1
- package/lib/components/yc-segmented/src/index.d.ts +1 -1
- package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +5 -5
- package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- package/lib/hooks/usePlusFormReset.d.ts +402 -402
- package/lib/index.css +10 -10
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/version.d.ts +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
|
@@ -42,14 +42,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
42
42
|
$: ComponentInternalInstance;
|
|
43
43
|
$data: {};
|
|
44
44
|
$props: Partial<{
|
|
45
|
-
labelPosition: "left" | "right" | "top";
|
|
46
45
|
modelValue: FieldValues;
|
|
47
46
|
collapseDuration: number;
|
|
48
47
|
collapseTransition: boolean;
|
|
49
48
|
columns: PlusColumn[];
|
|
50
49
|
group: false | PlusFormGroupRow[];
|
|
51
|
-
layout: "
|
|
50
|
+
layout: "grid" | "flex";
|
|
52
51
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
52
|
+
labelPosition: "top" | "right" | "left";
|
|
53
53
|
labelWidth: string | number;
|
|
54
54
|
labelSuffix: string;
|
|
55
55
|
defaultValues: FieldValues;
|
|
@@ -68,7 +68,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
68
68
|
submitText: string;
|
|
69
69
|
resetText: string;
|
|
70
70
|
submitLoading: boolean;
|
|
71
|
-
footerAlign: "
|
|
71
|
+
footerAlign: "center" | "right" | "left";
|
|
72
72
|
cardProps: Partial< Mutable<CardProps> & {
|
|
73
73
|
style?: CSSProperties | undefined;
|
|
74
74
|
class?: any;
|
|
@@ -76,11 +76,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
76
76
|
prevent: boolean;
|
|
77
77
|
clearable: boolean;
|
|
78
78
|
}> & Omit<{
|
|
79
|
-
readonly labelPosition: "left" | "right" | "top";
|
|
80
79
|
readonly modelValue: FieldValues;
|
|
81
80
|
readonly columns: PlusColumn[];
|
|
82
81
|
readonly group: false | PlusFormGroupRow[];
|
|
83
82
|
readonly rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
83
|
+
readonly labelPosition: "top" | "right" | "left";
|
|
84
84
|
readonly labelWidth: string | number;
|
|
85
85
|
readonly labelSuffix: string;
|
|
86
86
|
readonly defaultValues: FieldValues;
|
|
@@ -99,7 +99,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
99
99
|
readonly submitText: string;
|
|
100
100
|
readonly resetText: string;
|
|
101
101
|
readonly submitLoading: boolean;
|
|
102
|
-
readonly footerAlign: "
|
|
102
|
+
readonly footerAlign: "center" | "right" | "left";
|
|
103
103
|
readonly cardProps: Partial< Mutable<CardProps> & {
|
|
104
104
|
style?: CSSProperties | undefined;
|
|
105
105
|
class?: any;
|
|
@@ -108,18 +108,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
108
108
|
readonly clearable: boolean;
|
|
109
109
|
readonly collapseDuration?: number | undefined;
|
|
110
110
|
readonly collapseTransition?: boolean | undefined;
|
|
111
|
-
readonly layout?: "
|
|
112
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
111
|
+
readonly layout?: "grid" | "flex" | undefined;
|
|
113
112
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
114
113
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
115
114
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
115
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
116
116
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
118
118
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
119
|
-
labelPosition: {
|
|
120
|
-
type: PropType<"left" | "right" | "top">;
|
|
121
|
-
default: string;
|
|
122
|
-
};
|
|
123
119
|
modelValue: {
|
|
124
120
|
type: PropType<FieldValues>;
|
|
125
121
|
default: () => {};
|
|
@@ -141,13 +137,17 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
141
137
|
default: boolean;
|
|
142
138
|
};
|
|
143
139
|
layout: {
|
|
144
|
-
type: PropType<"
|
|
140
|
+
type: PropType<"grid" | "flex">;
|
|
145
141
|
default: undefined;
|
|
146
142
|
};
|
|
147
143
|
rules: {
|
|
148
144
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
149
145
|
default: () => {};
|
|
150
146
|
};
|
|
147
|
+
labelPosition: {
|
|
148
|
+
type: PropType<"top" | "right" | "left">;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
151
|
labelWidth: {
|
|
152
152
|
type: PropType<string | number>;
|
|
153
153
|
default: string;
|
|
@@ -203,7 +203,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
203
203
|
default: boolean;
|
|
204
204
|
};
|
|
205
205
|
footerAlign: {
|
|
206
|
-
type: PropType<"
|
|
206
|
+
type: PropType<"center" | "right" | "left">;
|
|
207
207
|
default: string;
|
|
208
208
|
};
|
|
209
209
|
cardProps: {
|
|
@@ -222,13 +222,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
222
222
|
default: boolean;
|
|
223
223
|
};
|
|
224
224
|
}>> & {
|
|
225
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
226
225
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
227
226
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
228
227
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
228
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
229
229
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
230
230
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
231
|
-
}, "
|
|
231
|
+
}, "modelValue" | "collapseDuration" | "collapseTransition" | "columns" | "group" | "layout" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "defaultValues" | "rowProps" | "colProps" | "hasErrorTip" | "hasFooter" | "hasReset" | "hasLabel" | "submitText" | "resetText" | "submitLoading" | "footerAlign" | "cardProps" | "prevent" | "clearable">;
|
|
232
232
|
$attrs: {
|
|
233
233
|
[x: string]: unknown;
|
|
234
234
|
};
|
|
@@ -240,13 +240,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
240
240
|
}>;
|
|
241
241
|
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
242
242
|
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
243
|
-
$emit: ((event: "
|
|
243
|
+
$emit: ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "validate", ...args: any[]) => void) & ((event: "submitError", errors: unknown) => void);
|
|
244
244
|
$el: any;
|
|
245
245
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
246
|
-
labelPosition: {
|
|
247
|
-
type: PropType<"left" | "right" | "top">;
|
|
248
|
-
default: string;
|
|
249
|
-
};
|
|
250
246
|
modelValue: {
|
|
251
247
|
type: PropType<FieldValues>;
|
|
252
248
|
default: () => {};
|
|
@@ -268,13 +264,17 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
268
264
|
default: boolean;
|
|
269
265
|
};
|
|
270
266
|
layout: {
|
|
271
|
-
type: PropType<"
|
|
267
|
+
type: PropType<"grid" | "flex">;
|
|
272
268
|
default: undefined;
|
|
273
269
|
};
|
|
274
270
|
rules: {
|
|
275
271
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
276
272
|
default: () => {};
|
|
277
273
|
};
|
|
274
|
+
labelPosition: {
|
|
275
|
+
type: PropType<"top" | "right" | "left">;
|
|
276
|
+
default: string;
|
|
277
|
+
};
|
|
278
278
|
labelWidth: {
|
|
279
279
|
type: PropType<string | number>;
|
|
280
280
|
default: string;
|
|
@@ -330,7 +330,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
330
330
|
default: boolean;
|
|
331
331
|
};
|
|
332
332
|
footerAlign: {
|
|
333
|
-
type: PropType<"
|
|
333
|
+
type: PropType<"center" | "right" | "left">;
|
|
334
334
|
default: string;
|
|
335
335
|
};
|
|
336
336
|
cardProps: {
|
|
@@ -349,10 +349,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
349
349
|
default: boolean;
|
|
350
350
|
};
|
|
351
351
|
}>> & {
|
|
352
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
353
352
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
354
353
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
355
354
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
355
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
356
356
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
357
357
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
358
358
|
}, {
|
|
@@ -367,14 +367,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
367
367
|
submitError: (errors: unknown) => void;
|
|
368
368
|
validate: (...args: any[]) => void;
|
|
369
369
|
}, string, {
|
|
370
|
-
labelPosition: "left" | "right" | "top";
|
|
371
370
|
modelValue: FieldValues;
|
|
372
371
|
collapseDuration: number;
|
|
373
372
|
collapseTransition: boolean;
|
|
374
373
|
columns: PlusColumn[];
|
|
375
374
|
group: false | PlusFormGroupRow[];
|
|
376
|
-
layout: "
|
|
375
|
+
layout: "grid" | "flex";
|
|
377
376
|
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
377
|
+
labelPosition: "top" | "right" | "left";
|
|
378
378
|
labelWidth: string | number;
|
|
379
379
|
labelSuffix: string;
|
|
380
380
|
defaultValues: FieldValues;
|
|
@@ -393,7 +393,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
393
393
|
submitText: string;
|
|
394
394
|
resetText: string;
|
|
395
395
|
submitLoading: boolean;
|
|
396
|
-
footerAlign: "
|
|
396
|
+
footerAlign: "center" | "right" | "left";
|
|
397
397
|
cardProps: Partial< Mutable<CardProps> & {
|
|
398
398
|
style?: CSSProperties | undefined;
|
|
399
399
|
class?: any;
|
|
@@ -421,10 +421,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
421
421
|
$nextTick: nextTick;
|
|
422
422
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
423
423
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
424
|
-
labelPosition: {
|
|
425
|
-
type: PropType<"left" | "right" | "top">;
|
|
426
|
-
default: string;
|
|
427
|
-
};
|
|
428
424
|
modelValue: {
|
|
429
425
|
type: PropType<FieldValues>;
|
|
430
426
|
default: () => {};
|
|
@@ -446,13 +442,17 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
446
442
|
default: boolean;
|
|
447
443
|
};
|
|
448
444
|
layout: {
|
|
449
|
-
type: PropType<"
|
|
445
|
+
type: PropType<"grid" | "flex">;
|
|
450
446
|
default: undefined;
|
|
451
447
|
};
|
|
452
448
|
rules: {
|
|
453
449
|
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
454
450
|
default: () => {};
|
|
455
451
|
};
|
|
452
|
+
labelPosition: {
|
|
453
|
+
type: PropType<"top" | "right" | "left">;
|
|
454
|
+
default: string;
|
|
455
|
+
};
|
|
456
456
|
labelWidth: {
|
|
457
457
|
type: PropType<string | number>;
|
|
458
458
|
default: string;
|
|
@@ -508,7 +508,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
508
508
|
default: boolean;
|
|
509
509
|
};
|
|
510
510
|
footerAlign: {
|
|
511
|
-
type: PropType<"
|
|
511
|
+
type: PropType<"center" | "right" | "left">;
|
|
512
512
|
default: string;
|
|
513
513
|
};
|
|
514
514
|
cardProps: {
|
|
@@ -527,10 +527,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
527
527
|
default: boolean;
|
|
528
528
|
};
|
|
529
529
|
}>> & {
|
|
530
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
531
530
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
532
531
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
533
532
|
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
533
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
534
534
|
onValidate?: ((...args: any[]) => any) | undefined;
|
|
535
535
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
536
536
|
}, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
|
|
@@ -550,10 +550,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
550
550
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
551
551
|
columns?: PlusColumn[] | undefined;
|
|
552
552
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
553
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
553
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "modelValue" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
554
554
|
readonly label: string | ComputedRef<string>;
|
|
555
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] |
|
|
556
|
-
readonly hasLabel: boolean |
|
|
555
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
556
|
+
readonly hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
557
557
|
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
558
558
|
style?: CSSProperties | undefined;
|
|
559
559
|
class?: any;
|
|
@@ -579,7 +579,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
579
579
|
};
|
|
580
580
|
rows: number;
|
|
581
581
|
autocomplete: string;
|
|
582
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
582
|
+
type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "warning" | "success" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
|
|
583
583
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
584
584
|
step: string | number;
|
|
585
585
|
format: string | ProgressFn | undefined;
|
|
@@ -624,8 +624,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
624
624
|
fieldInstance?: any;
|
|
625
625
|
valueIsReady?: Ref<boolean> | undefined;
|
|
626
626
|
prop: string;
|
|
627
|
-
modelValue: string | number | boolean | string[] | [string, string] | boolean[] |
|
|
628
|
-
hasLabel: boolean |
|
|
627
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
628
|
+
hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
629
629
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
630
630
|
style?: CSSProperties | undefined;
|
|
631
631
|
class?: any;
|
|
@@ -658,10 +658,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
658
658
|
clearable: boolean;
|
|
659
659
|
index: number;
|
|
660
660
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
661
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
661
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "modelValue" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
662
662
|
readonly label: string | ComputedRef<string>;
|
|
663
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] |
|
|
664
|
-
readonly hasLabel: boolean |
|
|
663
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
664
|
+
readonly hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
665
665
|
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
666
666
|
style?: CSSProperties | undefined;
|
|
667
667
|
class?: any;
|
|
@@ -687,7 +687,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
687
687
|
};
|
|
688
688
|
rows: number;
|
|
689
689
|
autocomplete: string;
|
|
690
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
690
|
+
type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "warning" | "success" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
|
|
691
691
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
692
692
|
step: string | number;
|
|
693
693
|
format: string | ProgressFn | undefined;
|
|
@@ -732,8 +732,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
732
732
|
fieldInstance?: any;
|
|
733
733
|
valueIsReady?: Ref<boolean> | undefined;
|
|
734
734
|
prop: string;
|
|
735
|
-
modelValue: string | number | boolean | string[] | [string, string] | boolean[] |
|
|
736
|
-
hasLabel: boolean |
|
|
735
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
736
|
+
hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
737
737
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
738
738
|
style?: CSSProperties | undefined;
|
|
739
739
|
class?: any;
|
|
@@ -819,16 +819,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
819
819
|
searchIcon: undefined;
|
|
820
820
|
resetIcon: undefined;
|
|
821
821
|
}>>> & {
|
|
822
|
-
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
823
822
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
824
823
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
824
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
825
825
|
onSearch?: ((values: FieldValues) => any) | undefined;
|
|
826
826
|
onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
|
|
827
827
|
}, {
|
|
828
|
-
labelPosition: "left" | "right" | "top";
|
|
829
828
|
modelValue: FieldValues;
|
|
830
829
|
columns: PlusColumn[];
|
|
831
|
-
layout: "
|
|
830
|
+
layout: "grid" | "flex";
|
|
831
|
+
labelPosition: "top" | "right" | "left";
|
|
832
832
|
inline: boolean;
|
|
833
833
|
showNumber: number;
|
|
834
834
|
defaultValues: FieldValues;
|
|
@@ -853,10 +853,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
853
853
|
searchIcon: Component | null;
|
|
854
854
|
resetIcon: Component | null;
|
|
855
855
|
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
856
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
856
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "modelValue" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
857
857
|
readonly label: string | ComputedRef<string>;
|
|
858
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] |
|
|
859
|
-
readonly hasLabel: boolean |
|
|
858
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
859
|
+
readonly hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
860
860
|
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
861
861
|
style?: CSSProperties | undefined;
|
|
862
862
|
class?: any;
|
|
@@ -882,7 +882,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
882
882
|
};
|
|
883
883
|
rows: number;
|
|
884
884
|
autocomplete: string;
|
|
885
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
885
|
+
type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "warning" | "success" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
|
|
886
886
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
887
887
|
step: string | number;
|
|
888
888
|
format: string | ProgressFn | undefined;
|
|
@@ -927,8 +927,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
927
927
|
fieldInstance?: any;
|
|
928
928
|
valueIsReady?: Ref<boolean> | undefined;
|
|
929
929
|
prop: string;
|
|
930
|
-
modelValue: string | number | boolean | string[] | [string, string] | boolean[] |
|
|
931
|
-
hasLabel: boolean |
|
|
930
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
931
|
+
hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
|
|
932
932
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
933
933
|
style?: CSSProperties | undefined;
|
|
934
934
|
class?: any;
|
|
@@ -7,14 +7,14 @@ export type { PlusStepsFormProps } from './src/index.vue';
|
|
|
7
7
|
export * from './src/type';
|
|
8
8
|
export declare const PlusStepsForm: {
|
|
9
9
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
10
|
-
modelValue: {
|
|
11
|
-
type: PropType<number>;
|
|
12
|
-
default: number;
|
|
13
|
-
};
|
|
14
10
|
data: {
|
|
15
11
|
type: PropType< PlusStepFromRow[]>;
|
|
16
12
|
default: () => never[];
|
|
17
13
|
};
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: PropType<number>;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
18
|
nextText: {
|
|
19
19
|
type: PropType<string>;
|
|
20
20
|
default: undefined;
|
|
@@ -28,9 +28,9 @@ export declare const PlusStepsForm: {
|
|
|
28
28
|
default: undefined;
|
|
29
29
|
};
|
|
30
30
|
}>> & {
|
|
31
|
-
"onUpdate:modelValue"?: ((active: number) => any) | undefined;
|
|
32
31
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
33
32
|
onSubmit?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
|
|
33
|
+
"onUpdate:modelValue"?: ((active: number) => any) | undefined;
|
|
34
34
|
onPre?: ((modelValue: number) => any) | undefined;
|
|
35
35
|
onNext?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
|
|
36
36
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -40,14 +40,14 @@ export declare const PlusStepsForm: {
|
|
|
40
40
|
"update:modelValue": (active: number) => void;
|
|
41
41
|
change: (values: FieldValues, column: PlusColumn) => void;
|
|
42
42
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
43
|
-
modelValue: {
|
|
44
|
-
type: PropType<number>;
|
|
45
|
-
default: number;
|
|
46
|
-
};
|
|
47
43
|
data: {
|
|
48
44
|
type: PropType< PlusStepFromRow[]>;
|
|
49
45
|
default: () => never[];
|
|
50
46
|
};
|
|
47
|
+
modelValue: {
|
|
48
|
+
type: PropType<number>;
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
51
|
nextText: {
|
|
52
52
|
type: PropType<string>;
|
|
53
53
|
default: undefined;
|
|
@@ -61,14 +61,14 @@ export declare const PlusStepsForm: {
|
|
|
61
61
|
default: undefined;
|
|
62
62
|
};
|
|
63
63
|
}>> & {
|
|
64
|
-
"onUpdate:modelValue"?: ((active: number) => any) | undefined;
|
|
65
64
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
66
65
|
onSubmit?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
|
|
66
|
+
"onUpdate:modelValue"?: ((active: number) => any) | undefined;
|
|
67
67
|
onPre?: ((modelValue: number) => any) | undefined;
|
|
68
68
|
onNext?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
|
-
modelValue: number;
|
|
71
70
|
data: PlusStepFromRow[];
|
|
71
|
+
modelValue: number;
|
|
72
72
|
nextText: string;
|
|
73
73
|
submitText: string;
|
|
74
74
|
preText: string;
|
|
@@ -80,14 +80,14 @@ export declare const PlusStepsForm: {
|
|
|
80
80
|
M: {};
|
|
81
81
|
Defaults: {};
|
|
82
82
|
}, Readonly< ExtractPropTypes<{
|
|
83
|
-
modelValue: {
|
|
84
|
-
type: PropType<number>;
|
|
85
|
-
default: number;
|
|
86
|
-
};
|
|
87
83
|
data: {
|
|
88
84
|
type: PropType< PlusStepFromRow[]>;
|
|
89
85
|
default: () => never[];
|
|
90
86
|
};
|
|
87
|
+
modelValue: {
|
|
88
|
+
type: PropType<number>;
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
91
|
nextText: {
|
|
92
92
|
type: PropType<string>;
|
|
93
93
|
default: undefined;
|
|
@@ -101,14 +101,14 @@ export declare const PlusStepsForm: {
|
|
|
101
101
|
default: undefined;
|
|
102
102
|
};
|
|
103
103
|
}>> & {
|
|
104
|
-
"onUpdate:modelValue"?: ((active: number) => any) | undefined;
|
|
105
104
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
106
105
|
onSubmit?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
|
|
106
|
+
"onUpdate:modelValue"?: ((active: number) => any) | undefined;
|
|
107
107
|
onPre?: ((modelValue: number) => any) | undefined;
|
|
108
108
|
onNext?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
|
|
109
109
|
}, {}, {}, {}, {}, {
|
|
110
|
-
modelValue: number;
|
|
111
110
|
data: PlusStepFromRow[];
|
|
111
|
+
modelValue: number;
|
|
112
112
|
nextText: string;
|
|
113
113
|
submitText: string;
|
|
114
114
|
preText: string;
|
|
@@ -117,14 +117,14 @@ export declare const PlusStepsForm: {
|
|
|
117
117
|
__isTeleport?: undefined;
|
|
118
118
|
__isSuspense?: undefined;
|
|
119
119
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
120
|
-
modelValue: {
|
|
121
|
-
type: PropType<number>;
|
|
122
|
-
default: number;
|
|
123
|
-
};
|
|
124
120
|
data: {
|
|
125
121
|
type: PropType< PlusStepFromRow[]>;
|
|
126
122
|
default: () => never[];
|
|
127
123
|
};
|
|
124
|
+
modelValue: {
|
|
125
|
+
type: PropType<number>;
|
|
126
|
+
default: number;
|
|
127
|
+
};
|
|
128
128
|
nextText: {
|
|
129
129
|
type: PropType<string>;
|
|
130
130
|
default: undefined;
|
|
@@ -138,9 +138,9 @@ export declare const PlusStepsForm: {
|
|
|
138
138
|
default: undefined;
|
|
139
139
|
};
|
|
140
140
|
}>> & {
|
|
141
|
-
"onUpdate:modelValue"?: ((active: number) => any) | undefined;
|
|
142
141
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
143
142
|
onSubmit?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
|
|
143
|
+
"onUpdate:modelValue"?: ((active: number) => any) | undefined;
|
|
144
144
|
onPre?: ((modelValue: number) => any) | undefined;
|
|
145
145
|
onNext?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
|
|
146
146
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -150,8 +150,8 @@ export declare const PlusStepsForm: {
|
|
|
150
150
|
"update:modelValue": (active: number) => void;
|
|
151
151
|
change: (values: FieldValues, column: PlusColumn) => void;
|
|
152
152
|
}, string, {
|
|
153
|
-
modelValue: number;
|
|
154
153
|
data: PlusStepFromRow[];
|
|
154
|
+
modelValue: number;
|
|
155
155
|
nextText: string;
|
|
156
156
|
submitText: string;
|
|
157
157
|
preText: string;
|
|
@@ -66,14 +66,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
66
66
|
nextText: undefined;
|
|
67
67
|
preText: undefined;
|
|
68
68
|
}>>> & {
|
|
69
|
-
"onUpdate:modelValue"?: ((active: number) => any) | undefined;
|
|
70
69
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
71
70
|
onSubmit?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
|
|
71
|
+
"onUpdate:modelValue"?: ((active: number) => any) | undefined;
|
|
72
72
|
onPre?: ((modelValue: number) => any) | undefined;
|
|
73
73
|
onNext?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
|
|
74
74
|
}, {
|
|
75
|
-
modelValue: number;
|
|
76
75
|
data: PlusStepFromRow[];
|
|
76
|
+
modelValue: number;
|
|
77
77
|
nextText: string;
|
|
78
78
|
submitText: string;
|
|
79
79
|
preText: string;
|
|
@@ -161,6 +161,8 @@ export declare const PlusTable: {
|
|
|
161
161
|
}, {
|
|
162
162
|
formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
|
|
163
163
|
tableInstance: ShallowRef< TableInstance | null>;
|
|
164
|
+
startRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
|
|
165
|
+
stopRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
|
|
164
166
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
165
167
|
paginationChange: (pageInfo: PageInfo) => void;
|
|
166
168
|
clickAction: (data: ButtonsCallBackParams) => void;
|
|
@@ -528,6 +530,8 @@ export declare const PlusTable: {
|
|
|
528
530
|
}, {
|
|
529
531
|
formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
|
|
530
532
|
tableInstance: ShallowRef< TableInstance | null>;
|
|
533
|
+
startRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
|
|
534
|
+
stopRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
|
|
531
535
|
}, {}, {}, {}, {
|
|
532
536
|
data: RecordType[];
|
|
533
537
|
columns: PlusColumn[];
|
|
@@ -731,6 +735,8 @@ export declare const PlusTable: {
|
|
|
731
735
|
}, {
|
|
732
736
|
formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
|
|
733
737
|
tableInstance: ShallowRef< TableInstance | null>;
|
|
738
|
+
startRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
|
|
739
|
+
stopRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
|
|
734
740
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
735
741
|
paginationChange: (pageInfo: PageInfo) => void;
|
|
736
742
|
clickAction: (data: ButtonsCallBackParams) => void;
|
|
@@ -42,6 +42,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
42
42
|
}>, {
|
|
43
43
|
formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
|
|
44
44
|
tableInstance: ShallowRef<TableInstance | null>;
|
|
45
|
+
startRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
|
|
46
|
+
stopRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
|
|
45
47
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
46
48
|
paginationChange: (pageInfo: PageInfo) => void;
|
|
47
49
|
clickAction: (data: ButtonsCallBackParams) => void;
|
|
@@ -237,9 +237,38 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
const { subPageInfo, size } = vue.toRefs(state);
|
|
240
|
+
const getRowFormRefs = (rowIndex, prop) => {
|
|
241
|
+
const cells = (formRefs.value[rowIndex] || []).filter(Boolean);
|
|
242
|
+
if (prop) {
|
|
243
|
+
return cells.filter((item) => item.prop === prop);
|
|
244
|
+
}
|
|
245
|
+
return cells;
|
|
246
|
+
};
|
|
247
|
+
const waitForRowFormRefs = async (rowIndex, prop, retries = 8) => {
|
|
248
|
+
for (let i = 0; i < retries; i++) {
|
|
249
|
+
await vue.nextTick();
|
|
250
|
+
const cells = getRowFormRefs(rowIndex, prop);
|
|
251
|
+
if (cells.length) {
|
|
252
|
+
return cells;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return [];
|
|
256
|
+
};
|
|
257
|
+
const startRowEdit = async (rowIndex, prop) => {
|
|
258
|
+
const cells = await waitForRowFormRefs(rowIndex, prop);
|
|
259
|
+
cells.forEach((item) => item.startCellEdit());
|
|
260
|
+
return cells.length > 0;
|
|
261
|
+
};
|
|
262
|
+
const stopRowEdit = async (rowIndex, prop) => {
|
|
263
|
+
const cells = await waitForRowFormRefs(rowIndex, prop);
|
|
264
|
+
cells.forEach((item) => item.stopCellEdit());
|
|
265
|
+
return cells.length > 0;
|
|
266
|
+
};
|
|
240
267
|
__expose({
|
|
241
268
|
formRefs,
|
|
242
|
-
tableInstance
|
|
269
|
+
tableInstance,
|
|
270
|
+
startRowEdit,
|
|
271
|
+
stopRowEdit
|
|
243
272
|
});
|
|
244
273
|
return (_ctx, _cache) => {
|
|
245
274
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -40,9 +40,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
40
40
|
fixed: string;
|
|
41
41
|
label: string | ComputedRef<string>;
|
|
42
42
|
width: string | number;
|
|
43
|
+
buttons: ActionBarButtonsRow[];
|
|
43
44
|
showNumber: number | ((row: RecordType, index: number) => number);
|
|
44
45
|
showLimitIncludeMore: boolean;
|
|
45
|
-
buttons: ActionBarButtonsRow[];
|
|
46
46
|
actionBarTableColumnProps: Partial< TableColumnCtx<RecordType>>;
|
|
47
47
|
confirmType: "messageBox" | "popconfirm";
|
|
48
48
|
moreType: "text" | "icon";
|