@vunk/form 2.14.11 → 2.14.13
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/card-input-collection/index.cjs +19 -8
- package/components/card-input-collection/index.mjs +19 -8
- package/components/card-input-collection/src/ctx.d.ts +9 -0
- package/components/card-input-collection/src/index.vue.d.ts +13 -0
- package/components/form-item/index.css +1 -1
- package/index.css +1 -1
- package/package.json +1 -1
|
@@ -69,6 +69,14 @@ const props = {
|
|
|
69
69
|
topSplicable: {
|
|
70
70
|
type: Boolean,
|
|
71
71
|
default: true
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* @description 卡片的属性
|
|
75
|
+
* @link https://element-plus.org/en-US/component/card.html#card-attributes
|
|
76
|
+
*/
|
|
77
|
+
cardProps: {
|
|
78
|
+
type: Object,
|
|
79
|
+
default: () => ({})
|
|
72
80
|
}
|
|
73
81
|
};
|
|
74
82
|
const emits = {
|
|
@@ -77,7 +85,8 @@ const emits = {
|
|
|
77
85
|
|
|
78
86
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
79
87
|
...{
|
|
80
|
-
name: "VkfCardInputCollection"
|
|
88
|
+
name: "VkfCardInputCollection",
|
|
89
|
+
inheritAttrs: false
|
|
81
90
|
},
|
|
82
91
|
__name: "index",
|
|
83
92
|
props: props,
|
|
@@ -191,7 +200,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
191
200
|
default: vue.withCtx(() => [
|
|
192
201
|
vue.createVNode(
|
|
193
202
|
$setup["VkfFormItem"],
|
|
194
|
-
vue.mergeProps(
|
|
203
|
+
vue.mergeProps({ class: "vkf-card-input-collection" }, {
|
|
204
|
+
...$setup.formItemBindProps,
|
|
205
|
+
..._ctx.$attrs
|
|
206
|
+
}),
|
|
195
207
|
vue.createSlots({
|
|
196
208
|
default: vue.withCtx(() => [
|
|
197
209
|
!$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
@@ -222,11 +234,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
222
234
|
vue.renderList(_ctx.modelValue, (_, index) => {
|
|
223
235
|
return vue.openBlock(), vue.createBlock(
|
|
224
236
|
$setup["ElCard"],
|
|
225
|
-
{
|
|
237
|
+
vue.mergeProps({
|
|
226
238
|
key: index,
|
|
227
|
-
class: "vkf-card-input-collection-card"
|
|
228
|
-
|
|
229
|
-
},
|
|
239
|
+
class: "vkf-card-input-collection-card"
|
|
240
|
+
}, { ref_for: true }, _ctx.cardProps),
|
|
230
241
|
vue.createSlots({
|
|
231
242
|
default: vue.withCtx(() => [
|
|
232
243
|
vue.createVNode($setup["VkfFormItemRenderer"], {
|
|
@@ -266,8 +277,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
266
277
|
key: "0"
|
|
267
278
|
} : void 0
|
|
268
279
|
]),
|
|
269
|
-
|
|
270
|
-
/* DYNAMIC_SLOTS */
|
|
280
|
+
1040
|
|
281
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
271
282
|
);
|
|
272
283
|
}),
|
|
273
284
|
128
|
|
@@ -65,6 +65,14 @@ const props = {
|
|
|
65
65
|
topSplicable: {
|
|
66
66
|
type: Boolean,
|
|
67
67
|
default: true
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* @description 卡片的属性
|
|
71
|
+
* @link https://element-plus.org/en-US/component/card.html#card-attributes
|
|
72
|
+
*/
|
|
73
|
+
cardProps: {
|
|
74
|
+
type: Object,
|
|
75
|
+
default: () => ({})
|
|
68
76
|
}
|
|
69
77
|
};
|
|
70
78
|
const emits = {
|
|
@@ -73,7 +81,8 @@ const emits = {
|
|
|
73
81
|
|
|
74
82
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
75
83
|
...{
|
|
76
|
-
name: "VkfCardInputCollection"
|
|
84
|
+
name: "VkfCardInputCollection",
|
|
85
|
+
inheritAttrs: false
|
|
77
86
|
},
|
|
78
87
|
__name: "index",
|
|
79
88
|
props: props,
|
|
@@ -187,7 +196,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
187
196
|
default: withCtx(() => [
|
|
188
197
|
createVNode(
|
|
189
198
|
$setup["VkfFormItem"],
|
|
190
|
-
mergeProps(
|
|
199
|
+
mergeProps({ class: "vkf-card-input-collection" }, {
|
|
200
|
+
...$setup.formItemBindProps,
|
|
201
|
+
..._ctx.$attrs
|
|
202
|
+
}),
|
|
191
203
|
createSlots({
|
|
192
204
|
default: withCtx(() => [
|
|
193
205
|
!$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -218,11 +230,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
218
230
|
renderList(_ctx.modelValue, (_, index) => {
|
|
219
231
|
return openBlock(), createBlock(
|
|
220
232
|
$setup["ElCard"],
|
|
221
|
-
{
|
|
233
|
+
mergeProps({
|
|
222
234
|
key: index,
|
|
223
|
-
class: "vkf-card-input-collection-card"
|
|
224
|
-
|
|
225
|
-
},
|
|
235
|
+
class: "vkf-card-input-collection-card"
|
|
236
|
+
}, { ref_for: true }, _ctx.cardProps),
|
|
226
237
|
createSlots({
|
|
227
238
|
default: withCtx(() => [
|
|
228
239
|
createVNode($setup["VkfFormItemRenderer"], {
|
|
@@ -262,8 +273,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
262
273
|
key: "0"
|
|
263
274
|
} : void 0
|
|
264
275
|
]),
|
|
265
|
-
|
|
266
|
-
/* DYNAMIC_SLOTS */
|
|
276
|
+
1040
|
|
277
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
267
278
|
);
|
|
268
279
|
}),
|
|
269
280
|
128
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { NormalObject } from '@vunk/shared';
|
|
3
3
|
import { Slots } from './types';
|
|
4
|
+
import { CardProps } from 'element-plus';
|
|
4
5
|
export declare const props: {
|
|
5
6
|
columns: {
|
|
6
7
|
type: PropType<any[]>;
|
|
@@ -53,6 +54,14 @@ export declare const props: {
|
|
|
53
54
|
type: BooleanConstructor;
|
|
54
55
|
default: boolean;
|
|
55
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* @description 卡片的属性
|
|
59
|
+
* @link https://element-plus.org/en-US/component/card.html#card-attributes
|
|
60
|
+
*/
|
|
61
|
+
cardProps: {
|
|
62
|
+
type: PropType<Partial<CardProps>>;
|
|
63
|
+
default: () => {};
|
|
64
|
+
};
|
|
56
65
|
required: {
|
|
57
66
|
readonly type: PropType<boolean>;
|
|
58
67
|
readonly required: false;
|
|
@@ -37,6 +37,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
37
37
|
type: BooleanConstructor;
|
|
38
38
|
default: boolean;
|
|
39
39
|
};
|
|
40
|
+
cardProps: {
|
|
41
|
+
type: import("vue").PropType<Partial<import("element-plus").CardProps>>;
|
|
42
|
+
default: () => {};
|
|
43
|
+
};
|
|
40
44
|
required: {
|
|
41
45
|
readonly type: import("vue").PropType<boolean>;
|
|
42
46
|
readonly required: false;
|
|
@@ -160,6 +164,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
160
164
|
type: BooleanConstructor;
|
|
161
165
|
default: boolean;
|
|
162
166
|
};
|
|
167
|
+
cardProps: {
|
|
168
|
+
type: import("vue").PropType<Partial<import("element-plus").CardProps>>;
|
|
169
|
+
default: () => {};
|
|
170
|
+
};
|
|
163
171
|
required: {
|
|
164
172
|
readonly type: import("vue").PropType<boolean>;
|
|
165
173
|
readonly required: false;
|
|
@@ -973,6 +981,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
973
981
|
type: BooleanConstructor;
|
|
974
982
|
default: boolean;
|
|
975
983
|
};
|
|
984
|
+
cardProps: {
|
|
985
|
+
type: import("vue").PropType<Partial<import("element-plus").CardProps>>;
|
|
986
|
+
default: () => {};
|
|
987
|
+
};
|
|
976
988
|
required: {
|
|
977
989
|
readonly type: import("vue").PropType<boolean>;
|
|
978
990
|
readonly required: false;
|
|
@@ -1083,5 +1095,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1083
1095
|
keepLast: boolean;
|
|
1084
1096
|
defaultItemValue: NormalObject;
|
|
1085
1097
|
topSplicable: boolean;
|
|
1098
|
+
cardProps: Partial<import("element-plus").CardProps>;
|
|
1086
1099
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1087
1100
|
export default _default;
|
package/index.css
CHANGED