@vunk/form 2.0.2 → 2.2.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.
Files changed (62) hide show
  1. package/components/card-input-collection/index.cjs +256 -0
  2. package/components/card-input-collection/index.css +21 -0
  3. package/components/card-input-collection/index.d.ts +4 -0
  4. package/components/card-input-collection/index.mjs +250 -0
  5. package/components/card-input-collection/src/ctx.d.ts +82 -0
  6. package/components/card-input-collection/src/index.vue.d.ts +542 -0
  7. package/components/card-input-collection/src/types.d.ts +1 -0
  8. package/components/cascader/src/ctx.d.ts +1 -1
  9. package/components/cascader/src/index.vue.d.ts +1 -1
  10. package/components/checkbox/src/ctx.d.ts +1 -1
  11. package/components/checkbox/src/index.vue.d.ts +2 -2
  12. package/components/cloneDeep.cjs +2029 -0
  13. package/components/cloneDeep.mjs +2027 -0
  14. package/components/date-picker/src/ctx.d.ts +1 -1
  15. package/components/date-picker/src/index.vue.d.ts +2 -2
  16. package/components/esri-input-geojson/index.cjs +484 -2
  17. package/components/esri-input-geojson/index.mjs +483 -1
  18. package/components/esri-input-geojson/src/ctx.d.ts +1 -1
  19. package/components/esri-input-geojson/src/index.vue.d.ts +2 -2
  20. package/components/form/src/ctx.d.ts +1 -1
  21. package/components/form/src/index.vue.d.ts +1 -1
  22. package/components/index2.cjs +0 -19
  23. package/components/index2.mjs +1 -19
  24. package/components/input/src/ctx.d.ts +1 -1
  25. package/components/input/src/index.vue.d.ts +2 -2
  26. package/components/input-collection/index.cjs +4 -2029
  27. package/components/input-collection/index.mjs +4 -2029
  28. package/components/input-collection/src/index.vue.d.ts +1 -1
  29. package/components/input-link/src/index.vue.d.ts +1 -1
  30. package/components/input-number/src/ctx.d.ts +1 -1
  31. package/components/input-number/src/index.vue.d.ts +3 -3
  32. package/components/radio/src/index.vue.d.ts +1 -1
  33. package/components/select/index.cjs +12 -0
  34. package/components/select/index.d.ts +1 -0
  35. package/components/select/index.mjs +12 -1
  36. package/components/select/src/ctx.d.ts +2 -0
  37. package/components/select/src/index.vue.d.ts +2 -2
  38. package/components/slider/src/index.vue.d.ts +1 -1
  39. package/components/switch/src/index.vue.d.ts +1 -1
  40. package/components/tables-select/index.cjs +225 -0
  41. package/components/tables-select/index.css +3 -0
  42. package/components/tables-select/index.d.ts +4 -0
  43. package/components/tables-select/index.mjs +219 -0
  44. package/components/tables-select/src/ctx.d.ts +338 -0
  45. package/components/tables-select/src/index.vue.d.ts +4953 -0
  46. package/components/tables-select/src/types.d.ts +1 -0
  47. package/components/upload/index.mjs +1 -1
  48. package/components/upload-plus/index.mjs +1 -1
  49. package/components/vditor/src/index.vue.d.ts +1 -1
  50. package/index.css +26 -41
  51. package/package.json +17 -9
  52. package/shared/element-plus/ctx.d.ts +1 -1
  53. package/components/geoinput-update/index.cjs +0 -406
  54. package/components/geoinput-update/index.css +0 -40
  55. package/components/geoinput-update/index.d.ts +0 -5
  56. package/components/geoinput-update/index.mjs +0 -399
  57. package/components/geoinput-update/src/append.vue.d.ts +0 -815
  58. package/components/geoinput-update/src/ctx.d.ts +0 -219
  59. package/components/geoinput-update/src/index.vue.d.ts +0 -1143
  60. package/components/geoinput-update/src/types.d.ts +0 -6
  61. package/components/index3.cjs +0 -486
  62. package/components/index3.mjs +0 -484
@@ -0,0 +1,256 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var formItem = require('@vunk/form/components/form-item');
6
+ var vue = require('vue');
7
+ var composables = require('@vunk/form/composables');
8
+ var elementPlus = require('element-plus');
9
+ var core = require('@vunk/core');
10
+ var templatesDefault = require('@vunk/form/components/templates-default');
11
+ var templateInstancesProvider = require('@vunk/form/components/template-instances-provider');
12
+ var formItemRenderer = require('@vunk/form/components/form-item-renderer');
13
+ var rendererData = require('@vunk/form/components/renderer-data');
14
+ var cloneDeep = require('../cloneDeep.cjs');
15
+ var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
16
+
17
+ const props = {
18
+ ...formItem._VkfFormItemCtx.props,
19
+ formItems: {
20
+ type: Array,
21
+ default: () => []
22
+ },
23
+ modelValue: {
24
+ type: Array,
25
+ default: () => []
26
+ },
27
+ readonly: {
28
+ type: Boolean,
29
+ default: void 0
30
+ },
31
+ /**
32
+ * @description 是否可以splice
33
+ */
34
+ splicable: {
35
+ type: Boolean,
36
+ default: true
37
+ },
38
+ /**
39
+ * @description card中的模板是否继承父级表单的模板
40
+ */
41
+ inheritTemplates: {
42
+ type: Boolean,
43
+ default: false
44
+ }
45
+ };
46
+ const emits = {};
47
+
48
+ var _sfc_main = vue.defineComponent({
49
+ name: "VkfCardInputCollection",
50
+ components: {
51
+ VkfFormItem: formItem.VkfFormItem,
52
+ ElCard: elementPlus.ElCard,
53
+ ElButton: elementPlus.ElButton,
54
+ ElEmpty: elementPlus.ElEmpty,
55
+ VkfTemplateInstancesProvider: templateInstancesProvider.VkfTemplateInstancesProvider,
56
+ VkfTemplatesDefault: templatesDefault.VkfTemplatesDefault,
57
+ VkfRendererData: rendererData.VkfRendererData,
58
+ VkfFormItemRenderer: formItemRenderer.VkfFormItemRenderer
59
+ },
60
+ props,
61
+ emits,
62
+ setup(props2, { emit }) {
63
+ const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props2);
64
+ const readonly = composables.useComputedReadonly(props2);
65
+ const formData = vue.computed(() => {
66
+ if (!props2.prop || props2.prop.length === 0) {
67
+ return props2.modelValue;
68
+ }
69
+ const data = {};
70
+ core.ensetData(data, {
71
+ k: props2.prop,
72
+ v: props2.modelValue
73
+ });
74
+ return data;
75
+ });
76
+ function handlePlus(index) {
77
+ const data = cloneDeep.cloneDeep(props2.modelValue);
78
+ data.splice(index + 1, 0, {});
79
+ emit("update:modelValue", data);
80
+ }
81
+ function handleMinus(index) {
82
+ const data = cloneDeep.cloneDeep(props2.modelValue);
83
+ data.splice(index, 1);
84
+ emit("update:modelValue", data);
85
+ }
86
+ const addToFirst = () => {
87
+ emit("update:modelValue", [
88
+ {},
89
+ ...props2.modelValue
90
+ ]);
91
+ };
92
+ const handleFormSetData = (e) => {
93
+ const data = cloneDeep.cloneDeep(formData.value);
94
+ core.ensetData(data, e);
95
+ emit("update:modelValue", core.getValue(data, props2.prop));
96
+ };
97
+ function createTheFormItems(index) {
98
+ return props2.formItems.map((formItem) => {
99
+ return {
100
+ readonly: readonly.value,
101
+ ...formItem,
102
+ prop: [
103
+ props2.prop ?? [],
104
+ index,
105
+ formItem.prop
106
+ ].flat()
107
+ };
108
+ });
109
+ }
110
+ return {
111
+ formItemBindProps,
112
+ addToFirst,
113
+ readonly,
114
+ handleMinus,
115
+ handlePlus,
116
+ formData,
117
+ handleFormSetData,
118
+ createTheFormItems
119
+ };
120
+ }
121
+ });
122
+
123
+ const _hoisted_1 = {
124
+ key: 0,
125
+ class: "vkf-card-input-collection-options"
126
+ };
127
+ const _hoisted_2 = { class: "vkf-card-input-collection-card__footer" };
128
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
129
+ const _component_VkfTemplatesDefault = vue.resolveComponent("VkfTemplatesDefault");
130
+ const _component_ElButton = vue.resolveComponent("ElButton");
131
+ const _component_ElEmpty = vue.resolveComponent("ElEmpty");
132
+ const _component_VkfFormItemRenderer = vue.resolveComponent("VkfFormItemRenderer");
133
+ const _component_ElCard = vue.resolveComponent("ElCard");
134
+ const _component_VkfFormItem = vue.resolveComponent("VkfFormItem");
135
+ const _component_VkfRendererData = vue.resolveComponent("VkfRendererData");
136
+ const _component_VkfTemplateInstancesProvider = vue.resolveComponent("VkfTemplateInstancesProvider");
137
+ return vue.openBlock(), vue.createBlock(_component_VkfTemplateInstancesProvider, { "inherit-templates": _ctx.inheritTemplates }, {
138
+ default: vue.withCtx(() => [
139
+ !_ctx.inheritTemplates ? (vue.openBlock(), vue.createBlock(_component_VkfTemplatesDefault, { key: 0 })) : vue.createCommentVNode("v-if", true),
140
+ vue.createVNode(_component_VkfRendererData, {
141
+ data: _ctx.formData,
142
+ onSetData: _ctx.handleFormSetData
143
+ }, {
144
+ default: vue.withCtx(() => [
145
+ vue.createVNode(
146
+ _component_VkfFormItem,
147
+ vue.mergeProps(_ctx.formItemBindProps, { class: "vkf-card-input-collection" }),
148
+ {
149
+ default: vue.withCtx(() => [
150
+ !_ctx.readonly && _ctx.splicable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
151
+ vue.createVNode(_component_ElButton, {
152
+ type: "primary",
153
+ onClick: _ctx.addToFirst
154
+ }, {
155
+ default: vue.withCtx(() => _cache[0] || (_cache[0] = [
156
+ vue.createTextVNode(" \u6DFB\u52A0 ")
157
+ ])),
158
+ _: 1
159
+ /* STABLE */
160
+ }, 8, ["onClick"])
161
+ ])) : vue.createCommentVNode("v-if", true),
162
+ !_ctx.modelValue?.length ? (vue.openBlock(), vue.createBlock(_component_ElEmpty, {
163
+ key: 1,
164
+ class: "vkf-card-input-collection-empty"
165
+ }, {
166
+ image: vue.withCtx(() => _cache[1] || (_cache[1] = [
167
+ vue.createTextVNode(vue.toDisplayString(""))
168
+ ])),
169
+ _: 1
170
+ /* STABLE */
171
+ })) : vue.createCommentVNode("v-if", true),
172
+ (vue.openBlock(true), vue.createElementBlock(
173
+ vue.Fragment,
174
+ null,
175
+ vue.renderList(_ctx.modelValue, (item, index) => {
176
+ return vue.openBlock(), vue.createBlock(
177
+ _component_ElCard,
178
+ {
179
+ key: index,
180
+ class: "vkf-card-input-collection-card",
181
+ shadow: "hover"
182
+ },
183
+ vue.createSlots({
184
+ default: vue.withCtx(() => [
185
+ vue.createVNode(_component_VkfFormItemRenderer, {
186
+ source: _ctx.createTheFormItems(index)
187
+ }, null, 8, ["source"])
188
+ ]),
189
+ _: 2
190
+ /* DYNAMIC */
191
+ }, [
192
+ !_ctx.readonly && _ctx.splicable ? {
193
+ name: "footer",
194
+ fn: vue.withCtx(() => [
195
+ vue.createElementVNode("div", _hoisted_2, [
196
+ vue.createVNode(_component_ElButton, {
197
+ type: "primary",
198
+ onClick: () => _ctx.handlePlus(index)
199
+ }, {
200
+ default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
201
+ vue.createTextVNode(" \u6DFB\u52A0 ")
202
+ ])]),
203
+ _: 2
204
+ /* DYNAMIC */
205
+ }, 1032, ["onClick"]),
206
+ vue.createVNode(_component_ElButton, {
207
+ type: "danger",
208
+ onClick: () => _ctx.handleMinus(index)
209
+ }, {
210
+ default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
211
+ vue.createTextVNode(" \u5220\u9664 ")
212
+ ])]),
213
+ _: 2
214
+ /* DYNAMIC */
215
+ }, 1032, ["onClick"])
216
+ ])
217
+ ]),
218
+ key: "0"
219
+ } : void 0
220
+ ]),
221
+ 1024
222
+ /* DYNAMIC_SLOTS */
223
+ );
224
+ }),
225
+ 128
226
+ /* KEYED_FRAGMENT */
227
+ ))
228
+ ]),
229
+ _: 1
230
+ /* STABLE */
231
+ },
232
+ 16
233
+ /* FULL_PROPS */
234
+ )
235
+ ]),
236
+ _: 1
237
+ /* STABLE */
238
+ }, 8, ["data", "onSetData"])
239
+ ]),
240
+ _: 1
241
+ /* STABLE */
242
+ }, 8, ["inherit-templates"]);
243
+ }
244
+ var VkfCardInputCollection = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/card-input-collection/src/index.vue"]]);
245
+
246
+ var types = /*#__PURE__*/Object.freeze({
247
+ __proto__: null
248
+ });
249
+
250
+ VkfCardInputCollection.install = (app) => {
251
+ app.component(VkfCardInputCollection.name || "VkfCardInputCollection", VkfCardInputCollection);
252
+ };
253
+
254
+ exports.VkfCardInputCollection = VkfCardInputCollection;
255
+ exports.__VkfCardInputCollection = types;
256
+ exports.default = VkfCardInputCollection;
@@ -0,0 +1,21 @@
1
+ .vkf-card-input-collection-options{
2
+ width: 100%;
3
+ display: flex;
4
+ justify-content: flex-end;
5
+ }
6
+ .vkf-card-input-collection-card {
7
+ width: 100%;
8
+ margin-top: var(--gap-m, 8px);
9
+ }
10
+ .vkf-card-input-collection-card__footer{
11
+ display: flex;
12
+ justify-content: flex-end;
13
+ }
14
+ .vkf-card-input-collection-card .vkf-form-item:not(:last-child) {
15
+ margin-bottom: 18px;
16
+ }
17
+ .vkf-card-input-collection-empty{
18
+ display: flex;
19
+ justify-content: center;
20
+ width: 100%;
21
+ }
@@ -0,0 +1,4 @@
1
+ import VkfCardInputCollection from './src/index.vue';
2
+ export * as __VkfCardInputCollection from './src/types';
3
+ export { VkfCardInputCollection, };
4
+ export default VkfCardInputCollection;
@@ -0,0 +1,250 @@
1
+ import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
2
+ import { defineComponent, computed, resolveComponent, openBlock, createBlock, withCtx, createCommentVNode, createVNode, mergeProps, createElementBlock, createTextVNode, toDisplayString, Fragment, renderList, createSlots, createElementVNode } from 'vue';
3
+ import { useComputedReadonly } from '@vunk/form/composables';
4
+ import { ElCard, ElButton, ElEmpty } from 'element-plus';
5
+ import { ensetData, getValue } from '@vunk/core';
6
+ import { VkfTemplatesDefault } from '@vunk/form/components/templates-default';
7
+ import { VkfTemplateInstancesProvider } from '@vunk/form/components/template-instances-provider';
8
+ import { VkfFormItemRenderer } from '@vunk/form/components/form-item-renderer';
9
+ import { VkfRendererData } from '@vunk/form/components/renderer-data';
10
+ import { c as cloneDeep } from '../cloneDeep.mjs';
11
+ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
12
+
13
+ const props = {
14
+ ..._VkfFormItemCtx.props,
15
+ formItems: {
16
+ type: Array,
17
+ default: () => []
18
+ },
19
+ modelValue: {
20
+ type: Array,
21
+ default: () => []
22
+ },
23
+ readonly: {
24
+ type: Boolean,
25
+ default: void 0
26
+ },
27
+ /**
28
+ * @description 是否可以splice
29
+ */
30
+ splicable: {
31
+ type: Boolean,
32
+ default: true
33
+ },
34
+ /**
35
+ * @description card中的模板是否继承父级表单的模板
36
+ */
37
+ inheritTemplates: {
38
+ type: Boolean,
39
+ default: false
40
+ }
41
+ };
42
+ const emits = {};
43
+
44
+ var _sfc_main = defineComponent({
45
+ name: "VkfCardInputCollection",
46
+ components: {
47
+ VkfFormItem,
48
+ ElCard,
49
+ ElButton,
50
+ ElEmpty,
51
+ VkfTemplateInstancesProvider,
52
+ VkfTemplatesDefault,
53
+ VkfRendererData,
54
+ VkfFormItemRenderer
55
+ },
56
+ props,
57
+ emits,
58
+ setup(props2, { emit }) {
59
+ const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
60
+ const readonly = useComputedReadonly(props2);
61
+ const formData = computed(() => {
62
+ if (!props2.prop || props2.prop.length === 0) {
63
+ return props2.modelValue;
64
+ }
65
+ const data = {};
66
+ ensetData(data, {
67
+ k: props2.prop,
68
+ v: props2.modelValue
69
+ });
70
+ return data;
71
+ });
72
+ function handlePlus(index) {
73
+ const data = cloneDeep(props2.modelValue);
74
+ data.splice(index + 1, 0, {});
75
+ emit("update:modelValue", data);
76
+ }
77
+ function handleMinus(index) {
78
+ const data = cloneDeep(props2.modelValue);
79
+ data.splice(index, 1);
80
+ emit("update:modelValue", data);
81
+ }
82
+ const addToFirst = () => {
83
+ emit("update:modelValue", [
84
+ {},
85
+ ...props2.modelValue
86
+ ]);
87
+ };
88
+ const handleFormSetData = (e) => {
89
+ const data = cloneDeep(formData.value);
90
+ ensetData(data, e);
91
+ emit("update:modelValue", getValue(data, props2.prop));
92
+ };
93
+ function createTheFormItems(index) {
94
+ return props2.formItems.map((formItem) => {
95
+ return {
96
+ readonly: readonly.value,
97
+ ...formItem,
98
+ prop: [
99
+ props2.prop ?? [],
100
+ index,
101
+ formItem.prop
102
+ ].flat()
103
+ };
104
+ });
105
+ }
106
+ return {
107
+ formItemBindProps,
108
+ addToFirst,
109
+ readonly,
110
+ handleMinus,
111
+ handlePlus,
112
+ formData,
113
+ handleFormSetData,
114
+ createTheFormItems
115
+ };
116
+ }
117
+ });
118
+
119
+ const _hoisted_1 = {
120
+ key: 0,
121
+ class: "vkf-card-input-collection-options"
122
+ };
123
+ const _hoisted_2 = { class: "vkf-card-input-collection-card__footer" };
124
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
125
+ const _component_VkfTemplatesDefault = resolveComponent("VkfTemplatesDefault");
126
+ const _component_ElButton = resolveComponent("ElButton");
127
+ const _component_ElEmpty = resolveComponent("ElEmpty");
128
+ const _component_VkfFormItemRenderer = resolveComponent("VkfFormItemRenderer");
129
+ const _component_ElCard = resolveComponent("ElCard");
130
+ const _component_VkfFormItem = resolveComponent("VkfFormItem");
131
+ const _component_VkfRendererData = resolveComponent("VkfRendererData");
132
+ const _component_VkfTemplateInstancesProvider = resolveComponent("VkfTemplateInstancesProvider");
133
+ return openBlock(), createBlock(_component_VkfTemplateInstancesProvider, { "inherit-templates": _ctx.inheritTemplates }, {
134
+ default: withCtx(() => [
135
+ !_ctx.inheritTemplates ? (openBlock(), createBlock(_component_VkfTemplatesDefault, { key: 0 })) : createCommentVNode("v-if", true),
136
+ createVNode(_component_VkfRendererData, {
137
+ data: _ctx.formData,
138
+ onSetData: _ctx.handleFormSetData
139
+ }, {
140
+ default: withCtx(() => [
141
+ createVNode(
142
+ _component_VkfFormItem,
143
+ mergeProps(_ctx.formItemBindProps, { class: "vkf-card-input-collection" }),
144
+ {
145
+ default: withCtx(() => [
146
+ !_ctx.readonly && _ctx.splicable ? (openBlock(), createElementBlock("div", _hoisted_1, [
147
+ createVNode(_component_ElButton, {
148
+ type: "primary",
149
+ onClick: _ctx.addToFirst
150
+ }, {
151
+ default: withCtx(() => _cache[0] || (_cache[0] = [
152
+ createTextVNode(" \u6DFB\u52A0 ")
153
+ ])),
154
+ _: 1
155
+ /* STABLE */
156
+ }, 8, ["onClick"])
157
+ ])) : createCommentVNode("v-if", true),
158
+ !_ctx.modelValue?.length ? (openBlock(), createBlock(_component_ElEmpty, {
159
+ key: 1,
160
+ class: "vkf-card-input-collection-empty"
161
+ }, {
162
+ image: withCtx(() => _cache[1] || (_cache[1] = [
163
+ createTextVNode(toDisplayString(""))
164
+ ])),
165
+ _: 1
166
+ /* STABLE */
167
+ })) : createCommentVNode("v-if", true),
168
+ (openBlock(true), createElementBlock(
169
+ Fragment,
170
+ null,
171
+ renderList(_ctx.modelValue, (item, index) => {
172
+ return openBlock(), createBlock(
173
+ _component_ElCard,
174
+ {
175
+ key: index,
176
+ class: "vkf-card-input-collection-card",
177
+ shadow: "hover"
178
+ },
179
+ createSlots({
180
+ default: withCtx(() => [
181
+ createVNode(_component_VkfFormItemRenderer, {
182
+ source: _ctx.createTheFormItems(index)
183
+ }, null, 8, ["source"])
184
+ ]),
185
+ _: 2
186
+ /* DYNAMIC */
187
+ }, [
188
+ !_ctx.readonly && _ctx.splicable ? {
189
+ name: "footer",
190
+ fn: withCtx(() => [
191
+ createElementVNode("div", _hoisted_2, [
192
+ createVNode(_component_ElButton, {
193
+ type: "primary",
194
+ onClick: () => _ctx.handlePlus(index)
195
+ }, {
196
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
197
+ createTextVNode(" \u6DFB\u52A0 ")
198
+ ])]),
199
+ _: 2
200
+ /* DYNAMIC */
201
+ }, 1032, ["onClick"]),
202
+ createVNode(_component_ElButton, {
203
+ type: "danger",
204
+ onClick: () => _ctx.handleMinus(index)
205
+ }, {
206
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
207
+ createTextVNode(" \u5220\u9664 ")
208
+ ])]),
209
+ _: 2
210
+ /* DYNAMIC */
211
+ }, 1032, ["onClick"])
212
+ ])
213
+ ]),
214
+ key: "0"
215
+ } : void 0
216
+ ]),
217
+ 1024
218
+ /* DYNAMIC_SLOTS */
219
+ );
220
+ }),
221
+ 128
222
+ /* KEYED_FRAGMENT */
223
+ ))
224
+ ]),
225
+ _: 1
226
+ /* STABLE */
227
+ },
228
+ 16
229
+ /* FULL_PROPS */
230
+ )
231
+ ]),
232
+ _: 1
233
+ /* STABLE */
234
+ }, 8, ["data", "onSetData"])
235
+ ]),
236
+ _: 1
237
+ /* STABLE */
238
+ }, 8, ["inherit-templates"]);
239
+ }
240
+ var VkfCardInputCollection = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/card-input-collection/src/index.vue"]]);
241
+
242
+ var types = /*#__PURE__*/Object.freeze({
243
+ __proto__: null
244
+ });
245
+
246
+ VkfCardInputCollection.install = (app) => {
247
+ app.component(VkfCardInputCollection.name || "VkfCardInputCollection", VkfCardInputCollection);
248
+ };
249
+
250
+ export { VkfCardInputCollection, types as __VkfCardInputCollection, VkfCardInputCollection as default };
@@ -0,0 +1,82 @@
1
+ import { PropType } from 'vue';
2
+ import { NormalObject } from '@vunk/shared';
3
+ export declare const props: {
4
+ formItems: {
5
+ type: PropType<any[]>;
6
+ default: () => any[];
7
+ };
8
+ modelValue: {
9
+ type: PropType<NormalObject[]>;
10
+ default: () => any[];
11
+ };
12
+ readonly: {
13
+ type: BooleanConstructor;
14
+ default: any;
15
+ };
16
+ /**
17
+ * @description 是否可以splice
18
+ */
19
+ splicable: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ /**
24
+ * @description card中的模板是否继承父级表单的模板
25
+ */
26
+ inheritTemplates: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
31
+ formItemSize: {
32
+ type: PropType<"default" | "small" | "large">;
33
+ default: "default" | "small" | "large";
34
+ };
35
+ formItemSlots: {
36
+ type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
37
+ default: any;
38
+ };
39
+ elRef: {
40
+ type: PropType<any>;
41
+ required: boolean;
42
+ };
43
+ inline: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ formItemTip: {
48
+ type: StringConstructor;
49
+ default: any;
50
+ };
51
+ formItemTipClass: any;
52
+ labelTip: {
53
+ type: StringConstructor;
54
+ default: any;
55
+ };
56
+ label: StringConstructor;
57
+ labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
58
+ labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
59
+ prop: {
60
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
61
+ readonly required: false;
62
+ readonly validator: ((val: unknown) => boolean) | undefined;
63
+ __epPropKey: true;
64
+ };
65
+ rules: {
66
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
67
+ readonly required: false;
68
+ readonly validator: ((val: unknown) => boolean) | undefined;
69
+ __epPropKey: true;
70
+ };
71
+ error: StringConstructor;
72
+ validateStatus: {
73
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
74
+ readonly required: false;
75
+ readonly validator: ((val: unknown) => boolean) | undefined;
76
+ __epPropKey: true;
77
+ };
78
+ for: StringConstructor;
79
+ inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
80
+ showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
81
+ };
82
+ export declare const emits: {};