@vunk/form 2.18.1 → 2.19.0
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.cjs +1 -11
- package/components/api-tables-select/index.cjs +1 -467
- package/components/api-tables-select/index.mjs +56 -413
- package/components/api-tables-select/src/ctx.d.ts +152 -172
- package/components/api-tables-select/src/index.vue.d.ts +394 -983
- package/components/button/index.cjs +1 -112
- package/components/button/index.mjs +57 -85
- package/components/button/src/ctx.d.ts +28 -113
- package/components/button/src/index.vue.d.ts +317 -625
- package/components/card-input-collection/index.cjs +1 -352
- package/components/card-input-collection/index.mjs +177 -261
- package/components/card-input-collection/src/core.vue.d.ts +54 -950
- package/components/card-input-collection/src/ctx.d.ts +19 -49
- package/components/card-input-collection/src/index.vue.d.ts +46 -110
- package/components/cascader/index.cjs +1 -150
- package/components/cascader/index.mjs +88 -116
- package/components/cascader/src/ctx.d.ts +140 -207
- package/components/cascader/src/index.vue.d.ts +315 -522
- package/components/cascader/src/use.d.ts +1 -1
- package/components/checkbox/index.cjs +1 -152
- package/components/checkbox/index.mjs +75 -119
- package/components/checkbox/src/ctx.d.ts +46 -69
- package/components/checkbox/src/index.vue.d.ts +448 -1016
- package/components/cloneDeep.cjs +1 -2106
- package/components/color-picker/index.cjs +1 -80
- package/components/color-picker/index.mjs +46 -69
- package/components/color-picker/src/ctx.d.ts +130 -107
- package/components/color-picker/src/index.vue.d.ts +285 -255
- package/components/date-picker/index.cjs +1 -119
- package/components/date-picker/index.mjs +63 -97
- package/components/date-picker/src/ctx.d.ts +123 -206
- package/components/date-picker/src/index.vue.d.ts +269 -1358
- package/components/date-picker/src/types.d.ts +7 -7
- package/components/date-picker-range/index.cjs +1 -177
- package/components/date-picker-range/index.mjs +62 -113
- package/components/date-picker-range/src/ctx.d.ts +130 -206
- package/components/date-picker-range/src/index.vue.d.ts +861 -448
- package/components/debounce.cjs +1 -0
- package/components/dialog/index.cjs +1 -126
- package/components/dialog/index.mjs +65 -99
- package/components/dialog/src/ctx.d.ts +17 -108
- package/components/dialog/src/index.vue.d.ts +77 -1072
- package/components/dialog-input-collection/index.cjs +1 -624
- package/components/dialog-input-collection/index.mjs +276 -498
- package/components/dialog-input-collection/src/ctx.d.ts +21 -52
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +29 -6371
- package/components/dialog-input-collection/src/index.vue.d.ts +65 -7630
- package/components/dialog-input-collection/src/layout.vue.d.ts +13 -73
- package/components/download-plus/index.cjs +1 -456
- package/components/download-plus/index.mjs +215 -358
- package/components/download-plus/src/api.d.ts +1 -1
- package/components/download-plus/src/ctx.d.ts +21 -52
- package/components/download-plus/src/index.vue.d.ts +437 -1177
- package/components/editable-text/index.cjs +1 -295
- package/components/editable-text/index.mjs +113 -239
- package/components/editable-text/src/ctx.d.ts +24 -50
- package/components/editable-text/src/index.vue.d.ts +59 -3258
- package/components/el-slider/index.cjs +1 -0
- package/components/el-slider/index.d.ts +5 -0
- package/components/el-slider/index.mjs +475 -0
- package/components/el-slider/src/button.d.ts +36 -0
- package/components/el-slider/src/button.vue.d.ts +41 -0
- package/components/el-slider/src/composables/index.cjs +1 -0
- package/components/el-slider/src/composables/index.d.ts +6 -0
- package/components/el-slider/src/composables/index.mjs +9 -0
- package/components/el-slider/src/composables/use-lifecycle.d.ts +4 -0
- package/components/el-slider/src/composables/use-marks.d.ts +7 -0
- package/components/el-slider/src/composables/use-slide.d.ts +23 -0
- package/components/el-slider/src/composables/use-slider-button.d.ts +18 -0
- package/components/el-slider/src/composables/use-stops.d.ts +8 -0
- package/components/el-slider/src/composables/use-watch.d.ts +4 -0
- package/components/el-slider/src/constants.d.ts +14 -0
- package/components/el-slider/src/marker.d.ts +37 -0
- package/components/el-slider/src/slider-core.vue.d.ts +218 -0
- package/components/el-slider/src/slider.d.ts +174 -0
- package/components/esri-input-geojson/index.cjs +2 -1604
- package/components/esri-input-geojson/index.mjs +682 -1290
- package/components/esri-input-geojson/src/append.vue.d.ts +239 -1099
- package/components/esri-input-geojson/src/const.d.ts +1 -1
- package/components/esri-input-geojson/src/ctx.d.ts +66 -161
- package/components/esri-input-geojson/src/default-view.vue.d.ts +8 -132
- package/components/esri-input-geojson/src/index.vue.d.ts +982 -708
- package/components/esri-input-geojson/src/types.d.ts +1 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +53 -282
- package/components/fieldset/index.cjs +1 -110
- package/components/fieldset/index.mjs +63 -76
- package/components/fieldset/src/ctx.d.ts +4 -4
- package/components/fieldset/src/index.vue.d.ts +7 -7
- package/components/form/index.cjs +1 -248
- package/components/form/index.mjs +107 -161
- package/components/form/src/ctx.d.ts +15 -64
- package/components/form/src/index.vue.d.ts +374 -2431
- package/components/form-item/index.cjs +1 -294
- package/components/form-item/index.mjs +140 -229
- package/components/form-item/src/core.vue.d.ts +32 -1854
- package/components/form-item/src/ctx.d.ts +19 -51
- package/components/form-item/src/index.vue.d.ts +38 -101
- package/components/form-item-renderer/index.cjs +1 -193
- package/components/form-item-renderer/index.mjs +103 -162
- package/components/form-item-renderer/src/core.vue.d.ts +9 -9
- package/components/form-item-renderer/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/index.vue.d.ts +24 -74
- package/components/form-item-renderer-template/index.cjs +1 -47
- package/components/form-item-renderer-template/index.mjs +20 -33
- package/components/form-item-renderer-template/src/index.vue.d.ts +1 -1
- package/components/forms-provider/index.cjs +1 -99
- package/components/forms-provider/index.mjs +44 -73
- package/components/forms-provider/src/core.d.ts +3 -2
- package/components/forms-provider/src/segment.vue.d.ts +8 -8
- package/components/forms-provider/src/view.vue.d.ts +14 -4
- package/components/index.cjs +1 -399
- package/components/index2.cjs +1 -17
- package/components/information/index.cjs +1 -65
- package/components/information/index.mjs +28 -38
- package/components/information/src/ctx.d.ts +2 -2
- package/components/information/src/index.vue.d.ts +4 -4
- package/components/information-collection/index.cjs +1 -81
- package/components/information-collection/index.mjs +44 -48
- package/components/information-collection/src/ctx.d.ts +29 -65
- package/components/information-collection/src/index.vue.d.ts +64 -136
- package/components/information-renderer/index.cjs +1 -16
- package/components/information-renderer/index.d.ts +9 -9
- package/components/information-renderer/index.mjs +9 -10
- package/components/information-tag/index.cjs +1 -101
- package/components/information-tag/index.mjs +44 -54
- package/components/information-tag/src/ctx.d.ts +6 -21
- package/components/information-tag/src/index.vue.d.ts +23 -51
- package/components/information-templates-default/index.cjs +1 -101
- package/components/information-templates-default/index.mjs +63 -73
- package/components/information-templates-default/src/index.vue.d.ts +1 -1
- package/components/input/index.cjs +1 -115
- package/components/input/index.mjs +60 -83
- package/components/input/src/ctx.d.ts +51 -152
- package/components/input/src/index.vue.d.ts +392 -951
- package/components/input-array/index.cjs +1 -297
- package/components/input-array/index.mjs +115 -232
- package/components/input-array/src/ctx.d.ts +19 -49
- package/components/input-array/src/form-template.vue.d.ts +1 -900
- package/components/input-array/src/index.vue.d.ts +43 -729
- package/components/input-collection/index.cjs +1 -444
- package/components/input-collection/index.mjs +195 -347
- package/components/input-collection/src/core.vue.d.ts +64 -1026
- package/components/input-collection/src/ctx.d.ts +21 -51
- package/components/input-collection/src/index.vue.d.ts +50 -114
- package/components/input-file/index.cjs +1 -142
- package/components/input-file/index.mjs +68 -100
- package/components/input-file/src/ctx.d.ts +8 -29
- package/components/input-file/src/index.vue.d.ts +444 -74
- package/components/input-file/src/template.vue.d.ts +1 -124
- package/components/input-link/index.cjs +1 -167
- package/components/input-link/index.mjs +60 -83
- package/components/input-link/src/ctx.d.ts +52 -137
- package/components/input-link/src/index.vue.d.ts +833 -311
- package/components/input-number/index.cjs +1 -119
- package/components/input-number/index.mjs +73 -87
- package/components/input-number/src/ctx.d.ts +38 -131
- package/components/input-number/src/index.vue.d.ts +321 -683
- package/components/input-tag/index.cjs +1 -100
- package/components/input-tag/index.mjs +51 -78
- package/components/input-tag/src/ctx.d.ts +43 -145
- package/components/input-tag/src/index.vue.d.ts +324 -778
- package/components/isObject.cjs +1 -165
- package/components/monaco-editor/index.cjs +1 -83
- package/components/monaco-editor/index.mjs +40 -59
- package/components/monaco-editor/src/ctx.d.ts +19 -44
- package/components/monaco-editor/src/index.vue.d.ts +209 -109
- package/components/radio/index.cjs +1 -267
- package/components/radio/index.mjs +110 -209
- package/components/radio/src/ctx.d.ts +27 -91
- package/components/radio/src/index.vue.d.ts +298 -1279
- package/components/radio/src/option.vue.d.ts +29 -881
- package/components/radio/src/wraper.vue.d.ts +64 -196
- package/components/renderer-data/index.cjs +1 -41
- package/components/renderer-data/index.mjs +19 -26
- package/components/renderer-data/src/ctx.d.ts +1 -1
- package/components/renderer-data/src/index.vue.d.ts +2 -2
- package/components/select/index.cjs +1 -311
- package/components/select/index.mjs +156 -214
- package/components/select/src/core.vue.d.ts +638 -1080
- package/components/select/src/ctx.d.ts +140 -223
- package/components/select/src/index.vue.d.ts +334 -610
- package/components/select/src/options.vue.d.ts +1 -1
- package/components/slider/index.cjs +1 -88
- package/components/slider/index.mjs +41 -70
- package/components/slider/src/ctx.d.ts +63 -174
- package/components/slider/src/index.vue.d.ts +151 -420
- package/components/style.css +1 -0
- package/components/switch/index.cjs +1 -88
- package/components/switch/index.mjs +37 -69
- package/components/switch/src/ctx.d.ts +34 -113
- package/components/switch/src/index.vue.d.ts +88 -699
- package/components/switch/src/types.d.ts +2 -2
- package/components/tables-select/index.cjs +1 -263
- package/components/tables-select/index.mjs +102 -172
- package/components/tables-select/src/ctx.d.ts +76 -91
- package/components/tables-select/src/index.vue.d.ts +228 -4969
- package/components/template-instances-provider/index.cjs +1 -31
- package/components/template-instances-provider/index.mjs +18 -22
- package/components/template-instances-provider/src/index.vue.d.ts +2 -2
- package/components/templates-default/index.cjs +1 -235
- package/components/templates-default/index.mjs +152 -211
- package/components/templates-default/src/ctx.d.ts +5 -3
- package/components/templates-default/src/index.vue.d.ts +7298 -157
- package/components/templates-element-plus/index.cjs +1 -112
- package/components/templates-element-plus/index.mjs +49 -91
- package/components/templates-element-plus/src/ctx.d.ts +1 -1
- package/components/templates-element-plus/src/index.vue.d.ts +65 -258
- package/components/templates-esri/index.cjs +1 -65
- package/components/templates-esri/index.mjs +29 -39
- package/components/templates-esri/src/ctx.d.ts +1 -1
- package/components/templates-esri/src/index.vue.d.ts +1776 -24
- package/components/templates-layout/index.cjs +1 -137
- package/components/templates-layout/index.mjs +78 -116
- package/components/templates-layout/src/ctx.d.ts +1 -1
- package/components/templates-layout/src/index.vue.d.ts +79 -411
- package/components/templates-variant/index.cjs +1 -70
- package/components/templates-variant/index.mjs +33 -43
- package/components/templates-variant/src/ctx.d.ts +1 -1
- package/components/templates-variant/src/index.vue.d.ts +1238 -24
- package/components/time-picker/index.cjs +1 -104
- package/components/time-picker/index.mjs +57 -87
- package/components/time-picker/src/ctx.d.ts +121 -211
- package/components/time-picker/src/index.vue.d.ts +263 -1368
- package/components/upload/index.cjs +1 -663
- package/components/upload/index.mjs +343 -537
- package/components/upload/src/ctx.d.ts +108 -195
- package/components/upload/src/file.vue.d.ts +197 -776
- package/components/upload/src/index.vue.d.ts +689 -1931
- package/components/upload/src/types.d.ts +1 -1
- package/components/upload/src/wraper.vue.d.ts +232 -407
- package/components/upload-plus/index.cjs +21 -18673
- package/components/upload-plus/index.mjs +4598 -18372
- package/components/upload-plus/src/api.d.ts +2 -2
- package/components/upload-plus/src/ctx.d.ts +24 -51
- package/components/upload-plus/src/index.vue.d.ts +51 -1656
- package/components/use-watch.cjs +1 -0
- package/components/van-cascader/index.cjs +1 -125
- package/components/van-cascader/index.mjs +51 -96
- package/components/van-cascader/src/ctx.d.ts +135 -203
- package/components/van-cascader/src/index.vue.d.ts +312 -985
- package/components/var-datetime-picker/index.cjs +1 -333
- package/components/var-datetime-picker/index.mjs +175 -254
- package/components/var-datetime-picker/src/ctx.d.ts +19 -50
- package/components/var-datetime-picker/src/index.vue.d.ts +688 -1115
- package/components/vditor/index.cjs +1 -86
- package/components/vditor/index.mjs +40 -66
- package/components/vditor/src/ctx.d.ts +16 -45
- package/components/vditor/src/index.vue.d.ts +195 -120
- package/composables/element-plus/index.cjs +1 -23
- package/composables/element-plus/index.mjs +14 -18
- package/composables/index.cjs +1 -161
- package/composables/index.d.ts +1 -0
- package/composables/index.mjs +102 -135
- package/composables/useForm.d.ts +2 -2
- package/composables/useRtl.d.ts +18 -0
- package/composables/useSourceManager.d.ts +2 -2
- package/composables/useTemplateInstances.d.ts +3 -3
- package/index.css +1 -562
- package/index.d.ts +0 -3
- package/index.esm.js +23 -48
- package/locale/index.cjs +1 -110
- package/locale/index.mjs +37 -45
- package/locale/lang/en.d.ts +2 -6
- package/locale/lang/index.cjs +1 -2
- package/locale/lang/index.d.ts +1 -0
- package/locale/lang/zh-cn.d.ts +2 -6
- package/package.json +14 -85
- package/shared/const/index.cjs +1 -59
- package/shared/const/index.d.ts +1 -1
- package/shared/const/index.mjs +18 -20
- package/shared/element-plus/ctx.d.ts +40 -37
- package/shared/element-plus/index.cjs +1 -211
- package/shared/element-plus/index.mjs +93 -161
- package/shared/element-plus/instances.d.ts +207 -321
- package/shared/form/index.cjs +1 -33
- package/shared/form/index.mjs +23 -25
- package/shared/helper/index.cjs +1 -11
- package/shared/helper/index.mjs +7 -8
- package/shared/index.cjs +1 -8
- package/shared/index.mjs +5 -1
- package/shared/infer-prop/index.cjs +1 -36
- package/shared/infer-prop/index.mjs +22 -28
- package/shared/progress-it/index.cjs +1 -42
- package/shared/progress-it/index.mjs +15 -31
- package/shared/rules/index.cjs +1 -56
- package/shared/rules/index.mjs +19 -18
- package/shared/types/form/index.cjs +1 -2
- package/shared/types/index.cjs +1 -2
- package/shared/types/source/index.cjs +1 -2
- package/shared/types/source-manager/index.cjs +1 -2
- package/shared/upload/index.cjs +1 -774
- package/shared/upload/index.mjs +180 -764
- package/component.d.ts +0 -3
- package/components/_plugin-vue_export-helper.mjs +0 -9
- package/components/card-input-collection/index.css +0 -21
- package/components/cascader/index.css +0 -9
- package/components/checkbox/index.css +0 -30
- package/components/cloneDeep.mjs +0 -2104
- package/components/date-picker-range/index.css +0 -18
- package/components/dialog-input-collection/index.css +0 -21
- package/components/download-plus/index.css +0 -68
- package/components/editable-text/index.css +0 -9
- package/components/esri-input-geojson/index.css +0 -32
- package/components/fieldset/index.css +0 -5
- package/components/form-item/index.css +0 -35
- package/components/index.mjs +0 -378
- package/components/index2.mjs +0 -14
- package/components/information-tag/index.css +0 -6
- package/components/information-templates-default/index.css +0 -16
- package/components/input-array/index.css +0 -14
- package/components/input-collection/index.css +0 -20
- package/components/input-link/index.css +0 -4
- package/components/input-number/index.css +0 -13
- package/components/isObject.mjs +0 -158
- package/components/monaco-editor/index.css +0 -4
- package/components/radio/index.css +0 -40
- package/components/select/index.css +0 -15
- package/components/switch/index.css +0 -10
- package/components/tables-select/index.css +0 -3
- package/components/templates-layout/index.css +0 -3
- package/components/upload/index.css +0 -34
- package/components/upload-plus/index.css +0 -84
- package/components/van-cascader/index.css +0 -6
- package/components/var-datetime-picker/index.css +0 -17
- package/defaults.d.ts +0 -5
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import { defineComponent, watch, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, toDisplayString, mergeProps, computed, Fragment, reactive, createElementBlock, normalizeProps, guardReactiveProps, createSlots, createCommentVNode, createElementVNode } from
|
|
2
|
-
import { p as
|
|
3
|
-
import { setData, ensetData, getValue } from
|
|
4
|
-
import { _VkfFormItemCtx, VkfFormItem } from
|
|
5
|
-
import {
|
|
6
|
-
import { useComputedReadonly } from
|
|
7
|
-
import { useLocale } from
|
|
8
|
-
import { VkAvatar } from
|
|
9
|
-
import { VkTableColumns } from
|
|
10
|
-
import { CRUD } from
|
|
11
|
-
import { isCallable } from
|
|
12
|
-
import { ElDialog, ElButton, ElPopconfirm, ElTable } from
|
|
13
|
-
import { useModelComputed, useDeferred } from
|
|
14
|
-
import { VkfForm } from
|
|
15
|
-
import { validateCatch } from
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const props = {
|
|
25
|
-
..._VkfFormItemCtx.props,
|
|
1
|
+
import { defineComponent as A, watch as Q, resolveComponent as W, openBlock as D, createBlock as S, unref as a, withCtx as r, renderSlot as I, createVNode as l, createTextVNode as h, toDisplayString as P, mergeProps as X, computed as b, Fragment as j, reactive as Y, createElementBlock as _, normalizeProps as Z, guardReactiveProps as x, createSlots as ee, createCommentVNode as O, createElementVNode as R } from "vue";
|
|
2
|
+
import { p as $, e as w, d as te } from "../index.cjs";
|
|
3
|
+
import { setData as ae, ensetData as z, getValue as oe } from "@vunk/core";
|
|
4
|
+
import { _VkfFormItemCtx as U, VkfFormItem as le } from "@vunk/form/components/form-item";
|
|
5
|
+
import { VkfInformationTemplates as re, VkfInformationData as ne, VkfInformationRenderer as ie } from "@vunk/form/components/information-renderer";
|
|
6
|
+
import { useComputedReadonly as de } from "@vunk/form/composables";
|
|
7
|
+
import { useLocale as M } from "@vunk/form/composables/element-plus";
|
|
8
|
+
import { VkAvatar as se } from "@vunk/plus/components/avatar";
|
|
9
|
+
import { VkTableColumns as pe } from "@vunk/plus/components/table-columns";
|
|
10
|
+
import { CRUD as g } from "@vunk/shared/enum";
|
|
11
|
+
import { isCallable as N } from "@vunk/shared/function";
|
|
12
|
+
import { ElDialog as me, ElButton as k, ElPopconfirm as ue, ElTable as fe } from "element-plus";
|
|
13
|
+
import { useModelComputed as ce, useDeferred as ve } from "@vunk/core/composables";
|
|
14
|
+
import { VkfForm as ye } from "@vunk/form/components/form";
|
|
15
|
+
import { validateCatch as Ve } from "@vunk/form/shared/form";
|
|
16
|
+
import { VkfInformationTemplatesDefault as be } from "@vunk/form/components/information-templates-default";
|
|
17
|
+
import { VkfRendererData as ge } from "@vunk/form/components/renderer-data";
|
|
18
|
+
import { VkfTemplateInstancesProvider as ke } from "@vunk/form/components/template-instances-provider";
|
|
19
|
+
import { VkfTemplatesDefault as Ce } from "@vunk/form/components/templates-default";
|
|
20
|
+
import { c as C } from "../cloneDeep.cjs";
|
|
21
|
+
const De = {
|
|
22
|
+
...U.props,
|
|
26
23
|
columns: {
|
|
27
24
|
type: Array,
|
|
28
25
|
default: () => []
|
|
@@ -43,14 +40,14 @@ const props = {
|
|
|
43
40
|
*/
|
|
44
41
|
splicable: {
|
|
45
42
|
type: Boolean,
|
|
46
|
-
default:
|
|
43
|
+
default: !0
|
|
47
44
|
},
|
|
48
45
|
/**
|
|
49
46
|
* @description 开启 form-item 的 label 上的操作区域, 在labelPosition为top时生效
|
|
50
47
|
*/
|
|
51
48
|
labelActions: {
|
|
52
49
|
type: Boolean,
|
|
53
|
-
default:
|
|
50
|
+
default: !1
|
|
54
51
|
},
|
|
55
52
|
/**
|
|
56
53
|
* @description 添加记录时的默认值
|
|
@@ -77,13 +74,10 @@ const props = {
|
|
|
77
74
|
type: Object,
|
|
78
75
|
default: void 0
|
|
79
76
|
}
|
|
80
|
-
}
|
|
81
|
-
const emits = {
|
|
77
|
+
}, Pe = {
|
|
82
78
|
"update:modelValue": null,
|
|
83
79
|
"update:formdata": null
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
80
|
+
}, Ie = /* @__PURE__ */ A({
|
|
87
81
|
__name: "dialog-form",
|
|
88
82
|
props: {
|
|
89
83
|
title: {
|
|
@@ -96,11 +90,11 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
96
90
|
},
|
|
97
91
|
openReset: {
|
|
98
92
|
type: Boolean,
|
|
99
|
-
default:
|
|
93
|
+
default: !0
|
|
100
94
|
},
|
|
101
95
|
visible: {
|
|
102
96
|
type: Boolean,
|
|
103
|
-
default:
|
|
97
|
+
default: !1
|
|
104
98
|
},
|
|
105
99
|
formItems: {
|
|
106
100
|
type: Array,
|
|
@@ -112,105 +106,73 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
112
106
|
},
|
|
113
107
|
validateCatch: {
|
|
114
108
|
type: Function,
|
|
115
|
-
default:
|
|
109
|
+
default: Ve
|
|
116
110
|
},
|
|
117
111
|
formdata: null
|
|
118
112
|
},
|
|
119
113
|
emits: ["update:modelValue", "update:visible", "change", "update:formdata"],
|
|
120
|
-
setup(
|
|
121
|
-
|
|
122
|
-
const props = __props;
|
|
123
|
-
const emit = __emit;
|
|
124
|
-
const { tr } = useLocale();
|
|
125
|
-
const formData = useModelComputed({
|
|
114
|
+
setup(m, { emit: f }) {
|
|
115
|
+
const t = m, s = f, { tr: u } = M(), c = ce({
|
|
126
116
|
key: "formdata",
|
|
127
117
|
default: {}
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
118
|
+
}, t, s), y = ve();
|
|
119
|
+
y.promise.then((i) => {
|
|
120
|
+
var d, v;
|
|
121
|
+
(v = (d = t.dialogFormProps).elRef) == null || v.call(d, i);
|
|
122
|
+
}), Q(() => t.visible, (i) => {
|
|
123
|
+
t.openReset && i && (c.value = { ...t.modelValue }, setTimeout(() => {
|
|
124
|
+
var d;
|
|
125
|
+
(d = y.value) == null || d.clearValidate();
|
|
126
|
+
}));
|
|
132
127
|
});
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
function handleSubmit() {
|
|
142
|
-
formDef.value?.validate().then(() => {
|
|
143
|
-
emit("update:modelValue", formData.value);
|
|
144
|
-
emit("change", formData.value);
|
|
145
|
-
emit("update:visible", false);
|
|
146
|
-
}).catch(props.validateCatch);
|
|
128
|
+
function T() {
|
|
129
|
+
var i;
|
|
130
|
+
(i = y.value) == null || i.validate().then(() => {
|
|
131
|
+
s("update:modelValue", c.value), s("change", c.value), s("update:visible", !1);
|
|
132
|
+
}).catch(t.validateCatch);
|
|
147
133
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
} };
|
|
155
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
156
|
-
return __returned__;
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
161
|
-
const _component_ElButton = resolveComponent("ElButton");
|
|
162
|
-
return openBlock(), createBlock($setup["ElDialog"], {
|
|
163
|
-
"model-value": $props.visible,
|
|
164
|
-
"append-to-body": "",
|
|
165
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:visible", $event))
|
|
166
|
-
}, {
|
|
167
|
-
header: withCtx(() => [
|
|
168
|
-
renderSlot(_ctx.$slots, "header")
|
|
169
|
-
]),
|
|
170
|
-
footer: withCtx(() => [
|
|
171
|
-
createVNode(_component_ElButton, {
|
|
172
|
-
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:visible", false))
|
|
134
|
+
return (i, d) => {
|
|
135
|
+
const v = W("ElButton");
|
|
136
|
+
return D(), S(a(me), {
|
|
137
|
+
"model-value": m.visible,
|
|
138
|
+
"append-to-body": "",
|
|
139
|
+
"onUpdate:modelValue": d[2] || (d[2] = (V) => i.$emit("update:visible", V))
|
|
173
140
|
}, {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
toDisplayString($setup.tr("el.messagebox.cancel", "\u53D6\u6D88")),
|
|
177
|
-
1
|
|
178
|
-
/* TEXT */
|
|
179
|
-
)
|
|
141
|
+
header: r(() => [
|
|
142
|
+
I(i.$slots, "header")
|
|
180
143
|
]),
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
144
|
+
footer: r(() => [
|
|
145
|
+
l(v, {
|
|
146
|
+
onClick: d[1] || (d[1] = (V) => i.$emit("update:visible", !1))
|
|
147
|
+
}, {
|
|
148
|
+
default: r(() => [
|
|
149
|
+
h(P(a(u)("el.messagebox.cancel", "取消")), 1)
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}),
|
|
153
|
+
l(v, {
|
|
154
|
+
type: "primary",
|
|
155
|
+
onClick: T
|
|
156
|
+
}, {
|
|
157
|
+
default: r(() => [
|
|
158
|
+
h(P(a(u)("el.messagebox.confirm", "确定")), 1)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
})
|
|
194
162
|
]),
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
/* FORWARDED */
|
|
209
|
-
}, 8, ["model-value"]);
|
|
210
|
-
}
|
|
211
|
-
var DialogForm = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\dialog-input-collection\\src\\dialog-form.vue"]]);
|
|
212
|
-
|
|
213
|
-
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
163
|
+
default: r(() => [
|
|
164
|
+
l(a(ye), X(m.dialogFormProps, {
|
|
165
|
+
"el-ref": a(y).resolve,
|
|
166
|
+
"form-items": m.formItems,
|
|
167
|
+
data: a(c),
|
|
168
|
+
onSetData: d[0] || (d[0] = (V) => a(ae)(a(c), V))
|
|
169
|
+
}), null, 16, ["el-ref", "form-items", "data"])
|
|
170
|
+
]),
|
|
171
|
+
_: 3
|
|
172
|
+
}, 8, ["model-value"]);
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
}), he = /* @__PURE__ */ A({
|
|
214
176
|
__name: "layout",
|
|
215
177
|
props: {
|
|
216
178
|
data: {
|
|
@@ -219,400 +181,216 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
219
181
|
}
|
|
220
182
|
},
|
|
221
183
|
emits: ["setData"],
|
|
222
|
-
setup(
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
184
|
+
setup(m) {
|
|
185
|
+
return (f, t) => (D(), S(a(ke), null, {
|
|
186
|
+
placeholder: r(() => [
|
|
187
|
+
l(a(Ce))
|
|
188
|
+
]),
|
|
189
|
+
default: r(() => [
|
|
190
|
+
l(a(re), null, {
|
|
191
|
+
placeholder: r(() => [
|
|
192
|
+
l(a(be))
|
|
193
|
+
]),
|
|
194
|
+
default: r(() => [
|
|
195
|
+
l(a(ge), {
|
|
196
|
+
data: m.data,
|
|
197
|
+
onSetData: t[1] || (t[1] = (s) => f.$emit("setData", s))
|
|
198
|
+
}, {
|
|
199
|
+
default: r(() => [
|
|
200
|
+
l(a(ne), {
|
|
201
|
+
data: m.data,
|
|
202
|
+
onSetData: t[0] || (t[0] = (s) => f.$emit("setData", s))
|
|
203
|
+
}, {
|
|
204
|
+
default: r(() => [
|
|
205
|
+
I(f.$slots, "default")
|
|
206
|
+
]),
|
|
207
|
+
_: 3
|
|
208
|
+
}, 8, ["data"])
|
|
209
|
+
]),
|
|
210
|
+
_: 3
|
|
211
|
+
}, 8, ["data"])
|
|
212
|
+
]),
|
|
213
|
+
_: 3
|
|
214
|
+
})
|
|
215
|
+
]),
|
|
216
|
+
_: 3
|
|
217
|
+
}));
|
|
239
218
|
}
|
|
240
|
-
})
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
createVNode($setup["VkfInformationTemplatesDefault"])
|
|
251
|
-
]),
|
|
252
|
-
default: withCtx(() => [
|
|
253
|
-
createVNode($setup["VkfRendererData"], {
|
|
254
|
-
data: $props.data,
|
|
255
|
-
onSetData: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("setData", $event))
|
|
256
|
-
}, {
|
|
257
|
-
default: withCtx(() => [
|
|
258
|
-
createVNode($setup["VkfInformationData"], {
|
|
259
|
-
data: $props.data,
|
|
260
|
-
onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event))
|
|
261
|
-
}, {
|
|
262
|
-
default: withCtx(() => [
|
|
263
|
-
renderSlot(_ctx.$slots, "default")
|
|
264
|
-
]),
|
|
265
|
-
_: 3
|
|
266
|
-
/* FORWARDED */
|
|
267
|
-
}, 8, ["data"])
|
|
268
|
-
]),
|
|
269
|
-
_: 3
|
|
270
|
-
/* FORWARDED */
|
|
271
|
-
}, 8, ["data"])
|
|
272
|
-
]),
|
|
273
|
-
_: 3
|
|
274
|
-
/* FORWARDED */
|
|
275
|
-
})
|
|
276
|
-
]),
|
|
277
|
-
_: 3
|
|
278
|
-
/* FORWARDED */
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
var TemplatesLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\dialog-input-collection\\src\\layout.vue"]]);
|
|
282
|
-
|
|
283
|
-
var _sfc_main = /* @__PURE__ */defineComponent({
|
|
284
|
-
...{
|
|
285
|
-
name: "VkfDialogInputCollection",
|
|
286
|
-
inheritAttrs: false
|
|
287
|
-
},
|
|
219
|
+
}), Te = {
|
|
220
|
+
key: 0,
|
|
221
|
+
class: "vkf-dialog-input-collection-options"
|
|
222
|
+
}, Be = {
|
|
223
|
+
class: "vkf-dialog-input-collection__dialog-header"
|
|
224
|
+
}, Fe = {
|
|
225
|
+
class: "vkf-dialog-input-collection__dialog-title"
|
|
226
|
+
}, Xe = /* @__PURE__ */ A({
|
|
227
|
+
name: "VkfDialogInputCollection",
|
|
228
|
+
inheritAttrs: !1,
|
|
288
229
|
__name: "index",
|
|
289
|
-
props:
|
|
290
|
-
emits,
|
|
291
|
-
setup(
|
|
292
|
-
|
|
293
|
-
emit: __emit
|
|
230
|
+
props: De,
|
|
231
|
+
emits: Pe,
|
|
232
|
+
setup(m, {
|
|
233
|
+
emit: f
|
|
294
234
|
}) {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
readonly: readonly.value,
|
|
329
|
-
templateType: column.templateType,
|
|
330
|
-
templateProps: column.templateProps
|
|
331
|
-
};
|
|
332
|
-
if (isCallable(column.templateProps)) {
|
|
333
|
-
formItemProps.templateProps = () => {
|
|
334
|
-
return column.templateProps(e.row);
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
return createVNode(VkfInformationRenderer, {
|
|
338
|
-
"source": [{
|
|
339
|
-
...formItemProps,
|
|
340
|
-
...column.createTemplateProps?.(e, formItemProps)
|
|
341
|
-
}]
|
|
342
|
-
}, null);
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
});
|
|
346
|
-
});
|
|
347
|
-
const buttonsColumn = computed(() => ({
|
|
348
|
-
label: tr("vkf.dialogInputCollection.operations", "\u64CD\u4F5C"),
|
|
235
|
+
const t = m, s = f, {
|
|
236
|
+
tr: u
|
|
237
|
+
} = M(), c = fe, y = b(() => t.modules.includes("operations:add")), T = U.createBindProps(t), i = de(t), d = b(() => {
|
|
238
|
+
if (!t.prop || t.prop.length === 0)
|
|
239
|
+
return t.modelValue;
|
|
240
|
+
const e = {};
|
|
241
|
+
return z(e, {
|
|
242
|
+
k: t.prop,
|
|
243
|
+
v: t.modelValue
|
|
244
|
+
}), e;
|
|
245
|
+
}), v = b(() => t.columns.map((e) => {
|
|
246
|
+
const o = Array.isArray(e.prop) ? e.prop.join(".") : e.prop;
|
|
247
|
+
return {
|
|
248
|
+
...e,
|
|
249
|
+
prop: o,
|
|
250
|
+
slots: (p) => {
|
|
251
|
+
var E;
|
|
252
|
+
const F = {
|
|
253
|
+
prop: [t.prop ?? [], p.$index, e.prop].flat(),
|
|
254
|
+
readonly: i.value,
|
|
255
|
+
templateType: e.templateType,
|
|
256
|
+
templateProps: e.templateProps
|
|
257
|
+
};
|
|
258
|
+
return N(e.templateProps) && (F.templateProps = () => e.templateProps(p.row)), l(ie, {
|
|
259
|
+
source: [{
|
|
260
|
+
...F,
|
|
261
|
+
...(E = e.createTemplateProps) == null ? void 0 : E.call(e, p, F)
|
|
262
|
+
}]
|
|
263
|
+
}, null);
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
})), V = b(() => ({
|
|
267
|
+
label: u("vkf.common.operations", "操作"),
|
|
349
268
|
align: "center",
|
|
350
269
|
width: "85",
|
|
351
|
-
hidden:
|
|
270
|
+
hidden: i.value || !t.splicable,
|
|
352
271
|
className: "vk-input-collection__buttons",
|
|
353
272
|
slots: ({
|
|
354
|
-
$index
|
|
355
|
-
}) =>
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}, null),
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}, null),
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
273
|
+
$index: e
|
|
274
|
+
}) => l(j, null, [y.value && l(k, {
|
|
275
|
+
size: "small",
|
|
276
|
+
icon: $,
|
|
277
|
+
type: "primary",
|
|
278
|
+
link: !0,
|
|
279
|
+
onClick: () => B(e)
|
|
280
|
+
}, null), l(k, {
|
|
281
|
+
size: "small",
|
|
282
|
+
icon: w,
|
|
283
|
+
type: "primary",
|
|
284
|
+
link: !0,
|
|
285
|
+
onClick: () => H(e)
|
|
286
|
+
}, null), l(ue, {
|
|
287
|
+
title: u("vkf.dialogInputCollection.deleteConfirm", "确定删除吗?"),
|
|
288
|
+
onConfirm: () => G(e),
|
|
289
|
+
confirmButtonText: u("vkf.common.delete", "删除"),
|
|
290
|
+
cancelButtonText: u("el.popconfirm.cancelButtonText", "取消")
|
|
372
291
|
}, {
|
|
373
|
-
reference: () =>
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
292
|
+
reference: () => l(k, {
|
|
293
|
+
size: "small",
|
|
294
|
+
icon: te,
|
|
295
|
+
type: "danger",
|
|
296
|
+
link: !0
|
|
378
297
|
}, null)
|
|
379
298
|
})])
|
|
380
|
-
}))
|
|
381
|
-
|
|
382
|
-
const data = [...fullColumns.value, buttonsColumn.value];
|
|
383
|
-
return data;
|
|
384
|
-
});
|
|
385
|
-
const cuState = reactive({
|
|
386
|
-
type: CRUD.create,
|
|
299
|
+
})), L = b(() => [...v.value, V.value]), n = Y({
|
|
300
|
+
type: g.create,
|
|
387
301
|
index: 0,
|
|
388
302
|
// 新增时,表示在哪条点击的 +
|
|
389
303
|
data: {},
|
|
390
|
-
dialogVisible:
|
|
391
|
-
})
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
});
|
|
402
|
-
});
|
|
403
|
-
function handleMinus(index) {
|
|
404
|
-
const data = cloneDeep(props.modelValue);
|
|
405
|
-
data.splice(index, 1);
|
|
406
|
-
emit("update:modelValue", data);
|
|
304
|
+
dialogVisible: !1
|
|
305
|
+
}), q = b(() => t.columns.map((e) => ({
|
|
306
|
+
label: e.label,
|
|
307
|
+
readonly: i.value,
|
|
308
|
+
prop: e.prop,
|
|
309
|
+
templateType: e.templateType,
|
|
310
|
+
templateProps: e.templateProps
|
|
311
|
+
})));
|
|
312
|
+
function G(e) {
|
|
313
|
+
const o = C(t.modelValue);
|
|
314
|
+
o.splice(e, 1), s("update:modelValue", o);
|
|
407
315
|
}
|
|
408
|
-
function
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
cuState.data = cloneDeep(defaultItemValue);
|
|
412
|
-
cuState.type = CRUD.create;
|
|
413
|
-
cuState.dialogVisible = true;
|
|
316
|
+
function B(e) {
|
|
317
|
+
const o = N(t.defaultItemValue) ? t.defaultItemValue() : t.defaultItemValue;
|
|
318
|
+
n.index = e, n.data = C(o), n.type = g.create, n.dialogVisible = !0;
|
|
414
319
|
}
|
|
415
|
-
function
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
-
cuState.data = cloneDeep(data);
|
|
419
|
-
cuState.type = CRUD.update;
|
|
420
|
-
cuState.dialogVisible = true;
|
|
320
|
+
function H(e) {
|
|
321
|
+
const o = t.modelValue[e];
|
|
322
|
+
n.index = e, n.data = C(o), n.type = g.update, n.dialogVisible = !0;
|
|
421
323
|
}
|
|
422
|
-
function
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
newData.splice(cuState.index + 1, 0, data);
|
|
426
|
-
} else if (cuState.type === CRUD.update) {
|
|
427
|
-
newData[cuState.index] = data;
|
|
428
|
-
}
|
|
429
|
-
emit("update:modelValue", newData);
|
|
324
|
+
function J(e) {
|
|
325
|
+
const o = C(t.modelValue);
|
|
326
|
+
n.type === g.create ? o.splice(n.index + 1, 0, e) : n.type === g.update && (o[n.index] = e), s("update:modelValue", o);
|
|
430
327
|
}
|
|
431
|
-
const
|
|
432
|
-
console.warn("
|
|
433
|
-
const
|
|
434
|
-
|
|
435
|
-
emit("update:modelValue", getValue(data, props.prop));
|
|
436
|
-
};
|
|
437
|
-
const __returned__ = {
|
|
438
|
-
props,
|
|
439
|
-
emit,
|
|
440
|
-
tr,
|
|
441
|
-
ElTable: ElTable$1,
|
|
442
|
-
hasColAdd,
|
|
443
|
-
formItemBindProps,
|
|
444
|
-
readonly,
|
|
445
|
-
formData,
|
|
446
|
-
fullColumns,
|
|
447
|
-
buttonsColumn,
|
|
448
|
-
allColumns,
|
|
449
|
-
cuState,
|
|
450
|
-
cuFormItems,
|
|
451
|
-
handleMinus,
|
|
452
|
-
handlePlus,
|
|
453
|
-
handleEdit,
|
|
454
|
-
handleDialogFormChange,
|
|
455
|
-
handleFormSetData,
|
|
456
|
-
get Edit() {
|
|
457
|
-
return edit_default;
|
|
458
|
-
},
|
|
459
|
-
get Plus() {
|
|
460
|
-
return plus_default;
|
|
461
|
-
},
|
|
462
|
-
get VkfFormItem() {
|
|
463
|
-
return VkfFormItem;
|
|
464
|
-
},
|
|
465
|
-
get VkAvatar() {
|
|
466
|
-
return VkAvatar;
|
|
467
|
-
},
|
|
468
|
-
get VkTableColumns() {
|
|
469
|
-
return VkTableColumns;
|
|
470
|
-
},
|
|
471
|
-
get CRUD() {
|
|
472
|
-
return CRUD;
|
|
473
|
-
},
|
|
474
|
-
get ElButton() {
|
|
475
|
-
return ElButton;
|
|
476
|
-
},
|
|
477
|
-
DialogForm,
|
|
478
|
-
TemplatesLayout
|
|
328
|
+
const K = (e) => {
|
|
329
|
+
console.warn("表单项正在直接修改 Data, 这在 dialog-input-collection 可能是一个意外操作", e);
|
|
330
|
+
const o = C(d.value);
|
|
331
|
+
z(o, e), s("update:modelValue", oe(o, t.prop));
|
|
479
332
|
};
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
333
|
+
return (e, o) => (D(), _(j, null, [l(he, {
|
|
334
|
+
data: d.value,
|
|
335
|
+
onSetData: K
|
|
336
|
+
}, {
|
|
337
|
+
default: r(() => [l(a(le), Z(x({
|
|
338
|
+
...a(T),
|
|
339
|
+
...e.$attrs
|
|
340
|
+
})), ee({
|
|
341
|
+
default: r(() => [!a(i) && e.splicable && !e.labelActions ? (D(), _("div", Te, [l(a(k), {
|
|
342
|
+
type: "primary",
|
|
343
|
+
onClick: o[1] || (o[1] = (p) => B(-1))
|
|
344
|
+
}, {
|
|
345
|
+
default: r(() => [h(P(a(u)("vkf.common.add", "添加")), 1)]),
|
|
346
|
+
_: 1
|
|
347
|
+
})])) : O("", !0), l(a(c), {
|
|
348
|
+
data: e.modelValue,
|
|
349
|
+
class: "vkf-dialog-input-collection-table"
|
|
350
|
+
}, {
|
|
351
|
+
default: r(() => [l(a(pe), {
|
|
352
|
+
source: L.value
|
|
353
|
+
}, null, 8, ["source"])]),
|
|
354
|
+
_: 1
|
|
355
|
+
}, 8, ["data"])]),
|
|
356
|
+
_: 2
|
|
357
|
+
}, [e.labelActions ? {
|
|
358
|
+
name: "labelActions",
|
|
359
|
+
fn: r(() => [I(e.$slots, "labelActions"), !a(i) && e.splicable ? (D(), S(a(k), {
|
|
360
|
+
key: 0,
|
|
361
|
+
size: "small",
|
|
362
|
+
icon: a($),
|
|
363
|
+
onClick: o[0] || (o[0] = (p) => B(-1))
|
|
364
|
+
}, {
|
|
365
|
+
default: r(() => [h(P(a(u)("vkf.common.add", "添加")), 1)]),
|
|
366
|
+
_: 1
|
|
367
|
+
}, 8, ["icon"])) : O("", !0)]),
|
|
368
|
+
key: "0"
|
|
369
|
+
} : void 0]), 1040), l(Ie, {
|
|
370
|
+
visible: n.dialogVisible,
|
|
371
|
+
"onUpdate:visible": o[2] || (o[2] = (p) => n.dialogVisible = p),
|
|
372
|
+
modelValue: n.data,
|
|
373
|
+
"onUpdate:modelValue": o[3] || (o[3] = (p) => n.data = p),
|
|
374
|
+
formdata: e.formdata,
|
|
375
|
+
"form-items": q.value,
|
|
376
|
+
"dialog-form-props": e.dialogFormProps,
|
|
377
|
+
"validate-catch": e.validateCatch,
|
|
378
|
+
"onUpdate:formdata": o[4] || (o[4] = (p) => e.$emit("update:formdata", p)),
|
|
379
|
+
onChange: J
|
|
502
380
|
}, {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
!$setup.readonly && _ctx.splicable && !_ctx.labelActions ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
513
|
-
createVNode($setup["ElButton"], {
|
|
514
|
-
type: "primary",
|
|
515
|
-
onClick: _cache[1] || (_cache[1] = ($event) => $setup.handlePlus(-1))
|
|
516
|
-
}, {
|
|
517
|
-
default: withCtx(() => [
|
|
518
|
-
createTextVNode(
|
|
519
|
-
toDisplayString($setup.tr("vkf.dialogInputCollection.add", "\u6DFB\u52A0")),
|
|
520
|
-
1
|
|
521
|
-
/* TEXT */
|
|
522
|
-
)
|
|
523
|
-
]),
|
|
524
|
-
_: 1
|
|
525
|
-
/* STABLE */
|
|
526
|
-
})
|
|
527
|
-
])) : createCommentVNode("v-if", true),
|
|
528
|
-
createVNode($setup["ElTable"], {
|
|
529
|
-
data: _ctx.modelValue,
|
|
530
|
-
class: "vkf-dialog-input-collection-table"
|
|
531
|
-
}, {
|
|
532
|
-
default: withCtx(() => [
|
|
533
|
-
createVNode($setup["VkTableColumns"], { source: $setup.allColumns }, null, 8, ["source"])
|
|
534
|
-
]),
|
|
535
|
-
_: 1
|
|
536
|
-
/* STABLE */
|
|
537
|
-
}, 8, ["data"])
|
|
538
|
-
]),
|
|
539
|
-
_: 2
|
|
540
|
-
/* DYNAMIC */
|
|
541
|
-
}, [
|
|
542
|
-
_ctx.labelActions ? {
|
|
543
|
-
name: "labelActions",
|
|
544
|
-
fn: withCtx(() => [
|
|
545
|
-
renderSlot(_ctx.$slots, "labelActions"),
|
|
546
|
-
!$setup.readonly && _ctx.splicable ? (openBlock(), createBlock($setup["ElButton"], {
|
|
547
|
-
key: 0,
|
|
548
|
-
size: "small",
|
|
549
|
-
icon: $setup.Plus,
|
|
550
|
-
onClick: _cache[0] || (_cache[0] = ($event) => $setup.handlePlus(-1))
|
|
551
|
-
}, {
|
|
552
|
-
default: withCtx(() => [
|
|
553
|
-
createTextVNode(
|
|
554
|
-
toDisplayString($setup.tr("vkf.dialogInputCollection.add", "\u6DFB\u52A0")),
|
|
555
|
-
1
|
|
556
|
-
/* TEXT */
|
|
557
|
-
)
|
|
558
|
-
]),
|
|
559
|
-
_: 1
|
|
560
|
-
/* STABLE */
|
|
561
|
-
}, 8, ["icon"])) : createCommentVNode("v-if", true)
|
|
562
|
-
]),
|
|
563
|
-
key: "0"
|
|
564
|
-
} : void 0
|
|
565
|
-
]),
|
|
566
|
-
1040
|
|
567
|
-
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
568
|
-
),
|
|
569
|
-
createVNode($setup["DialogForm"], {
|
|
570
|
-
visible: $setup.cuState.dialogVisible,
|
|
571
|
-
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => $setup.cuState.dialogVisible = $event),
|
|
572
|
-
modelValue: $setup.cuState.data,
|
|
573
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $setup.cuState.data = $event),
|
|
574
|
-
formdata: _ctx.formdata,
|
|
575
|
-
"form-items": $setup.cuFormItems,
|
|
576
|
-
"dialog-form-props": _ctx.dialogFormProps,
|
|
577
|
-
"validate-catch": _ctx.validateCatch,
|
|
578
|
-
"onUpdate:formdata": _cache[4] || (_cache[4] = ($event) => _ctx.$emit("update:formdata", $event)),
|
|
579
|
-
onChange: $setup.handleDialogFormChange
|
|
580
|
-
}, {
|
|
581
|
-
header: withCtx(() => [
|
|
582
|
-
createElementVNode("div", _hoisted_2, [
|
|
583
|
-
createVNode($setup["VkAvatar"], {
|
|
584
|
-
icon: $setup.cuState.type === $setup.CRUD.create ? $setup.Plus : $setup.Edit
|
|
585
|
-
}, null, 8, ["icon"]),
|
|
586
|
-
createElementVNode(
|
|
587
|
-
"span",
|
|
588
|
-
_hoisted_3,
|
|
589
|
-
toDisplayString($setup.props.label),
|
|
590
|
-
1
|
|
591
|
-
/* TEXT */
|
|
592
|
-
)
|
|
593
|
-
])
|
|
594
|
-
]),
|
|
595
|
-
_: 1
|
|
596
|
-
/* STABLE */
|
|
597
|
-
}, 8, ["visible", "modelValue", "formdata", "form-items", "dialog-form-props", "validate-catch"])
|
|
598
|
-
]),
|
|
599
|
-
_: 3
|
|
600
|
-
/* FORWARDED */
|
|
601
|
-
}, 8, ["data"]),
|
|
602
|
-
renderSlot(_ctx.$slots, "default")
|
|
603
|
-
],
|
|
604
|
-
64
|
|
605
|
-
/* STABLE_FRAGMENT */
|
|
606
|
-
);
|
|
607
|
-
}
|
|
608
|
-
var VkfDialogInputCollection = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\dialog-input-collection\\src\\index.vue"]]);
|
|
609
|
-
|
|
610
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
381
|
+
header: r(() => [R("div", Be, [l(a(se), {
|
|
382
|
+
icon: n.type === a(g).create ? a($) : a(w)
|
|
383
|
+
}, null, 8, ["icon"]), R("span", Fe, P(t.label), 1)])]),
|
|
384
|
+
_: 1
|
|
385
|
+
}, 8, ["visible", "modelValue", "formdata", "form-items", "dialog-form-props", "validate-catch"])]),
|
|
386
|
+
_: 3
|
|
387
|
+
}, 8, ["data"]), I(e.$slots, "default")], 64));
|
|
388
|
+
}
|
|
389
|
+
}), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
611
390
|
__proto__: null
|
|
612
|
-
});
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
391
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
392
|
+
export {
|
|
393
|
+
Xe as VkfDialogInputCollection,
|
|
394
|
+
Ye as __VkfDialogInputCollection,
|
|
395
|
+
Xe as default
|
|
616
396
|
};
|
|
617
|
-
|
|
618
|
-
export { VkfDialogInputCollection, types as __VkfDialogInputCollection, VkfDialogInputCollection as default };
|