@vunk/form 1.4.12 → 2.0.1
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/form/index.cjs +34 -6
- package/components/form/index.mjs +35 -7
- package/components/form/src/ctx.d.ts +8 -1
- package/components/form/src/index.vue.d.ts +31 -0
- package/components/form-item-renderer/index.cjs +33 -20
- package/components/form-item-renderer/index.d.ts +0 -1
- package/components/form-item-renderer/index.mjs +35 -20
- package/components/form-item-renderer/src/index.vue.d.ts +4 -4
- package/components/form-item-renderer/src/types.d.ts +0 -1
- package/components/form-item-renderer-template/index.cjs +2 -2
- package/components/form-item-renderer-template/index.mjs +3 -3
- package/components/form-item-renderer-template/src/types.d.ts +44 -0
- package/components/input-collection/index.cjs +56 -40
- package/components/input-collection/index.mjs +57 -41
- package/components/input-collection/src/ctx.d.ts +7 -0
- package/components/input-collection/src/index.vue.d.ts +20 -0
- package/components/input-number/src/ctx.d.ts +1 -1
- package/components/input-number/src/index.vue.d.ts +2 -2
- package/components/renderer-data/index.cjs +41 -0
- package/components/renderer-data/index.d.ts +4 -0
- package/components/renderer-data/index.mjs +35 -0
- package/components/{templates-mapbox → renderer-data}/src/ctx.d.ts +3 -2
- package/components/renderer-data/src/index.vue.d.ts +20 -0
- package/components/renderer-data/src/types.d.ts +1 -0
- package/components/select/index.css +5 -0
- package/components/slider/src/index.vue.d.ts +1 -1
- package/components/template-instances-provider/index.cjs +16 -6
- package/components/template-instances-provider/index.mjs +17 -7
- package/components/template-instances-provider/src/index.vue.d.ts +14 -2
- package/components/templates-default/index.cjs +40 -146
- package/components/templates-default/index.mjs +41 -147
- package/components/templates-default/src/index.vue.d.ts +0 -2
- package/components/templates-element-plus/index.cjs +8 -8
- package/components/templates-element-plus/index.mjs +9 -9
- package/components/templates-esri/index.cjs +5 -5
- package/components/templates-esri/index.mjs +6 -6
- package/components/templates-variant/index.cjs +7 -7
- package/components/templates-variant/index.mjs +8 -8
- package/composables/index.cjs +46 -0
- package/composables/index.d.ts +3 -0
- package/composables/index.mjs +44 -2
- package/composables/useComputedReadonly.d.ts +4 -0
- package/composables/useForm.d.ts +1 -4
- package/composables/useRendererData.d.ts +13 -0
- package/composables/useTemplateInstances.d.ts +3 -0
- package/index.css +5 -9
- package/package.json +6 -19
- package/components/form-item-renderer/src/symbols.d.ts +0 -3
- package/components/geoinput/index.cjs +0 -95
- package/components/geoinput/index.d.ts +0 -4
- package/components/geoinput/index.mjs +0 -89
- package/components/geoinput/src/ctx.d.ts +0 -240
- package/components/geoinput/src/index.vue.d.ts +0 -546
- package/components/geoinput/src/types.d.ts +0 -12
- package/components/geoinput-read/index.cjs +0 -304
- package/components/geoinput-read/index.css +0 -8
- package/components/geoinput-read/index.d.ts +0 -5
- package/components/geoinput-read/index.mjs +0 -297
- package/components/geoinput-read/src/append.vue.d.ts +0 -341
- package/components/geoinput-read/src/core.vue.d.ts +0 -667
- package/components/geoinput-read/src/ctx.d.ts +0 -211
- package/components/geoinput-read/src/index.vue.d.ts +0 -1219
- package/components/geoinput-read/src/types.d.ts +0 -3
- package/components/templates-mapbox/index.cjs +0 -65
- package/components/templates-mapbox/index.d.ts +0 -4
- package/components/templates-mapbox/index.mjs +0 -59
- package/components/templates-mapbox/src/index.vue.d.ts +0 -43
- package/components/templates-mapbox/src/types.d.ts +0 -3
- package/shared/const/index.d.ts +0 -4
- package/shared/element-plus/ctx.d.ts +0 -26
- package/shared/element-plus/index.d.ts +0 -3
- package/shared/element-plus/instances.d.ts +0 -202
- package/shared/element-plus/version.d.ts +0 -1
- package/shared/form/index.d.ts +0 -18
- package/shared/helper/index.d.ts +0 -4
- package/shared/index.d.ts +0 -2
- package/shared/infer-prop/index.d.ts +0 -17
- package/shared/progress-it/index.d.ts +0 -16
- package/shared/rules/index.d.ts +0 -35
- package/shared/types/form/checkbox.d.ts +0 -13
- package/shared/types/form/index.d.ts +0 -2
- package/shared/types/form/radio.d.ts +0 -8
- package/shared/types/index.d.ts +0 -2
- package/shared/types/source/index.d.ts +0 -21
- package/shared/types/source-manager/index.d.ts +0 -6
- package/shared/upload/index.d.ts +0 -7
|
@@ -9,7 +9,6 @@ var input = require('@vunk/form/components/input');
|
|
|
9
9
|
var _switch = require('@vunk/form/components/switch');
|
|
10
10
|
var select = require('@vunk/form/components/select');
|
|
11
11
|
var datePicker = require('@vunk/form/components/date-picker');
|
|
12
|
-
var helper = require('@vunk/core/shared/helper');
|
|
13
12
|
var utilsObject = require('@vunk/core/shared/utils-object');
|
|
14
13
|
var inputNumber = require('@vunk/form/components/input-number');
|
|
15
14
|
var radio = require('@vunk/form/components/radio');
|
|
@@ -57,18 +56,9 @@ var _sfc_main = vue.defineComponent({
|
|
|
57
56
|
},
|
|
58
57
|
props,
|
|
59
58
|
emits,
|
|
60
|
-
setup(
|
|
61
|
-
const getFormDataValue = (raw) => {
|
|
62
|
-
const prop = raw.prop;
|
|
63
|
-
const intoUndefined = props2.createIntoUndefined({
|
|
64
|
-
raw,
|
|
65
|
-
data: props2.data
|
|
66
|
-
});
|
|
67
|
-
return helper.getValue(props2.data, prop, intoUndefined, true);
|
|
68
|
-
};
|
|
59
|
+
setup() {
|
|
69
60
|
return {
|
|
70
|
-
pickObject: utilsObject.pickObject
|
|
71
|
-
getFormDataValue
|
|
61
|
+
pickObject: utilsObject.pickObject
|
|
72
62
|
};
|
|
73
63
|
}
|
|
74
64
|
});
|
|
@@ -86,214 +76,118 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
86
76
|
const _component_VkfDatePicker = vue.resolveComponent("VkfDatePicker");
|
|
87
77
|
const _component_VkfInputNumber = vue.resolveComponent("VkfInputNumber");
|
|
88
78
|
const _component_VkfCascader = vue.resolveComponent("VkfCascader");
|
|
89
|
-
const _component_VkfInputLink = vue.resolveComponent("VkfInputLink");
|
|
90
79
|
const _component_VkfSlider = vue.resolveComponent("VkfSlider");
|
|
91
80
|
return vue.openBlock(), vue.createElementBlock(
|
|
92
81
|
vue.Fragment,
|
|
93
82
|
null,
|
|
94
83
|
[
|
|
95
84
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfButton" }, {
|
|
96
|
-
default: vue.withCtx(({
|
|
97
|
-
|
|
85
|
+
default: vue.withCtx(({ props }) => [
|
|
86
|
+
vue.createVNode(
|
|
98
87
|
_component_VkfButton,
|
|
99
|
-
vue.normalizeProps(vue.
|
|
88
|
+
vue.normalizeProps(vue.guardReactiveProps(props)),
|
|
100
89
|
null,
|
|
101
90
|
16
|
|
102
91
|
/* FULL_PROPS */
|
|
103
|
-
)
|
|
92
|
+
)
|
|
104
93
|
]),
|
|
105
94
|
_: 1
|
|
106
95
|
/* STABLE */
|
|
107
96
|
}),
|
|
108
97
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfColorPicker" }, {
|
|
109
|
-
default: vue.withCtx(({
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
k: sourceData.prop,
|
|
116
|
-
v: $event
|
|
117
|
-
})
|
|
118
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
98
|
+
default: vue.withCtx(({
|
|
99
|
+
props,
|
|
100
|
+
input,
|
|
101
|
+
value
|
|
102
|
+
}) => [
|
|
103
|
+
vue.createVNode(_component_VkfColorPicker, vue.mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
119
104
|
]),
|
|
120
105
|
_: 1
|
|
121
106
|
/* STABLE */
|
|
122
107
|
}),
|
|
123
108
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfUpload" }, {
|
|
124
|
-
default: vue.withCtx(({
|
|
125
|
-
|
|
126
|
-
key: 0,
|
|
127
|
-
"file-list": _ctx.getFormDataValue(raw)
|
|
128
|
-
}, sourceData, {
|
|
129
|
-
"onUpdate:fileList": ($event) => _ctx.$emit("setData", {
|
|
130
|
-
k: sourceData.prop,
|
|
131
|
-
v: $event
|
|
132
|
-
})
|
|
133
|
-
}), null, 16, ["file-list", "onUpdate:fileList"])) : vue.createCommentVNode("v-if", true)
|
|
109
|
+
default: vue.withCtx(({ props, value, input }) => [
|
|
110
|
+
vue.createVNode(_component_VkfUpload, vue.mergeProps({ "file-list": value }, props, { "onUpdate:fileList": input }), null, 16, ["file-list", "onUpdate:fileList"])
|
|
134
111
|
]),
|
|
135
112
|
_: 1
|
|
136
113
|
/* STABLE */
|
|
137
114
|
}),
|
|
138
115
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCheckbox" }, {
|
|
139
|
-
default: vue.withCtx(({
|
|
140
|
-
|
|
141
|
-
key: 0,
|
|
142
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
143
|
-
}, sourceData, {
|
|
144
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
145
|
-
k: sourceData.prop,
|
|
146
|
-
v: $event
|
|
147
|
-
})
|
|
148
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
116
|
+
default: vue.withCtx(({ props, value, input }) => [
|
|
117
|
+
vue.createVNode(_component_VkfCheckbox, vue.mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
149
118
|
]),
|
|
150
119
|
_: 1
|
|
151
120
|
/* STABLE */
|
|
152
121
|
}),
|
|
153
122
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfRadio" }, {
|
|
154
|
-
default: vue.withCtx(({
|
|
155
|
-
|
|
156
|
-
key: 0,
|
|
157
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
158
|
-
}, sourceData, {
|
|
159
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
160
|
-
k: sourceData.prop,
|
|
161
|
-
v: $event
|
|
162
|
-
})
|
|
163
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
123
|
+
default: vue.withCtx(({ props, value, input }) => [
|
|
124
|
+
vue.createVNode(_component_VkfRadio, vue.mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
164
125
|
]),
|
|
165
126
|
_: 1
|
|
166
127
|
/* STABLE */
|
|
167
128
|
}),
|
|
168
129
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInput" }, {
|
|
169
|
-
default: vue.withCtx(({
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
k: sourceData.prop,
|
|
176
|
-
v: $event
|
|
177
|
-
})
|
|
178
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
130
|
+
default: vue.withCtx(({
|
|
131
|
+
props,
|
|
132
|
+
value,
|
|
133
|
+
input
|
|
134
|
+
}) => [
|
|
135
|
+
vue.createVNode(_component_VkfInput, vue.mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
179
136
|
]),
|
|
180
137
|
_: 1
|
|
181
138
|
/* STABLE */
|
|
182
139
|
}),
|
|
183
140
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSwitch" }, {
|
|
184
|
-
default: vue.withCtx(({
|
|
185
|
-
|
|
186
|
-
key: 0,
|
|
187
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
188
|
-
}, sourceData, {
|
|
189
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
190
|
-
k: sourceData.prop,
|
|
191
|
-
v: $event
|
|
192
|
-
})
|
|
193
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
141
|
+
default: vue.withCtx(({ props, value, input }) => [
|
|
142
|
+
vue.createVNode(_component_VkfSwitch, vue.mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
194
143
|
]),
|
|
195
144
|
_: 1
|
|
196
145
|
/* STABLE */
|
|
197
146
|
}),
|
|
198
147
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSelect" }, {
|
|
199
|
-
default: vue.withCtx(({
|
|
200
|
-
|
|
201
|
-
key: 0,
|
|
202
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
203
|
-
}, sourceData, {
|
|
204
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
205
|
-
k: sourceData.prop,
|
|
206
|
-
v: $event
|
|
207
|
-
})
|
|
208
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
148
|
+
default: vue.withCtx(({ props, value, input }) => [
|
|
149
|
+
vue.createVNode(_component_VkfSelect, vue.mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
209
150
|
]),
|
|
210
151
|
_: 1
|
|
211
152
|
/* STABLE */
|
|
212
153
|
}),
|
|
213
154
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfDatePicker" }, {
|
|
214
|
-
default: vue.withCtx(({
|
|
215
|
-
|
|
216
|
-
key: 0,
|
|
217
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
218
|
-
}, sourceData, {
|
|
219
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
220
|
-
k: sourceData.prop,
|
|
221
|
-
v: $event
|
|
222
|
-
})
|
|
223
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
155
|
+
default: vue.withCtx(({ props, value, input }) => [
|
|
156
|
+
vue.createVNode(_component_VkfDatePicker, vue.mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
224
157
|
]),
|
|
225
158
|
_: 1
|
|
226
159
|
/* STABLE */
|
|
227
160
|
}),
|
|
228
161
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputNumber" }, {
|
|
229
|
-
default: vue.withCtx(({
|
|
230
|
-
|
|
231
|
-
key: 0,
|
|
232
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
233
|
-
}, sourceData, {
|
|
234
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
235
|
-
k: sourceData.prop,
|
|
236
|
-
v: $event
|
|
237
|
-
})
|
|
238
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
162
|
+
default: vue.withCtx(({ props, value, input }) => [
|
|
163
|
+
vue.createVNode(_component_VkfInputNumber, vue.mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
239
164
|
]),
|
|
240
165
|
_: 1
|
|
241
166
|
/* STABLE */
|
|
242
167
|
}),
|
|
243
168
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCascader" }, {
|
|
244
|
-
default: vue.withCtx(({
|
|
245
|
-
|
|
246
|
-
key: 0,
|
|
247
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
248
|
-
}, sourceData, {
|
|
249
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
250
|
-
k: sourceData.prop,
|
|
251
|
-
v: $event
|
|
252
|
-
})
|
|
253
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
254
|
-
]),
|
|
255
|
-
_: 1
|
|
256
|
-
/* STABLE */
|
|
257
|
-
}),
|
|
258
|
-
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputLink" }, {
|
|
259
|
-
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
260
|
-
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfInputLink, vue.mergeProps({
|
|
261
|
-
key: 0,
|
|
262
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
263
|
-
}, sourceData, {
|
|
264
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
265
|
-
k: sourceData.prop,
|
|
266
|
-
v: $event
|
|
267
|
-
})
|
|
268
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
169
|
+
default: vue.withCtx(({ props, value, input }) => [
|
|
170
|
+
vue.createVNode(_component_VkfCascader, vue.mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
269
171
|
]),
|
|
270
172
|
_: 1
|
|
271
173
|
/* STABLE */
|
|
272
174
|
}),
|
|
273
175
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSlider" }, {
|
|
274
|
-
default: vue.withCtx(({
|
|
275
|
-
|
|
276
|
-
key: 0,
|
|
277
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
278
|
-
}, sourceData, {
|
|
279
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
280
|
-
k: sourceData.prop,
|
|
281
|
-
v: $event
|
|
282
|
-
})
|
|
283
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
176
|
+
default: vue.withCtx(({ props, value, input }) => [
|
|
177
|
+
vue.createVNode(_component_VkfSlider, vue.mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
284
178
|
]),
|
|
285
179
|
_: 1
|
|
286
180
|
/* STABLE */
|
|
287
181
|
}),
|
|
288
182
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "Component" }, {
|
|
289
|
-
default: vue.withCtx(({ data: props, raw
|
|
290
|
-
|
|
183
|
+
default: vue.withCtx(({ data: props, raw }) => [
|
|
184
|
+
(vue.openBlock(), vue.createBlock(
|
|
291
185
|
vue.resolveDynamicComponent(typeof raw.is === "function" ? raw.is(raw) : raw.is),
|
|
292
|
-
vue.normalizeProps(vue.
|
|
186
|
+
vue.normalizeProps(vue.guardReactiveProps(_ctx.pickObject(props, { excludes: ["is"] }))),
|
|
293
187
|
null,
|
|
294
188
|
16
|
|
295
189
|
/* FULL_PROPS */
|
|
296
|
-
))
|
|
190
|
+
))
|
|
297
191
|
]),
|
|
298
192
|
_: 1
|
|
299
193
|
/* STABLE */
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { NOOP } from '@vunk/core/shared/utils-function';
|
|
2
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx,
|
|
2
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, normalizeProps, guardReactiveProps, mergeProps, createBlock, resolveDynamicComponent } from 'vue';
|
|
3
3
|
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
4
4
|
import { VkfInput } from '@vunk/form/components/input';
|
|
5
5
|
import { VkfSwitch } from '@vunk/form/components/switch';
|
|
6
6
|
import { VkfSelect } from '@vunk/form/components/select';
|
|
7
7
|
import { VkfDatePicker } from '@vunk/form/components/date-picker';
|
|
8
|
-
import { getValue } from '@vunk/core/shared/helper';
|
|
9
8
|
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
10
9
|
import { VkfInputNumber } from '@vunk/form/components/input-number';
|
|
11
10
|
import { VkfRadio } from '@vunk/form/components/radio';
|
|
@@ -53,18 +52,9 @@ var _sfc_main = defineComponent({
|
|
|
53
52
|
},
|
|
54
53
|
props,
|
|
55
54
|
emits,
|
|
56
|
-
setup(
|
|
57
|
-
const getFormDataValue = (raw) => {
|
|
58
|
-
const prop = raw.prop;
|
|
59
|
-
const intoUndefined = props2.createIntoUndefined({
|
|
60
|
-
raw,
|
|
61
|
-
data: props2.data
|
|
62
|
-
});
|
|
63
|
-
return getValue(props2.data, prop, intoUndefined, true);
|
|
64
|
-
};
|
|
55
|
+
setup() {
|
|
65
56
|
return {
|
|
66
|
-
pickObject
|
|
67
|
-
getFormDataValue
|
|
57
|
+
pickObject
|
|
68
58
|
};
|
|
69
59
|
}
|
|
70
60
|
});
|
|
@@ -82,214 +72,118 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
82
72
|
const _component_VkfDatePicker = resolveComponent("VkfDatePicker");
|
|
83
73
|
const _component_VkfInputNumber = resolveComponent("VkfInputNumber");
|
|
84
74
|
const _component_VkfCascader = resolveComponent("VkfCascader");
|
|
85
|
-
const _component_VkfInputLink = resolveComponent("VkfInputLink");
|
|
86
75
|
const _component_VkfSlider = resolveComponent("VkfSlider");
|
|
87
76
|
return openBlock(), createElementBlock(
|
|
88
77
|
Fragment,
|
|
89
78
|
null,
|
|
90
79
|
[
|
|
91
80
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfButton" }, {
|
|
92
|
-
default: withCtx(({
|
|
93
|
-
|
|
81
|
+
default: withCtx(({ props }) => [
|
|
82
|
+
createVNode(
|
|
94
83
|
_component_VkfButton,
|
|
95
|
-
normalizeProps(
|
|
84
|
+
normalizeProps(guardReactiveProps(props)),
|
|
96
85
|
null,
|
|
97
86
|
16
|
|
98
87
|
/* FULL_PROPS */
|
|
99
|
-
)
|
|
88
|
+
)
|
|
100
89
|
]),
|
|
101
90
|
_: 1
|
|
102
91
|
/* STABLE */
|
|
103
92
|
}),
|
|
104
93
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfColorPicker" }, {
|
|
105
|
-
default: withCtx(({
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
k: sourceData.prop,
|
|
112
|
-
v: $event
|
|
113
|
-
})
|
|
114
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
94
|
+
default: withCtx(({
|
|
95
|
+
props,
|
|
96
|
+
input,
|
|
97
|
+
value
|
|
98
|
+
}) => [
|
|
99
|
+
createVNode(_component_VkfColorPicker, mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
115
100
|
]),
|
|
116
101
|
_: 1
|
|
117
102
|
/* STABLE */
|
|
118
103
|
}),
|
|
119
104
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfUpload" }, {
|
|
120
|
-
default: withCtx(({
|
|
121
|
-
|
|
122
|
-
key: 0,
|
|
123
|
-
"file-list": _ctx.getFormDataValue(raw)
|
|
124
|
-
}, sourceData, {
|
|
125
|
-
"onUpdate:fileList": ($event) => _ctx.$emit("setData", {
|
|
126
|
-
k: sourceData.prop,
|
|
127
|
-
v: $event
|
|
128
|
-
})
|
|
129
|
-
}), null, 16, ["file-list", "onUpdate:fileList"])) : createCommentVNode("v-if", true)
|
|
105
|
+
default: withCtx(({ props, value, input }) => [
|
|
106
|
+
createVNode(_component_VkfUpload, mergeProps({ "file-list": value }, props, { "onUpdate:fileList": input }), null, 16, ["file-list", "onUpdate:fileList"])
|
|
130
107
|
]),
|
|
131
108
|
_: 1
|
|
132
109
|
/* STABLE */
|
|
133
110
|
}),
|
|
134
111
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCheckbox" }, {
|
|
135
|
-
default: withCtx(({
|
|
136
|
-
|
|
137
|
-
key: 0,
|
|
138
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
139
|
-
}, sourceData, {
|
|
140
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
141
|
-
k: sourceData.prop,
|
|
142
|
-
v: $event
|
|
143
|
-
})
|
|
144
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
112
|
+
default: withCtx(({ props, value, input }) => [
|
|
113
|
+
createVNode(_component_VkfCheckbox, mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
145
114
|
]),
|
|
146
115
|
_: 1
|
|
147
116
|
/* STABLE */
|
|
148
117
|
}),
|
|
149
118
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfRadio" }, {
|
|
150
|
-
default: withCtx(({
|
|
151
|
-
|
|
152
|
-
key: 0,
|
|
153
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
154
|
-
}, sourceData, {
|
|
155
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
156
|
-
k: sourceData.prop,
|
|
157
|
-
v: $event
|
|
158
|
-
})
|
|
159
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
119
|
+
default: withCtx(({ props, value, input }) => [
|
|
120
|
+
createVNode(_component_VkfRadio, mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
160
121
|
]),
|
|
161
122
|
_: 1
|
|
162
123
|
/* STABLE */
|
|
163
124
|
}),
|
|
164
125
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInput" }, {
|
|
165
|
-
default: withCtx(({
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
k: sourceData.prop,
|
|
172
|
-
v: $event
|
|
173
|
-
})
|
|
174
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
126
|
+
default: withCtx(({
|
|
127
|
+
props,
|
|
128
|
+
value,
|
|
129
|
+
input
|
|
130
|
+
}) => [
|
|
131
|
+
createVNode(_component_VkfInput, mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
175
132
|
]),
|
|
176
133
|
_: 1
|
|
177
134
|
/* STABLE */
|
|
178
135
|
}),
|
|
179
136
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSwitch" }, {
|
|
180
|
-
default: withCtx(({
|
|
181
|
-
|
|
182
|
-
key: 0,
|
|
183
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
184
|
-
}, sourceData, {
|
|
185
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
186
|
-
k: sourceData.prop,
|
|
187
|
-
v: $event
|
|
188
|
-
})
|
|
189
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
137
|
+
default: withCtx(({ props, value, input }) => [
|
|
138
|
+
createVNode(_component_VkfSwitch, mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
190
139
|
]),
|
|
191
140
|
_: 1
|
|
192
141
|
/* STABLE */
|
|
193
142
|
}),
|
|
194
143
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSelect" }, {
|
|
195
|
-
default: withCtx(({
|
|
196
|
-
|
|
197
|
-
key: 0,
|
|
198
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
199
|
-
}, sourceData, {
|
|
200
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
201
|
-
k: sourceData.prop,
|
|
202
|
-
v: $event
|
|
203
|
-
})
|
|
204
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
144
|
+
default: withCtx(({ props, value, input }) => [
|
|
145
|
+
createVNode(_component_VkfSelect, mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
205
146
|
]),
|
|
206
147
|
_: 1
|
|
207
148
|
/* STABLE */
|
|
208
149
|
}),
|
|
209
150
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfDatePicker" }, {
|
|
210
|
-
default: withCtx(({
|
|
211
|
-
|
|
212
|
-
key: 0,
|
|
213
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
214
|
-
}, sourceData, {
|
|
215
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
216
|
-
k: sourceData.prop,
|
|
217
|
-
v: $event
|
|
218
|
-
})
|
|
219
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
151
|
+
default: withCtx(({ props, value, input }) => [
|
|
152
|
+
createVNode(_component_VkfDatePicker, mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
220
153
|
]),
|
|
221
154
|
_: 1
|
|
222
155
|
/* STABLE */
|
|
223
156
|
}),
|
|
224
157
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputNumber" }, {
|
|
225
|
-
default: withCtx(({
|
|
226
|
-
|
|
227
|
-
key: 0,
|
|
228
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
229
|
-
}, sourceData, {
|
|
230
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
231
|
-
k: sourceData.prop,
|
|
232
|
-
v: $event
|
|
233
|
-
})
|
|
234
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
158
|
+
default: withCtx(({ props, value, input }) => [
|
|
159
|
+
createVNode(_component_VkfInputNumber, mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
235
160
|
]),
|
|
236
161
|
_: 1
|
|
237
162
|
/* STABLE */
|
|
238
163
|
}),
|
|
239
164
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCascader" }, {
|
|
240
|
-
default: withCtx(({
|
|
241
|
-
|
|
242
|
-
key: 0,
|
|
243
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
244
|
-
}, sourceData, {
|
|
245
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
246
|
-
k: sourceData.prop,
|
|
247
|
-
v: $event
|
|
248
|
-
})
|
|
249
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
250
|
-
]),
|
|
251
|
-
_: 1
|
|
252
|
-
/* STABLE */
|
|
253
|
-
}),
|
|
254
|
-
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputLink" }, {
|
|
255
|
-
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
256
|
-
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputLink, mergeProps({
|
|
257
|
-
key: 0,
|
|
258
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
259
|
-
}, sourceData, {
|
|
260
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
261
|
-
k: sourceData.prop,
|
|
262
|
-
v: $event
|
|
263
|
-
})
|
|
264
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
165
|
+
default: withCtx(({ props, value, input }) => [
|
|
166
|
+
createVNode(_component_VkfCascader, mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
265
167
|
]),
|
|
266
168
|
_: 1
|
|
267
169
|
/* STABLE */
|
|
268
170
|
}),
|
|
269
171
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSlider" }, {
|
|
270
|
-
default: withCtx(({
|
|
271
|
-
|
|
272
|
-
key: 0,
|
|
273
|
-
"model-value": _ctx.getFormDataValue(raw)
|
|
274
|
-
}, sourceData, {
|
|
275
|
-
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
276
|
-
k: sourceData.prop,
|
|
277
|
-
v: $event
|
|
278
|
-
})
|
|
279
|
-
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
172
|
+
default: withCtx(({ props, value, input }) => [
|
|
173
|
+
createVNode(_component_VkfSlider, mergeProps({ "model-value": value }, props, { "onUpdate:modelValue": input }), null, 16, ["model-value", "onUpdate:modelValue"])
|
|
280
174
|
]),
|
|
281
175
|
_: 1
|
|
282
176
|
/* STABLE */
|
|
283
177
|
}),
|
|
284
178
|
createVNode(_component_VkfFormItemRendererTemplate, { type: "Component" }, {
|
|
285
|
-
default: withCtx(({ data: props, raw
|
|
286
|
-
|
|
179
|
+
default: withCtx(({ data: props, raw }) => [
|
|
180
|
+
(openBlock(), createBlock(
|
|
287
181
|
resolveDynamicComponent(typeof raw.is === "function" ? raw.is(raw) : raw.is),
|
|
288
|
-
normalizeProps(
|
|
182
|
+
normalizeProps(guardReactiveProps(_ctx.pickObject(props, { excludes: ["is"] }))),
|
|
289
183
|
null,
|
|
290
184
|
16
|
|
291
185
|
/* FULL_PROPS */
|
|
292
|
-
))
|
|
186
|
+
))
|
|
293
187
|
]),
|
|
294
188
|
_: 1
|
|
295
189
|
/* STABLE */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CoreSource } from './types';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
2
|
data: {
|
|
4
3
|
type: import("vue").PropType<Record<string, any>>;
|
|
@@ -16,7 +15,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
16
15
|
excludes?: EX;
|
|
17
16
|
includes?: KI[];
|
|
18
17
|
}) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
19
|
-
getFormDataValue: (raw: CoreSource) => any;
|
|
20
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
19
|
setData: (e: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
|
|
22
20
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -41,10 +41,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41
41
|
null,
|
|
42
42
|
[
|
|
43
43
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "ElLink" }, {
|
|
44
|
-
default: vue.withCtx(({
|
|
45
|
-
|
|
44
|
+
default: vue.withCtx(({ props }) => [
|
|
45
|
+
vue.createVNode(
|
|
46
46
|
_component_ElLink,
|
|
47
|
-
vue.normalizeProps(vue.
|
|
47
|
+
vue.normalizeProps(vue.guardReactiveProps(_ctx.pickObject(props, {
|
|
48
48
|
excludes: ["label"]
|
|
49
49
|
}))),
|
|
50
50
|
{
|
|
@@ -60,16 +60,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
60
60
|
},
|
|
61
61
|
1040
|
|
62
62
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
63
|
-
)
|
|
63
|
+
)
|
|
64
64
|
]),
|
|
65
65
|
_: 1
|
|
66
66
|
/* STABLE */
|
|
67
67
|
}),
|
|
68
68
|
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "ElDivider" }, {
|
|
69
|
-
default: vue.withCtx(({
|
|
70
|
-
|
|
69
|
+
default: vue.withCtx(({ props }) => [
|
|
70
|
+
vue.createVNode(
|
|
71
71
|
_component_ElDivider,
|
|
72
|
-
vue.normalizeProps(vue.
|
|
72
|
+
vue.normalizeProps(vue.guardReactiveProps(_ctx.pickObject(props, {
|
|
73
73
|
excludes: ["label"]
|
|
74
74
|
}))),
|
|
75
75
|
{
|
|
@@ -87,7 +87,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
87
87
|
},
|
|
88
88
|
1040
|
|
89
89
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
90
|
-
)
|
|
90
|
+
)
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
93
93
|
/* STABLE */
|