@vunk/form 2.19.19 → 2.19.21
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/ai-provider/index.cjs +1 -0
- package/components/ai-provider/index.d.ts +7 -0
- package/components/ai-provider/index.mjs +61 -0
- package/components/ai-provider/src/ctx.d.ts +8 -0
- package/components/ai-provider/src/index.vue.d.ts +23 -0
- package/components/ai-provider/src/types.d.ts +56 -0
- package/components/ai-provider/src/use.d.ts +3 -0
- package/components/api-tables-select/index.cjs +1 -1
- package/components/api-tables-select/index.mjs +1 -1
- package/components/api-tables-select/src/ctx.d.ts +57 -57
- package/components/api-tables-select/src/index.vue.d.ts +46 -419
- package/components/button/index.cjs +1 -1
- package/components/button/index.mjs +12 -12
- package/components/button/src/ctx.d.ts +7 -2
- package/components/button/src/index.vue.d.ts +36 -14
- package/components/card-input-collection/index.cjs +1 -1
- package/components/card-input-collection/index.mjs +136 -141
- package/components/card-input-collection/src/core.vue.d.ts +18 -7
- package/components/card-input-collection/src/ctx.d.ts +7 -2
- package/components/card-input-collection/src/index.vue.d.ts +18 -7
- package/components/cascader/index.cjs +1 -1
- package/components/cascader/index.mjs +38 -39
- package/components/cascader/src/ctx.d.ts +8 -3
- package/components/cascader/src/index.vue.d.ts +19 -8
- package/components/checkbox/src/ctx.d.ts +8 -3
- package/components/checkbox/src/index.vue.d.ts +43 -21
- package/components/{cloneDeep-DE0l40hv.mjs → cloneDeep-2YeQ7w2t.mjs} +10 -10
- package/components/cloneDeep-Btpy0oPF.js +1 -0
- package/components/collapse/index.cjs +1 -1
- package/components/collapse/index.mjs +19 -22
- package/components/collapse-item/index.cjs +1 -1
- package/components/collapse-item/index.mjs +21 -21
- package/components/collapse-item/src/index.vue.d.ts +2 -2
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.mjs +26 -27
- package/components/color-picker/src/ctx.d.ts +7 -2
- package/components/color-picker/src/index.vue.d.ts +17 -6
- package/components/{style.css → components.css} +1 -1
- package/components/date-picker/index.cjs +1 -1
- package/components/date-picker/index.mjs +40 -41
- package/components/date-picker/src/ctx.d.ts +8 -3
- package/components/date-picker/src/index.vue.d.ts +17 -6
- package/components/date-picker-range/index.cjs +1 -1
- package/components/date-picker-range/index.mjs +17 -17
- package/components/date-picker-range/src/ctx.d.ts +14 -9
- package/components/date-picker-range/src/index.vue.d.ts +48 -26
- package/components/dialog/index.cjs +1 -1
- package/components/dialog/index.mjs +41 -52
- package/components/dialog/src/ctx.d.ts +1 -1
- package/components/dialog/src/index.vue.d.ts +1 -1
- package/components/dialog-input-collection/index.cjs +1 -1
- package/components/dialog-input-collection/index.mjs +124 -122
- package/components/dialog-input-collection/src/ctx.d.ts +7 -2
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -1
- package/components/dialog-input-collection/src/index.vue.d.ts +17 -6
- package/components/download-plus/index.cjs +1 -1
- package/components/download-plus/index.mjs +193 -202
- package/components/download-plus/src/ctx.d.ts +7 -2
- package/components/download-plus/src/index.vue.d.ts +32 -10
- package/components/editable-text/index.cjs +1 -1
- package/components/editable-text/index.mjs +72 -75
- package/components/editable-text/src/ctx.d.ts +7 -2
- package/components/editable-text/src/index.vue.d.ts +18 -7
- package/components/el-slider/index.cjs +1 -1
- package/components/el-slider/index.mjs +230 -233
- package/components/el-slider/src/composables/index.cjs +1 -1
- package/components/el-slider/src/composables/index.mjs +1 -1
- package/components/el-slider/src/slider-core.vue.d.ts +3 -3
- package/components/esri-input-geojson/index.cjs +1 -5
- package/components/esri-input-geojson/index.mjs +59 -68
- package/components/esri-input-geojson/src/append.vue.d.ts +2 -2
- package/components/esri-input-geojson/src/ctx.d.ts +9 -4
- package/components/esri-input-geojson/src/index.vue.d.ts +65 -30
- package/components/fieldset/src/index.vue.d.ts +1 -1
- package/components/form/index.cjs +1 -1
- package/components/form/index.mjs +96 -101
- package/components/form/src/ctx.d.ts +2 -2
- package/components/form/src/index.vue.d.ts +4 -4
- package/components/form/src/use.d.ts +2 -2
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +179 -107
- package/components/form-item/src/core.vue.d.ts +7 -3
- package/components/form-item/src/ctx.d.ts +7 -1
- package/components/form-item/src/index.vue.d.ts +13 -2
- package/components/form-item/src/use.d.ts +11 -0
- package/components/form-item-renderer/index.cjs +1 -1
- package/components/form-item-renderer/index.d.ts +1 -0
- package/components/form-item-renderer/index.mjs +85 -78
- package/components/form-item-renderer/src/use.d.ts +3 -0
- package/components/forms-provider/index.cjs +1 -1
- package/components/forms-provider/index.mjs +18 -21
- package/components/index-BIo_4rr_.mjs +18620 -0
- package/components/index-Bc7UifHG.js +1 -0
- package/components/index-D0D9ABpH.js +108 -0
- package/components/{index-CeHbpfCD.mjs → index-DCNYT7Wv.mjs} +0 -1
- package/components/information-collection/index.cjs +1 -1
- package/components/information-collection/index.mjs +32 -38
- package/components/information-collection/src/ctx.d.ts +7 -2
- package/components/information-collection/src/index.vue.d.ts +17 -6
- package/components/information-tag/index.cjs +1 -1
- package/components/information-tag/index.mjs +9 -12
- package/components/information-tag/src/index.vue.d.ts +1 -1
- package/components/input/index.cjs +1 -1
- package/components/input/index.mjs +27 -27
- package/components/input/src/ctx.d.ts +9 -4
- package/components/input/src/index.vue.d.ts +35 -13
- package/components/input-array/index.cjs +1 -1
- package/components/input-array/index.mjs +71 -74
- package/components/input-array/src/ctx.d.ts +7 -2
- package/components/input-array/src/index.vue.d.ts +18 -7
- package/components/input-collection/index.cjs +1 -1
- package/components/input-collection/index.mjs +121 -126
- package/components/input-collection/src/core.vue.d.ts +17 -6
- package/components/input-collection/src/ctx.d.ts +7 -2
- package/components/input-collection/src/index.vue.d.ts +17 -6
- package/components/input-file/src/index.vue.d.ts +19 -8
- package/components/input-link/index.cjs +1 -1
- package/components/input-link/index.mjs +1 -1
- package/components/input-link/src/ctx.d.ts +7 -2
- package/components/input-link/src/index.vue.d.ts +54 -21
- package/components/input-number/index.cjs +1 -1
- package/components/input-number/index.mjs +30 -33
- package/components/input-number/src/ctx.d.ts +8 -3
- package/components/input-number/src/index.vue.d.ts +33 -11
- package/components/input-tag/index.cjs +1 -1
- package/components/input-tag/index.mjs +24 -24
- package/components/input-tag/src/ctx.d.ts +9 -4
- package/components/input-tag/src/index.vue.d.ts +33 -11
- package/components/monaco-editor/src/ctx.d.ts +8 -3
- package/components/monaco-editor/src/index.vue.d.ts +38 -16
- package/components/radio/src/ctx.d.ts +7 -2
- package/components/radio/src/index.vue.d.ts +40 -18
- package/components/radio/src/wraper.vue.d.ts +22 -11
- package/components/renderer-data/index.cjs +1 -1
- package/components/renderer-data/index.mjs +14 -17
- package/components/select/index.cjs +1 -1
- package/components/select/index.mjs +165 -112
- package/components/select/src/core.vue.d.ts +107 -70
- package/components/select/src/ctx.d.ts +16 -4
- package/components/select/src/index.vue.d.ts +62 -42
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.mjs +30 -31
- package/components/slider/src/ctx.d.ts +7 -2
- package/components/slider/src/index.vue.d.ts +18 -7
- package/components/switch/src/ctx.d.ts +7 -2
- package/components/switch/src/index.vue.d.ts +18 -7
- package/components/tables-select/index.cjs +1 -1
- package/components/tables-select/index.mjs +4 -4
- package/components/tables-select/src/ctx.d.ts +68 -68
- package/components/tables-select/src/index.vue.d.ts +52 -420
- package/components/template-instances-provider/index.cjs +1 -1
- package/components/template-instances-provider/index.mjs +11 -17
- package/components/templates-default/src/index.vue.d.ts +413 -185
- package/components/templates-esri/src/index.vue.d.ts +65 -30
- package/components/templates-variant/src/index.vue.d.ts +48 -26
- package/components/time-picker/index.cjs +1 -1
- package/components/time-picker/index.mjs +38 -39
- package/components/time-picker/src/ctx.d.ts +8 -3
- package/components/time-picker/src/index.vue.d.ts +17 -6
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +244 -253
- package/components/upload/src/ctx.d.ts +8 -3
- package/components/upload/src/file.vue.d.ts +3 -3
- package/components/upload/src/index.vue.d.ts +37 -15
- package/components/upload/src/wraper.vue.d.ts +19 -8
- package/components/upload-plus/index.cjs +7 -15
- package/components/upload-plus/index.mjs +1879 -1897
- package/components/upload-plus/src/ctx.d.ts +7 -2
- package/components/upload-plus/src/index.vue.d.ts +18 -7
- package/components/use-watch-C3iIa2DX.js +1 -0
- package/components/use-watch-Dp64x0si.mjs +411 -0
- package/components/van-cascader/src/ctx.d.ts +7 -2
- package/components/van-cascader/src/index.vue.d.ts +19 -8
- package/components/var-datetime-picker/src/ctx.d.ts +7 -2
- package/components/var-datetime-picker/src/index.vue.d.ts +30 -8
- package/components/vditor/src/ctx.d.ts +7 -2
- package/components/vditor/src/index.vue.d.ts +41 -19
- package/composables/element-plus/index.cjs +1 -1
- package/composables/element-plus/index.mjs +10 -10
- package/composables/form-mitt/index.mjs +1 -1
- package/composables/index.cjs +1 -1
- package/composables/index.mjs +53 -53
- package/index.css +1 -1
- package/locale/index.cjs +1 -1
- package/locale/index.mjs +8 -5
- package/locale/lang/ar.d.ts +1 -0
- package/locale/lang/en.d.ts +1 -0
- package/locale/lang/zh-cn.d.ts +1 -0
- package/package.json +9 -1
- package/shared/element-plus/ctx.d.ts +16 -16
- package/shared/types/source/index.d.ts +5 -0
- package/shared/upload/index.cjs +1 -1
- package/shared/upload/index.mjs +166 -165
- package/components/cloneDeep-DaYwfXwD.js +0 -1
- package/components/index-BBriTmQP.js +0 -1
- package/components/use-watch-Bfrz9pv_.js +0 -1
- package/components/use-watch-t49wP7jy.mjs +0 -414
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as
|
|
3
|
-
import { ensetData as
|
|
4
|
-
import { VkfFieldset as
|
|
5
|
-
import { _VkfFormItemCtx as
|
|
6
|
-
import { VkfFormItemRenderer as
|
|
7
|
-
import { VkfRendererData as
|
|
8
|
-
import { VkfTemplateInstancesProvider as
|
|
1
|
+
import { defineComponent as $, computed as s, createVNode as o, Fragment as X, ref as Z, openBlock as h, createBlock as T, unref as a, withCtx as p, normalizeProps as ee, guardReactiveProps as te, createSlots as le, createElementBlock as ae, createTextVNode as E, toDisplayString as B, createCommentVNode as R, renderSlot as A, h as oe } from "vue";
|
|
2
|
+
import { p as S, m as ne } from "../index-DCNYT7Wv.mjs";
|
|
3
|
+
import { ensetData as D, getValue as re } from "@vunk/core";
|
|
4
|
+
import { VkfFieldset as pe } from "@vunk/form/components/fieldset";
|
|
5
|
+
import { _VkfFormItemCtx as K, VkfFormItem as se } from "@vunk/form/components/form-item";
|
|
6
|
+
import { VkfFormItemRenderer as F } from "@vunk/form/components/form-item-renderer";
|
|
7
|
+
import { VkfRendererData as ue } from "@vunk/form/components/renderer-data";
|
|
8
|
+
import { VkfTemplateInstancesProvider as de } from "@vunk/form/components/template-instances-provider";
|
|
9
9
|
import { VkfTemplatesDefault as me } from "@vunk/form/components/templates-default";
|
|
10
|
-
import { useComputedReadonly as
|
|
11
|
-
import { useLocale as
|
|
12
|
-
import { VkTableColumns as
|
|
13
|
-
import { ElButton as
|
|
14
|
-
import { isCallable as
|
|
15
|
-
import { c as
|
|
16
|
-
const
|
|
17
|
-
...
|
|
10
|
+
import { useComputedReadonly as ie } from "@vunk/form/composables";
|
|
11
|
+
import { useLocale as ce } from "@vunk/form/composables/element-plus";
|
|
12
|
+
import { VkTableColumns as fe } from "@vunk/plus/components/table-columns";
|
|
13
|
+
import { ElButton as f, ElTable as ye } from "element-plus";
|
|
14
|
+
import { isCallable as _ } from "@vunk/shared/function";
|
|
15
|
+
import { c as d } from "../cloneDeep-2YeQ7w2t.mjs";
|
|
16
|
+
const O = {
|
|
17
|
+
...K.props,
|
|
18
18
|
columns: {
|
|
19
19
|
type: Array,
|
|
20
20
|
default: () => []
|
|
@@ -73,174 +73,169 @@ const z = {
|
|
|
73
73
|
type: Object,
|
|
74
74
|
default: () => ({})
|
|
75
75
|
}
|
|
76
|
-
},
|
|
76
|
+
}, z = {
|
|
77
77
|
"update:modelValue": null
|
|
78
|
-
},
|
|
78
|
+
}, Ve = {
|
|
79
79
|
key: 0,
|
|
80
80
|
class: "vkf-input-collection-options"
|
|
81
|
-
},
|
|
81
|
+
}, y = "_row_key", ke = /* @__PURE__ */ $({
|
|
82
82
|
inheritAttrs: !1,
|
|
83
83
|
__name: "core",
|
|
84
|
-
props:
|
|
85
|
-
emits:
|
|
84
|
+
props: O,
|
|
85
|
+
emits: z,
|
|
86
86
|
setup(m, {
|
|
87
|
-
emit:
|
|
87
|
+
emit: V
|
|
88
88
|
}) {
|
|
89
|
-
const
|
|
90
|
-
tr:
|
|
91
|
-
} =
|
|
89
|
+
const k = ye, t = m, i = V, {
|
|
90
|
+
tr: v
|
|
91
|
+
} = ce(), j = K.createBindProps(t), u = ie(t), C = s(() => {
|
|
92
92
|
if (!t.prop || t.prop.length === 0)
|
|
93
93
|
return t.modelValue;
|
|
94
94
|
const e = {};
|
|
95
|
-
return
|
|
95
|
+
return D(e, {
|
|
96
96
|
k: t.prop,
|
|
97
97
|
v: t.modelValue
|
|
98
98
|
}), e;
|
|
99
|
-
}),
|
|
100
|
-
addExpandRowKey:
|
|
101
|
-
removeExpandRowKey:
|
|
102
|
-
getExpandRowKeys:
|
|
103
|
-
},
|
|
99
|
+
}), I = {
|
|
100
|
+
addExpandRowKey: H,
|
|
101
|
+
removeExpandRowKey: J,
|
|
102
|
+
getExpandRowKeys: Q
|
|
103
|
+
}, L = s(() => t.columns.map((e) => ({
|
|
104
104
|
...e,
|
|
105
105
|
slots: (l) => {
|
|
106
|
-
|
|
107
|
-
const f = {
|
|
106
|
+
const c = {
|
|
108
107
|
prop: [t.prop ?? [], l.$index, e.prop].flat(),
|
|
109
108
|
readonly: u.value,
|
|
110
109
|
templateType: e.templateType,
|
|
111
110
|
templateProps: e.templateProps
|
|
112
111
|
};
|
|
113
|
-
return
|
|
112
|
+
return _(e.templateProps) && (c.templateProps = () => e.templateProps(l.row)), o(F, {
|
|
114
113
|
source: [{
|
|
115
|
-
...
|
|
116
|
-
...
|
|
114
|
+
...c,
|
|
115
|
+
...e.createTemplateProps?.(l, c, I)
|
|
117
116
|
}]
|
|
118
117
|
}, null);
|
|
119
118
|
}
|
|
120
|
-
}))),
|
|
119
|
+
}))), P = s(() => t.columns.filter((e) => e.expandVisible)), N = {
|
|
121
120
|
type: "expand",
|
|
122
121
|
slots: (e) => {
|
|
123
|
-
const l =
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
label: a.label,
|
|
122
|
+
const l = P.value.map((r) => {
|
|
123
|
+
const w = {
|
|
124
|
+
prop: [t.prop ?? [], e.$index, r.prop].flat(),
|
|
125
|
+
label: r.label,
|
|
128
126
|
readonly: u.value,
|
|
129
|
-
templateType:
|
|
130
|
-
templateProps:
|
|
127
|
+
templateType: r.templateType,
|
|
128
|
+
templateProps: r.templateProps
|
|
131
129
|
};
|
|
132
130
|
return {
|
|
133
|
-
...
|
|
134
|
-
...
|
|
131
|
+
...w,
|
|
132
|
+
...r.createTemplateProps?.(e, w, I)
|
|
135
133
|
};
|
|
136
134
|
});
|
|
137
|
-
return
|
|
135
|
+
return o(pe, {
|
|
138
136
|
class: "vk-input-collection__expand-fieldset",
|
|
139
137
|
"label-width": "auto",
|
|
140
138
|
"label-position": "right"
|
|
141
139
|
}, {
|
|
142
|
-
default: () => [
|
|
140
|
+
default: () => [o(F, {
|
|
143
141
|
source: l
|
|
144
142
|
}, null)]
|
|
145
143
|
});
|
|
146
144
|
}
|
|
147
|
-
},
|
|
148
|
-
label:
|
|
145
|
+
}, M = s(() => ({
|
|
146
|
+
label: v("vkf.common.operations", "操作"),
|
|
149
147
|
align: "center",
|
|
150
148
|
width: "85",
|
|
151
149
|
hidden: u.value || !t.splicable,
|
|
152
150
|
className: "vk-input-collection__buttons",
|
|
153
151
|
slots: ({
|
|
154
152
|
$index: e
|
|
155
|
-
}) =>
|
|
153
|
+
}) => o(X, null, [o(f, {
|
|
156
154
|
size: "small",
|
|
157
|
-
icon:
|
|
155
|
+
icon: S,
|
|
158
156
|
type: "primary",
|
|
159
157
|
link: !0,
|
|
160
158
|
circle: !0,
|
|
161
|
-
onClick: () =>
|
|
162
|
-
}, null),
|
|
159
|
+
onClick: () => W(e)
|
|
160
|
+
}, null), o(f, {
|
|
163
161
|
size: "small",
|
|
164
|
-
icon:
|
|
162
|
+
icon: ne,
|
|
165
163
|
type: "primary",
|
|
166
164
|
link: !0,
|
|
167
165
|
circle: !0,
|
|
168
166
|
disabled: t.modelValue.length <= 1 && t.keepLast,
|
|
169
|
-
onClick: () =>
|
|
167
|
+
onClick: () => Y(e)
|
|
170
168
|
}, null)])
|
|
171
|
-
})),
|
|
172
|
-
const e = [...
|
|
173
|
-
return
|
|
169
|
+
})), U = s(() => {
|
|
170
|
+
const e = [...L.value, M.value];
|
|
171
|
+
return P.value.length && e.unshift(N), e;
|
|
174
172
|
});
|
|
175
|
-
function
|
|
176
|
-
const l =
|
|
177
|
-
l.splice(e + 1, 0,
|
|
173
|
+
function W(e) {
|
|
174
|
+
const l = d(t.modelValue), r = _(t.defaultItemValue) ? t.defaultItemValue() : t.defaultItemValue;
|
|
175
|
+
l.splice(e + 1, 0, d(r)), i("update:modelValue", l), b([]);
|
|
178
176
|
}
|
|
179
|
-
function
|
|
177
|
+
function Y(e) {
|
|
180
178
|
if (t.keepLast && t.modelValue.length <= 1)
|
|
181
179
|
return;
|
|
182
|
-
const l =
|
|
183
|
-
l.splice(e, 1),
|
|
180
|
+
const l = d(t.modelValue);
|
|
181
|
+
l.splice(e, 1), i("update:modelValue", l), b([]);
|
|
184
182
|
}
|
|
185
|
-
const
|
|
186
|
-
const e =
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
const l =
|
|
190
|
-
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
t.defaultExpandAll && (r.value = w.value.map((e) => e[V]));
|
|
199
|
-
const H = (e, l) => {
|
|
200
|
-
r.value = l.map((a) => a[V]);
|
|
183
|
+
const g = () => {
|
|
184
|
+
const e = _(t.defaultItemValue) ? t.defaultItemValue() : t.defaultItemValue;
|
|
185
|
+
i("update:modelValue", [d(e), ...t.modelValue ?? []]), b([]);
|
|
186
|
+
}, q = (e) => {
|
|
187
|
+
const l = d(C.value);
|
|
188
|
+
D(l, e), i("update:modelValue", re(l, t.prop));
|
|
189
|
+
}, x = s(() => t.modelValue?.map((e, l) => ({
|
|
190
|
+
...e,
|
|
191
|
+
[y]: `${l}`
|
|
192
|
+
}))), n = Z([]);
|
|
193
|
+
t.defaultExpandAll && (n.value = x.value.map((e) => e[y]));
|
|
194
|
+
const G = (e, l) => {
|
|
195
|
+
n.value = l.map((r) => r[y]);
|
|
201
196
|
};
|
|
202
|
-
function
|
|
203
|
-
|
|
197
|
+
function b(e) {
|
|
198
|
+
n.value = e;
|
|
204
199
|
}
|
|
205
|
-
function
|
|
206
|
-
|
|
200
|
+
function H(e) {
|
|
201
|
+
n.value.indexOf(e) === -1 && n.value.push(e);
|
|
207
202
|
}
|
|
208
|
-
function
|
|
209
|
-
for (let l = 0; l <
|
|
210
|
-
if (
|
|
211
|
-
|
|
203
|
+
function J(e) {
|
|
204
|
+
for (let l = 0; l < n.value.length; l++)
|
|
205
|
+
if (n.value[l] === e) {
|
|
206
|
+
n.value.splice(l, 1);
|
|
212
207
|
break;
|
|
213
208
|
}
|
|
214
209
|
}
|
|
215
|
-
function
|
|
216
|
-
return
|
|
210
|
+
function Q() {
|
|
211
|
+
return n.value;
|
|
217
212
|
}
|
|
218
|
-
return (e, l) => (
|
|
219
|
-
placeholder: p(() => [
|
|
220
|
-
default: p(() => [
|
|
221
|
-
...
|
|
213
|
+
return (e, l) => (h(), T(a(de), null, {
|
|
214
|
+
placeholder: p(() => [o(a(me))]),
|
|
215
|
+
default: p(() => [o(a(se), ee(te({
|
|
216
|
+
...a(j),
|
|
222
217
|
...e.$attrs
|
|
223
|
-
})),
|
|
224
|
-
default: p(() => [!
|
|
218
|
+
})), le({
|
|
219
|
+
default: p(() => [!a(u) && e.splicable && !e.labelActions && e.topSplicable ? (h(), ae("div", Ve, [o(a(f), {
|
|
225
220
|
type: "primary",
|
|
226
|
-
onClick:
|
|
221
|
+
onClick: g
|
|
227
222
|
}, {
|
|
228
|
-
default: p(() => [B(
|
|
223
|
+
default: p(() => [E(B(a(v)("vkf.common.add", "添加")), 1)]),
|
|
229
224
|
_: 1
|
|
230
|
-
})])) :
|
|
231
|
-
data:
|
|
232
|
-
onSetData:
|
|
225
|
+
})])) : R("", !0), o(a(ue), {
|
|
226
|
+
data: C.value,
|
|
227
|
+
onSetData: q
|
|
233
228
|
}, {
|
|
234
|
-
default: p(() => [
|
|
235
|
-
data:
|
|
229
|
+
default: p(() => [o(a(k), {
|
|
230
|
+
data: x.value,
|
|
236
231
|
class: "vkf-input-collection-table",
|
|
237
|
-
"row-key":
|
|
238
|
-
"expand-row-keys":
|
|
232
|
+
"row-key": y,
|
|
233
|
+
"expand-row-keys": n.value,
|
|
239
234
|
"preserve-expanded-content": !0,
|
|
240
|
-
onExpandChange:
|
|
235
|
+
onExpandChange: G
|
|
241
236
|
}, {
|
|
242
|
-
default: p(() => [
|
|
243
|
-
source:
|
|
237
|
+
default: p(() => [o(a(fe), {
|
|
238
|
+
source: U.value
|
|
244
239
|
}, null, 8, ["source"])]),
|
|
245
240
|
_: 1
|
|
246
241
|
}, 8, ["data", "expand-row-keys"])]),
|
|
@@ -249,38 +244,38 @@ const z = {
|
|
|
249
244
|
_: 2
|
|
250
245
|
}, [e.labelActions ? {
|
|
251
246
|
name: "labelActions",
|
|
252
|
-
fn: p(() => [
|
|
247
|
+
fn: p(() => [A(e.$slots, "labelActions"), !a(u) && e.splicable && e.topSplicable ? (h(), T(a(f), {
|
|
253
248
|
key: 0,
|
|
254
249
|
size: "small",
|
|
255
|
-
icon:
|
|
256
|
-
onClick:
|
|
250
|
+
icon: a(S),
|
|
251
|
+
onClick: g
|
|
257
252
|
}, {
|
|
258
|
-
default: p(() => [B(
|
|
253
|
+
default: p(() => [E(B(a(v)("vkf.common.add", "添加")), 1)]),
|
|
259
254
|
_: 1
|
|
260
|
-
}, 8, ["icon"])) :
|
|
255
|
+
}, 8, ["icon"])) : R("", !0)]),
|
|
261
256
|
key: "0"
|
|
262
|
-
} : void 0]), 1040),
|
|
257
|
+
} : void 0]), 1040), A(e.$slots, "default")]),
|
|
263
258
|
_: 3
|
|
264
259
|
}));
|
|
265
260
|
}
|
|
266
|
-
}),
|
|
261
|
+
}), Se = $({
|
|
267
262
|
name: "VkfInputCollection",
|
|
268
|
-
props:
|
|
269
|
-
emits:
|
|
270
|
-
setup(m, { emit:
|
|
271
|
-
return () =>
|
|
263
|
+
props: O,
|
|
264
|
+
emits: z,
|
|
265
|
+
setup(m, { emit: V, slots: k }) {
|
|
266
|
+
return () => oe(ke, {
|
|
272
267
|
...m,
|
|
273
|
-
"onUpdate:modelValue": (t) =>
|
|
268
|
+
"onUpdate:modelValue": (t) => V("update:modelValue", t)
|
|
274
269
|
}, {
|
|
275
270
|
...m.slots,
|
|
276
|
-
...
|
|
271
|
+
...k
|
|
277
272
|
});
|
|
278
273
|
}
|
|
279
|
-
}),
|
|
274
|
+
}), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
280
275
|
__proto__: null
|
|
281
276
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
282
277
|
export {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
278
|
+
Se as VkfInputCollection,
|
|
279
|
+
De as __VkfInputCollection,
|
|
280
|
+
Se as default
|
|
286
281
|
};
|
|
@@ -50,6 +50,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
50
50
|
default: () => {};
|
|
51
51
|
};
|
|
52
52
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
53
|
+
error: StringConstructor;
|
|
54
|
+
prop: null;
|
|
53
55
|
labelPosition: {
|
|
54
56
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
55
57
|
default: undefined;
|
|
@@ -83,12 +85,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
83
85
|
type: BooleanConstructor;
|
|
84
86
|
default: boolean;
|
|
85
87
|
};
|
|
86
|
-
prop: null;
|
|
87
88
|
defaultModelValue: null;
|
|
88
89
|
labelTipProps: {
|
|
89
90
|
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
90
91
|
default: () => {};
|
|
91
92
|
};
|
|
93
|
+
ai: {
|
|
94
|
+
type: import("vue").PropType<import("../../ai-provider").AiConfig>;
|
|
95
|
+
default: undefined;
|
|
96
|
+
};
|
|
97
|
+
aiOutput: null;
|
|
92
98
|
label: StringConstructor;
|
|
93
99
|
labelWidth: {
|
|
94
100
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -102,7 +108,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
102
108
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
103
109
|
__epPropKey: true;
|
|
104
110
|
};
|
|
105
|
-
error: StringConstructor;
|
|
106
111
|
validateStatus: {
|
|
107
112
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
108
113
|
readonly required: false;
|
|
@@ -159,6 +164,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
159
164
|
default: () => {};
|
|
160
165
|
};
|
|
161
166
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
167
|
+
error: StringConstructor;
|
|
168
|
+
prop: null;
|
|
162
169
|
labelPosition: {
|
|
163
170
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
164
171
|
default: undefined;
|
|
@@ -192,12 +199,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
192
199
|
type: BooleanConstructor;
|
|
193
200
|
default: boolean;
|
|
194
201
|
};
|
|
195
|
-
prop: null;
|
|
196
202
|
defaultModelValue: null;
|
|
197
203
|
labelTipProps: {
|
|
198
204
|
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
199
205
|
default: () => {};
|
|
200
206
|
};
|
|
207
|
+
ai: {
|
|
208
|
+
type: import("vue").PropType<import("../../ai-provider").AiConfig>;
|
|
209
|
+
default: undefined;
|
|
210
|
+
};
|
|
211
|
+
aiOutput: null;
|
|
201
212
|
label: StringConstructor;
|
|
202
213
|
labelWidth: {
|
|
203
214
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -211,7 +222,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
211
222
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
212
223
|
__epPropKey: true;
|
|
213
224
|
};
|
|
214
|
-
error: StringConstructor;
|
|
215
225
|
validateStatus: {
|
|
216
226
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
217
227
|
readonly required: false;
|
|
@@ -225,8 +235,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
225
235
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
226
236
|
}>, {
|
|
227
237
|
required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
228
|
-
labelPosition: "
|
|
229
|
-
formItemSize: "
|
|
238
|
+
labelPosition: "start" | "left" | "right" | "top" | "end";
|
|
239
|
+
formItemSize: "small" | "default" | "large";
|
|
230
240
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
231
241
|
inline: boolean;
|
|
232
242
|
readonly: boolean;
|
|
@@ -234,6 +244,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
234
244
|
labelTip: string;
|
|
235
245
|
information: boolean;
|
|
236
246
|
labelTipProps: import("element-plus").UseTooltipProps;
|
|
247
|
+
ai: import("../../ai-provider").AiConfig;
|
|
237
248
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
238
249
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
239
250
|
modelValue: NormalObject[];
|
|
@@ -63,6 +63,8 @@ export declare const props: {
|
|
|
63
63
|
default: () => {};
|
|
64
64
|
};
|
|
65
65
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
66
|
+
error: StringConstructor;
|
|
67
|
+
prop: null;
|
|
66
68
|
labelPosition: {
|
|
67
69
|
type: PropType<"left" | "right" | "top" | "start" | "end">;
|
|
68
70
|
default: undefined;
|
|
@@ -96,12 +98,16 @@ export declare const props: {
|
|
|
96
98
|
type: BooleanConstructor;
|
|
97
99
|
default: boolean;
|
|
98
100
|
};
|
|
99
|
-
prop: null;
|
|
100
101
|
defaultModelValue: null;
|
|
101
102
|
labelTipProps: {
|
|
102
103
|
type: PropType<import("element-plus").UseTooltipProps>;
|
|
103
104
|
default: () => {};
|
|
104
105
|
};
|
|
106
|
+
ai: {
|
|
107
|
+
type: PropType<import("../../ai-provider").AiConfig>;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
aiOutput: null;
|
|
105
111
|
label: StringConstructor;
|
|
106
112
|
labelWidth: {
|
|
107
113
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -115,7 +121,6 @@ export declare const props: {
|
|
|
115
121
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
116
122
|
__epPropKey: true;
|
|
117
123
|
};
|
|
118
|
-
error: StringConstructor;
|
|
119
124
|
validateStatus: {
|
|
120
125
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
121
126
|
readonly required: false;
|
|
@@ -45,6 +45,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
45
45
|
default: () => {};
|
|
46
46
|
};
|
|
47
47
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
48
|
+
error: StringConstructor;
|
|
49
|
+
prop: null;
|
|
48
50
|
labelPosition: {
|
|
49
51
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
50
52
|
default: undefined;
|
|
@@ -78,12 +80,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
78
80
|
type: BooleanConstructor;
|
|
79
81
|
default: boolean;
|
|
80
82
|
};
|
|
81
|
-
prop: null;
|
|
82
83
|
defaultModelValue: null;
|
|
83
84
|
labelTipProps: {
|
|
84
85
|
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
85
86
|
default: () => {};
|
|
86
87
|
};
|
|
88
|
+
ai: {
|
|
89
|
+
type: import("vue").PropType<import("../../ai-provider/index.ts").AiConfig>;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
92
|
+
aiOutput: null;
|
|
87
93
|
label: StringConstructor;
|
|
88
94
|
labelWidth: {
|
|
89
95
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -97,7 +103,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
97
103
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
98
104
|
__epPropKey: true;
|
|
99
105
|
};
|
|
100
|
-
error: StringConstructor;
|
|
101
106
|
validateStatus: {
|
|
102
107
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
103
108
|
readonly required: false;
|
|
@@ -156,6 +161,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
156
161
|
default: () => {};
|
|
157
162
|
};
|
|
158
163
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
164
|
+
error: StringConstructor;
|
|
165
|
+
prop: null;
|
|
159
166
|
labelPosition: {
|
|
160
167
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
161
168
|
default: undefined;
|
|
@@ -189,12 +196,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
189
196
|
type: BooleanConstructor;
|
|
190
197
|
default: boolean;
|
|
191
198
|
};
|
|
192
|
-
prop: null;
|
|
193
199
|
defaultModelValue: null;
|
|
194
200
|
labelTipProps: {
|
|
195
201
|
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
196
202
|
default: () => {};
|
|
197
203
|
};
|
|
204
|
+
ai: {
|
|
205
|
+
type: import("vue").PropType<import("../../ai-provider/index.ts").AiConfig>;
|
|
206
|
+
default: undefined;
|
|
207
|
+
};
|
|
208
|
+
aiOutput: null;
|
|
198
209
|
label: StringConstructor;
|
|
199
210
|
labelWidth: {
|
|
200
211
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -208,7 +219,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
208
219
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
209
220
|
__epPropKey: true;
|
|
210
221
|
};
|
|
211
|
-
error: StringConstructor;
|
|
212
222
|
validateStatus: {
|
|
213
223
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
214
224
|
readonly required: false;
|
|
@@ -222,8 +232,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
222
232
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
223
233
|
}>, {
|
|
224
234
|
required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
225
|
-
labelPosition: "
|
|
226
|
-
formItemSize: "
|
|
235
|
+
labelPosition: "start" | "left" | "right" | "top" | "end";
|
|
236
|
+
formItemSize: "small" | "default" | "large";
|
|
227
237
|
formItemSlots: import("../../form-item/src/types.ts").FormItemSlots;
|
|
228
238
|
inline: boolean;
|
|
229
239
|
readonly: boolean;
|
|
@@ -231,6 +241,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
231
241
|
labelTip: string;
|
|
232
242
|
information: boolean;
|
|
233
243
|
labelTipProps: import("element-plus").UseTooltipProps;
|
|
244
|
+
ai: import("../../ai-provider/index.ts").AiConfig;
|
|
234
245
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
235
246
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
236
247
|
modelValue: import("@vunk/shared").NormalObject[];
|