@vunk/form 0.0.1-alpha.31 → 0.0.1-alpha.33
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/components/switch/index.js +0 -2
- package/components/switch/src/ctx.d.ts +0 -2
- package/components/switch/src/ctx.js +0 -2
- package/components/switch/src/index.vue.d.ts +1 -5
- package/components/upload/index.css +9 -0
- package/components/upload/index.js +8 -2
- package/index.css +9 -0
- package/package.json +1 -1
|
@@ -25,11 +25,9 @@ var __spreadValues = (a, b) => {
|
|
|
25
25
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
26
26
|
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), switchProps), {
|
|
27
27
|
modelValue: {
|
|
28
|
-
type: Boolean,
|
|
29
28
|
default: void 0
|
|
30
29
|
},
|
|
31
30
|
defaultModelValue: {
|
|
32
|
-
type: Boolean,
|
|
33
31
|
default: false
|
|
34
32
|
}
|
|
35
33
|
});
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export declare const props: {
|
|
2
2
|
modelValue: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
3
|
default: undefined;
|
|
5
4
|
};
|
|
6
5
|
defaultModelValue: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
6
|
default: boolean;
|
|
9
7
|
};
|
|
10
8
|
value: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
@@ -22,11 +22,9 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
23
|
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), switchProps), {
|
|
24
24
|
modelValue: {
|
|
25
|
-
type: Boolean,
|
|
26
25
|
default: void 0
|
|
27
26
|
},
|
|
28
27
|
defaultModelValue: {
|
|
29
|
-
type: Boolean,
|
|
30
28
|
default: false
|
|
31
29
|
}
|
|
32
30
|
});
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
modelValue: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
3
|
default: undefined;
|
|
5
4
|
};
|
|
6
5
|
defaultModelValue: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
6
|
default: boolean;
|
|
9
7
|
};
|
|
10
8
|
value: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
@@ -148,11 +146,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
146
|
input: (val: string | number | boolean) => boolean;
|
|
149
147
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
150
148
|
modelValue: {
|
|
151
|
-
type: BooleanConstructor;
|
|
152
149
|
default: undefined;
|
|
153
150
|
};
|
|
154
151
|
defaultModelValue: {
|
|
155
|
-
type: BooleanConstructor;
|
|
156
152
|
default: boolean;
|
|
157
153
|
};
|
|
158
154
|
value: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, StringConstructor, NumberConstructor], unknown, unknown, false, boolean>;
|
|
@@ -265,7 +261,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
265
261
|
width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
266
262
|
borderColor: string;
|
|
267
263
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
268
|
-
modelValue:
|
|
264
|
+
modelValue: undefined;
|
|
269
265
|
inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
270
266
|
activeText: string;
|
|
271
267
|
inactiveText: string;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
.vkf-upload-empty-tip{
|
|
3
|
+
display: none;
|
|
4
|
+
}
|
|
5
|
+
.vkf-upload-empty-tip.is-readonly{
|
|
6
|
+
display: block;
|
|
7
|
+
}
|
|
2
8
|
|
|
3
9
|
.vkf-upload.is-readonly .el-upload,
|
|
4
10
|
.vkf-upload.is-readonly .el-upload{
|
|
5
11
|
display: none;
|
|
6
12
|
}
|
|
13
|
+
.vkf-upload.is-readonly.is-empty {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
7
16
|
.vkf-upload .el-upload-list{
|
|
8
17
|
min-width: 100px;
|
|
9
18
|
}
|
|
@@ -441,7 +441,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
441
441
|
return [
|
|
442
442
|
createVNode(_component_ElUpload, mergeProps({
|
|
443
443
|
class: ["vkf-upload", {
|
|
444
|
-
"is-readonly": _ctx.readonly
|
|
444
|
+
"is-readonly": _ctx.readonly,
|
|
445
|
+
"is-empty": _ctx.fileList.length === 0
|
|
445
446
|
}]
|
|
446
447
|
}, _ctx.coreBindProps, {
|
|
447
448
|
fileList: (_a = _ctx.fileList) != null ? _a : [],
|
|
@@ -475,7 +476,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
475
476
|
createElementVNode("div", _hoisted_2, toDisplayString(_ctx.tip), 1)
|
|
476
477
|
])
|
|
477
478
|
} : void 0
|
|
478
|
-
]), 1040, ["class", "fileList", "disabled"])
|
|
479
|
+
]), 1040, ["class", "fileList", "disabled"]),
|
|
480
|
+
createElementVNode("span", {
|
|
481
|
+
class: normalizeClass(["vkf-upload-empty-tip", {
|
|
482
|
+
"is-readonly": _ctx.readonly
|
|
483
|
+
}])
|
|
484
|
+
}, "\u6682\u65E0", 2)
|
|
479
485
|
];
|
|
480
486
|
}),
|
|
481
487
|
_: 3
|
package/index.css
CHANGED
|
@@ -123,11 +123,20 @@
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
|
|
126
|
+
.vkf-upload-empty-tip{
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
.vkf-upload-empty-tip.is-readonly{
|
|
130
|
+
display: block;
|
|
131
|
+
}
|
|
126
132
|
|
|
127
133
|
.vkf-upload.is-readonly .el-upload,
|
|
128
134
|
.vkf-upload.is-readonly .el-upload{
|
|
129
135
|
display: none;
|
|
130
136
|
}
|
|
137
|
+
.vkf-upload.is-readonly.is-empty {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
131
140
|
.vkf-upload .el-upload-list{
|
|
132
141
|
min-width: 100px;
|
|
133
142
|
}
|