@vunk/form 1.1.64 → 1.1.66
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 +264 -289
- package/components/upload/src/ctx.d.ts +21 -16
- package/components/upload/src/ctx.js +1 -45
- package/components/upload/src/file.vue.d.ts +19 -19
- package/components/upload/src/index.css +1 -0
- package/components/upload/src/index.vue.d.ts +54 -62
- package/components/upload-plus/index.css +1 -0
- package/components/upload-plus/index.d.ts +1 -1
- package/components/upload-plus/index.js +912 -9540
- 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
package/index.css
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
|
|
2
|
+
|
|
3
|
+
|
|
2
4
|
.el-cascader.is-readonly{
|
|
3
5
|
--el-readonly-cursor: text;
|
|
4
6
|
--el-disabled-bg-color: initial;
|
|
@@ -10,6 +12,7 @@
|
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
|
|
15
|
+
|
|
13
16
|
.el-checkbox-group.is-readonly .el-checkbox,
|
|
14
17
|
.el-checkbox-group.is-readonly{
|
|
15
18
|
--el-readonly-cursor: auto;
|
|
@@ -49,6 +52,19 @@
|
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
.el-button.vkf-esri-input-geojson__upload{
|
|
61
|
+
border-color: transparent;
|
|
62
|
+
background-color: transparent;
|
|
63
|
+
color: inherit;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
52
68
|
.vkf-esri-input-geojson__map {
|
|
53
69
|
height: 350px;
|
|
54
70
|
}
|
|
@@ -82,11 +98,7 @@
|
|
|
82
98
|
flex: 1;
|
|
83
99
|
}
|
|
84
100
|
|
|
85
|
-
|
|
86
|
-
border-color: transparent;
|
|
87
|
-
background-color: transparent;
|
|
88
|
-
color: inherit;
|
|
89
|
-
}
|
|
101
|
+
|
|
90
102
|
|
|
91
103
|
|
|
92
104
|
|
|
@@ -112,6 +124,13 @@
|
|
|
112
124
|
}
|
|
113
125
|
|
|
114
126
|
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
115
134
|
.vk-geoinput-read-x{
|
|
116
135
|
display: flex;
|
|
117
136
|
flex-direction: column-reverse;
|
|
@@ -122,6 +141,16 @@
|
|
|
122
141
|
}
|
|
123
142
|
|
|
124
143
|
|
|
144
|
+
|
|
145
|
+
.vk-geoinput-upload-x.vk-geoinput-upload-x{
|
|
146
|
+
padding: 0;
|
|
147
|
+
}
|
|
148
|
+
.vk-geoinput-upload .el-upload{
|
|
149
|
+
padding: 8px 15px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
125
154
|
.geoinput-map-x{
|
|
126
155
|
margin-bottom: 18px;
|
|
127
156
|
height: 300px;
|
|
@@ -158,12 +187,7 @@
|
|
|
158
187
|
flex: 1;
|
|
159
188
|
}
|
|
160
189
|
|
|
161
|
-
|
|
162
|
-
padding: 0;
|
|
163
|
-
}
|
|
164
|
-
.vk-geoinput-upload .el-upload{
|
|
165
|
-
padding: 8px 15px;
|
|
166
|
-
}
|
|
190
|
+
|
|
167
191
|
|
|
168
192
|
|
|
169
193
|
|
|
@@ -173,6 +197,7 @@
|
|
|
173
197
|
}
|
|
174
198
|
|
|
175
199
|
|
|
200
|
+
|
|
176
201
|
.vkf-input-number-unit{
|
|
177
202
|
margin-left: 6px;
|
|
178
203
|
}
|
|
@@ -191,6 +216,7 @@
|
|
|
191
216
|
}
|
|
192
217
|
|
|
193
218
|
|
|
219
|
+
|
|
194
220
|
.el-radio-group.is-readonly,
|
|
195
221
|
.el-radio-group.is-readonly .el-radio-button{
|
|
196
222
|
--el-readonly-cursor: auto;
|
|
@@ -221,6 +247,7 @@
|
|
|
221
247
|
|
|
222
248
|
|
|
223
249
|
|
|
250
|
+
|
|
224
251
|
.el-select.is-readonly{
|
|
225
252
|
--el-readonly-cursor: text;
|
|
226
253
|
--el-disabled-bg-color: initial;
|
|
@@ -233,6 +260,9 @@
|
|
|
233
260
|
}
|
|
234
261
|
|
|
235
262
|
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
236
266
|
.el-switch.is-readonly{
|
|
237
267
|
--el-readonly-cursor: auto;
|
|
238
268
|
}
|
|
@@ -245,12 +275,33 @@
|
|
|
245
275
|
}
|
|
246
276
|
|
|
247
277
|
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
248
285
|
.vkf-flex {
|
|
249
286
|
display: flex;
|
|
250
287
|
}
|
|
251
288
|
|
|
252
289
|
|
|
253
290
|
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
.el-upload-list__item-status-label{
|
|
295
|
+
z-index: 1;
|
|
296
|
+
}
|
|
297
|
+
.el-upload-list__item .el-icon--close{
|
|
298
|
+
z-index: 1;
|
|
299
|
+
}
|
|
300
|
+
.el-upload-list__item-name .el-icon.el-icon--download-primary{
|
|
301
|
+
color: var(--el-color-primary);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
|
|
254
305
|
.vkf-upload {
|
|
255
306
|
width: 100%;
|
|
256
307
|
}
|
|
@@ -277,15 +328,6 @@
|
|
|
277
328
|
}
|
|
278
329
|
|
|
279
330
|
|
|
280
|
-
.el-upload-list__item-status-label{
|
|
281
|
-
z-index: 1;
|
|
282
|
-
}
|
|
283
|
-
.el-upload-list__item .el-icon--close{
|
|
284
|
-
z-index: 1;
|
|
285
|
-
}
|
|
286
|
-
.el-upload-list__item-name .el-icon.el-icon--download-primary{
|
|
287
|
-
color: var(--el-color-primary);
|
|
288
|
-
}
|
|
289
331
|
|
|
290
332
|
|
|
291
333
|
@keyframes hide {
|
|
@@ -374,6 +416,7 @@
|
|
|
374
416
|
}
|
|
375
417
|
|
|
376
418
|
|
|
419
|
+
|
|
377
420
|
.vkf-van-cascader .el-select{
|
|
378
421
|
--el-readonly-cursor: pointer;
|
|
379
422
|
}
|
|
@@ -382,6 +425,7 @@
|
|
|
382
425
|
}
|
|
383
426
|
|
|
384
427
|
|
|
428
|
+
|
|
385
429
|
:root{
|
|
386
430
|
--color-primary: var(--el-color-primary);
|
|
387
431
|
}
|
|
@@ -399,3 +443,66 @@
|
|
|
399
443
|
padding-left: var(--date-picker-title-padding);
|
|
400
444
|
padding-right: var(--date-picker-title-padding);
|
|
401
445
|
}
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
package/index.esm.js
CHANGED
|
@@ -1,44 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export * from '@vunk/form/components/form';
|
|
3
|
-
import { VkfFormItemRenderer } from '@vunk/form/components/form-item-renderer';
|
|
4
|
-
export * from '@vunk/form/components/form-item-renderer';
|
|
5
|
-
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
6
|
-
export * from '@vunk/form/components/form-item-renderer-template';
|
|
7
|
-
import { VkfTemplatesLayout } from '@vunk/form/components/templates-layout';
|
|
8
|
-
export * from '@vunk/form/components/templates-layout';
|
|
9
|
-
export * from '@vunk/form/shared';
|
|
10
|
-
export * from '@vunk/form/composables';
|
|
11
|
-
export * from '@vunk/form/components/templates-default';
|
|
12
|
-
export * from '@vunk/form/components/input';
|
|
13
|
-
export * from '@vunk/form/components/input-number';
|
|
14
|
-
export * from '@vunk/form/components/select';
|
|
15
|
-
export * from '@vunk/form/components/radio';
|
|
16
|
-
export * from '@vunk/form/components/checkbox';
|
|
17
|
-
export * from '@vunk/form/components/switch';
|
|
18
|
-
export * from '@vunk/form/components/color-picker';
|
|
19
|
-
export * from '@vunk/form/components/upload';
|
|
20
|
-
export * from '@vunk/form/components/date-picker';
|
|
21
|
-
export * from '@vunk/form/components/button';
|
|
22
|
-
export * from '@vunk/form/components/cascader';
|
|
23
|
-
export * from '@vunk/form/components/input-link';
|
|
24
|
-
|
|
25
|
-
var Components = [
|
|
26
|
-
VkfForm,
|
|
27
|
-
VkfFormItemRenderer,
|
|
28
|
-
VkfFormItemRendererTemplate,
|
|
29
|
-
VkfTemplatesLayout
|
|
30
|
-
];
|
|
31
|
-
|
|
32
|
-
const makeInstaller = (components = []) => {
|
|
33
|
-
const install = (app) => {
|
|
34
|
-
components.forEach((c) => app.use(c));
|
|
35
|
-
};
|
|
36
|
-
return {
|
|
37
|
-
install
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
var installer = makeInstaller(Components);
|
|
41
|
-
|
|
42
|
-
const install = installer.install;
|
|
43
|
-
|
|
44
|
-
export { installer as default, install };
|
|
1
|
+
import{VkfForm as m}from"@vunk/form/components/form";export*from"@vunk/form/components/form";import{VkfFormItemRenderer as f}from"@vunk/form/components/form-item-renderer";export*from"@vunk/form/components/form-item-renderer";import{VkfFormItemRendererTemplate as p}from"@vunk/form/components/form-item-renderer-template";export*from"@vunk/form/components/form-item-renderer-template";import{VkfTemplatesLayout as x}from"@vunk/form/components/templates-layout";export*from"@vunk/form/components/templates-layout";export*from"@vunk/form/shared";export*from"@vunk/form/composables";export*from"@vunk/form/components/templates-default";export*from"@vunk/form/components/input";export*from"@vunk/form/components/input-number";export*from"@vunk/form/components/select";export*from"@vunk/form/components/radio";export*from"@vunk/form/components/checkbox";export*from"@vunk/form/components/switch";export*from"@vunk/form/components/color-picker";export*from"@vunk/form/components/upload";export*from"@vunk/form/components/date-picker";export*from"@vunk/form/components/button";export*from"@vunk/form/components/cascader";export*from"@vunk/form/components/input-link";var a=[m,f,p,x];const l=(o=[])=>({install:t=>{o.forEach(e=>t.use(e))}});var r=l(a);const n=r.install;export{r as default,n as install};
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/shared/const/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Media } from '@vunk/core';
|
|
2
2
|
import { AllTemplatesSource } from '@vunk/form/shared';
|
|
3
3
|
export declare const CORE_FORM_TEMPLATE_OPTIONS: Media<AllTemplatesSource['templateType']>[];
|
|
4
|
-
export declare const CORE_FORM_TEMPLATE_REFLECT: Record<string, Media<"
|
|
4
|
+
export declare const CORE_FORM_TEMPLATE_REFLECT: Record<string, Media<"VkfInput" | "VkfSwitch" | "VkfSelect" | "VkfDatePicker" | "VkfInputNumber" | "VkfRadio" | "VkfCheckbox" | "VkfUpload" | "ElLink" | "VkfColorPicker" | "VkfButton" | "VkfCascader" | "VkfInputLink" | "VkfSlider" | "VkfGeoinput" | "VkfEsriInputGeojson" | "Component" | "ElDivider" | "ElRow" | "ElCol" | "VkfFlex">>;
|
package/shared/const/index.js
CHANGED
|
@@ -1,56 +1 @@
|
|
|
1
|
-
const CORE_FORM_TEMPLATE_OPTIONS
|
|
2
|
-
{
|
|
3
|
-
value: "VkfInput",
|
|
4
|
-
label: "\u8F93\u5165\u6846"
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
value: "VkfSelect",
|
|
8
|
-
label: "\u4E0B\u62C9\u6846"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
value: "VkfCheckbox",
|
|
12
|
-
label: "\u591A\u9009\u6846"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
value: "VkfRadio",
|
|
16
|
-
label: "\u5355\u9009\u6846"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
value: "VkfDatePicker",
|
|
20
|
-
label: "\u65E5\u671F\u9009\u62E9\u5668"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
value: "VkfInputNumber",
|
|
24
|
-
label: "\u6570\u5B57\u8F93\u5165\u6846"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
value: "VkfSwitch",
|
|
28
|
-
label: "\u5F00\u5173"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
value: "VkfSlider",
|
|
32
|
-
label: "\u6ED1\u5757"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
value: "VkfInputLink",
|
|
36
|
-
label: "\u94FE\u63A5\u8F93\u5165\u6846"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
value: "VkfEsriInputGeojson",
|
|
40
|
-
label: "\u5730\u4FE1\u8F93\u5165\u6846"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
value: "VkfCascader",
|
|
44
|
-
label: "\u7EA7\u8054\u9009\u62E9\u5668"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
value: "VkfUpload",
|
|
48
|
-
label: "\u4E0A\u4F20"
|
|
49
|
-
}
|
|
50
|
-
];
|
|
51
|
-
const CORE_FORM_TEMPLATE_REFLECT = CORE_FORM_TEMPLATE_OPTIONS.reduce((acc, cur) => {
|
|
52
|
-
acc[cur.value] = cur;
|
|
53
|
-
return acc;
|
|
54
|
-
}, {});
|
|
55
|
-
|
|
56
|
-
export { CORE_FORM_TEMPLATE_OPTIONS, CORE_FORM_TEMPLATE_REFLECT };
|
|
1
|
+
const e=[{value:"VkfInput",label:"\u8F93\u5165\u6846"},{value:"VkfSelect",label:"\u4E0B\u62C9\u6846"},{value:"VkfCheckbox",label:"\u591A\u9009\u6846"},{value:"VkfRadio",label:"\u5355\u9009\u6846"},{value:"VkfDatePicker",label:"\u65E5\u671F\u9009\u62E9\u5668"},{value:"VkfInputNumber",label:"\u6570\u5B57\u8F93\u5165\u6846"},{value:"VkfSwitch",label:"\u5F00\u5173"},{value:"VkfSlider",label:"\u6ED1\u5757"},{value:"VkfInputLink",label:"\u94FE\u63A5\u8F93\u5165\u6846"},{value:"VkfEsriInputGeojson",label:"\u5730\u4FE1\u8F93\u5165\u6846"},{value:"VkfCascader",label:"\u7EA7\u8054\u9009\u62E9\u5668"},{value:"VkfUpload",label:"\u4E0A\u4F20"}],a=e.reduce((u,l)=>(u[l.value]=l,u),{});export{e as CORE_FORM_TEMPLATE_OPTIONS,a as CORE_FORM_TEMPLATE_REFLECT};
|