@vunk/form 0.0.1-alpha.18 → 0.0.1-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,6 +31,14 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
31
31
|
type: {
|
|
32
32
|
type: String,
|
|
33
33
|
default: "default"
|
|
34
|
+
},
|
|
35
|
+
defaultModelValue: {
|
|
36
|
+
type: Array,
|
|
37
|
+
default: void 0
|
|
38
|
+
},
|
|
39
|
+
modelValue: {
|
|
40
|
+
type: Array,
|
|
41
|
+
default: void 0
|
|
34
42
|
}
|
|
35
43
|
});
|
|
36
44
|
const emits = __spreadValues({}, checkboxGroupEmits);
|
|
@@ -52,6 +60,7 @@ var script = defineComponent({
|
|
|
52
60
|
const options = computed(() => {
|
|
53
61
|
return props2.options.filter((item) => item.value !== void 0 && item.value !== null);
|
|
54
62
|
});
|
|
63
|
+
!props2.modelValue && props2.defaultModelValue && emit("update:modelValue", props2.defaultModelValue);
|
|
55
64
|
return {
|
|
56
65
|
formItemBindProps,
|
|
57
66
|
coreBindProps,
|
|
@@ -9,9 +9,13 @@ export declare const props: {
|
|
|
9
9
|
type: PropType<"default" | "button">;
|
|
10
10
|
default: string;
|
|
11
11
|
};
|
|
12
|
+
defaultModelValue: {
|
|
13
|
+
type: PropType<any[]>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
12
16
|
modelValue: {
|
|
13
17
|
type: PropType<(string | number)[]>;
|
|
14
|
-
default:
|
|
18
|
+
default: undefined;
|
|
15
19
|
};
|
|
16
20
|
disabled: BooleanConstructor;
|
|
17
21
|
min: {
|
|
@@ -28,6 +28,14 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
28
28
|
type: {
|
|
29
29
|
type: String,
|
|
30
30
|
default: "default"
|
|
31
|
+
},
|
|
32
|
+
defaultModelValue: {
|
|
33
|
+
type: Array,
|
|
34
|
+
default: void 0
|
|
35
|
+
},
|
|
36
|
+
modelValue: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default: void 0
|
|
31
39
|
}
|
|
32
40
|
});
|
|
33
41
|
const emits = __spreadValues({}, checkboxGroupEmits);
|
|
@@ -7,9 +7,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: import("vue").PropType<"default" | "button">;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
+
defaultModelValue: {
|
|
11
|
+
type: import("vue").PropType<any[]>;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
10
14
|
modelValue: {
|
|
11
15
|
type: import("vue").PropType<(string | number)[]>;
|
|
12
|
-
default:
|
|
16
|
+
default: undefined;
|
|
13
17
|
};
|
|
14
18
|
disabled: BooleanConstructor;
|
|
15
19
|
min: {
|
|
@@ -106,7 +110,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
106
110
|
label: string | undefined;
|
|
107
111
|
size: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never> | undefined;
|
|
108
112
|
fill: string | undefined;
|
|
109
|
-
modelValue: (string | number)[];
|
|
113
|
+
modelValue: (string | number)[] | undefined;
|
|
110
114
|
disabled: boolean;
|
|
111
115
|
id: string | undefined;
|
|
112
116
|
validateEvent: boolean;
|
|
@@ -136,9 +140,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
136
140
|
type: import("vue").PropType<"default" | "button">;
|
|
137
141
|
default: string;
|
|
138
142
|
};
|
|
143
|
+
defaultModelValue: {
|
|
144
|
+
type: import("vue").PropType<any[]>;
|
|
145
|
+
default: undefined;
|
|
146
|
+
};
|
|
139
147
|
modelValue: {
|
|
140
148
|
type: import("vue").PropType<(string | number)[]>;
|
|
141
|
-
default:
|
|
149
|
+
default: undefined;
|
|
142
150
|
};
|
|
143
151
|
disabled: BooleanConstructor;
|
|
144
152
|
min: {
|
|
@@ -237,5 +245,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
237
245
|
textColor: string;
|
|
238
246
|
tag: string;
|
|
239
247
|
options: import("../../../shared/types/form").CheckboxProps[];
|
|
248
|
+
defaultModelValue: any[];
|
|
240
249
|
}>;
|
|
241
250
|
export default _default;
|
|
@@ -223,6 +223,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
223
223
|
modelValue: boolean;
|
|
224
224
|
disabled: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
225
225
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
226
|
+
defaultModelValue: boolean;
|
|
226
227
|
width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
227
228
|
borderColor: string;
|
|
228
229
|
inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -235,6 +236,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
235
236
|
activeValue: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
236
237
|
inactiveValue: import("element-plus/es/utils").EpPropMergeType<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
|
237
238
|
loading: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
238
|
-
defaultModelValue: boolean;
|
|
239
239
|
}>;
|
|
240
240
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vunk/form",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.19",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.esm.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "gulp -f gulpfile.ts"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@vunk/core": "
|
|
10
|
+
"@vunk/core": "npm:@vunk/core@alpha"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [],
|
|
13
13
|
"author": "",
|