@vunk/form 0.0.1-alpha.40 → 0.0.1-alpha.41
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/button/index.js +15 -10
- package/components/cascader/index.js +14 -9
- package/components/checkbox/index.js +17 -15
- package/components/color-picker/index.js +14 -9
- package/components/date-picker/index.js +15 -10
- package/components/firt-ep/index.js +20 -15
- package/components/form/index.js +14 -9
- package/components/form-item/index.js +15 -10
- package/components/form-item-renderer/index.js +19 -29
- package/components/form-item-renderer-template/index.js +13 -6
- package/components/form-item-renderer-template-default/index.js +14 -9
- package/components/form-item-renderer-template-layout/index.js +16 -11
- package/components/input/index.js +17 -11
- package/components/input-number/index.js +14 -9
- package/components/radio/index.js +17 -15
- package/components/select/index.js +34 -47
- package/components/switch/index.js +29 -27
- package/components/upload/index.js +65 -67
- package/package.json +1 -1
|
@@ -38,7 +38,15 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
38
38
|
});
|
|
39
39
|
const emits = __spreadValues({}, buttonEmits);
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _export_sfc = (sfc, props) => {
|
|
42
|
+
const target = sfc.__vccOpts || sfc;
|
|
43
|
+
for (const [key, val] of props) {
|
|
44
|
+
target[key] = val;
|
|
45
|
+
}
|
|
46
|
+
return target;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const _sfc_main = defineComponent({
|
|
42
50
|
name: "VkfButton",
|
|
43
51
|
components: {
|
|
44
52
|
VkfFormItem,
|
|
@@ -79,8 +87,7 @@ var script = defineComponent({
|
|
|
79
87
|
};
|
|
80
88
|
}
|
|
81
89
|
});
|
|
82
|
-
|
|
83
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
90
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
84
91
|
const _component_ElButton = resolveComponent("ElButton");
|
|
85
92
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
86
93
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formBindProps)), {
|
|
@@ -97,7 +104,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
97
104
|
return {
|
|
98
105
|
name: key,
|
|
99
106
|
fn: withCtx((e) => [
|
|
100
|
-
(openBlock(), createBlock(resolveDynamicComponent(item
|
|
107
|
+
(openBlock(), createBlock(resolveDynamicComponent(item?.(e))))
|
|
101
108
|
])
|
|
102
109
|
};
|
|
103
110
|
})
|
|
@@ -106,16 +113,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
106
113
|
_: 3
|
|
107
114
|
}, 16);
|
|
108
115
|
}
|
|
109
|
-
|
|
110
|
-
script.render = render;
|
|
111
|
-
script.__file = "button/src/index.vue";
|
|
116
|
+
var VkfButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
112
117
|
|
|
113
118
|
var types = /*#__PURE__*/Object.freeze({
|
|
114
119
|
__proto__: null
|
|
115
120
|
});
|
|
116
121
|
|
|
117
|
-
|
|
118
|
-
app.component(
|
|
122
|
+
VkfButton.install = (app) => {
|
|
123
|
+
app.component(VkfButton.name, VkfButton);
|
|
119
124
|
};
|
|
120
125
|
|
|
121
|
-
export {
|
|
126
|
+
export { VkfButton, types as __VkfButton, VkfButton as default };
|
|
@@ -38,7 +38,15 @@ bindPropsFactory(props);
|
|
|
38
38
|
const emits = __spreadValues({}, cascaderEmits);
|
|
39
39
|
onEmitsFactory(emits);
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _export_sfc = (sfc, props) => {
|
|
42
|
+
const target = sfc.__vccOpts || sfc;
|
|
43
|
+
for (const [key, val] of props) {
|
|
44
|
+
target[key] = val;
|
|
45
|
+
}
|
|
46
|
+
return target;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const _sfc_main = defineComponent({
|
|
42
50
|
name: "VkfCascader",
|
|
43
51
|
components: {
|
|
44
52
|
ElCascader,
|
|
@@ -74,8 +82,7 @@ var script = defineComponent({
|
|
|
74
82
|
};
|
|
75
83
|
}
|
|
76
84
|
});
|
|
77
|
-
|
|
78
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
85
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
79
86
|
const _component_ElCascader = resolveComponent("ElCascader");
|
|
80
87
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
81
88
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
@@ -88,16 +95,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
88
95
|
_: 1
|
|
89
96
|
}, 16);
|
|
90
97
|
}
|
|
91
|
-
|
|
92
|
-
script.render = render;
|
|
93
|
-
script.__file = "cascader/src/index.vue";
|
|
98
|
+
var VkfCascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
94
99
|
|
|
95
100
|
var types = /*#__PURE__*/Object.freeze({
|
|
96
101
|
__proto__: null
|
|
97
102
|
});
|
|
98
103
|
|
|
99
|
-
|
|
100
|
-
app.component(
|
|
104
|
+
VkfCascader.install = (app) => {
|
|
105
|
+
app.component(VkfCascader.name, VkfCascader);
|
|
101
106
|
};
|
|
102
107
|
|
|
103
|
-
export {
|
|
108
|
+
export { VkfCascader, types as __VkfCascader, VkfCascader as default };
|
|
@@ -44,7 +44,15 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
44
44
|
});
|
|
45
45
|
const emits = __spreadValues({}, checkboxGroupEmits);
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _export_sfc = (sfc, props) => {
|
|
48
|
+
const target = sfc.__vccOpts || sfc;
|
|
49
|
+
for (const [key, val] of props) {
|
|
50
|
+
target[key] = val;
|
|
51
|
+
}
|
|
52
|
+
return target;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const _sfc_main = defineComponent({
|
|
48
56
|
name: "VkfCheckbox",
|
|
49
57
|
components: {
|
|
50
58
|
VkfFormItem,
|
|
@@ -73,8 +81,7 @@ var script = defineComponent({
|
|
|
73
81
|
};
|
|
74
82
|
}
|
|
75
83
|
});
|
|
76
|
-
|
|
77
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
84
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
78
85
|
const _component_ElCheckboxGroup = resolveComponent("ElCheckboxGroup");
|
|
79
86
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
80
87
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
@@ -94,12 +101,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
94
101
|
}, _ctx.pickObject(item, {
|
|
95
102
|
excludes: ["label", "value"]
|
|
96
103
|
})), {
|
|
97
|
-
default: withCtx(() =>
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
createTextVNode(toDisplayString((_a = item.label) != null ? _a : item.value), 1)
|
|
101
|
-
];
|
|
102
|
-
}),
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
createTextVNode(toDisplayString(item.label ?? item.value), 1)
|
|
106
|
+
]),
|
|
103
107
|
_: 2
|
|
104
108
|
}, 1040, ["label"]);
|
|
105
109
|
}), 128))
|
|
@@ -110,16 +114,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
110
114
|
_: 1
|
|
111
115
|
}, 16);
|
|
112
116
|
}
|
|
113
|
-
|
|
114
|
-
script.render = render;
|
|
115
|
-
script.__file = "checkbox/src/index.vue";
|
|
117
|
+
var VkfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
116
118
|
|
|
117
119
|
var types = /*#__PURE__*/Object.freeze({
|
|
118
120
|
__proto__: null
|
|
119
121
|
});
|
|
120
122
|
|
|
121
|
-
|
|
122
|
-
app.component(
|
|
123
|
+
VkfCheckbox.install = (app) => {
|
|
124
|
+
app.component(VkfCheckbox.name, VkfCheckbox);
|
|
123
125
|
};
|
|
124
126
|
|
|
125
|
-
export {
|
|
127
|
+
export { VkfCheckbox, types as __VkfCheckbox, VkfCheckbox as default };
|
|
@@ -22,7 +22,15 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
const props = __spreadValues(__spreadValues({}, _VkfFormItemCtx.props), colorPickerProps);
|
|
23
23
|
const emits = __spreadValues({}, colorPickerEmits);
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _export_sfc = (sfc, props) => {
|
|
26
|
+
const target = sfc.__vccOpts || sfc;
|
|
27
|
+
for (const [key, val] of props) {
|
|
28
|
+
target[key] = val;
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const _sfc_main = defineComponent({
|
|
26
34
|
name: "VkfColorPicker",
|
|
27
35
|
components: {
|
|
28
36
|
VkfFormItem,
|
|
@@ -41,8 +49,7 @@ var script = defineComponent({
|
|
|
41
49
|
};
|
|
42
50
|
}
|
|
43
51
|
});
|
|
44
|
-
|
|
45
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
52
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
46
53
|
const _component_ElColorPicker = resolveComponent("ElColorPicker");
|
|
47
54
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
48
55
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
@@ -57,16 +64,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
57
64
|
_: 3
|
|
58
65
|
}, 16);
|
|
59
66
|
}
|
|
60
|
-
|
|
61
|
-
script.render = render;
|
|
62
|
-
script.__file = "color-picker/src/index.vue";
|
|
67
|
+
var VkfColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
63
68
|
|
|
64
69
|
var types = /*#__PURE__*/Object.freeze({
|
|
65
70
|
__proto__: null
|
|
66
71
|
});
|
|
67
72
|
|
|
68
|
-
|
|
69
|
-
app.component(
|
|
73
|
+
VkfColorPicker.install = (app) => {
|
|
74
|
+
app.component(VkfColorPicker.name, VkfColorPicker);
|
|
70
75
|
};
|
|
71
76
|
|
|
72
|
-
export {
|
|
77
|
+
export { VkfColorPicker, types as __VkfColorPicker, VkfColorPicker as default };
|
|
@@ -31,7 +31,15 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, datePickerProps),
|
|
|
31
31
|
});
|
|
32
32
|
const emits = __spreadValues({}, datePickerEmits$1);
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _export_sfc = (sfc, props) => {
|
|
35
|
+
const target = sfc.__vccOpts || sfc;
|
|
36
|
+
for (const [key, val] of props) {
|
|
37
|
+
target[key] = val;
|
|
38
|
+
}
|
|
39
|
+
return target;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const _sfc_main = defineComponent({
|
|
35
43
|
name: "VkfDatePicker",
|
|
36
44
|
components: {
|
|
37
45
|
VkfFormItem,
|
|
@@ -55,8 +63,7 @@ var script = defineComponent({
|
|
|
55
63
|
};
|
|
56
64
|
}
|
|
57
65
|
});
|
|
58
|
-
|
|
59
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
60
67
|
const _component_ElDatePicker = resolveComponent("ElDatePicker");
|
|
61
68
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
62
69
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
@@ -66,7 +73,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66
73
|
return {
|
|
67
74
|
name: key,
|
|
68
75
|
fn: withCtx((e) => [
|
|
69
|
-
(openBlock(), createBlock(resolveDynamicComponent(item
|
|
76
|
+
(openBlock(), createBlock(resolveDynamicComponent(item?.(e))))
|
|
70
77
|
])
|
|
71
78
|
};
|
|
72
79
|
})
|
|
@@ -75,9 +82,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75
82
|
_: 1
|
|
76
83
|
}, 16);
|
|
77
84
|
}
|
|
78
|
-
|
|
79
|
-
script.render = render;
|
|
80
|
-
script.__file = "date-picker/src/index.vue";
|
|
85
|
+
var VkfDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
81
86
|
|
|
82
87
|
const datePickerEmits = {
|
|
83
88
|
"update:modelValue": null,
|
|
@@ -94,8 +99,8 @@ var types = /*#__PURE__*/Object.freeze({
|
|
|
94
99
|
datePickerEmits: datePickerEmits
|
|
95
100
|
});
|
|
96
101
|
|
|
97
|
-
|
|
98
|
-
app.component(
|
|
102
|
+
VkfDatePicker.install = (app) => {
|
|
103
|
+
app.component(VkfDatePicker.name, VkfDatePicker);
|
|
99
104
|
};
|
|
100
105
|
|
|
101
|
-
export {
|
|
106
|
+
export { VkfDatePicker, types as __VkfDatePicker, VkfDatePicker as default };
|
|
@@ -11,7 +11,15 @@ const props = {
|
|
|
11
11
|
};
|
|
12
12
|
const emits = {};
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _export_sfc = (sfc, props) => {
|
|
15
|
+
const target = sfc.__vccOpts || sfc;
|
|
16
|
+
for (const [key, val] of props) {
|
|
17
|
+
target[key] = val;
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const _sfc_main = defineComponent({
|
|
15
23
|
name: "VkfFirtEp",
|
|
16
24
|
components: {
|
|
17
25
|
VkfFormItemRendererTemplate,
|
|
@@ -26,19 +34,18 @@ var script = defineComponent({
|
|
|
26
34
|
};
|
|
27
35
|
}
|
|
28
36
|
});
|
|
29
|
-
|
|
30
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
37
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31
38
|
const _component_ElLink = resolveComponent("ElLink");
|
|
32
39
|
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
33
40
|
const _component_ElDivider = resolveComponent("ElDivider");
|
|
34
41
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
35
42
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "ElLink" }, {
|
|
36
|
-
default: withCtx(({ data:
|
|
37
|
-
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_ElLink, normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(
|
|
43
|
+
default: withCtx(({ data: props2, templateIf }) => [
|
|
44
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_ElLink, normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(props2, {
|
|
38
45
|
excludes: ["label"]
|
|
39
46
|
}))), {
|
|
40
47
|
default: withCtx(() => [
|
|
41
|
-
createTextVNode(toDisplayString(
|
|
48
|
+
createTextVNode(toDisplayString(props2.label), 1)
|
|
42
49
|
]),
|
|
43
50
|
_: 2
|
|
44
51
|
}, 1040)) : createCommentVNode("v-if", true)
|
|
@@ -46,12 +53,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46
53
|
_: 1
|
|
47
54
|
}),
|
|
48
55
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "ElDivider" }, {
|
|
49
|
-
default: withCtx(({ data:
|
|
50
|
-
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_ElDivider, normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(
|
|
56
|
+
default: withCtx(({ data: props2, templateIf }) => [
|
|
57
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_ElDivider, normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(props2, {
|
|
51
58
|
excludes: ["label"]
|
|
52
59
|
}))), {
|
|
53
60
|
default: withCtx(() => [
|
|
54
|
-
createElementVNode("span", null, toDisplayString(
|
|
61
|
+
createElementVNode("span", null, toDisplayString(props2.label), 1)
|
|
55
62
|
]),
|
|
56
63
|
_: 2
|
|
57
64
|
}, 1040)) : createCommentVNode("v-if", true)
|
|
@@ -60,16 +67,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
60
67
|
})
|
|
61
68
|
], 64);
|
|
62
69
|
}
|
|
63
|
-
|
|
64
|
-
script.render = render;
|
|
65
|
-
script.__file = "firt-ep/src/index.vue";
|
|
70
|
+
var VkfFirtEp = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
66
71
|
|
|
67
72
|
var types = /*#__PURE__*/Object.freeze({
|
|
68
73
|
__proto__: null
|
|
69
74
|
});
|
|
70
75
|
|
|
71
|
-
|
|
72
|
-
app.component(
|
|
76
|
+
VkfFirtEp.install = (app) => {
|
|
77
|
+
app.component(VkfFirtEp.name, VkfFirtEp);
|
|
73
78
|
};
|
|
74
79
|
|
|
75
|
-
export {
|
|
80
|
+
export { VkfFirtEp, types as __VkfFirtEp, VkfFirtEp as default };
|
package/components/form/index.js
CHANGED
|
@@ -58,7 +58,15 @@ var ctx = /*#__PURE__*/Object.freeze({
|
|
|
58
58
|
createOnEmits: createOnEmits
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _export_sfc = (sfc, props) => {
|
|
62
|
+
const target = sfc.__vccOpts || sfc;
|
|
63
|
+
for (const [key, val] of props) {
|
|
64
|
+
target[key] = val;
|
|
65
|
+
}
|
|
66
|
+
return target;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const _sfc_main = defineComponent({
|
|
62
70
|
name: "VkfForm",
|
|
63
71
|
props,
|
|
64
72
|
emits,
|
|
@@ -86,8 +94,7 @@ var script = defineComponent({
|
|
|
86
94
|
};
|
|
87
95
|
}
|
|
88
96
|
});
|
|
89
|
-
|
|
90
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
97
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
91
98
|
const _component_VkfFormItemRendererTemplateDefault = resolveComponent("VkfFormItemRendererTemplateDefault");
|
|
92
99
|
const _component_VkfFormItemRenderer = resolveComponent("VkfFormItemRenderer");
|
|
93
100
|
const _component_ElForm = resolveComponent("ElForm");
|
|
@@ -115,12 +122,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
115
122
|
_: 3
|
|
116
123
|
}, 16, ["class", "model"]);
|
|
117
124
|
}
|
|
125
|
+
var VkfForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
118
126
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
script.install = (app) => {
|
|
123
|
-
app.component(script.name, script);
|
|
127
|
+
VkfForm.install = (app) => {
|
|
128
|
+
app.component(VkfForm.name, VkfForm);
|
|
124
129
|
};
|
|
125
130
|
|
|
126
|
-
export {
|
|
131
|
+
export { VkfForm, ctx as _VkfFormCtx, VkfForm as default };
|
|
@@ -55,7 +55,15 @@ var ctx = /*#__PURE__*/Object.freeze({
|
|
|
55
55
|
createBindProps: createBindProps
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _export_sfc = (sfc, props) => {
|
|
59
|
+
const target = sfc.__vccOpts || sfc;
|
|
60
|
+
for (const [key, val] of props) {
|
|
61
|
+
target[key] = val;
|
|
62
|
+
}
|
|
63
|
+
return target;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const _sfc_main = defineComponent({
|
|
59
67
|
name: "VkfFormItem",
|
|
60
68
|
components: {
|
|
61
69
|
ElFormItem
|
|
@@ -70,8 +78,7 @@ var script = defineComponent({
|
|
|
70
78
|
};
|
|
71
79
|
}
|
|
72
80
|
});
|
|
73
|
-
|
|
74
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
81
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75
82
|
const _component_ElFormItem = resolveComponent("ElFormItem");
|
|
76
83
|
return openBlock(), createBlock(_component_ElFormItem, mergeProps({
|
|
77
84
|
class: {
|
|
@@ -91,22 +98,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
91
98
|
return {
|
|
92
99
|
name: key,
|
|
93
100
|
fn: withCtx((e) => [
|
|
94
|
-
(openBlock(), createBlock(resolveDynamicComponent(item
|
|
101
|
+
(openBlock(), createBlock(resolveDynamicComponent(item?.(e))))
|
|
95
102
|
])
|
|
96
103
|
};
|
|
97
104
|
})
|
|
98
105
|
]), 1040, ["class", "size"]);
|
|
99
106
|
}
|
|
100
|
-
|
|
101
|
-
script.render = render;
|
|
102
|
-
script.__file = "form-item/src/index.vue";
|
|
107
|
+
var VkfFormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
103
108
|
|
|
104
109
|
var types = /*#__PURE__*/Object.freeze({
|
|
105
110
|
__proto__: null
|
|
106
111
|
});
|
|
107
112
|
|
|
108
|
-
|
|
109
|
-
app.component(
|
|
113
|
+
VkfFormItem.install = (app) => {
|
|
114
|
+
app.component(VkfFormItem.name, VkfFormItem);
|
|
110
115
|
};
|
|
111
116
|
|
|
112
|
-
export {
|
|
117
|
+
export { VkfFormItem, ctx as _VkfFormItemCtx, types as __VkfFormItem, VkfFormItem as default };
|
|
@@ -17,28 +17,19 @@ const props = {
|
|
|
17
17
|
|
|
18
18
|
const S_TEMPLATE_INSTANCES = Symbol("templateInstances");
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
for (var prop in b || (b = {}))
|
|
27
|
-
if (__hasOwnProp.call(b, prop))
|
|
28
|
-
__defNormalProp(a, prop, b[prop]);
|
|
29
|
-
if (__getOwnPropSymbols)
|
|
30
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
31
|
-
if (__propIsEnum.call(b, prop))
|
|
32
|
-
__defNormalProp(a, prop, b[prop]);
|
|
33
|
-
}
|
|
34
|
-
return a;
|
|
20
|
+
var _export_sfc = (sfc, props) => {
|
|
21
|
+
const target = sfc.__vccOpts || sfc;
|
|
22
|
+
for (const [key, val] of props) {
|
|
23
|
+
target[key] = val;
|
|
24
|
+
}
|
|
25
|
+
return target;
|
|
35
26
|
};
|
|
27
|
+
|
|
36
28
|
const VkfFormItemRenderer = defineComponent({
|
|
37
29
|
name: "VkfFormItemRenderer",
|
|
38
30
|
props: props,
|
|
39
31
|
setup(props$1, ctx) {
|
|
40
|
-
|
|
41
|
-
const templateInstances = (_a = props$1.templateInstances) != null ? _a : shallowReactive({});
|
|
32
|
+
const templateInstances = props$1.templateInstances ?? shallowReactive({});
|
|
42
33
|
provide(S_TEMPLATE_INSTANCES, templateInstances);
|
|
43
34
|
const Renderer = defineComponent({
|
|
44
35
|
props: props,
|
|
@@ -52,7 +43,6 @@ const VkfFormItemRenderer = defineComponent({
|
|
|
52
43
|
});
|
|
53
44
|
const renderFormItems = (data, pK = []) => {
|
|
54
45
|
return data.reduce((a, c, index) => {
|
|
55
|
-
var _a2, _b, _c, _d;
|
|
56
46
|
const currentK = [...props$1.k, ...pK, index];
|
|
57
47
|
const validateTemplateType = () => {
|
|
58
48
|
nextTick(() => {
|
|
@@ -62,7 +52,7 @@ const VkfFormItemRenderer = defineComponent({
|
|
|
62
52
|
});
|
|
63
53
|
};
|
|
64
54
|
if (c.templateType && templateInstances[c.templateType]) {
|
|
65
|
-
const slotData =
|
|
55
|
+
const slotData = { ...c };
|
|
66
56
|
Reflect.deleteProperty(slotData, "templateType");
|
|
67
57
|
Reflect.deleteProperty(slotData, "templateSlots");
|
|
68
58
|
Reflect.deleteProperty(slotData, "templateIf");
|
|
@@ -78,18 +68,19 @@ const VkfFormItemRenderer = defineComponent({
|
|
|
78
68
|
}
|
|
79
69
|
return () => true;
|
|
80
70
|
};
|
|
81
|
-
const nodes =
|
|
71
|
+
const nodes = templateInstances[c.templateType].slots.default?.({
|
|
82
72
|
data: slotData,
|
|
83
73
|
raw: c,
|
|
84
74
|
Renderer,
|
|
85
75
|
k: currentK,
|
|
76
|
+
key: currentK.join(",") + "-" + c.templateType + "-" + c?.prop || "no-prop",
|
|
86
77
|
templateIf: createTemplateIf()
|
|
87
78
|
});
|
|
88
79
|
nodes && a.push(nodes);
|
|
89
|
-
} else if (
|
|
80
|
+
} else if (c.templateSlots?.default) {
|
|
90
81
|
validateTemplateType();
|
|
91
82
|
currentK.push("templateSlots", "default");
|
|
92
|
-
if (Array.isArray(
|
|
83
|
+
if (Array.isArray(c.templateSlots?.default)) {
|
|
93
84
|
const subNode = renderFormItems(c.templateSlots.default, currentK);
|
|
94
85
|
a = a.concat(subNode);
|
|
95
86
|
}
|
|
@@ -100,8 +91,7 @@ const VkfFormItemRenderer = defineComponent({
|
|
|
100
91
|
}, []);
|
|
101
92
|
};
|
|
102
93
|
return () => {
|
|
103
|
-
|
|
104
|
-
const tempSlots = (_b = (_a2 = ctx.slots).default) == null ? void 0 : _b.call(_a2);
|
|
94
|
+
const tempSlots = ctx.slots.default?.();
|
|
105
95
|
return [
|
|
106
96
|
tempSlots,
|
|
107
97
|
renderFormItems(props$1.source)
|
|
@@ -109,15 +99,15 @@ const VkfFormItemRenderer = defineComponent({
|
|
|
109
99
|
};
|
|
110
100
|
}
|
|
111
101
|
});
|
|
112
|
-
|
|
113
|
-
VkfFormItemRenderer
|
|
102
|
+
const _sfc_main = VkfFormItemRenderer;
|
|
103
|
+
var VkfFormItemRenderer$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
|
|
114
104
|
|
|
115
105
|
var types = /*#__PURE__*/Object.freeze({
|
|
116
106
|
__proto__: null
|
|
117
107
|
});
|
|
118
108
|
|
|
119
|
-
VkfFormItemRenderer.install = (app) => {
|
|
120
|
-
app.component(VkfFormItemRenderer.name, VkfFormItemRenderer);
|
|
109
|
+
VkfFormItemRenderer$1.install = (app) => {
|
|
110
|
+
app.component(VkfFormItemRenderer$1.name, VkfFormItemRenderer$1);
|
|
121
111
|
};
|
|
122
112
|
|
|
123
|
-
export { S_TEMPLATE_INSTANCES, VkfFormItemRenderer, types as __VkfFormItemRenderer, VkfFormItemRenderer as default };
|
|
113
|
+
export { S_TEMPLATE_INSTANCES, VkfFormItemRenderer$1 as VkfFormItemRenderer, types as __VkfFormItemRenderer, VkfFormItemRenderer$1 as default };
|
|
@@ -9,7 +9,15 @@ const props = {
|
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _export_sfc = (sfc, props) => {
|
|
13
|
+
const target = sfc.__vccOpts || sfc;
|
|
14
|
+
for (const [key, val] of props) {
|
|
15
|
+
target[key] = val;
|
|
16
|
+
}
|
|
17
|
+
return target;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const _sfc_main = defineComponent({
|
|
13
21
|
name: "VkfFormItemRendererTemplate",
|
|
14
22
|
props,
|
|
15
23
|
setup(props2) {
|
|
@@ -27,15 +35,14 @@ var script = defineComponent({
|
|
|
27
35
|
return () => null;
|
|
28
36
|
}
|
|
29
37
|
});
|
|
30
|
-
|
|
31
|
-
script.__file = "form-item-renderer-template/src/index.vue";
|
|
38
|
+
var VkfFormItemRendererTemplate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
|
|
32
39
|
|
|
33
40
|
var types = /*#__PURE__*/Object.freeze({
|
|
34
41
|
__proto__: null
|
|
35
42
|
});
|
|
36
43
|
|
|
37
|
-
|
|
38
|
-
app.component(
|
|
44
|
+
VkfFormItemRendererTemplate.install = (app) => {
|
|
45
|
+
app.component(VkfFormItemRendererTemplate.name, VkfFormItemRendererTemplate);
|
|
39
46
|
};
|
|
40
47
|
|
|
41
|
-
export {
|
|
48
|
+
export { VkfFormItemRendererTemplate, types as __VkfFormItemRendererTemplate, VkfFormItemRendererTemplate as default };
|
|
@@ -24,7 +24,15 @@ const emits = {
|
|
|
24
24
|
setData: (e) => e
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _export_sfc = (sfc, props) => {
|
|
28
|
+
const target = sfc.__vccOpts || sfc;
|
|
29
|
+
for (const [key, val] of props) {
|
|
30
|
+
target[key] = val;
|
|
31
|
+
}
|
|
32
|
+
return target;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const _sfc_main = defineComponent({
|
|
28
36
|
name: "VkfFormItemRendererTemplateDefault",
|
|
29
37
|
components: {
|
|
30
38
|
VkfFormItemRendererTemplate,
|
|
@@ -49,8 +57,7 @@ var script = defineComponent({
|
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
59
|
});
|
|
52
|
-
|
|
53
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
60
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
54
61
|
const _component_VkfButton = resolveComponent("VkfButton");
|
|
55
62
|
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
56
63
|
const _component_VkfColorPicker = resolveComponent("VkfColorPicker");
|
|
@@ -208,16 +215,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
208
215
|
})
|
|
209
216
|
], 64);
|
|
210
217
|
}
|
|
211
|
-
|
|
212
|
-
script.render = render;
|
|
213
|
-
script.__file = "form-item-renderer-template-default/src/index.vue";
|
|
218
|
+
var VkfFormItemRendererTemplateDefault = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
214
219
|
|
|
215
220
|
var types = /*#__PURE__*/Object.freeze({
|
|
216
221
|
__proto__: null
|
|
217
222
|
});
|
|
218
223
|
|
|
219
|
-
|
|
220
|
-
app.component(
|
|
224
|
+
VkfFormItemRendererTemplateDefault.install = (app) => {
|
|
225
|
+
app.component(VkfFormItemRendererTemplateDefault.name, VkfFormItemRendererTemplateDefault);
|
|
221
226
|
};
|
|
222
227
|
|
|
223
|
-
export {
|
|
228
|
+
export { VkfFormItemRendererTemplateDefault, types as __VkfFormItemRendererTemplateDefault, VkfFormItemRendererTemplateDefault as default };
|
|
@@ -10,7 +10,15 @@ const props = {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _export_sfc = (sfc, props) => {
|
|
14
|
+
const target = sfc.__vccOpts || sfc;
|
|
15
|
+
for (const [key, val] of props) {
|
|
16
|
+
target[key] = val;
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const _sfc_main = defineComponent({
|
|
14
22
|
name: "VkfFormItemRendererTemplateLayout",
|
|
15
23
|
props,
|
|
16
24
|
components: {
|
|
@@ -24,15 +32,14 @@ var script = defineComponent({
|
|
|
24
32
|
};
|
|
25
33
|
}
|
|
26
34
|
});
|
|
27
|
-
|
|
28
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
35
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29
36
|
const _component_ElRow = resolveComponent("ElRow");
|
|
30
37
|
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
31
38
|
const _component_ElCol = resolveComponent("ElCol");
|
|
32
39
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
33
40
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "ElRow" }, {
|
|
34
|
-
default: withCtx(({ data:
|
|
35
|
-
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_ElRow, normalizeProps(mergeProps({ key: 0 },
|
|
41
|
+
default: withCtx(({ data: props2, Renderer, raw, k, templateIf }) => [
|
|
42
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_ElRow, normalizeProps(mergeProps({ key: 0 }, props2)), {
|
|
36
43
|
default: withCtx(() => [
|
|
37
44
|
(openBlock(), createBlock(resolveDynamicComponent(Renderer), {
|
|
38
45
|
source: raw.templateSlots,
|
|
@@ -88,16 +95,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
88
95
|
})
|
|
89
96
|
], 64);
|
|
90
97
|
}
|
|
91
|
-
|
|
92
|
-
script.render = render;
|
|
93
|
-
script.__file = "form-item-renderer-template-layout/src/index.vue";
|
|
98
|
+
var VkfFormItemRendererTemplateLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
94
99
|
|
|
95
100
|
var types = /*#__PURE__*/Object.freeze({
|
|
96
101
|
__proto__: null
|
|
97
102
|
});
|
|
98
103
|
|
|
99
|
-
|
|
100
|
-
app.component(
|
|
104
|
+
VkfFormItemRendererTemplateLayout.install = (app) => {
|
|
105
|
+
app.component(VkfFormItemRendererTemplateLayout.name, VkfFormItemRendererTemplateLayout);
|
|
101
106
|
};
|
|
102
107
|
|
|
103
|
-
export {
|
|
108
|
+
export { VkfFormItemRendererTemplateLayout, types as __VkfFormItemRendererTemplateLayout, VkfFormItemRendererTemplateLayout as default };
|
|
@@ -54,7 +54,15 @@ var ctx = /*#__PURE__*/Object.freeze({
|
|
|
54
54
|
createOnEmits: createOnEmits
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _export_sfc = (sfc, props) => {
|
|
58
|
+
const target = sfc.__vccOpts || sfc;
|
|
59
|
+
for (const [key, val] of props) {
|
|
60
|
+
target[key] = val;
|
|
61
|
+
}
|
|
62
|
+
return target;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const _sfc_main = defineComponent({
|
|
58
66
|
name: "VkfInput",
|
|
59
67
|
components: {
|
|
60
68
|
ElInput,
|
|
@@ -75,8 +83,7 @@ var script = defineComponent({
|
|
|
75
83
|
};
|
|
76
84
|
}
|
|
77
85
|
});
|
|
78
|
-
|
|
79
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
86
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
80
87
|
const _component_ElInput = resolveComponent("ElInput");
|
|
81
88
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
82
89
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
@@ -95,25 +102,24 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
95
102
|
return {
|
|
96
103
|
name: key,
|
|
97
104
|
fn: withCtx((e) => [
|
|
98
|
-
(openBlock(), createBlock(resolveDynamicComponent(item
|
|
105
|
+
(openBlock(), createBlock(resolveDynamicComponent(item?.(e))))
|
|
99
106
|
])
|
|
100
107
|
};
|
|
101
108
|
})
|
|
102
|
-
]), 1040, ["maxlength", "minlength", "rows", "readonly"])
|
|
109
|
+
]), 1040, ["maxlength", "minlength", "rows", "readonly"]),
|
|
110
|
+
renderSlot(_ctx.$slots, "formItem")
|
|
103
111
|
]),
|
|
104
112
|
_: 3
|
|
105
113
|
}, 16);
|
|
106
114
|
}
|
|
107
|
-
|
|
108
|
-
script.render = render;
|
|
109
|
-
script.__file = "input/src/index.vue";
|
|
115
|
+
var VkfInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
110
116
|
|
|
111
117
|
var types = /*#__PURE__*/Object.freeze({
|
|
112
118
|
__proto__: null
|
|
113
119
|
});
|
|
114
120
|
|
|
115
|
-
|
|
116
|
-
app.component(
|
|
121
|
+
VkfInput.install = (app) => {
|
|
122
|
+
app.component(VkfInput.name, VkfInput);
|
|
117
123
|
};
|
|
118
124
|
|
|
119
|
-
export {
|
|
125
|
+
export { VkfInput, ctx as _VkfInputCtx, types as __VkfInput, VkfInput as default };
|
|
@@ -35,7 +35,15 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
35
35
|
});
|
|
36
36
|
const emits = __spreadValues({}, inputNumberEmits);
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _export_sfc = (sfc, props) => {
|
|
39
|
+
const target = sfc.__vccOpts || sfc;
|
|
40
|
+
for (const [key, val] of props) {
|
|
41
|
+
target[key] = val;
|
|
42
|
+
}
|
|
43
|
+
return target;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const _sfc_main = defineComponent({
|
|
39
47
|
name: "VkfInputNumber",
|
|
40
48
|
components: {
|
|
41
49
|
VkfFormItem,
|
|
@@ -56,12 +64,11 @@ var script = defineComponent({
|
|
|
56
64
|
};
|
|
57
65
|
}
|
|
58
66
|
});
|
|
59
|
-
|
|
60
67
|
const _hoisted_1 = {
|
|
61
68
|
key: 0,
|
|
62
69
|
class: "vkf-input-number-unit"
|
|
63
70
|
};
|
|
64
|
-
function
|
|
71
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
65
72
|
const _component_ElInputNumber = resolveComponent("ElInputNumber");
|
|
66
73
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
67
74
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
@@ -79,16 +86,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
79
86
|
_: 1
|
|
80
87
|
}, 16);
|
|
81
88
|
}
|
|
82
|
-
|
|
83
|
-
script.render = render;
|
|
84
|
-
script.__file = "input-number/src/index.vue";
|
|
89
|
+
var VkfInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
85
90
|
|
|
86
91
|
var types = /*#__PURE__*/Object.freeze({
|
|
87
92
|
__proto__: null
|
|
88
93
|
});
|
|
89
94
|
|
|
90
|
-
|
|
91
|
-
app.component(
|
|
95
|
+
VkfInputNumber.install = (app) => {
|
|
96
|
+
app.component(VkfInputNumber.name, VkfInputNumber);
|
|
92
97
|
};
|
|
93
98
|
|
|
94
|
-
export {
|
|
99
|
+
export { VkfInputNumber, types as __VkfInputNumber, VkfInputNumber as default };
|
|
@@ -40,7 +40,15 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
40
40
|
});
|
|
41
41
|
const emits = __spreadValues({}, radioGroupEmits);
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _export_sfc = (sfc, props) => {
|
|
44
|
+
const target = sfc.__vccOpts || sfc;
|
|
45
|
+
for (const [key, val] of props) {
|
|
46
|
+
target[key] = val;
|
|
47
|
+
}
|
|
48
|
+
return target;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const _sfc_main = defineComponent({
|
|
44
52
|
name: "VkfRadio",
|
|
45
53
|
components: {
|
|
46
54
|
VkfFormItem,
|
|
@@ -69,8 +77,7 @@ var script = defineComponent({
|
|
|
69
77
|
};
|
|
70
78
|
}
|
|
71
79
|
});
|
|
72
|
-
|
|
73
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
80
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
74
81
|
const _component_ElRadioGroup = resolveComponent("ElRadioGroup");
|
|
75
82
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
76
83
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
@@ -90,12 +97,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
90
97
|
}, _ctx.pickObject(item, {
|
|
91
98
|
excludes: ["label", "value"]
|
|
92
99
|
})), {
|
|
93
|
-
default: withCtx(() =>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
createTextVNode(toDisplayString((_a = item.label) != null ? _a : item.value), 1)
|
|
97
|
-
];
|
|
98
|
-
}),
|
|
100
|
+
default: withCtx(() => [
|
|
101
|
+
createTextVNode(toDisplayString(item.label ?? item.value), 1)
|
|
102
|
+
]),
|
|
99
103
|
_: 2
|
|
100
104
|
}, 1040, ["label"]);
|
|
101
105
|
}), 128))
|
|
@@ -106,16 +110,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
106
110
|
_: 1
|
|
107
111
|
}, 16);
|
|
108
112
|
}
|
|
109
|
-
|
|
110
|
-
script.render = render;
|
|
111
|
-
script.__file = "radio/src/index.vue";
|
|
113
|
+
var VkfRadio = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
112
114
|
|
|
113
115
|
var types = /*#__PURE__*/Object.freeze({
|
|
114
116
|
__proto__: null
|
|
115
117
|
});
|
|
116
118
|
|
|
117
|
-
|
|
118
|
-
app.component(
|
|
119
|
+
VkfRadio.install = (app) => {
|
|
120
|
+
app.component(VkfRadio.name, VkfRadio);
|
|
119
121
|
};
|
|
120
122
|
|
|
121
|
-
export {
|
|
123
|
+
export { VkfRadio, types as __VkfRadio, VkfRadio as default };
|
|
@@ -5,41 +5,6 @@ import { ElSelect, ElOption } from 'element-plus';
|
|
|
5
5
|
import { isPlainObject } from '@vunk/core/shared/utils-object';
|
|
6
6
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
7
7
|
|
|
8
|
-
var __defProp$1 = Object.defineProperty;
|
|
9
|
-
var __defProps$1 = Object.defineProperties;
|
|
10
|
-
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
11
|
-
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
12
|
-
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
13
|
-
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
14
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15
|
-
var __spreadValues$1 = (a, b) => {
|
|
16
|
-
for (var prop in b || (b = {}))
|
|
17
|
-
if (__hasOwnProp$1.call(b, prop))
|
|
18
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
19
|
-
if (__getOwnPropSymbols$1)
|
|
20
|
-
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
21
|
-
if (__propIsEnum$1.call(b, prop))
|
|
22
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
23
|
-
}
|
|
24
|
-
return a;
|
|
25
|
-
};
|
|
26
|
-
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
27
|
-
const props = __spreadProps$1(__spreadValues$1(__spreadValues$1({}, _VkfFormItemCtx.props), selectProps), {
|
|
28
|
-
options: {
|
|
29
|
-
type: Array,
|
|
30
|
-
default: () => []
|
|
31
|
-
},
|
|
32
|
-
selectSlots: {
|
|
33
|
-
type: Object,
|
|
34
|
-
default: void 0
|
|
35
|
-
},
|
|
36
|
-
optionsUrl: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: ""
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
const emits = __spreadValues$1({}, selectEmits);
|
|
42
|
-
|
|
43
8
|
var __defProp = Object.defineProperty;
|
|
44
9
|
var __defProps = Object.defineProperties;
|
|
45
10
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -59,7 +24,31 @@ var __spreadValues = (a, b) => {
|
|
|
59
24
|
return a;
|
|
60
25
|
};
|
|
61
26
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
62
|
-
|
|
27
|
+
const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), selectProps), {
|
|
28
|
+
options: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default: () => []
|
|
31
|
+
},
|
|
32
|
+
selectSlots: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: void 0
|
|
35
|
+
},
|
|
36
|
+
optionsUrl: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const emits = __spreadValues({}, selectEmits);
|
|
42
|
+
|
|
43
|
+
var _export_sfc = (sfc, props) => {
|
|
44
|
+
const target = sfc.__vccOpts || sfc;
|
|
45
|
+
for (const [key, val] of props) {
|
|
46
|
+
target[key] = val;
|
|
47
|
+
}
|
|
48
|
+
return target;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const _sfc_main = defineComponent({
|
|
63
52
|
name: "VkfSelect",
|
|
64
53
|
components: {
|
|
65
54
|
VkfFormItem,
|
|
@@ -91,9 +80,10 @@ var script = defineComponent({
|
|
|
91
80
|
const k = getKey(c);
|
|
92
81
|
if (!k && k !== 0)
|
|
93
82
|
return a;
|
|
94
|
-
a.push(
|
|
83
|
+
a.push({
|
|
84
|
+
...c,
|
|
95
85
|
key: k
|
|
96
|
-
})
|
|
86
|
+
});
|
|
97
87
|
return a;
|
|
98
88
|
}, []);
|
|
99
89
|
});
|
|
@@ -115,8 +105,7 @@ var script = defineComponent({
|
|
|
115
105
|
};
|
|
116
106
|
}
|
|
117
107
|
});
|
|
118
|
-
|
|
119
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
108
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
120
109
|
const _component_ElOption = resolveComponent("ElOption");
|
|
121
110
|
const _component_ElSelect = resolveComponent("ElSelect");
|
|
122
111
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
@@ -142,7 +131,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
142
131
|
return {
|
|
143
132
|
name: key,
|
|
144
133
|
fn: withCtx((e) => [
|
|
145
|
-
(openBlock(), createBlock(resolveDynamicComponent(item
|
|
134
|
+
(openBlock(), createBlock(resolveDynamicComponent(item?.(e))))
|
|
146
135
|
])
|
|
147
136
|
};
|
|
148
137
|
})
|
|
@@ -151,16 +140,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
151
140
|
_: 3
|
|
152
141
|
}, 16);
|
|
153
142
|
}
|
|
154
|
-
|
|
155
|
-
script.render = render;
|
|
156
|
-
script.__file = "select/src/index.vue";
|
|
143
|
+
var VkfSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
157
144
|
|
|
158
145
|
var types = /*#__PURE__*/Object.freeze({
|
|
159
146
|
__proto__: null
|
|
160
147
|
});
|
|
161
148
|
|
|
162
|
-
|
|
163
|
-
app.component(
|
|
149
|
+
VkfSelect.install = (app) => {
|
|
150
|
+
app.component(VkfSelect.name, VkfSelect);
|
|
164
151
|
};
|
|
165
152
|
|
|
166
|
-
export {
|
|
153
|
+
export { VkfSelect, types as __VkfSelect, VkfSelect as default };
|
|
@@ -33,7 +33,15 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
33
33
|
});
|
|
34
34
|
const emits = __spreadValues({}, switchEmits);
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _export_sfc = (sfc, props) => {
|
|
37
|
+
const target = sfc.__vccOpts || sfc;
|
|
38
|
+
for (const [key, val] of props) {
|
|
39
|
+
target[key] = val;
|
|
40
|
+
}
|
|
41
|
+
return target;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const _sfc_main = defineComponent({
|
|
37
45
|
name: "VkfSwitch",
|
|
38
46
|
components: {
|
|
39
47
|
ElSwitch,
|
|
@@ -57,42 +65,36 @@ var script = defineComponent({
|
|
|
57
65
|
};
|
|
58
66
|
}
|
|
59
67
|
});
|
|
60
|
-
|
|
61
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
68
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
62
69
|
const _component_ElSwitch = resolveComponent("ElSwitch");
|
|
63
70
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
64
71
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
65
|
-
default: withCtx(() =>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}, 16, ["class", "modelValue", "disabled"])
|
|
81
|
-
];
|
|
82
|
-
}),
|
|
72
|
+
default: withCtx(() => [
|
|
73
|
+
createVNode(_component_ElSwitch, mergeProps({
|
|
74
|
+
class: {
|
|
75
|
+
"is-readonly": _ctx.readonly
|
|
76
|
+
},
|
|
77
|
+
modelValue: _ctx.modelValue ?? _ctx.defaultModelValue
|
|
78
|
+
}, _ctx.switchBindProps, toHandlers(_ctx.switchOnEmits), {
|
|
79
|
+
disabled: _ctx.readonly || _ctx.disabled
|
|
80
|
+
}), {
|
|
81
|
+
default: withCtx(() => [
|
|
82
|
+
renderSlot(_ctx.$slots, "default")
|
|
83
|
+
]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 16, ["class", "modelValue", "disabled"])
|
|
86
|
+
]),
|
|
83
87
|
_: 3
|
|
84
88
|
}, 16);
|
|
85
89
|
}
|
|
86
|
-
|
|
87
|
-
script.render = render;
|
|
88
|
-
script.__file = "switch/src/index.vue";
|
|
90
|
+
var VkfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
89
91
|
|
|
90
92
|
var types = /*#__PURE__*/Object.freeze({
|
|
91
93
|
__proto__: null
|
|
92
94
|
});
|
|
93
95
|
|
|
94
|
-
|
|
95
|
-
app.component(
|
|
96
|
+
VkfSwitch.install = (app) => {
|
|
97
|
+
app.component(VkfSwitch.name, VkfSwitch);
|
|
96
98
|
};
|
|
97
99
|
|
|
98
|
-
export {
|
|
100
|
+
export { VkfSwitch, types as __VkfSwitch, VkfSwitch as default };
|
|
@@ -192,10 +192,18 @@ function _sfc_render292(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
192
192
|
}
|
|
193
193
|
var zoom_in_default = /* @__PURE__ */ export_helper_default(zoom_in_vue_vue_type_script_lang_default, [["render", _sfc_render292], ["__file", "zoom-in.vue"]]);
|
|
194
194
|
|
|
195
|
+
var _export_sfc = (sfc, props) => {
|
|
196
|
+
const target = sfc.__vccOpts || sfc;
|
|
197
|
+
for (const [key, val] of props) {
|
|
198
|
+
target[key] = val;
|
|
199
|
+
}
|
|
200
|
+
return target;
|
|
201
|
+
};
|
|
202
|
+
|
|
195
203
|
const restFetch = new RestFetch({
|
|
196
204
|
baseURL: ""
|
|
197
205
|
});
|
|
198
|
-
|
|
206
|
+
const _sfc_main$1 = defineComponent({
|
|
199
207
|
components: {
|
|
200
208
|
ElProgress,
|
|
201
209
|
ElIcon,
|
|
@@ -262,9 +270,8 @@ var script$1 = defineComponent({
|
|
|
262
270
|
};
|
|
263
271
|
}
|
|
264
272
|
});
|
|
265
|
-
|
|
266
273
|
const _hoisted_1$1 = ["src"];
|
|
267
|
-
function
|
|
274
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
268
275
|
const _component_Document = resolveComponent("Document");
|
|
269
276
|
const _component_el_icon = resolveComponent("el-icon");
|
|
270
277
|
const _component_Download = resolveComponent("Download");
|
|
@@ -415,16 +422,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
415
422
|
], 2)) : createCommentVNode("v-if", true)
|
|
416
423
|
], 64);
|
|
417
424
|
}
|
|
425
|
+
var FileVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "file.vue"]]);
|
|
418
426
|
|
|
419
|
-
|
|
420
|
-
script$1.__file = "upload/src/file.vue";
|
|
421
|
-
|
|
422
|
-
var script = defineComponent({
|
|
427
|
+
const _sfc_main = defineComponent({
|
|
423
428
|
name: "VkfUpload",
|
|
424
429
|
components: {
|
|
425
430
|
VkfFormItem,
|
|
426
431
|
ElUpload,
|
|
427
|
-
FileVue
|
|
432
|
+
FileVue,
|
|
428
433
|
ElLink
|
|
429
434
|
},
|
|
430
435
|
emits,
|
|
@@ -434,8 +439,7 @@ var script = defineComponent({
|
|
|
434
439
|
const coreBindProps = createUploadBindProps(props2, ["disabled", "fileList"]);
|
|
435
440
|
const uploadRef = shallowRef();
|
|
436
441
|
const handleRemove = (file) => {
|
|
437
|
-
|
|
438
|
-
(_a = uploadRef.value) == null ? void 0 : _a.handleRemove(file);
|
|
442
|
+
uploadRef.value?.handleRemove(file);
|
|
439
443
|
};
|
|
440
444
|
const readonly = useComputedReadonly(props2);
|
|
441
445
|
return {
|
|
@@ -448,77 +452,71 @@ var script = defineComponent({
|
|
|
448
452
|
};
|
|
449
453
|
}
|
|
450
454
|
});
|
|
451
|
-
|
|
452
455
|
const _hoisted_1 = { class: "el-upload__tip" };
|
|
453
|
-
function
|
|
456
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
454
457
|
const _component_ElLink = resolveComponent("ElLink");
|
|
455
458
|
const _component_FileVue = resolveComponent("FileVue");
|
|
456
459
|
const _component_ElUpload = resolveComponent("ElUpload");
|
|
457
460
|
const _component_VkfFormItem = resolveComponent("VkfFormItem");
|
|
458
461
|
return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
|
|
459
|
-
default: withCtx(() =>
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
default: withCtx(() => [
|
|
485
|
-
createTextVNode("+ \u9009\u62E9\u6587\u4EF6")
|
|
486
|
-
]),
|
|
487
|
-
_: 1
|
|
488
|
-
}),
|
|
489
|
-
renderSlot(_ctx.$slots, "default")
|
|
490
|
-
]),
|
|
491
|
-
_: 2
|
|
492
|
-
}, [
|
|
493
|
-
_ctx.tip ? {
|
|
494
|
-
name: "tip",
|
|
495
|
-
fn: withCtx(() => [
|
|
496
|
-
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.tip), 1)
|
|
462
|
+
default: withCtx(() => [
|
|
463
|
+
createVNode(_component_ElUpload, mergeProps({
|
|
464
|
+
class: ["vkf-upload", {
|
|
465
|
+
"is-readonly": _ctx.readonly,
|
|
466
|
+
"is-empty": _ctx.fileList?.length === 0
|
|
467
|
+
}]
|
|
468
|
+
}, _ctx.coreBindProps, {
|
|
469
|
+
fileList: _ctx.fileList ?? [],
|
|
470
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:fileList", $event)),
|
|
471
|
+
ref: "uploadRef",
|
|
472
|
+
disabled: _ctx.readonly || _ctx.disabled
|
|
473
|
+
}), createSlots({
|
|
474
|
+
file: withCtx(({ file }) => [
|
|
475
|
+
createVNode(_component_FileVue, {
|
|
476
|
+
file,
|
|
477
|
+
listType: _ctx.listType,
|
|
478
|
+
disabled: _ctx.readonly || _ctx.disabled,
|
|
479
|
+
onPreview: _ctx.onPreview,
|
|
480
|
+
onRemove: _ctx.handleRemove
|
|
481
|
+
}, null, 8, ["file", "listType", "disabled", "onPreview", "onRemove"])
|
|
482
|
+
]),
|
|
483
|
+
default: withCtx(() => [
|
|
484
|
+
createVNode(_component_ElLink, { type: "primary" }, {
|
|
485
|
+
default: withCtx(() => [
|
|
486
|
+
createTextVNode("+ \u9009\u62E9\u6587\u4EF6")
|
|
497
487
|
]),
|
|
498
|
-
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
488
|
+
_: 1
|
|
489
|
+
}),
|
|
490
|
+
renderSlot(_ctx.$slots, "default")
|
|
491
|
+
]),
|
|
492
|
+
_: 2
|
|
493
|
+
}, [
|
|
494
|
+
_ctx.tip ? {
|
|
495
|
+
name: "tip",
|
|
496
|
+
fn: withCtx(() => [
|
|
497
|
+
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.tip), 1)
|
|
498
|
+
]),
|
|
499
|
+
key: "0"
|
|
500
|
+
} : void 0
|
|
501
|
+
]), 1040, ["class", "fileList", "disabled"]),
|
|
502
|
+
createElementVNode("span", {
|
|
503
|
+
class: normalizeClass(["vkf-upload-empty-tip", {
|
|
504
|
+
"is-readonly": _ctx.readonly,
|
|
505
|
+
"is-empty": _ctx.fileList?.length === 0
|
|
506
|
+
}])
|
|
507
|
+
}, "\u6682\u65E0", 2)
|
|
508
|
+
]),
|
|
509
509
|
_: 3
|
|
510
510
|
}, 16);
|
|
511
511
|
}
|
|
512
|
-
|
|
513
|
-
script.render = render;
|
|
514
|
-
script.__file = "upload/src/index.vue";
|
|
512
|
+
var VkfUpload = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
515
513
|
|
|
516
514
|
var types = /*#__PURE__*/Object.freeze({
|
|
517
515
|
__proto__: null
|
|
518
516
|
});
|
|
519
517
|
|
|
520
|
-
|
|
521
|
-
app.component(
|
|
518
|
+
VkfUpload.install = (app) => {
|
|
519
|
+
app.component(VkfUpload.name, VkfUpload);
|
|
522
520
|
};
|
|
523
521
|
|
|
524
|
-
export {
|
|
522
|
+
export { VkfUpload, ctx as _VkfUploadCtx, types as __VkfUpload, VkfUpload as default };
|