@vunk/form 1.1.76 → 1.1.79
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/_plugin-vue_export-helper.mjs +9 -0
- package/components/button/{index.js → index.mjs} +33 -29
- package/components/button/src/ctx.d.ts +30 -30
- package/components/button/src/index.vue.d.ts +69 -69
- package/components/cascader/index.css +0 -2
- package/components/cascader/{index.js → index.mjs} +22 -22
- package/components/cascader/src/ctx.d.ts +37 -45
- package/components/cascader/src/index.vue.d.ts +92 -92
- package/components/cascader/src/use.d.ts +1 -1
- package/components/checkbox/index.css +0 -9
- package/components/checkbox/{index.js → index.mjs} +45 -42
- package/components/checkbox/src/ctx.d.ts +29 -32
- package/components/checkbox/src/index.vue.d.ts +65 -65
- package/components/color-picker/{index.js → index.mjs} +24 -23
- package/components/color-picker/src/ctx.d.ts +29 -29
- package/components/color-picker/src/index.vue.d.ts +77 -64
- package/components/date-picker/{index.js → index.mjs} +28 -25
- package/components/date-picker/src/ctx.d.ts +49 -49
- package/components/date-picker/src/index.vue.d.ts +104 -104
- package/components/download-plus/index.css +0 -6
- package/components/download-plus/{index.js → index.mjs} +119 -147
- package/components/download-plus/src/api.d.ts +1 -1
- package/components/download-plus/src/ctx.d.ts +27 -26
- package/components/download-plus/src/index.vue.d.ts +59 -59
- package/components/esri-input-geojson/index.css +0 -10
- package/components/esri-input-geojson/index.mjs +1109 -0
- package/components/esri-input-geojson/src/append.vue.d.ts +1 -1
- package/components/esri-input-geojson/src/ctx.d.ts +49 -72
- package/components/esri-input-geojson/src/index.vue.d.ts +138 -158
- package/components/esri-input-geojson/src/types.d.ts +0 -1
- package/components/esri-input-geojson/src/viewer.vue.d.ts +18 -19
- package/components/form/{index.js → index.mjs} +31 -27
- package/components/form/src/ctx.d.ts +13 -297
- package/components/form/src/index.vue.d.ts +97 -659
- package/components/form-item/index.css +0 -8
- package/components/form-item/{index.js → index.mjs} +22 -19
- package/components/form-item/src/ctx.d.ts +13 -11
- package/components/form-item/src/index.vue.d.ts +20 -20
- package/components/form-item-renderer/{index.js → index.mjs} +9 -7
- package/components/form-item-renderer/src/index.vue.d.ts +1 -1
- package/components/form-item-renderer-template/{index.js → index.mjs} +7 -7
- package/components/geoinput/{index.js → index.mjs} +10 -17
- package/components/geoinput/src/ctx.d.ts +48 -60
- package/components/geoinput/src/index.vue.d.ts +114 -132
- package/components/geoinput-read/index.css +0 -2
- package/components/geoinput-read/{index.js → index.mjs} +101 -109
- package/components/geoinput-read/src/core.vue.d.ts +123 -142
- package/components/geoinput-read/src/ctx.d.ts +50 -74
- package/components/geoinput-read/src/index.vue.d.ts +102 -120
- package/components/geoinput-update/index.css +0 -6
- package/components/geoinput-update/index.mjs +399 -0
- package/components/geoinput-update/src/ctx.d.ts +49 -69
- package/components/geoinput-update/src/index.vue.d.ts +126 -141
- package/components/index.mjs +11 -0
- package/components/index2.mjs +306 -0
- package/components/index3.mjs +484 -0
- package/components/input/{index.js → index.mjs} +31 -27
- package/components/input/src/ctx.d.ts +47 -66
- package/components/input/src/index.vue.d.ts +101 -113
- package/components/input-link/index.css +0 -2
- package/components/input-link/index.mjs +151 -0
- package/components/input-link/src/ctx.d.ts +40 -56
- package/components/input-link/src/index.vue.d.ts +89 -101
- package/components/input-number/index.css +0 -2
- package/components/input-number/{index.js → index.mjs} +25 -25
- package/components/input-number/src/ctx.d.ts +31 -37
- package/components/input-number/src/index.vue.d.ts +71 -71
- package/components/radio/index.css +0 -6
- package/components/radio/{index.js → index.mjs} +50 -47
- package/components/radio/src/ctx.d.ts +29 -29
- package/components/radio/src/index.vue.d.ts +64 -64
- package/components/select/index.css +0 -2
- package/components/select/{index.js → index.mjs} +49 -48
- package/components/select/src/ctx.d.ts +31 -85
- package/components/select/src/index.vue.d.ts +121 -230
- package/components/slider/{index.js → index.mjs} +28 -24
- package/components/slider/src/ctx.d.ts +35 -35
- package/components/slider/src/index.vue.d.ts +93 -93
- package/components/switch/index.css +0 -2
- package/components/switch/{index.js → index.mjs} +29 -24
- package/components/switch/src/ctx.d.ts +40 -40
- package/components/switch/src/index.vue.d.ts +91 -91
- package/components/templates-default/index.mjs +302 -0
- package/components/templates-default/src/ctx.d.ts +2 -4
- package/components/templates-default/src/index.vue.d.ts +2 -8
- package/components/templates-element-plus/index.mjs +106 -0
- package/components/templates-esri/index.mjs +59 -0
- package/components/templates-layout/index.css +0 -3
- package/components/templates-layout/index.mjs +131 -0
- package/components/templates-mapbox/index.mjs +59 -0
- package/components/upload/index.css +0 -7
- package/components/upload/index.mjs +501 -0
- package/components/upload/src/ctx.d.ts +36 -38
- package/components/upload/src/file.vue.d.ts +22 -21
- package/components/upload/src/index.vue.d.ts +78 -78
- package/components/upload-plus/index.css +4 -8
- package/components/upload-plus/{index.js → index.mjs} +9497 -926
- package/components/upload-plus/src/api.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +25 -28
- package/components/upload-plus/src/index.vue.d.ts +58 -58
- package/components/van-cascader/index.css +0 -2
- package/components/van-cascader/{index.js → index.mjs} +41 -44
- package/components/van-cascader/src/ctx.d.ts +35 -35
- package/components/van-cascader/src/index.vue.d.ts +82 -82
- package/components/var-datetime-picker/index.css +0 -2
- package/components/var-datetime-picker/index.mjs +324 -0
- package/components/var-datetime-picker/src/ctx.d.ts +27 -26
- package/components/var-datetime-picker/src/index.vue.d.ts +57 -57
- package/components/vditor/{index.js → index.mjs} +9 -14
- package/components/vditor/src/ctx.d.ts +2 -1
- package/components/vditor/src/index.vue.d.ts +2 -3
- package/composables/index.mjs +85 -0
- package/composables/useSourceManager.d.ts +2 -2
- package/defaults.d.ts +1 -1
- package/index.css +4 -169
- package/index.d.ts +1 -1
- package/index.esm.js +44 -1
- package/package.json +246 -2
- package/shared/const/index.d.ts +1 -1
- package/shared/const/index.mjs +56 -0
- package/shared/element-plus/ctx.d.ts +26 -94
- package/shared/element-plus/index.mjs +285 -0
- package/shared/element-plus/instances.d.ts +29 -28
- package/shared/form/index.mjs +30 -0
- package/shared/helper/index.mjs +9 -0
- package/shared/index.mjs +1 -0
- package/shared/infer-prop/index.mjs +34 -0
- package/shared/progress-it/index.mjs +38 -0
- package/shared/rules/index.mjs +53 -0
- package/shared/upload/index.mjs +771 -0
- package/components/button/src/ctx.js +0 -1
- package/components/cascader/src/ctx.js +0 -1
- package/components/cascader/src/types.js +0 -1
- package/components/cascader/src/use.js +0 -1
- package/components/checkbox/src/ctx.js +0 -1
- package/components/checkbox/src/index.css +0 -1
- package/components/checkbox/src/types.js +0 -1
- package/components/color-picker/index.css +0 -1
- package/components/color-picker/src/ctx.js +0 -1
- package/components/color-picker/src/index.css +0 -1
- package/components/color-picker/src/types.js +0 -1
- package/components/date-picker/index.css +0 -1
- package/components/date-picker/src/ctx.js +0 -1
- package/components/date-picker/src/index.css +0 -1
- package/components/date-picker/src/types.js +0 -1
- package/components/download-plus/src/api.js +0 -1
- package/components/download-plus/src/const.js +0 -1
- package/components/download-plus/src/ctx.js +0 -1
- package/components/download-plus/src/index.css +0 -1
- package/components/download-plus/src/types.js +0 -1
- package/components/esri-input-geojson/index.js +0 -1563
- package/components/esri-input-geojson/src/const.js +0 -1
- package/components/esri-input-geojson/src/ctx.js +0 -1
- package/components/esri-input-geojson/src/index.css +0 -1
- package/components/esri-input-geojson/src/types.js +0 -1
- package/components/form/index.css +0 -1
- package/components/form/src/ctx.js +0 -1
- package/components/form/src/index.css +0 -1
- package/components/form/src/types.js +0 -1
- package/components/form/src/utils.js +0 -1
- package/components/form-item/src/ctx.js +0 -1
- package/components/form-item/src/index.css +0 -1
- package/components/form-item/src/types.js +0 -1
- package/components/form-item-renderer/index.css +0 -1
- package/components/form-item-renderer/src/ctx.js +0 -1
- package/components/form-item-renderer/src/index.css +0 -1
- package/components/form-item-renderer/src/symbols.js +0 -1
- package/components/form-item-renderer/src/types.js +0 -1
- package/components/form-item-renderer-template/index.css +0 -1
- package/components/form-item-renderer-template/src/ctx.js +0 -1
- package/components/form-item-renderer-template/src/index.css +0 -1
- package/components/form-item-renderer-template/src/types.js +0 -1
- package/components/geoinput/index.css +0 -1
- package/components/geoinput/src/ctx.js +0 -1
- package/components/geoinput/src/index.css +0 -1
- package/components/geoinput/src/types.js +0 -1
- package/components/geoinput-read/src/ctx.js +0 -1
- package/components/geoinput-read/src/index.css +0 -1
- package/components/geoinput-read/src/types.js +0 -1
- package/components/geoinput-update/index.js +0 -930
- package/components/geoinput-update/src/ctx.js +0 -1
- package/components/geoinput-update/src/index.css +0 -1
- package/components/geoinput-update/src/types.js +0 -1
- package/components/input/index.css +0 -1
- package/components/input/src/ctx.js +0 -1
- package/components/input/src/index.css +0 -1
- package/components/input/src/types.js +0 -1
- package/components/input-link/index.js +0 -163
- package/components/input-link/src/ctx.js +0 -1
- package/components/input-link/src/index.css +0 -1
- package/components/input-link/src/types.js +0 -1
- package/components/input-number/src/ctx.js +0 -1
- package/components/input-number/src/index.css +0 -1
- package/components/input-number/src/types.js +0 -1
- package/components/radio/src/ctx.js +0 -1
- package/components/radio/src/index.css +0 -1
- package/components/radio/src/types.js +0 -1
- package/components/select/src/ctx.js +0 -1
- package/components/select/src/index.css +0 -1
- package/components/select/src/types.js +0 -1
- package/components/slider/index.css +0 -1
- package/components/slider/src/ctx.js +0 -1
- package/components/slider/src/index.css +0 -1
- package/components/slider/src/types.js +0 -1
- package/components/switch/src/ctx.js +0 -1
- package/components/switch/src/index.css +0 -1
- package/components/switch/src/types.js +0 -1
- package/components/templates-default/index.css +0 -1
- package/components/templates-default/index.js +0 -347
- package/components/templates-default/src/ctx.js +0 -1
- package/components/templates-default/src/index.css +0 -1
- package/components/templates-default/src/types.js +0 -1
- package/components/templates-element-plus/index.css +0 -1
- package/components/templates-element-plus/index.js +0 -110
- package/components/templates-element-plus/src/ctx.js +0 -1
- package/components/templates-element-plus/src/index.css +0 -1
- package/components/templates-element-plus/src/types.js +0 -1
- package/components/templates-esri/index.css +0 -1
- package/components/templates-esri/index.js +0 -65
- package/components/templates-esri/src/ctx.js +0 -1
- package/components/templates-esri/src/index.css +0 -1
- package/components/templates-esri/src/types.js +0 -1
- package/components/templates-layout/index.js +0 -141
- package/components/templates-layout/src/ctx.js +0 -1
- package/components/templates-layout/src/index.css +0 -1
- package/components/templates-layout/src/types.js +0 -1
- package/components/templates-mapbox/index.css +0 -1
- package/components/templates-mapbox/index.js +0 -65
- package/components/templates-mapbox/src/ctx.js +0 -1
- package/components/templates-mapbox/src/index.css +0 -1
- package/components/templates-mapbox/src/types.js +0 -1
- package/components/upload/index.js +0 -565
- package/components/upload/src/ctx.js +0 -1
- package/components/upload/src/index.css +0 -1
- package/components/upload/src/types.js +0 -1
- package/components/upload-plus/src/api.js +0 -28
- package/components/upload-plus/src/const.js +0 -1
- package/components/upload-plus/src/ctx.js +0 -1
- package/components/upload-plus/src/index.css +0 -1
- package/components/upload-plus/src/types.js +0 -1
- package/components/van-cascader/src/ctx.js +0 -1
- package/components/van-cascader/src/index.css +0 -1
- package/components/van-cascader/src/types.js +0 -1
- package/components/var-datetime-picker/index.js +0 -299
- package/components/var-datetime-picker/src/const.js +0 -1
- package/components/var-datetime-picker/src/ctx.js +0 -1
- package/components/var-datetime-picker/src/index.css +0 -1
- package/components/var-datetime-picker/src/types.js +0 -1
- package/components/vditor/index.css +0 -1
- package/components/vditor/src/ctx.js +0 -1
- package/components/vditor/src/index.css +0 -1
- package/components/vditor/src/types.js +0 -1
- package/composables/index.css +0 -1
- package/composables/index.js +0 -1
- package/shared/const/index.css +0 -1
- package/shared/const/index.js +0 -1
- package/shared/element-plus/index.css +0 -1
- package/shared/element-plus/index.js +0 -1
- package/shared/form/index.css +0 -1
- package/shared/form/index.js +0 -1
- package/shared/helper/index.css +0 -1
- package/shared/helper/index.js +0 -1
- package/shared/index.css +0 -1
- package/shared/index.js +0 -1
- package/shared/infer-prop/index.css +0 -1
- package/shared/infer-prop/index.js +0 -1
- package/shared/progress-it/index.css +0 -1
- package/shared/progress-it/index.js +0 -1
- package/shared/rules/index.css +0 -1
- package/shared/rules/index.js +0 -1
- package/shared/types/form/index.css +0 -1
- package/shared/types/form/index.js +0 -1
- package/shared/types/index.css +0 -1
- package/shared/types/index.js +0 -1
- package/shared/types/source/index.css +0 -1
- package/shared/types/source/index.js +0 -1
- package/shared/types/source-manager/index.css +0 -1
- package/shared/types/source-manager/index.js +0 -1
- package/shared/upload/index.css +0 -1
- package/shared/upload/index.js +0 -1
- /package/{components/button/index.css → shared/types/form/index.mjs} +0 -0
- /package/{components/button/src/index.css → shared/types/index.mjs} +0 -0
- /package/{components/cascader/src/index.css → shared/types/source/index.mjs} +0 -0
- /package/{components/button/src/types.js → shared/types/source-manager/index.mjs} +0 -0
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { NOOP } from '@vunk/core/shared/utils-function';
|
|
2
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, normalizeProps, mergeProps, createCommentVNode, resolveDynamicComponent } from 'vue';
|
|
3
|
+
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
4
|
+
import { VkfInput } from '@vunk/form/components/input';
|
|
5
|
+
import { VkfSwitch } from '@vunk/form/components/switch';
|
|
6
|
+
import { VkfSelect } from '@vunk/form/components/select';
|
|
7
|
+
import { VkfDatePicker } from '@vunk/form/components/date-picker';
|
|
8
|
+
import { getValue } from '@vunk/core/shared/helper';
|
|
9
|
+
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
10
|
+
import { VkfInputNumber } from '@vunk/form/components/input-number';
|
|
11
|
+
import { VkfRadio } from '@vunk/form/components/radio';
|
|
12
|
+
import { VkfCheckbox } from '@vunk/form/components/checkbox';
|
|
13
|
+
import { VkfUpload } from '@vunk/form/components/upload';
|
|
14
|
+
import { VkfColorPicker } from '@vunk/form/components/color-picker';
|
|
15
|
+
import { VkfButton } from '@vunk/form/components/button';
|
|
16
|
+
import { VkfCascader } from '@vunk/form/components/cascader';
|
|
17
|
+
import { VkfInputLink } from '@vunk/form/components/input-link';
|
|
18
|
+
import { VkfSlider } from '@vunk/form/components/slider';
|
|
19
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
20
|
+
|
|
21
|
+
const createIntoUndefined = () => NOOP;
|
|
22
|
+
const props = {
|
|
23
|
+
data: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default: () => ({})
|
|
26
|
+
},
|
|
27
|
+
createIntoUndefined: {
|
|
28
|
+
type: Function,
|
|
29
|
+
default: createIntoUndefined
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const emits = {
|
|
33
|
+
setData: (e) => e
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var _sfc_main = defineComponent({
|
|
37
|
+
name: "VkfTemplatesDefault",
|
|
38
|
+
components: {
|
|
39
|
+
VkfFormItemRendererTemplate,
|
|
40
|
+
VkfInput,
|
|
41
|
+
VkfSwitch,
|
|
42
|
+
VkfSelect,
|
|
43
|
+
VkfDatePicker,
|
|
44
|
+
VkfInputNumber,
|
|
45
|
+
VkfRadio,
|
|
46
|
+
VkfCheckbox,
|
|
47
|
+
VkfUpload,
|
|
48
|
+
VkfColorPicker,
|
|
49
|
+
VkfButton,
|
|
50
|
+
VkfCascader,
|
|
51
|
+
VkfInputLink,
|
|
52
|
+
VkfSlider
|
|
53
|
+
},
|
|
54
|
+
emits,
|
|
55
|
+
props,
|
|
56
|
+
setup(props2) {
|
|
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
|
+
};
|
|
65
|
+
return {
|
|
66
|
+
pickObject,
|
|
67
|
+
getFormDataValue
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
73
|
+
const _component_VkfButton = resolveComponent("VkfButton");
|
|
74
|
+
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
75
|
+
const _component_VkfColorPicker = resolveComponent("VkfColorPicker");
|
|
76
|
+
const _component_VkfUpload = resolveComponent("VkfUpload");
|
|
77
|
+
const _component_VkfCheckbox = resolveComponent("VkfCheckbox");
|
|
78
|
+
const _component_VkfRadio = resolveComponent("VkfRadio");
|
|
79
|
+
const _component_VkfInput = resolveComponent("VkfInput");
|
|
80
|
+
const _component_VkfSwitch = resolveComponent("VkfSwitch");
|
|
81
|
+
const _component_VkfSelect = resolveComponent("VkfSelect");
|
|
82
|
+
const _component_VkfDatePicker = resolveComponent("VkfDatePicker");
|
|
83
|
+
const _component_VkfInputNumber = resolveComponent("VkfInputNumber");
|
|
84
|
+
const _component_VkfCascader = resolveComponent("VkfCascader");
|
|
85
|
+
const _component_VkfInputLink = resolveComponent("VkfInputLink");
|
|
86
|
+
const _component_VkfSlider = resolveComponent("VkfSlider");
|
|
87
|
+
return openBlock(), createElementBlock(
|
|
88
|
+
Fragment,
|
|
89
|
+
null,
|
|
90
|
+
[
|
|
91
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfButton" }, {
|
|
92
|
+
default: withCtx(({ data: sourceData, templateIf }) => [
|
|
93
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
94
|
+
_component_VkfButton,
|
|
95
|
+
normalizeProps(mergeProps({ key: 0 }, sourceData)),
|
|
96
|
+
null,
|
|
97
|
+
16
|
|
98
|
+
/* FULL_PROPS */
|
|
99
|
+
)) : createCommentVNode("v-if", true)
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
/* STABLE */
|
|
103
|
+
}),
|
|
104
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfColorPicker" }, {
|
|
105
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
106
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfColorPicker, mergeProps({
|
|
107
|
+
key: 0,
|
|
108
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
109
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
110
|
+
k: sourceData.prop,
|
|
111
|
+
v: $event
|
|
112
|
+
})
|
|
113
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
/* STABLE */
|
|
117
|
+
}),
|
|
118
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfUpload" }, {
|
|
119
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
120
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfUpload, mergeProps({
|
|
121
|
+
key: 0,
|
|
122
|
+
fileList: _ctx.getFormDataValue(raw),
|
|
123
|
+
"onUpdate:fileList": ($event) => _ctx.$emit("setData", {
|
|
124
|
+
k: sourceData.prop,
|
|
125
|
+
v: $event
|
|
126
|
+
})
|
|
127
|
+
}, sourceData), null, 16, ["fileList", "onUpdate:fileList"])) : createCommentVNode("v-if", true)
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
/* STABLE */
|
|
131
|
+
}),
|
|
132
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCheckbox" }, {
|
|
133
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
134
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfCheckbox, mergeProps({
|
|
135
|
+
key: 0,
|
|
136
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
137
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
138
|
+
k: sourceData.prop,
|
|
139
|
+
v: $event
|
|
140
|
+
})
|
|
141
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
/* STABLE */
|
|
145
|
+
}),
|
|
146
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfRadio" }, {
|
|
147
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
148
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfRadio, mergeProps({
|
|
149
|
+
key: 0,
|
|
150
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
151
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
152
|
+
k: sourceData.prop,
|
|
153
|
+
v: $event
|
|
154
|
+
})
|
|
155
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
/* STABLE */
|
|
159
|
+
}),
|
|
160
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInput" }, {
|
|
161
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
162
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInput, mergeProps({
|
|
163
|
+
key: 0,
|
|
164
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
165
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
166
|
+
k: sourceData.prop,
|
|
167
|
+
v: $event
|
|
168
|
+
})
|
|
169
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
/* STABLE */
|
|
173
|
+
}),
|
|
174
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSwitch" }, {
|
|
175
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
176
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSwitch, mergeProps({
|
|
177
|
+
key: 0,
|
|
178
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
179
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
180
|
+
k: sourceData.prop,
|
|
181
|
+
v: $event
|
|
182
|
+
})
|
|
183
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
/* STABLE */
|
|
187
|
+
}),
|
|
188
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSelect" }, {
|
|
189
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
190
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSelect, mergeProps({
|
|
191
|
+
key: 0,
|
|
192
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
193
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
194
|
+
k: sourceData.prop,
|
|
195
|
+
v: $event
|
|
196
|
+
})
|
|
197
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
/* STABLE */
|
|
201
|
+
}),
|
|
202
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfDatePicker" }, {
|
|
203
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
204
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfDatePicker, mergeProps({
|
|
205
|
+
key: 0,
|
|
206
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
207
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
208
|
+
k: sourceData.prop,
|
|
209
|
+
v: $event
|
|
210
|
+
})
|
|
211
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
/* STABLE */
|
|
215
|
+
}),
|
|
216
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputNumber" }, {
|
|
217
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
218
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputNumber, mergeProps({
|
|
219
|
+
key: 0,
|
|
220
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
221
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
222
|
+
k: sourceData.prop,
|
|
223
|
+
v: $event
|
|
224
|
+
})
|
|
225
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
/* STABLE */
|
|
229
|
+
}),
|
|
230
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCascader" }, {
|
|
231
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
232
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfCascader, 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)
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
/* STABLE */
|
|
243
|
+
}),
|
|
244
|
+
createCommentVNode(" VkfInputLink "),
|
|
245
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputLink" }, {
|
|
246
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
247
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputLink, mergeProps({
|
|
248
|
+
key: 0,
|
|
249
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
250
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
251
|
+
k: sourceData.prop,
|
|
252
|
+
v: $event
|
|
253
|
+
})
|
|
254
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
/* STABLE */
|
|
258
|
+
}),
|
|
259
|
+
createCommentVNode(" VkfSlider "),
|
|
260
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSlider" }, {
|
|
261
|
+
default: withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
262
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSlider, mergeProps({
|
|
263
|
+
key: 0,
|
|
264
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
265
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
266
|
+
k: sourceData.prop,
|
|
267
|
+
v: $event
|
|
268
|
+
})
|
|
269
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
/* STABLE */
|
|
273
|
+
}),
|
|
274
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "Component" }, {
|
|
275
|
+
default: withCtx(({ data: props, raw, templateIf }) => [
|
|
276
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
277
|
+
resolveDynamicComponent(typeof raw.is === "function" ? raw.is(raw) : raw.is),
|
|
278
|
+
normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(props, { excludes: ["is"] }))),
|
|
279
|
+
null,
|
|
280
|
+
16
|
|
281
|
+
/* FULL_PROPS */
|
|
282
|
+
)) : createCommentVNode("v-if", true)
|
|
283
|
+
]),
|
|
284
|
+
_: 1
|
|
285
|
+
/* STABLE */
|
|
286
|
+
})
|
|
287
|
+
],
|
|
288
|
+
64
|
|
289
|
+
/* STABLE_FRAGMENT */
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
var VkfTemplatesDefault = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-default\\src\\index.vue"]]);
|
|
293
|
+
|
|
294
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
295
|
+
__proto__: null
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
VkfTemplatesDefault.install = (app) => {
|
|
299
|
+
app.component(VkfTemplatesDefault.name, VkfTemplatesDefault);
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
export { VkfTemplatesDefault, types as __VkfTemplatesDefault, VkfTemplatesDefault as default };
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { SetDataEvent } from '@vunk/core/shared/types';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
|
+
import { CreateIntoUndefined } from './types';
|
|
3
4
|
export declare const props: {
|
|
4
5
|
data: {
|
|
5
6
|
type: PropType<Record<string, any>>;
|
|
6
7
|
default: () => {};
|
|
7
8
|
};
|
|
8
9
|
createIntoUndefined: {
|
|
9
|
-
type: PropType<
|
|
10
|
-
raw: any;
|
|
11
|
-
data: Record<string, any>;
|
|
12
|
-
}) => import("@vunk/core/shared/types").IntoUndefined>;
|
|
10
|
+
type: PropType<CreateIntoUndefined>;
|
|
13
11
|
default: (arg: {
|
|
14
12
|
raw: any;
|
|
15
13
|
data: Record<string, any>;
|
|
@@ -5,10 +5,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
default: () => {};
|
|
6
6
|
};
|
|
7
7
|
createIntoUndefined: {
|
|
8
|
-
type: import("vue").PropType<(
|
|
9
|
-
raw: any;
|
|
10
|
-
data: Record<string, any>;
|
|
11
|
-
}) => import("@vunk/core").IntoUndefined>;
|
|
8
|
+
type: import("vue").PropType<import("./types").CreateIntoUndefined>;
|
|
12
9
|
default: (arg: {
|
|
13
10
|
raw: any;
|
|
14
11
|
data: Record<string, any>;
|
|
@@ -28,10 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
25
|
default: () => {};
|
|
29
26
|
};
|
|
30
27
|
createIntoUndefined: {
|
|
31
|
-
type: import("vue").PropType<(
|
|
32
|
-
raw: any;
|
|
33
|
-
data: Record<string, any>;
|
|
34
|
-
}) => import("@vunk/core").IntoUndefined>;
|
|
28
|
+
type: import("vue").PropType<import("./types").CreateIntoUndefined>;
|
|
35
29
|
default: (arg: {
|
|
36
30
|
raw: any;
|
|
37
31
|
data: Record<string, any>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, normalizeProps, mergeProps, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from 'vue';
|
|
2
|
+
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
3
|
+
import { ElLink, ElDivider } from 'element-plus';
|
|
4
|
+
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
5
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
6
|
+
|
|
7
|
+
const props = {
|
|
8
|
+
data: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: () => ({})
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const emits = {};
|
|
14
|
+
|
|
15
|
+
var _sfc_main = defineComponent({
|
|
16
|
+
name: "VkfTemplatesElementPlus",
|
|
17
|
+
components: {
|
|
18
|
+
VkfFormItemRendererTemplate,
|
|
19
|
+
ElLink,
|
|
20
|
+
ElDivider
|
|
21
|
+
},
|
|
22
|
+
emits,
|
|
23
|
+
props,
|
|
24
|
+
setup() {
|
|
25
|
+
return {
|
|
26
|
+
pickObject
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32
|
+
const _component_ElLink = resolveComponent("ElLink");
|
|
33
|
+
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
34
|
+
const _component_ElDivider = resolveComponent("ElDivider");
|
|
35
|
+
return openBlock(), createElementBlock(
|
|
36
|
+
Fragment,
|
|
37
|
+
null,
|
|
38
|
+
[
|
|
39
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "ElLink" }, {
|
|
40
|
+
default: withCtx(({ data: props, templateIf }) => [
|
|
41
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
42
|
+
_component_ElLink,
|
|
43
|
+
normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(props, {
|
|
44
|
+
excludes: ["label"]
|
|
45
|
+
}))),
|
|
46
|
+
{
|
|
47
|
+
default: withCtx(() => [
|
|
48
|
+
createTextVNode(
|
|
49
|
+
toDisplayString(props.label),
|
|
50
|
+
1
|
|
51
|
+
/* TEXT */
|
|
52
|
+
)
|
|
53
|
+
]),
|
|
54
|
+
_: 2
|
|
55
|
+
/* DYNAMIC */
|
|
56
|
+
},
|
|
57
|
+
1040
|
|
58
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
59
|
+
)) : createCommentVNode("v-if", true)
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
/* STABLE */
|
|
63
|
+
}),
|
|
64
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "ElDivider" }, {
|
|
65
|
+
default: withCtx(({ data: props, templateIf }) => [
|
|
66
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
67
|
+
_component_ElDivider,
|
|
68
|
+
normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(props, {
|
|
69
|
+
excludes: ["label"]
|
|
70
|
+
}))),
|
|
71
|
+
{
|
|
72
|
+
default: withCtx(() => [
|
|
73
|
+
createElementVNode(
|
|
74
|
+
"span",
|
|
75
|
+
null,
|
|
76
|
+
toDisplayString(props.label),
|
|
77
|
+
1
|
|
78
|
+
/* TEXT */
|
|
79
|
+
)
|
|
80
|
+
]),
|
|
81
|
+
_: 2
|
|
82
|
+
/* DYNAMIC */
|
|
83
|
+
},
|
|
84
|
+
1040
|
|
85
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
86
|
+
)) : createCommentVNode("v-if", true)
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
/* STABLE */
|
|
90
|
+
})
|
|
91
|
+
],
|
|
92
|
+
64
|
|
93
|
+
/* STABLE_FRAGMENT */
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
var VkfTemplatesElementPlus = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-element-plus\\src\\index.vue"]]);
|
|
97
|
+
|
|
98
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
99
|
+
__proto__: null
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
VkfTemplatesElementPlus.install = (app) => {
|
|
103
|
+
app.component(VkfTemplatesElementPlus.name, VkfTemplatesElementPlus);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export { VkfTemplatesElementPlus, types as __VkfTemplatesElementPlus, VkfTemplatesElementPlus as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, mergeProps, createCommentVNode } from 'vue';
|
|
2
|
+
import { VkfEsriInputGeojson } from '@vunk/form/components/esri-input-geojson';
|
|
3
|
+
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
4
|
+
import { getValue } from '@vunk/core';
|
|
5
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
6
|
+
|
|
7
|
+
const props = {
|
|
8
|
+
data: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: () => ({})
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const emits = {
|
|
14
|
+
setData: (data) => data
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var _sfc_main = defineComponent({
|
|
18
|
+
name: "VkfTemplatesEsri",
|
|
19
|
+
components: {
|
|
20
|
+
VkfFormItemRendererTemplate,
|
|
21
|
+
VkfEsriInputGeojson
|
|
22
|
+
},
|
|
23
|
+
emits,
|
|
24
|
+
props,
|
|
25
|
+
setup() {
|
|
26
|
+
return {
|
|
27
|
+
getValue
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33
|
+
const _component_VkfEsriInputGeojson = resolveComponent("VkfEsriInputGeojson");
|
|
34
|
+
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
35
|
+
return openBlock(), createBlock(_component_VkfFormItemRendererTemplate, { type: "VkfEsriInputGeojson" }, {
|
|
36
|
+
default: withCtx(({ data: props, templateIf }) => [
|
|
37
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfEsriInputGeojson, mergeProps({ key: 0 }, props, {
|
|
38
|
+
"model-value": _ctx.getValue(_ctx.data, props.prop),
|
|
39
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
40
|
+
k: props.prop,
|
|
41
|
+
v: $event
|
|
42
|
+
})
|
|
43
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
44
|
+
]),
|
|
45
|
+
_: 1
|
|
46
|
+
/* STABLE */
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
var VkfTemplatesEsri = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-esri\\src\\index.vue"]]);
|
|
50
|
+
|
|
51
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
52
|
+
__proto__: null
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
VkfTemplatesEsri.install = (app) => {
|
|
56
|
+
app.component(VkfTemplatesEsri.name, VkfTemplatesEsri);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { VkfTemplatesEsri, types as __VkfTemplatesEsri, VkfTemplatesEsri as default };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, normalizeProps, mergeProps, resolveDynamicComponent, createCommentVNode } from 'vue';
|
|
2
|
+
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
3
|
+
import { ElRow, ElCol } from 'element-plus';
|
|
4
|
+
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
5
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
6
|
+
|
|
7
|
+
const props = {
|
|
8
|
+
data: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: () => ({})
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
var _sfc_main = defineComponent({
|
|
15
|
+
name: "VkfTemplatesLayout",
|
|
16
|
+
props,
|
|
17
|
+
components: {
|
|
18
|
+
ElRow,
|
|
19
|
+
ElCol,
|
|
20
|
+
VkfFormItemRendererTemplate
|
|
21
|
+
},
|
|
22
|
+
setup() {
|
|
23
|
+
return {
|
|
24
|
+
pickObject
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30
|
+
const _component_ElRow = resolveComponent("ElRow");
|
|
31
|
+
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
32
|
+
const _component_ElCol = resolveComponent("ElCol");
|
|
33
|
+
return openBlock(), createElementBlock(
|
|
34
|
+
Fragment,
|
|
35
|
+
null,
|
|
36
|
+
[
|
|
37
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "ElRow" }, {
|
|
38
|
+
default: withCtx(({ data: props, Renderer, raw, k, templateIf }) => [
|
|
39
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
40
|
+
_component_ElRow,
|
|
41
|
+
normalizeProps(mergeProps({ key: 0 }, props)),
|
|
42
|
+
{
|
|
43
|
+
default: withCtx(() => [
|
|
44
|
+
(openBlock(), createBlock(resolveDynamicComponent(Renderer), {
|
|
45
|
+
source: raw.templateSlots,
|
|
46
|
+
k: [...k, "templateSlots"]
|
|
47
|
+
}, null, 8, ["source", "k"]))
|
|
48
|
+
]),
|
|
49
|
+
_: 2
|
|
50
|
+
/* DYNAMIC */
|
|
51
|
+
},
|
|
52
|
+
1040
|
|
53
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
54
|
+
)) : createCommentVNode("v-if", true)
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
/* STABLE */
|
|
58
|
+
}),
|
|
59
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "ElCol" }, {
|
|
60
|
+
default: withCtx(({ data: props, Renderer, raw, k, templateIf }) => [
|
|
61
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
62
|
+
_component_ElCol,
|
|
63
|
+
normalizeProps(mergeProps({ key: 0 }, props)),
|
|
64
|
+
{
|
|
65
|
+
default: withCtx(() => [
|
|
66
|
+
(openBlock(), createBlock(resolveDynamicComponent(Renderer), {
|
|
67
|
+
source: raw.templateSlots,
|
|
68
|
+
k: [...k, "templateSlots"]
|
|
69
|
+
}, null, 8, ["source", "k"]))
|
|
70
|
+
]),
|
|
71
|
+
_: 2
|
|
72
|
+
/* DYNAMIC */
|
|
73
|
+
},
|
|
74
|
+
1040
|
|
75
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
76
|
+
)) : createCommentVNode("v-if", true)
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
/* STABLE */
|
|
80
|
+
}),
|
|
81
|
+
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfFlex" }, {
|
|
82
|
+
default: withCtx(({ data: props, Renderer, raw, k, templateIf }) => [
|
|
83
|
+
templateIf(_ctx.data) ? (openBlock(), createElementBlock(
|
|
84
|
+
"div",
|
|
85
|
+
mergeProps({
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "vkf-flex",
|
|
88
|
+
style: {
|
|
89
|
+
"justify-content": props.justify,
|
|
90
|
+
"flex-direction": props.direction,
|
|
91
|
+
"align-items": props.align,
|
|
92
|
+
"overflow": props.overflow,
|
|
93
|
+
"flex-grow": props.grow,
|
|
94
|
+
"flex-shrink": props.shrink,
|
|
95
|
+
"flex-basis": props.basis
|
|
96
|
+
}
|
|
97
|
+
}, _ctx.pickObject(
|
|
98
|
+
props,
|
|
99
|
+
{
|
|
100
|
+
excludes: ["justify", "direction", "align", "overflow", "grow", "shrink", "basis"]
|
|
101
|
+
}
|
|
102
|
+
)),
|
|
103
|
+
[
|
|
104
|
+
(openBlock(), createBlock(resolveDynamicComponent(Renderer), {
|
|
105
|
+
source: raw.templateSlots,
|
|
106
|
+
k: [...k, "templateSlots"]
|
|
107
|
+
}, null, 8, ["source", "k"]))
|
|
108
|
+
],
|
|
109
|
+
16
|
|
110
|
+
/* FULL_PROPS */
|
|
111
|
+
)) : createCommentVNode("v-if", true)
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
/* STABLE */
|
|
115
|
+
})
|
|
116
|
+
],
|
|
117
|
+
64
|
|
118
|
+
/* STABLE_FRAGMENT */
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
var VkfTemplatesLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-layout\\src\\index.vue"]]);
|
|
122
|
+
|
|
123
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
124
|
+
__proto__: null
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
VkfTemplatesLayout.install = (app) => {
|
|
128
|
+
app.component(VkfTemplatesLayout.name, VkfTemplatesLayout);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export { VkfTemplatesLayout, types as __VkfTemplatesLayout, VkfTemplatesLayout as default };
|