yc-pro-components 0.0.75 → 0.0.76
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 +61 -61
- package/es/components/check-card/src/index.vue.d.ts +4 -4
- package/es/components/check-card-group/index.d.ts +43 -43
- package/es/components/check-card-group/src/index.vue.d.ts +3 -3
- package/es/components/date-picker/index.d.ts +30 -30
- package/es/components/date-picker/src/index.vue.d.ts +22 -22
- package/es/components/dialog/index.d.ts +45 -45
- package/es/components/dialog/src/index.vue.d.ts +3 -3
- package/es/components/dialog-form/index.d.ts +31 -31
- package/es/components/dialog-form/src/index.vue.d.ts +9 -9
- package/es/components/display-item/index.d.ts +41 -41
- package/es/components/display-item/src/index.vue.d.ts +22 -22
- package/es/components/drawer-form/index.d.ts +68 -68
- package/es/components/drawer-form/src/index.vue.d.ts +16 -16
- package/es/components/form/index.d.ts +71 -71
- package/es/components/form/src/form-content.vue.d.ts +21 -21
- package/es/components/form/src/index.vue.d.ts +19 -19
- package/es/components/form-item/index.d.ts +69 -69
- package/es/components/form-item/src/index.vue.d.ts +21 -21
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +15 -15
- package/es/components/input-tag/src/index.vue.d.ts +3 -3
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +533 -533
- package/es/components/page/src/index.vue.d.ts +181 -181
- package/es/components/pagination/index.d.ts +42 -42
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +35 -35
- package/es/components/radio/src/index.vue.d.ts +27 -27
- package/es/components/render/index.d.ts +3 -3
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +243 -243
- package/es/components/search/src/index.vue.d.ts +73 -73
- package/es/components/sidebar/index.d.ts +15 -15
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- 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/src/table-column.vue.d.ts +37 -37
- package/es/components/table/src/table-title-bar.vue.mjs +1 -1
- package/es/components/table/src/table-title-bar.vue2.mjs +79 -40
- package/es/components/table/src/type.d.ts +17 -0
- package/es/components/utils/index.d.ts +2 -2
- package/es/components/yc-dialog/index.d.ts +24 -24
- 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/src/index.vue.mjs +1 -1
- package/es/components/yc-drawer/src/index.vue2.mjs +2 -3
- package/es/components/yc-form-container-header/index.d.ts +12 -12
- package/es/components/yc-more-actions/index.d.ts +46 -46
- package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/es/components/yc-plus-page/src/index.vue.d.ts +361 -361
- package/es/components/yc-segmented/index.d.ts +2 -2
- package/es/components/yc-segmented/src/index.d.ts +2 -2
- package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/es/components/yc-status-dialog/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 +244 -244
- package/es/index.css +10 -9
- 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 +84 -46
- package/index.min.css +2 -1
- package/index.min.js +11 -11
- package/index.min.mjs +11 -11
- package/index.mjs +85 -47
- package/lib/components/check-card/index.d.ts +61 -61
- package/lib/components/check-card/src/index.vue.d.ts +4 -4
- package/lib/components/check-card-group/index.d.ts +43 -43
- package/lib/components/check-card-group/src/index.vue.d.ts +3 -3
- package/lib/components/date-picker/index.d.ts +30 -30
- package/lib/components/date-picker/src/index.vue.d.ts +22 -22
- package/lib/components/dialog/index.d.ts +45 -45
- package/lib/components/dialog/src/index.vue.d.ts +3 -3
- package/lib/components/dialog-form/index.d.ts +31 -31
- package/lib/components/dialog-form/src/index.vue.d.ts +9 -9
- package/lib/components/display-item/index.d.ts +41 -41
- package/lib/components/display-item/src/index.vue.d.ts +22 -22
- package/lib/components/drawer-form/index.d.ts +68 -68
- package/lib/components/drawer-form/src/index.vue.d.ts +16 -16
- package/lib/components/form/index.d.ts +71 -71
- package/lib/components/form/src/form-content.vue.d.ts +21 -21
- package/lib/components/form/src/index.vue.d.ts +19 -19
- package/lib/components/form-item/index.d.ts +69 -69
- package/lib/components/form-item/src/index.vue.d.ts +21 -21
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +15 -15
- package/lib/components/input-tag/src/index.vue.d.ts +3 -3
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +533 -533
- package/lib/components/page/src/index.vue.d.ts +181 -181
- package/lib/components/pagination/index.d.ts +42 -42
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +35 -35
- package/lib/components/radio/src/index.vue.d.ts +27 -27
- package/lib/components/render/index.d.ts +3 -3
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +243 -243
- package/lib/components/search/src/index.vue.d.ts +73 -73
- package/lib/components/sidebar/index.d.ts +15 -15
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- 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/src/table-column.vue.d.ts +37 -37
- package/lib/components/table/src/table-title-bar.vue.js +1 -1
- package/lib/components/table/src/table-title-bar.vue2.js +78 -39
- package/lib/components/table/src/type.d.ts +17 -0
- package/lib/components/utils/index.d.ts +2 -2
- package/lib/components/yc-dialog/index.d.ts +24 -24
- 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/src/index.vue.js +1 -1
- package/lib/components/yc-drawer/src/index.vue2.js +2 -3
- package/lib/components/yc-form-container-header/index.d.ts +12 -12
- package/lib/components/yc-more-actions/index.d.ts +46 -46
- package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/src/index.vue.d.ts +361 -361
- package/lib/components/yc-segmented/index.d.ts +2 -2
- package/lib/components/yc-segmented/src/index.d.ts +2 -2
- package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/lib/components/yc-status-dialog/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 +244 -244
- package/lib/index.css +13 -12
- 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
|
@@ -7,10 +7,6 @@ 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[];
|
|
@@ -19,6 +15,10 @@ export declare const PlusStepsForm: {
|
|
|
19
15
|
type: PropType<string>;
|
|
20
16
|
default: undefined;
|
|
21
17
|
};
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: PropType<number>;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
22
|
submitText: {
|
|
23
23
|
type: PropType<string>;
|
|
24
24
|
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,10 +40,6 @@ 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[];
|
|
@@ -52,6 +48,10 @@ export declare const PlusStepsForm: {
|
|
|
52
48
|
type: PropType<string>;
|
|
53
49
|
default: undefined;
|
|
54
50
|
};
|
|
51
|
+
modelValue: {
|
|
52
|
+
type: PropType<number>;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
55
|
submitText: {
|
|
56
56
|
type: PropType<string>;
|
|
57
57
|
default: undefined;
|
|
@@ -61,15 +61,15 @@ 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[];
|
|
72
71
|
nextText: string;
|
|
72
|
+
modelValue: number;
|
|
73
73
|
submitText: string;
|
|
74
74
|
preText: string;
|
|
75
75
|
}, true, {}, {}, {
|
|
@@ -80,10 +80,6 @@ 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[];
|
|
@@ -92,6 +88,10 @@ export declare const PlusStepsForm: {
|
|
|
92
88
|
type: PropType<string>;
|
|
93
89
|
default: undefined;
|
|
94
90
|
};
|
|
91
|
+
modelValue: {
|
|
92
|
+
type: PropType<number>;
|
|
93
|
+
default: number;
|
|
94
|
+
};
|
|
95
95
|
submitText: {
|
|
96
96
|
type: PropType<string>;
|
|
97
97
|
default: undefined;
|
|
@@ -101,15 +101,15 @@ 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[];
|
|
112
111
|
nextText: string;
|
|
112
|
+
modelValue: number;
|
|
113
113
|
submitText: string;
|
|
114
114
|
preText: string;
|
|
115
115
|
}>;
|
|
@@ -117,10 +117,6 @@ 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[];
|
|
@@ -129,6 +125,10 @@ export declare const PlusStepsForm: {
|
|
|
129
125
|
type: PropType<string>;
|
|
130
126
|
default: undefined;
|
|
131
127
|
};
|
|
128
|
+
modelValue: {
|
|
129
|
+
type: PropType<number>;
|
|
130
|
+
default: number;
|
|
131
|
+
};
|
|
132
132
|
submitText: {
|
|
133
133
|
type: PropType<string>;
|
|
134
134
|
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,9 +150,9 @@ 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[];
|
|
155
154
|
nextText: string;
|
|
155
|
+
modelValue: number;
|
|
156
156
|
submitText: string;
|
|
157
157
|
preText: string;
|
|
158
158
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
@@ -66,15 +66,15 @@ 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[];
|
|
77
76
|
nextText: string;
|
|
77
|
+
modelValue: number;
|
|
78
78
|
submitText: string;
|
|
79
79
|
preText: string;
|
|
80
80
|
}, {}>, Partial<Record<string, (_: {
|
|
@@ -26,15 +26,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
26
26
|
$data: {};
|
|
27
27
|
$props: Partial<{
|
|
28
28
|
index: number;
|
|
29
|
-
formProps: PlusFormProps;
|
|
30
29
|
rest: RecordType;
|
|
30
|
+
formProps: PlusFormProps;
|
|
31
31
|
column: PlusColumn;
|
|
32
32
|
row: RecordType;
|
|
33
33
|
editable: boolean | "click" | "dblclick";
|
|
34
34
|
}> & Omit<{
|
|
35
35
|
readonly index: number;
|
|
36
|
-
readonly formProps: PlusFormProps;
|
|
37
36
|
readonly rest: RecordType;
|
|
37
|
+
readonly formProps: PlusFormProps;
|
|
38
38
|
readonly column: PlusColumn;
|
|
39
39
|
readonly row: RecordType;
|
|
40
40
|
readonly editable: boolean | "click" | "dblclick";
|
|
@@ -48,14 +48,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
48
48
|
type: PropType<number>;
|
|
49
49
|
default: number;
|
|
50
50
|
};
|
|
51
|
-
formProps: {
|
|
52
|
-
type: PropType<PlusFormProps>;
|
|
53
|
-
default: () => {};
|
|
54
|
-
};
|
|
55
51
|
rest: {
|
|
56
52
|
type: PropType<RecordType>;
|
|
57
53
|
default: () => {};
|
|
58
54
|
};
|
|
55
|
+
formProps: {
|
|
56
|
+
type: PropType<PlusFormProps>;
|
|
57
|
+
default: () => {};
|
|
58
|
+
};
|
|
59
59
|
column: {
|
|
60
60
|
type: PropType<PlusColumn>;
|
|
61
61
|
required: true;
|
|
@@ -79,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
79
79
|
prop: string;
|
|
80
80
|
row: RecordType;
|
|
81
81
|
}) => any) | undefined;
|
|
82
|
-
}, "index" | "
|
|
82
|
+
}, "index" | "rest" | "formProps" | "column" | "row" | "editable">;
|
|
83
83
|
$attrs: {
|
|
84
84
|
[x: string]: unknown;
|
|
85
85
|
};
|
|
@@ -102,14 +102,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
102
102
|
type: PropType<number>;
|
|
103
103
|
default: number;
|
|
104
104
|
};
|
|
105
|
-
formProps: {
|
|
106
|
-
type: PropType<PlusFormProps>;
|
|
107
|
-
default: () => {};
|
|
108
|
-
};
|
|
109
105
|
rest: {
|
|
110
106
|
type: PropType<RecordType>;
|
|
111
107
|
default: () => {};
|
|
112
108
|
};
|
|
109
|
+
formProps: {
|
|
110
|
+
type: PropType<PlusFormProps>;
|
|
111
|
+
default: () => {};
|
|
112
|
+
};
|
|
113
113
|
column: {
|
|
114
114
|
type: PropType<PlusColumn>;
|
|
115
115
|
required: true;
|
|
@@ -152,8 +152,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
152
152
|
}) => void;
|
|
153
153
|
}, string, {
|
|
154
154
|
index: number;
|
|
155
|
-
formProps: PlusFormProps;
|
|
156
155
|
rest: RecordType;
|
|
156
|
+
formProps: PlusFormProps;
|
|
157
157
|
column: PlusColumn;
|
|
158
158
|
row: RecordType;
|
|
159
159
|
editable: boolean | "click" | "dblclick";
|
|
@@ -182,14 +182,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
182
182
|
type: PropType<number>;
|
|
183
183
|
default: number;
|
|
184
184
|
};
|
|
185
|
-
formProps: {
|
|
186
|
-
type: PropType<PlusFormProps>;
|
|
187
|
-
default: () => {};
|
|
188
|
-
};
|
|
189
185
|
rest: {
|
|
190
186
|
type: PropType<RecordType>;
|
|
191
187
|
default: () => {};
|
|
192
188
|
};
|
|
189
|
+
formProps: {
|
|
190
|
+
type: PropType<PlusFormProps>;
|
|
191
|
+
default: () => {};
|
|
192
|
+
};
|
|
193
193
|
column: {
|
|
194
194
|
type: PropType<PlusColumn>;
|
|
195
195
|
required: true;
|
|
@@ -226,14 +226,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
226
226
|
};
|
|
227
227
|
}> & {} & ComponentCustomProperties & {} & {
|
|
228
228
|
$slots: Partial<Record<string, (_: {
|
|
229
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
229
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
230
230
|
readonly label: string | ComputedRef<string>;
|
|
231
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
231
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
232
232
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
233
|
-
readonly tooltip: string |
|
|
233
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
234
234
|
style?: CSSProperties | undefined;
|
|
235
235
|
class?: any;
|
|
236
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
236
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
237
237
|
style?: CSSProperties | undefined;
|
|
238
238
|
class?: any;
|
|
239
239
|
} & RecordType>>;
|
|
@@ -300,12 +300,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
300
300
|
fieldInstance?: any;
|
|
301
301
|
valueIsReady?: Ref<boolean> | undefined;
|
|
302
302
|
prop: string;
|
|
303
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
303
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
304
304
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
305
|
-
tooltip: string |
|
|
305
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
306
306
|
style?: CSSProperties | undefined;
|
|
307
307
|
class?: any;
|
|
308
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
308
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
309
309
|
style?: CSSProperties | undefined;
|
|
310
310
|
class?: any;
|
|
311
311
|
} & RecordType>>;
|
|
@@ -334,14 +334,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
334
334
|
clearable: boolean;
|
|
335
335
|
index: number;
|
|
336
336
|
}) => any>> & Partial<Record<string, (_: {
|
|
337
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
337
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
338
338
|
readonly label: string | ComputedRef<string>;
|
|
339
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
339
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
340
340
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
341
|
-
readonly tooltip: string |
|
|
341
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
342
342
|
style?: CSSProperties | undefined;
|
|
343
343
|
class?: any;
|
|
344
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
344
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
345
345
|
style?: CSSProperties | undefined;
|
|
346
346
|
class?: any;
|
|
347
347
|
} & RecordType>>;
|
|
@@ -408,12 +408,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
408
408
|
fieldInstance?: any;
|
|
409
409
|
valueIsReady?: Ref<boolean> | undefined;
|
|
410
410
|
prop: string;
|
|
411
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
411
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
412
412
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
413
|
-
tooltip: string |
|
|
413
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
414
414
|
style?: CSSProperties | undefined;
|
|
415
415
|
class?: any;
|
|
416
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
416
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
417
417
|
style?: CSSProperties | undefined;
|
|
418
418
|
class?: any;
|
|
419
419
|
} & RecordType>>;
|
|
@@ -442,14 +442,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
442
442
|
clearable: boolean;
|
|
443
443
|
index: number;
|
|
444
444
|
}) => any>> & Partial<Record<string, (_: {
|
|
445
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "
|
|
445
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
446
446
|
readonly label: string | ComputedRef<string>;
|
|
447
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
447
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
448
448
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
449
|
-
readonly tooltip: string |
|
|
449
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
450
450
|
style?: CSSProperties | undefined;
|
|
451
451
|
class?: any;
|
|
452
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
452
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
453
453
|
style?: CSSProperties | undefined;
|
|
454
454
|
class?: any;
|
|
455
455
|
} & RecordType>>;
|
|
@@ -516,12 +516,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
516
516
|
fieldInstance?: any;
|
|
517
517
|
valueIsReady?: Ref<boolean> | undefined;
|
|
518
518
|
prop: string;
|
|
519
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
519
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
520
520
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
521
|
-
tooltip: string |
|
|
521
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
522
522
|
style?: CSSProperties | undefined;
|
|
523
523
|
class?: any;
|
|
524
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
524
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
525
525
|
style?: CSSProperties | undefined;
|
|
526
526
|
class?: any;
|
|
527
527
|
} & RecordType>>;
|
|
@@ -5,6 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tableTitleBar_vue_vue_type_script_setup_true_lang = require('./table-title-bar.vue2.js');
|
|
6
6
|
var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
|
|
7
7
|
|
|
8
|
-
var PlusTableTitleBar = /* @__PURE__ */ _pluginVue_exportHelper.default(tableTitleBar_vue_vue_type_script_setup_true_lang.default, [["__file", "table-title-bar.vue"]]);
|
|
8
|
+
var PlusTableTitleBar = /* @__PURE__ */ _pluginVue_exportHelper.default(tableTitleBar_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-d1506155"], ["__file", "table-title-bar.vue"]]);
|
|
9
9
|
|
|
10
10
|
exports.default = PlusTableTitleBar;
|
|
@@ -11,11 +11,12 @@ var Sortable = require('sortablejs');
|
|
|
11
11
|
var elementPlus = require('element-plus');
|
|
12
12
|
var is = require('../../utils/is.js');
|
|
13
13
|
|
|
14
|
+
const _withScopeId = (n) => (vue.pushScopeId("data-v-d1506155"), n = n(), vue.popScopeId(), n);
|
|
14
15
|
const _hoisted_1 = { class: "plus-table-title-bar" };
|
|
15
16
|
const _hoisted_2 = { class: "plus-table-title-bar__title" };
|
|
16
17
|
const _hoisted_3 = { class: "plus-table-title-bar__toolbar" };
|
|
17
18
|
const _hoisted_4 = { class: "plus-table-title-bar__toolbar__density" };
|
|
18
|
-
const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode(
|
|
19
|
+
const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode(
|
|
19
20
|
"svg",
|
|
20
21
|
{
|
|
21
22
|
viewBox: "0 0 1024 1024",
|
|
@@ -29,14 +30,15 @@ const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode(
|
|
|
29
30
|
],
|
|
30
31
|
-1
|
|
31
32
|
/* HOISTED */
|
|
32
|
-
);
|
|
33
|
+
));
|
|
33
34
|
const _hoisted_6 = { class: "plus-table-checkbox-checkAll" };
|
|
34
|
-
const _hoisted_7 = {
|
|
35
|
+
const _hoisted_7 = { class: "plus-table-checkbox-actions" };
|
|
36
|
+
const _hoisted_8 = {
|
|
35
37
|
key: 0,
|
|
36
38
|
class: "plus-table-checkbox-handle"
|
|
37
39
|
};
|
|
38
|
-
const _hoisted_8 = { key: 1 };
|
|
39
40
|
const _hoisted_9 = { key: 1 };
|
|
41
|
+
const _hoisted_10 = { key: 1 };
|
|
40
42
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
41
43
|
...{
|
|
42
44
|
name: "PlusTableToolbar"
|
|
@@ -76,6 +78,12 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
76
78
|
var _a;
|
|
77
79
|
return ((_a = columnSetting.value) == null ? void 0 : _a.overflowLabelLength) || 6;
|
|
78
80
|
});
|
|
81
|
+
const confirmTextValue = vue.computed(
|
|
82
|
+
() => {
|
|
83
|
+
var _a;
|
|
84
|
+
return ((_a = columnSetting.value) == null ? void 0 : _a.confirmText) || String(t("plus.table.confirmText"));
|
|
85
|
+
}
|
|
86
|
+
);
|
|
79
87
|
const sortable = vue.ref(null);
|
|
80
88
|
const buttonNameDensity = [
|
|
81
89
|
{
|
|
@@ -97,6 +105,20 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
97
105
|
}
|
|
98
106
|
return props.columns.filter((item) => vue.unref(item.headerIsChecked) !== false).map((item) => index$1.getTableKey(item));
|
|
99
107
|
};
|
|
108
|
+
const buildFilterColumns = () => {
|
|
109
|
+
return props.columns.map((item) => {
|
|
110
|
+
if (state.checkList.includes(index$1.getTableKey(item))) {
|
|
111
|
+
return { ...item, headerIsChecked: true };
|
|
112
|
+
}
|
|
113
|
+
return { ...item, headerIsChecked: false };
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
const buildConfirmPayload = () => {
|
|
117
|
+
const columns = buildFilterColumns();
|
|
118
|
+
const order = columns.map((item) => String(item.prop || "")).filter(Boolean);
|
|
119
|
+
const checked = columns.filter((item) => item.headerIsChecked !== false).map((item) => String(item.prop || "")).filter(Boolean);
|
|
120
|
+
return { columns, order, checked };
|
|
121
|
+
};
|
|
100
122
|
const state = vue.reactive({
|
|
101
123
|
checkAll: true,
|
|
102
124
|
isIndeterminate: false,
|
|
@@ -125,13 +147,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
125
147
|
handleFilterTableConfirm("allCheck");
|
|
126
148
|
};
|
|
127
149
|
const handleFilterTableConfirm = (type) => {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
});
|
|
134
|
-
emit("filterTableHeader", filterColumns, type);
|
|
150
|
+
emit("filterTableHeader", buildFilterColumns(), type);
|
|
151
|
+
};
|
|
152
|
+
const handleConfirmClick = async () => {
|
|
153
|
+
var _a, _b;
|
|
154
|
+
await ((_b = (_a = columnSetting.value) == null ? void 0 : _a.onConfirm) == null ? void 0 : _b.call(_a, buildConfirmPayload()));
|
|
135
155
|
};
|
|
136
156
|
const handleCheckGroupChange = (value) => {
|
|
137
157
|
setCheckAllState(value);
|
|
@@ -196,10 +216,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
196
216
|
1
|
|
197
217
|
/* TEXT */
|
|
198
218
|
)
|
|
199
|
-
])
|
|
219
|
+
], true)
|
|
200
220
|
]),
|
|
201
221
|
vue.createElementVNode("div", _hoisted_3, [
|
|
202
|
-
vue.renderSlot(_ctx.$slots, "toolbar"),
|
|
222
|
+
vue.renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
|
|
203
223
|
((_a = titleBarConfig.value) == null ? void 0 : _a.refresh) === true ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
204
224
|
key: 0,
|
|
205
225
|
class: "plus-table-title-bar__toolbar__refresh",
|
|
@@ -223,7 +243,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
223
243
|
_: 1
|
|
224
244
|
/* STABLE */
|
|
225
245
|
}, 8, ["size", "color"])
|
|
226
|
-
])
|
|
246
|
+
], true)
|
|
227
247
|
]),
|
|
228
248
|
_: 3
|
|
229
249
|
/* FORWARDED */
|
|
@@ -256,7 +276,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
256
276
|
_: 1
|
|
257
277
|
/* STABLE */
|
|
258
278
|
}, 8, ["size", "color"])
|
|
259
|
-
])
|
|
279
|
+
], true)
|
|
260
280
|
]),
|
|
261
281
|
_: 3
|
|
262
282
|
/* FORWARDED */
|
|
@@ -321,14 +341,14 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
321
341
|
_: 1
|
|
322
342
|
/* STABLE */
|
|
323
343
|
}, 8, ["size", "color"])
|
|
324
|
-
])
|
|
344
|
+
], true)
|
|
325
345
|
]),
|
|
326
346
|
_: 3
|
|
327
347
|
/* FORWARDED */
|
|
328
348
|
}, 8, ["content"])
|
|
329
349
|
]),
|
|
330
350
|
default: vue.withCtx(() => {
|
|
331
|
-
var _a2, _b2, _c2;
|
|
351
|
+
var _a2, _b2, _c2, _d;
|
|
332
352
|
return [
|
|
333
353
|
vue.createElementVNode("div", _hoisted_6, [
|
|
334
354
|
vue.createVNode(vue.unref(elementPlus.ElCheckbox), {
|
|
@@ -347,24 +367,43 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
347
367
|
_: 1
|
|
348
368
|
/* STABLE */
|
|
349
369
|
}, 8, ["modelValue", "indeterminate"]),
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
370
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
371
|
+
((_a2 = columnSetting.value) == null ? void 0 : _a2.confirm) ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElLink), {
|
|
372
|
+
key: 0,
|
|
373
|
+
type: "primary",
|
|
374
|
+
underline: vue.unref(index$1.versionIsLessThan299) ? false : "never",
|
|
375
|
+
href: "javaScript:;",
|
|
376
|
+
onClick: vue.withModifiers(handleConfirmClick, ["stop", "prevent"])
|
|
377
|
+
}, {
|
|
378
|
+
default: vue.withCtx(() => [
|
|
379
|
+
vue.createTextVNode(
|
|
380
|
+
vue.toDisplayString(confirmTextValue.value),
|
|
381
|
+
1
|
|
382
|
+
/* TEXT */
|
|
383
|
+
)
|
|
384
|
+
]),
|
|
385
|
+
_: 1
|
|
386
|
+
/* STABLE */
|
|
387
|
+
}, 8, ["underline"])) : vue.createCommentVNode("v-if", true),
|
|
388
|
+
((_b2 = columnSetting.value) == null ? void 0 : _b2.reset) !== false ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElLink), vue.mergeProps({
|
|
389
|
+
key: 1,
|
|
390
|
+
type: "primary",
|
|
391
|
+
underline: vue.unref(index$1.versionIsLessThan299) ? false : "never",
|
|
392
|
+
href: "javaScript:;"
|
|
393
|
+
}, vue.unref(is.isPlainObject)((_c2 = columnSetting.value) == null ? void 0 : _c2.reset) ? (_d = columnSetting.value) == null ? void 0 : _d.reset : {}, {
|
|
394
|
+
onClick: vue.withModifiers(resetCheckBoxList, ["stop", "prevent"])
|
|
395
|
+
}), {
|
|
396
|
+
default: vue.withCtx(() => [
|
|
397
|
+
vue.createTextVNode(
|
|
398
|
+
vue.toDisplayString(vue.unref(t)("plus.table.resetText")),
|
|
399
|
+
1
|
|
400
|
+
/* TEXT */
|
|
401
|
+
)
|
|
402
|
+
]),
|
|
403
|
+
_: 1
|
|
404
|
+
/* STABLE */
|
|
405
|
+
}, 16, ["underline"])) : vue.createCommentVNode("v-if", true)
|
|
406
|
+
])
|
|
368
407
|
]),
|
|
369
408
|
vue.createVNode(vue.unref(elementPlus.ElCheckboxGroup), {
|
|
370
409
|
modelValue: state.checkList,
|
|
@@ -389,10 +428,10 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
389
428
|
key: item.prop,
|
|
390
429
|
class: "plus-table-checkbox-item"
|
|
391
430
|
}, [
|
|
392
|
-
((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (vue.openBlock(), vue.createElementBlock("div",
|
|
431
|
+
((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
|
|
393
432
|
vue.renderSlot(_ctx.$slots, "drag-sort-icon", {}, () => [
|
|
394
433
|
vue.createTextVNode("\u2637")
|
|
395
|
-
])
|
|
434
|
+
], true)
|
|
396
435
|
])) : vue.createCommentVNode("v-if", true),
|
|
397
436
|
vue.createCommentVNode(" element-plus \u7248\u672C\u53F7\u5C0F\u4E8E2.6.0 "),
|
|
398
437
|
vue.unref(index$1.versionIsLessThan260) ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElCheckbox), {
|
|
@@ -418,7 +457,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
418
457
|
/* DYNAMIC */
|
|
419
458
|
}, 1032, ["content"])) : (vue.openBlock(), vue.createElementBlock(
|
|
420
459
|
"span",
|
|
421
|
-
|
|
460
|
+
_hoisted_9,
|
|
422
461
|
vue.toDisplayString(item.label ? getLabelValue(item.label) : ""),
|
|
423
462
|
1
|
|
424
463
|
/* TEXT */
|
|
@@ -453,7 +492,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
453
492
|
/* DYNAMIC */
|
|
454
493
|
}, 1032, ["content"])) : (vue.openBlock(), vue.createElementBlock(
|
|
455
494
|
"span",
|
|
456
|
-
|
|
495
|
+
_hoisted_10,
|
|
457
496
|
vue.toDisplayString(item.label ? getLabelValue(item.label) : ""),
|
|
458
497
|
1
|
|
459
498
|
/* TEXT */
|
|
@@ -322,6 +322,14 @@ export interface PlusTableState {
|
|
|
322
322
|
* 列设置类型
|
|
323
323
|
* @version v0.1.20 新增reset,默认:true
|
|
324
324
|
*/
|
|
325
|
+
/**
|
|
326
|
+
* 列设置确认回调 payload
|
|
327
|
+
*/
|
|
328
|
+
export type ColumnSettingConfirmPayload = {
|
|
329
|
+
columns: PlusColumn[];
|
|
330
|
+
order: string[];
|
|
331
|
+
checked: string[];
|
|
332
|
+
};
|
|
325
333
|
export type ColumnSetting = {
|
|
326
334
|
dragSort?: boolean | Partial<SortableOptions>;
|
|
327
335
|
/**
|
|
@@ -342,6 +350,15 @@ export type ColumnSetting = {
|
|
|
342
350
|
* @default 6
|
|
343
351
|
*/
|
|
344
352
|
overflowLabelLength?: number;
|
|
353
|
+
/**
|
|
354
|
+
* 是否显示「确认」按钮;默认 false 不展示
|
|
355
|
+
* 不影响勾选/拖拽/重置的即时生效行为,点击确认仅触发 onConfirm 回调(如发起保存请求)
|
|
356
|
+
*/
|
|
357
|
+
confirm?: boolean;
|
|
358
|
+
/** 确认按钮文案 */
|
|
359
|
+
confirmText?: string;
|
|
360
|
+
/** 点击确认时回调,payload 为当前列设置快照 */
|
|
361
|
+
onConfirm?: (payload: ColumnSettingConfirmPayload) => void | Promise<void>;
|
|
345
362
|
};
|
|
346
363
|
/**
|
|
347
364
|
* 标题栏
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RouteRecordName, RouteLocationNormalized,
|
|
1
|
+
import { RouteRecordName, RouteLocationNormalized, RouteMeta, RouteComponent, RouteRecordRedirectOption, NavigationGuardWithThis } from 'vue-router';
|
|
2
2
|
import { SetupContext, VNode, RendererNode, RendererElement, Component } from 'vue';
|
|
3
3
|
import { FieldValueType, RecordType, PlusColumn, PlusRouteRecordRaw } from 'yc-pro-components/es/types';
|
|
4
4
|
|
|
@@ -120,7 +120,6 @@ export declare const removeChildrenField: (item: PlusRouteRecordRaw) => {
|
|
|
120
120
|
__children: PlusRouteRecordRaw[] | undefined;
|
|
121
121
|
name?: RouteRecordName | undefined;
|
|
122
122
|
props?: (boolean | Record<string, any> | ((to: RouteLocationNormalized) => Record<string, any>)) | Record<string, boolean | Record<string, any> | ((to: RouteLocationNormalized) => Record<string, any>)> | undefined;
|
|
123
|
-
components?: Record<string, RouteComponent | (() => Promise< RouteComponent>)> | null | undefined;
|
|
124
123
|
meta?: ( RouteMeta & {
|
|
125
124
|
title?: string | undefined;
|
|
126
125
|
icon?: VNode<RendererNode, RendererElement, {
|
|
@@ -138,6 +137,7 @@ export declare const removeChildrenField: (item: PlusRouteRecordRaw) => {
|
|
|
138
137
|
end?: boolean | undefined;
|
|
139
138
|
sensitive?: boolean | undefined;
|
|
140
139
|
strict?: boolean | undefined;
|
|
140
|
+
components?: Record<string, RouteComponent | (() => Promise< RouteComponent>)> | null | undefined;
|
|
141
141
|
redirect?: RouteRecordRedirectOption | undefined;
|
|
142
142
|
alias?: string | string[] | undefined;
|
|
143
143
|
beforeEnter?: NavigationGuardWithThis<undefined> | NavigationGuardWithThis<undefined>[] | undefined;
|