@vunk/form 1.1.65 → 1.1.67
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/component.d.ts +1 -1
- package/components/button/index.css +1 -0
- package/components/button/index.d.ts +1 -1
- package/components/button/index.js +43 -57
- package/components/button/src/ctx.d.ts +13 -13
- package/components/button/src/ctx.js +1 -39
- package/components/button/src/index.css +1 -0
- package/components/button/src/index.vue.d.ts +37 -73
- package/components/button/src/types.d.ts +1 -1
- package/components/cascader/index.css +1 -0
- package/components/cascader/index.d.ts +1 -1
- package/components/cascader/index.js +34 -49
- package/components/cascader/src/ctx.d.ts +15 -15
- package/components/cascader/src/ctx.js +1 -38
- package/components/cascader/src/index.css +1 -0
- package/components/cascader/src/index.vue.d.ts +45 -70
- package/components/cascader/src/use.d.ts +1 -1
- package/components/cascader/src/use.js +1 -28
- package/components/checkbox/index.css +1 -0
- package/components/checkbox/index.d.ts +1 -1
- package/components/checkbox/index.js +48 -53
- package/components/checkbox/src/ctx.d.ts +14 -14
- package/components/checkbox/src/ctx.js +1 -46
- package/components/checkbox/src/index.css +1 -0
- package/components/checkbox/src/index.vue.d.ts +43 -63
- package/components/color-picker/index.css +1 -0
- package/components/color-picker/index.d.ts +1 -1
- package/components/color-picker/index.js +38 -42
- package/components/color-picker/src/ctx.d.ts +15 -13
- package/components/color-picker/src/ctx.js +1 -23
- package/components/color-picker/src/index.css +1 -0
- package/components/color-picker/src/index.vue.d.ts +36 -65
- package/components/date-picker/index.css +1 -0
- package/components/date-picker/index.d.ts +1 -1
- package/components/date-picker/index.js +42 -55
- package/components/date-picker/src/ctx.d.ts +41 -34
- package/components/date-picker/src/ctx.js +1 -31
- package/components/date-picker/src/index.css +1 -0
- package/components/date-picker/src/index.vue.d.ts +122 -133
- package/components/date-picker/src/types.d.ts +9 -9
- package/components/date-picker/src/types.js +1 -11
- package/components/esri-input-geojson/index.css +8 -6
- package/components/esri-input-geojson/index.d.ts +1 -1
- package/components/esri-input-geojson/index.js +417 -535
- package/components/esri-input-geojson/src/append.vue.d.ts +7 -7
- package/components/esri-input-geojson/src/const.d.ts +1 -1
- package/components/esri-input-geojson/src/const.js +1 -33
- package/components/esri-input-geojson/src/ctx.d.ts +44 -35
- package/components/esri-input-geojson/src/ctx.js +1 -128
- package/components/esri-input-geojson/src/default-view.vue.d.ts +9 -9
- package/components/esri-input-geojson/src/index.css +1 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +142 -119
- package/components/esri-input-geojson/src/types.d.ts +1 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +23 -22
- package/components/form/index.css +1 -0
- package/components/form/index.d.ts +1 -1
- package/components/form/index.js +57 -87
- package/components/form/src/ctx.d.ts +176 -204
- package/components/form/src/ctx.js +1 -61
- package/components/form/src/index.css +1 -0
- package/components/form/src/index.vue.d.ts +515 -601
- package/components/form/src/types.d.ts +3 -3
- package/components/form/src/utils.d.ts +1 -1
- package/components/form/src/utils.js +1 -55
- package/components/form-item/index.css +1 -0
- package/components/form-item/index.d.ts +1 -1
- package/components/form-item/index.js +22 -50
- package/components/form-item/src/ctx.d.ts +9 -9
- package/components/form-item/src/ctx.js +1 -53
- package/components/form-item/src/index.css +1 -0
- package/components/form-item/src/index.vue.d.ts +26 -26
- package/components/form-item/src/types.d.ts +1 -1
- package/components/form-item-renderer/index.css +1 -0
- package/components/form-item-renderer/index.d.ts +1 -1
- package/components/form-item-renderer/index.js +10 -18
- package/components/form-item-renderer/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/ctx.js +1 -16
- package/components/form-item-renderer/src/index.css +1 -0
- package/components/form-item-renderer/src/index.vue.d.ts +9 -9
- package/components/form-item-renderer/src/symbols.js +1 -3
- package/components/form-item-renderer-template/index.css +1 -0
- package/components/form-item-renderer-template/index.d.ts +1 -1
- package/components/form-item-renderer-template/index.js +6 -13
- package/components/form-item-renderer-template/src/ctx.js +1 -9
- package/components/form-item-renderer-template/src/index.css +1 -0
- package/components/form-item-renderer-template/src/index.vue.d.ts +2 -2
- package/components/geoinput/index.css +1 -0
- package/components/geoinput/index.d.ts +1 -1
- package/components/geoinput/index.js +45 -43
- package/components/geoinput/src/ctx.d.ts +42 -28
- package/components/geoinput/src/ctx.js +1 -39
- package/components/geoinput/src/index.css +1 -0
- package/components/geoinput/src/index.vue.d.ts +111 -223
- package/components/geoinput/src/types.d.ts +3 -3
- package/components/geoinput-read/index.css +1 -0
- package/components/geoinput-read/index.d.ts +1 -1
- package/components/geoinput-read/index.js +120 -160
- package/components/geoinput-read/src/append.vue.d.ts +4 -4
- package/components/geoinput-read/src/core.vue.d.ts +130 -104
- package/components/geoinput-read/src/ctx.d.ts +42 -30
- package/components/geoinput-read/src/ctx.js +1 -66
- package/components/geoinput-read/src/index.css +1 -0
- package/components/geoinput-read/src/index.vue.d.ts +108 -151
- package/components/geoinput-read/src/types.d.ts +1 -1
- package/components/geoinput-update/index.css +9 -7
- package/components/geoinput-update/index.d.ts +1 -1
- package/components/geoinput-update/index.js +335 -366
- package/components/geoinput-update/src/append.vue.d.ts +5 -5
- package/components/geoinput-update/src/ctx.d.ts +38 -28
- package/components/geoinput-update/src/ctx.js +1 -85
- package/components/geoinput-update/src/index.css +1 -0
- package/components/geoinput-update/src/index.vue.d.ts +120 -98
- package/components/geoinput-update/src/types.d.ts +2 -2
- package/components/input/index.css +1 -0
- package/components/input/index.d.ts +1 -1
- package/components/input/index.js +43 -60
- package/components/input/src/ctx.d.ts +31 -25
- package/components/input/src/ctx.js +1 -46
- package/components/input/src/index.css +1 -0
- package/components/input/src/index.vue.d.ts +94 -110
- package/components/input/src/types.d.ts +2 -2
- package/components/input-link/index.css +1 -0
- package/components/input-link/index.d.ts +1 -1
- package/components/input-link/index.js +71 -92
- package/components/input-link/src/ctx.d.ts +26 -20
- package/components/input-link/src/ctx.js +1 -66
- package/components/input-link/src/index.css +1 -0
- package/components/input-link/src/index.vue.d.ts +72 -116
- package/components/input-number/index.css +1 -0
- package/components/input-number/index.d.ts +1 -1
- package/components/input-number/index.js +37 -45
- package/components/input-number/src/ctx.d.ts +15 -15
- package/components/input-number/src/ctx.js +1 -38
- package/components/input-number/src/index.css +1 -0
- package/components/input-number/src/index.vue.d.ts +42 -65
- package/components/input-number/src/types.d.ts +1 -1
- package/components/radio/index.css +1 -0
- package/components/radio/index.d.ts +1 -1
- package/components/radio/index.js +45 -50
- package/components/radio/src/ctx.d.ts +11 -11
- package/components/radio/src/ctx.js +1 -39
- package/components/radio/src/index.css +1 -0
- package/components/radio/src/index.vue.d.ts +41 -60
- package/components/radio/src/types.d.ts +1 -1
- package/components/select/index.css +1 -0
- package/components/select/index.d.ts +1 -1
- package/components/select/index.js +59 -64
- package/components/select/src/ctx.d.ts +39 -41
- package/components/select/src/ctx.js +1 -40
- package/components/select/src/index.css +1 -0
- package/components/select/src/index.vue.d.ts +130 -162
- package/components/select/src/types.d.ts +2 -2
- package/components/slider/index.css +1 -0
- package/components/slider/index.d.ts +1 -1
- package/components/slider/index.js +33 -50
- package/components/slider/src/ctx.d.ts +18 -18
- package/components/slider/src/ctx.js +1 -29
- package/components/slider/src/index.css +1 -0
- package/components/slider/src/index.vue.d.ts +62 -81
- package/components/switch/index.css +1 -0
- package/components/switch/index.d.ts +1 -1
- package/components/switch/index.js +33 -50
- package/components/switch/src/ctx.d.ts +22 -22
- package/components/switch/src/ctx.js +1 -31
- package/components/switch/src/index.css +1 -0
- package/components/switch/src/index.vue.d.ts +65 -83
- package/components/switch/src/types.d.ts +1 -1
- package/components/templates-default/index.css +1 -0
- package/components/templates-default/index.d.ts +1 -1
- package/components/templates-default/index.js +243 -172
- package/components/templates-default/src/ctx.d.ts +1 -1
- package/components/templates-default/src/ctx.js +1 -18
- package/components/templates-default/src/index.css +1 -0
- package/components/templates-default/src/index.vue.d.ts +9 -9
- package/components/templates-default/src/types.d.ts +16 -16
- package/components/templates-element-plus/index.css +1 -0
- package/components/templates-element-plus/index.d.ts +1 -1
- package/components/templates-element-plus/index.js +66 -36
- package/components/templates-element-plus/src/ctx.js +1 -9
- package/components/templates-element-plus/src/index.css +1 -0
- package/components/templates-element-plus/src/index.vue.d.ts +7 -7
- package/components/templates-element-plus/src/types.d.ts +1 -1
- package/components/templates-esri/index.css +1 -0
- package/components/templates-esri/index.d.ts +1 -1
- package/components/templates-esri/index.js +25 -24
- package/components/templates-esri/src/ctx.d.ts +1 -1
- package/components/templates-esri/src/ctx.js +1 -11
- package/components/templates-esri/src/index.css +1 -0
- package/components/templates-esri/src/index.vue.d.ts +6 -6
- package/components/templates-esri/src/types.d.ts +1 -1
- package/components/templates-layout/index.css +1 -0
- package/components/templates-layout/index.d.ts +1 -1
- package/components/templates-layout/index.js +96 -63
- package/components/templates-layout/src/ctx.js +1 -9
- package/components/templates-layout/src/index.css +1 -0
- package/components/templates-layout/src/index.vue.d.ts +7 -7
- package/components/templates-layout/src/types.d.ts +3 -3
- package/components/templates-mapbox/index.css +1 -0
- package/components/templates-mapbox/index.d.ts +1 -1
- package/components/templates-mapbox/index.js +25 -24
- package/components/templates-mapbox/src/ctx.d.ts +1 -1
- package/components/templates-mapbox/src/ctx.js +1 -11
- package/components/templates-mapbox/src/index.css +1 -0
- package/components/templates-mapbox/src/index.vue.d.ts +6 -6
- package/components/templates-mapbox/src/types.d.ts +1 -1
- package/components/upload/index.css +11 -9
- package/components/upload/index.d.ts +1 -1
- package/components/upload/index.js +283 -296
- package/components/upload/src/ctx.d.ts +32 -22
- package/components/upload/src/ctx.js +1 -45
- package/components/upload/src/file.vue.d.ts +28 -19
- package/components/upload/src/index.css +1 -0
- package/components/upload/src/index.vue.d.ts +63 -62
- package/components/upload-plus/index.css +1 -0
- package/components/upload-plus/index.d.ts +1 -1
- package/components/upload-plus/index.js +911 -9539
- package/components/upload-plus/src/api.d.ts +3 -3
- package/components/upload-plus/src/api.js +21 -18114
- package/components/upload-plus/src/const.js +1 -12
- package/components/upload-plus/src/ctx.d.ts +13 -13
- package/components/upload-plus/src/ctx.js +1 -58
- package/components/upload-plus/src/index.css +1 -0
- package/components/upload-plus/src/index.vue.d.ts +31 -48
- package/components/upload-plus/src/types.d.ts +1 -1
- package/components/van-cascader/index.css +1 -0
- package/components/van-cascader/index.d.ts +1 -1
- package/components/van-cascader/index.js +47 -55
- package/components/van-cascader/src/ctx.d.ts +13 -13
- package/components/van-cascader/src/ctx.js +1 -22
- package/components/van-cascader/src/index.css +1 -0
- package/components/van-cascader/src/index.vue.d.ts +40 -57
- package/components/var-datetime-picker/index.css +1 -0
- package/components/var-datetime-picker/index.d.ts +1 -1
- package/components/var-datetime-picker/index.js +137 -168
- package/components/var-datetime-picker/src/const.js +1 -91
- package/components/var-datetime-picker/src/ctx.d.ts +10 -10
- package/components/var-datetime-picker/src/ctx.js +1 -43
- package/components/var-datetime-picker/src/index.css +1 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +26 -42
- package/components/var-datetime-picker/src/types.d.ts +1 -1
- package/components/vditor/index.css +1 -0
- package/components/vditor/index.d.ts +1 -1
- package/components/vditor/index.js +22 -17
- package/components/vditor/src/ctx.js +1 -15
- package/components/vditor/src/index.css +1 -0
- package/components/vditor/src/index.vue.d.ts +4 -3
- package/components/vditor/src/types.d.ts +1 -1
- package/composables/index.css +1 -0
- package/composables/index.js +1 -104
- package/composables/useForm.d.ts +2 -2
- package/composables/useSourceManager.d.ts +1 -1
- package/index.css +127 -20
- package/index.esm.js +1 -44
- package/package.json +1 -1
- package/shared/const/index.css +1 -0
- package/shared/const/index.d.ts +1 -1
- package/shared/const/index.js +1 -56
- package/shared/element-plus/ctx.d.ts +28 -26
- package/shared/element-plus/index.css +1 -0
- package/shared/element-plus/index.js +1 -220
- package/shared/element-plus/instances.d.ts +45 -38
- package/shared/form/index.css +1 -0
- package/shared/form/index.js +1 -30
- package/shared/helper/index.css +1 -0
- package/shared/helper/index.js +1 -9
- package/shared/index.css +1 -0
- package/shared/index.js +1 -56
- package/shared/infer-prop/index.css +1 -0
- package/shared/infer-prop/index.d.ts +1 -1
- package/shared/infer-prop/index.js +1 -34
- package/shared/progress-it/index.css +1 -0
- package/shared/progress-it/index.d.ts +4 -4
- package/shared/progress-it/index.js +1 -57
- package/shared/rules/index.css +1 -0
- package/shared/rules/index.js +1 -32
- package/shared/types/form/index.css +1 -0
- package/shared/types/index.css +1 -0
- package/shared/types/source/index.css +1 -0
- package/shared/types/source/index.d.ts +2 -2
- package/shared/types/source-manager/index.css +1 -0
- package/shared/upload/index.css +1 -0
- package/shared/upload/index.js +1 -767
|
@@ -32,15 +32,7 @@ const emits = {
|
|
|
32
32
|
setData: (e) => e
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
var
|
|
36
|
-
const target = sfc.__vccOpts || sfc;
|
|
37
|
-
for (const [key, val] of props) {
|
|
38
|
-
target[key] = val;
|
|
39
|
-
}
|
|
40
|
-
return target;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const _sfc_main = defineComponent({
|
|
35
|
+
var script = defineComponent({
|
|
44
36
|
name: "VkfTemplatesDefault",
|
|
45
37
|
components: {
|
|
46
38
|
VkfFormItemRendererTemplate,
|
|
@@ -75,7 +67,8 @@ const _sfc_main = defineComponent({
|
|
|
75
67
|
};
|
|
76
68
|
}
|
|
77
69
|
});
|
|
78
|
-
|
|
70
|
+
|
|
71
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
79
72
|
const _component_VkfButton = resolveComponent("VkfButton");
|
|
80
73
|
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
81
74
|
const _component_VkfColorPicker = resolveComponent("VkfColorPicker");
|
|
@@ -90,187 +83,265 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
90
83
|
const _component_VkfCascader = resolveComponent("VkfCascader");
|
|
91
84
|
const _component_VkfInputLink = resolveComponent("VkfInputLink");
|
|
92
85
|
const _component_VkfSlider = resolveComponent("VkfSlider");
|
|
93
|
-
return openBlock(), createElementBlock(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
86
|
+
return openBlock(), createElementBlock(
|
|
87
|
+
Fragment,
|
|
88
|
+
null,
|
|
89
|
+
[createVNode(_component_VkfFormItemRendererTemplate, {
|
|
90
|
+
type: "VkfButton"
|
|
91
|
+
}, {
|
|
92
|
+
default: withCtx(({
|
|
93
|
+
data: sourceData,
|
|
94
|
+
templateIf
|
|
95
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
96
|
+
_component_VkfButton,
|
|
97
|
+
normalizeProps(mergeProps({
|
|
98
|
+
key: 0
|
|
99
|
+
}, sourceData)),
|
|
100
|
+
null,
|
|
101
|
+
16
|
|
102
|
+
/* FULL_PROPS */
|
|
103
|
+
)) : createCommentVNode("v-if", true)]),
|
|
98
104
|
_: 1
|
|
99
|
-
|
|
100
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
/* STABLE */
|
|
106
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
107
|
+
type: "VkfColorPicker"
|
|
108
|
+
}, {
|
|
109
|
+
default: withCtx(({
|
|
110
|
+
data: sourceData,
|
|
111
|
+
templateIf,
|
|
112
|
+
raw
|
|
113
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfColorPicker, mergeProps({
|
|
114
|
+
key: 0,
|
|
115
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
116
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
117
|
+
k: sourceData.prop,
|
|
118
|
+
v: $event
|
|
119
|
+
})
|
|
120
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
111
121
|
_: 1
|
|
112
|
-
|
|
113
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
/* STABLE */
|
|
123
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
124
|
+
type: "VkfUpload"
|
|
125
|
+
}, {
|
|
126
|
+
default: withCtx(({
|
|
127
|
+
data: sourceData,
|
|
128
|
+
templateIf,
|
|
129
|
+
raw
|
|
130
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfUpload, mergeProps({
|
|
131
|
+
key: 0,
|
|
132
|
+
fileList: _ctx.getFormDataValue(raw),
|
|
133
|
+
"onUpdate:fileList": ($event) => _ctx.$emit("setData", {
|
|
134
|
+
k: sourceData.prop,
|
|
135
|
+
v: $event
|
|
136
|
+
})
|
|
137
|
+
}, sourceData), null, 16, ["fileList", "onUpdate:fileList"])) : createCommentVNode("v-if", true)]),
|
|
124
138
|
_: 1
|
|
125
|
-
|
|
126
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
139
|
+
/* STABLE */
|
|
140
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
141
|
+
type: "VkfCheckbox"
|
|
142
|
+
}, {
|
|
143
|
+
default: withCtx(({
|
|
144
|
+
data: sourceData,
|
|
145
|
+
templateIf,
|
|
146
|
+
raw
|
|
147
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfCheckbox, mergeProps({
|
|
148
|
+
key: 0,
|
|
149
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
150
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
151
|
+
k: sourceData.prop,
|
|
152
|
+
v: $event
|
|
153
|
+
})
|
|
154
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
137
155
|
_: 1
|
|
138
|
-
|
|
139
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
156
|
+
/* STABLE */
|
|
157
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
158
|
+
type: "VkfRadio"
|
|
159
|
+
}, {
|
|
160
|
+
default: withCtx(({
|
|
161
|
+
data: sourceData,
|
|
162
|
+
templateIf,
|
|
163
|
+
raw
|
|
164
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfRadio, mergeProps({
|
|
165
|
+
key: 0,
|
|
166
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
167
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
168
|
+
k: sourceData.prop,
|
|
169
|
+
v: $event
|
|
170
|
+
})
|
|
171
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
150
172
|
_: 1
|
|
151
|
-
|
|
152
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
173
|
+
/* STABLE */
|
|
174
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
175
|
+
type: "VkfInput"
|
|
176
|
+
}, {
|
|
177
|
+
default: withCtx(({
|
|
178
|
+
data: sourceData,
|
|
179
|
+
templateIf,
|
|
180
|
+
raw
|
|
181
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInput, mergeProps({
|
|
182
|
+
key: 0,
|
|
183
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
184
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
185
|
+
k: sourceData.prop,
|
|
186
|
+
v: $event
|
|
187
|
+
})
|
|
188
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
163
189
|
_: 1
|
|
164
|
-
|
|
165
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
190
|
+
/* STABLE */
|
|
191
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
192
|
+
type: "VkfSwitch"
|
|
193
|
+
}, {
|
|
194
|
+
default: withCtx(({
|
|
195
|
+
data: sourceData,
|
|
196
|
+
templateIf,
|
|
197
|
+
raw
|
|
198
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSwitch, mergeProps({
|
|
199
|
+
key: 0,
|
|
200
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
201
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
202
|
+
k: sourceData.prop,
|
|
203
|
+
v: $event
|
|
204
|
+
})
|
|
205
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
176
206
|
_: 1
|
|
177
|
-
|
|
178
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
207
|
+
/* STABLE */
|
|
208
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
209
|
+
type: "VkfSelect"
|
|
210
|
+
}, {
|
|
211
|
+
default: withCtx(({
|
|
212
|
+
data: sourceData,
|
|
213
|
+
templateIf,
|
|
214
|
+
raw
|
|
215
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSelect, mergeProps({
|
|
216
|
+
key: 0,
|
|
217
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
218
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
219
|
+
k: sourceData.prop,
|
|
220
|
+
v: $event
|
|
221
|
+
})
|
|
222
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
189
223
|
_: 1
|
|
190
|
-
|
|
191
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
224
|
+
/* STABLE */
|
|
225
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
226
|
+
type: "VkfDatePicker"
|
|
227
|
+
}, {
|
|
228
|
+
default: withCtx(({
|
|
229
|
+
data: sourceData,
|
|
230
|
+
templateIf,
|
|
231
|
+
raw
|
|
232
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfDatePicker, mergeProps({
|
|
233
|
+
key: 0,
|
|
234
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
235
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
236
|
+
k: sourceData.prop,
|
|
237
|
+
v: $event
|
|
238
|
+
})
|
|
239
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
202
240
|
_: 1
|
|
203
|
-
|
|
204
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
241
|
+
/* STABLE */
|
|
242
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
243
|
+
type: "VkfInputNumber"
|
|
244
|
+
}, {
|
|
245
|
+
default: withCtx(({
|
|
246
|
+
data: sourceData,
|
|
247
|
+
templateIf,
|
|
248
|
+
raw
|
|
249
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputNumber, mergeProps({
|
|
250
|
+
key: 0,
|
|
251
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
252
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
253
|
+
k: sourceData.prop,
|
|
254
|
+
v: $event
|
|
255
|
+
})
|
|
256
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
215
257
|
_: 1
|
|
216
|
-
|
|
217
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
258
|
+
/* STABLE */
|
|
259
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
260
|
+
type: "VkfCascader"
|
|
261
|
+
}, {
|
|
262
|
+
default: withCtx(({
|
|
263
|
+
data: sourceData,
|
|
264
|
+
templateIf,
|
|
265
|
+
raw
|
|
266
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfCascader, mergeProps({
|
|
267
|
+
key: 0,
|
|
268
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
269
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
270
|
+
k: sourceData.prop,
|
|
271
|
+
v: $event
|
|
272
|
+
})
|
|
273
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
228
274
|
_: 1
|
|
229
|
-
|
|
230
|
-
createCommentVNode(" VkfInputLink "),
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
275
|
+
/* STABLE */
|
|
276
|
+
}), createCommentVNode(" VkfInputLink "), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
277
|
+
type: "VkfInputLink"
|
|
278
|
+
}, {
|
|
279
|
+
default: withCtx(({
|
|
280
|
+
data: sourceData,
|
|
281
|
+
templateIf,
|
|
282
|
+
raw
|
|
283
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputLink, mergeProps({
|
|
284
|
+
key: 0,
|
|
285
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
286
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
287
|
+
k: sourceData.prop,
|
|
288
|
+
v: $event
|
|
289
|
+
})
|
|
290
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
242
291
|
_: 1
|
|
243
|
-
|
|
244
|
-
createCommentVNode(" VkfSlider "),
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
292
|
+
/* STABLE */
|
|
293
|
+
}), createCommentVNode(" VkfSlider "), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
294
|
+
type: "VkfSlider"
|
|
295
|
+
}, {
|
|
296
|
+
default: withCtx(({
|
|
297
|
+
data: sourceData,
|
|
298
|
+
templateIf,
|
|
299
|
+
raw
|
|
300
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSlider, mergeProps({
|
|
301
|
+
key: 0,
|
|
302
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
303
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
304
|
+
k: sourceData.prop,
|
|
305
|
+
v: $event
|
|
306
|
+
})
|
|
307
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
256
308
|
_: 1
|
|
257
|
-
|
|
258
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
309
|
+
/* STABLE */
|
|
310
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
311
|
+
type: "Component"
|
|
312
|
+
}, {
|
|
313
|
+
default: withCtx(({
|
|
314
|
+
data: props,
|
|
315
|
+
raw,
|
|
316
|
+
templateIf
|
|
317
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
318
|
+
resolveDynamicComponent(typeof raw.is === "function" ? raw.is(raw) : raw.is),
|
|
319
|
+
normalizeProps(mergeProps({
|
|
320
|
+
key: 0
|
|
321
|
+
}, _ctx.pickObject(props, {
|
|
322
|
+
excludes: ["is"]
|
|
323
|
+
}))),
|
|
324
|
+
null,
|
|
325
|
+
16
|
|
326
|
+
/* FULL_PROPS */
|
|
327
|
+
)) : createCommentVNode("v-if", true)]),
|
|
262
328
|
_: 1
|
|
263
|
-
|
|
264
|
-
|
|
329
|
+
/* STABLE */
|
|
330
|
+
})],
|
|
331
|
+
64
|
|
332
|
+
/* STABLE_FRAGMENT */
|
|
333
|
+
);
|
|
265
334
|
}
|
|
266
|
-
|
|
335
|
+
|
|
336
|
+
script.render = render;
|
|
337
|
+
script.__file = "templates-default/src/index.vue";
|
|
267
338
|
|
|
268
339
|
var types = /*#__PURE__*/Object.freeze({
|
|
269
340
|
__proto__: null
|
|
270
341
|
});
|
|
271
342
|
|
|
272
|
-
|
|
273
|
-
app.component(
|
|
343
|
+
script.install = (app) => {
|
|
344
|
+
app.component(script.name, script);
|
|
274
345
|
};
|
|
275
346
|
|
|
276
|
-
export { VkfTemplatesDefault, types as __VkfTemplatesDefault,
|
|
347
|
+
export { script as VkfTemplatesDefault, types as __VkfTemplatesDefault, script as default };
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const createIntoUndefined = () => NOOP;
|
|
4
|
-
const props = {
|
|
5
|
-
data: {
|
|
6
|
-
type: Object,
|
|
7
|
-
default: () => ({})
|
|
8
|
-
},
|
|
9
|
-
createIntoUndefined: {
|
|
10
|
-
type: Function,
|
|
11
|
-
default: createIntoUndefined
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
const emits = {
|
|
15
|
-
setData: (e) => e
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { emits, props };
|
|
1
|
+
import{NOOP as e}from"@vunk/core/shared/utils-function";const n=()=>e,o={data:{type:Object,default:()=>({})},createIntoUndefined:{type:Function,default:n}},a={setData:t=>t};export{a as emits,o as props};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -15,14 +15,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
}) => import("@vunk/core").IntoUndefined;
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
18
|
-
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[]
|
|
19
|
-
excludes?: EX
|
|
20
|
-
includes?: KI[]
|
|
21
|
-
}
|
|
18
|
+
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[], KI extends keyof T>(data: T, opts?: {
|
|
19
|
+
excludes?: EX;
|
|
20
|
+
includes?: KI[];
|
|
21
|
+
}) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
22
22
|
getFormDataValue: (raw: CoreSource) => any;
|
|
23
23
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
-
setData: (e: import("@vunk/core").SetDataEvent
|
|
25
|
-
}, string, import("vue").
|
|
24
|
+
setData: (e: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
26
|
data: {
|
|
27
27
|
type: import("vue").PropType<Record<string, any>>;
|
|
28
28
|
default: () => {};
|
|
@@ -38,12 +38,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
38
|
}) => import("@vunk/core").IntoUndefined;
|
|
39
39
|
};
|
|
40
40
|
}>> & {
|
|
41
|
-
onSetData?: (
|
|
41
|
+
onSetData?: (e: import("@vunk/core").SetDataEvent) => any;
|
|
42
42
|
}, {
|
|
43
|
-
data:
|
|
43
|
+
data: {};
|
|
44
44
|
createIntoUndefined: (arg: {
|
|
45
45
|
raw: any;
|
|
46
46
|
data: Record<string, any>;
|
|
47
47
|
}) => import("@vunk/core").IntoUndefined;
|
|
48
|
-
}>;
|
|
48
|
+
}, {}>;
|
|
49
49
|
export default _default;
|
|
@@ -13,25 +13,25 @@ import { __VkfCascader } from '@vunk/form/components/cascader';
|
|
|
13
13
|
import { __VkfInputLink } from '@vunk/form/components/input-link';
|
|
14
14
|
import { __VkfSlider } from '@vunk/form/components/slider';
|
|
15
15
|
import { IntoUndefined, Func } from '@vunk/core';
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
16
|
+
export type VkfButtonSource<P extends string = string> = __VkfButton.Source<P>;
|
|
17
|
+
export type VkfInputSource<P extends string = string> = __VkfInput.Source<P>;
|
|
18
|
+
export type VkfDatePickerSource<P extends string = string> = __VkfDatePicker.Source<P>;
|
|
19
|
+
export type VkfSelectSource<P extends string = string> = __VkfSelect.Source<P>;
|
|
20
|
+
export type VkfSwitchSource<P extends string = string> = __VkfSwitch.Source<P>;
|
|
21
|
+
export type VkfInputNumberSource<P extends string = string> = __VkfInputNumber.Source<P>;
|
|
22
|
+
export type VkfRadioSource<P extends string = string> = __VkfRadio.Source<P>;
|
|
23
|
+
export type VkfCheckboxSource<P extends string = string> = __VkfCheckbox.Source<P>;
|
|
24
|
+
export type VkfUploadSource<P extends string = string> = __VkfUpload.Source<P>;
|
|
25
|
+
export type VkfColorPickerSource<P extends string = string> = __VkfColorPicker.Source<P>;
|
|
26
|
+
export type VkfCascaderSource<P extends string = string> = __VkfCascader.Source<P>;
|
|
27
|
+
export type VkfInputLinkSource<P extends string = string> = __VkfInputLink.Source<P>;
|
|
28
|
+
export type VkfSliderSource<P extends string = string> = __VkfSlider.Source<P>;
|
|
29
29
|
export interface ComponentSource extends BasicSource {
|
|
30
30
|
templateType: 'Component';
|
|
31
31
|
is: any;
|
|
32
32
|
}
|
|
33
|
-
export
|
|
34
|
-
export
|
|
33
|
+
export type CoreSource<P extends string = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P> | VkfInputNumberSource<P> | VkfRadioSource<P> | VkfCheckboxSource<P> | VkfUploadSource<P> | VkfColorPickerSource<P> | VkfButtonSource<P> | VkfCascaderSource<P> | VkfInputLinkSource<P> | VkfSliderSource<P>;
|
|
34
|
+
export type Source<P extends string = string> = CoreSource<P> | ComponentSource;
|
|
35
35
|
/**
|
|
36
36
|
* @example
|
|
37
37
|
* ```ts
|
|
@@ -47,7 +47,7 @@ export declare type Source<P extends string = string> = CoreSource<P> | Componen
|
|
|
47
47
|
* }
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
export
|
|
50
|
+
export type CreateIntoUndefined = Func<{
|
|
51
51
|
raw: any;
|
|
52
52
|
data: Record<string, any>;
|
|
53
53
|
}, IntoUndefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|