@vunk/form 2.19.8 → 2.19.9
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 +1 -1
- package/components/card-input-collection/index.mjs +66 -56
- package/components/card-input-collection/src/core.vue.d.ts +40 -0
- package/components/card-input-collection/src/ctx.d.ts +6 -0
- package/components/card-input-collection/src/index.vue.d.ts +39 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@vunk/form/components/form-item"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@vunk/form/components/form-item"),S=require("@vunk/form/composables"),n=require("element-plus"),s=require("@vunk/core"),q=require("@vunk/form/components/templates-default"),w=require("@vunk/form/components/template-instances-provider"),T=require("@vunk/form/components/fieldset"),I=require("@vunk/form/components/form-item-renderer"),E=require("@vunk/form/components/renderer-data"),F=require("@vunk/form/composables/element-plus"),v=require("@vunk/shared/function"),j=require("../index-DSyxYMB0.js"),f=require("../cloneDeep-DaYwfXwD.js"),b={...y._VkfFormItemCtx.props,columns:{type:Array,default:()=>[]},modelValue:{type:Array,default:()=>[]},readonly:{type:Boolean,default:void 0},splicable:{type:Boolean,default:!0},slots:{type:Object,default:()=>({})},labelActions:{type:Boolean,default:!1},defaultItemValue:{type:[Object,Function],default:()=>({})},keepLast:{type:Boolean,default:!1},topSplicable:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},fieldsetProps:{type:Object,default:()=>({})}},P={"update:modelValue":null},A={key:0,class:"vkf-card-input-collection-options"},O={class:"vkf-card-input-collection-card__footer"},$=e.defineComponent({inheritAttrs:!1,__name:"core",props:b,emits:P,setup(c,{emit:m}){const l=c,u=m,g=y._VkfFormItemCtx.createBindProps(l),d=S.useComputedReadonly(l),{tr:p}=F.useLocale(),i=e.computed(()=>{if(!l.prop||l.prop.length===0)return l.modelValue;const t={};return s.ensetData(t,{k:l.prop,v:l.modelValue}),t});function V(t){const o=f.cloneDeep(l.modelValue),a=v.isCallable(l.defaultItemValue)?l.defaultItemValue():l.defaultItemValue;o.splice(t+1,0,f.cloneDeep(a)),u("update:modelValue",o)}function h(t){const o=f.cloneDeep(l.modelValue);o.splice(t,1),u("update:modelValue",o)}const D=t=>{const o=f.cloneDeep(i.value);s.ensetData(o,t),u("update:modelValue",s.getValue(o,l.prop))};function _(t){return l.columns.map(o=>{var C;const a=[l.prop??[],t].flat(),k=[a,o.prop].flat(),r={readonly:d.value,...o,prop:k};Reflect.deleteProperty(r,"createTemplateProps"),v.isCallable(o.templateProps)&&(r.templateProps=()=>o.templateProps(s.getValue(i.value,a)));const N=((C=o.createTemplateProps)==null?void 0:C.call(o,{$index:t,row:s.getValue(i.value,a)},r))??{};return Object.assign(r,N),r})}return(t,o)=>(e.openBlock(),e.createBlock(e.unref(w.VkfTemplateInstancesProvider),null,{placeholder:e.withCtx(()=>[e.createVNode(e.unref(q.VkfTemplatesDefault))]),default:e.withCtx(()=>[e.createVNode(e.unref(y.VkfFormItem),e.mergeProps({class:"vkf-card-input-collection"},{...e.unref(g),...t.$attrs}),e.createSlots({default:e.withCtx(()=>{var a;return[!e.unref(d)&&t.splicable&&!t.labelActions&&t.topSplicable?(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(e.unref(n.ElButton),{type:"primary",onClick:o[1]||(o[1]=k=>V(-1))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("vkf.common.add","添加")),1)]),_:1})])):e.createCommentVNode("",!0),(a=t.modelValue)!=null&&a.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(n.ElEmpty),{key:1,class:"vkf-card-input-collection-empty"},{image:e.withCtx(()=>[...o[2]||(o[2]=[e.createTextVNode(e.toDisplayString(""),-1)])]),_:1})),e.createVNode(e.unref(E.VkfRendererData),{data:i.value,onSetData:D},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.modelValue,(k,r)=>(e.openBlock(),e.createBlock(e.unref(n.ElCard),e.mergeProps({key:r,class:"vkf-card-input-collection-card"},{ref_for:!0},t.cardProps),e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(T.VkfFieldset),e.mergeProps({ref_for:!0},t.fieldsetProps),{default:e.withCtx(()=>[e.createVNode(e.unref(I.VkfFormItemRenderer),{source:_(r)},null,8,["source"])]),_:2},1040)]),_:2},[!e.unref(d)&&t.splicable?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(n.ElButton),{type:"primary",onClick:()=>V(r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("vkf.common.add","添加")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(n.ElButton),{type:"danger",disabled:t.modelValue.length<=1&&l.keepLast,onClick:()=>h(r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("vkf.common.delete","删除")),1)]),_:1},8,["disabled","onClick"])])]),key:"0"}:void 0]),1040))),128))]),_:1},8,["data"])]}),_:2},[t.labelActions?{name:"labelActions",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"labelActions"),!e.unref(d)&&t.splicable&&t.topSplicable?(e.openBlock(),e.createBlock(e.unref(n.ElButton),{key:0,size:"small",icon:e.unref(j.plus_default),onClick:o[0]||(o[0]=a=>V(-1))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("vkf.common.add","添加")),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0)]),key:"0"}:void 0]),1040)]),_:3}))}}),B=e.defineComponent({name:"VkfCardInputCollection",props:b,emits:P,setup(c,{slots:m,emit:l}){return()=>e.h($,{...c,"onUpdate:modelValue":u=>l("update:modelValue",u)},{...c.slots,...m})}}),x=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfCardInputCollection=B;exports.__VkfCardInputCollection=x;exports.default=B;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _VkfFormItemCtx as
|
|
1
|
+
import { defineComponent as j, computed as w, openBlock as s, createBlock as y, unref as o, withCtx as a, createVNode as p, mergeProps as _, createSlots as h, createElementBlock as A, createTextVNode as u, toDisplayString as c, createCommentVNode as g, Fragment as z, renderList as M, createElementVNode as U, renderSlot as q, h as G } from "vue";
|
|
2
|
+
import { _VkfFormItemCtx as I, VkfFormItem as H } from "@vunk/form/components/form-item";
|
|
3
3
|
import { useComputedReadonly as J } from "@vunk/form/composables";
|
|
4
4
|
import { ElButton as V, ElEmpty as K, ElCard as Q } from "element-plus";
|
|
5
|
-
import { ensetData as D, getValue as
|
|
5
|
+
import { ensetData as D, getValue as B } from "@vunk/core";
|
|
6
6
|
import { VkfTemplatesDefault as W } from "@vunk/form/components/templates-default";
|
|
7
7
|
import { VkfTemplateInstancesProvider as X } from "@vunk/form/components/template-instances-provider";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { VkfFieldset as Y } from "@vunk/form/components/fieldset";
|
|
9
|
+
import { VkfFormItemRenderer as Z } from "@vunk/form/components/form-item-renderer";
|
|
10
|
+
import { VkfRendererData as x } from "@vunk/form/components/renderer-data";
|
|
11
|
+
import { useLocale as ee } from "@vunk/form/composables/element-plus";
|
|
11
12
|
import { isCallable as F } from "@vunk/shared/function";
|
|
12
|
-
import { p as
|
|
13
|
+
import { p as te } from "../index-BCZuzyeO.mjs";
|
|
13
14
|
import { c as v } from "../cloneDeep-DE0l40hv.mjs";
|
|
14
|
-
const
|
|
15
|
-
...
|
|
15
|
+
const O = {
|
|
16
|
+
...I.props,
|
|
16
17
|
columns: {
|
|
17
18
|
type: Array,
|
|
18
19
|
default: () => []
|
|
@@ -71,19 +72,23 @@ const j = {
|
|
|
71
72
|
cardProps: {
|
|
72
73
|
type: Object,
|
|
73
74
|
default: () => ({})
|
|
75
|
+
},
|
|
76
|
+
fieldsetProps: {
|
|
77
|
+
type: Object,
|
|
78
|
+
default: () => ({})
|
|
74
79
|
}
|
|
75
|
-
},
|
|
80
|
+
}, T = {
|
|
76
81
|
"update:modelValue": null
|
|
77
|
-
},
|
|
82
|
+
}, oe = {
|
|
78
83
|
key: 0,
|
|
79
84
|
class: "vkf-card-input-collection-options"
|
|
80
|
-
},
|
|
85
|
+
}, le = { class: "vkf-card-input-collection-card__footer" }, ae = /* @__PURE__ */ j({
|
|
81
86
|
inheritAttrs: !1,
|
|
82
87
|
__name: "core",
|
|
83
|
-
props:
|
|
84
|
-
emits:
|
|
85
|
-
setup(
|
|
86
|
-
const l =
|
|
88
|
+
props: O,
|
|
89
|
+
emits: T,
|
|
90
|
+
setup(i, { emit: b }) {
|
|
91
|
+
const l = i, d = b, E = I.createBindProps(l), m = J(l), { tr: f } = ee(), k = w(() => {
|
|
87
92
|
if (!l.prop || l.prop.length === 0)
|
|
88
93
|
return l.modelValue;
|
|
89
94
|
const e = {};
|
|
@@ -98,35 +103,35 @@ const j = {
|
|
|
98
103
|
e + 1,
|
|
99
104
|
0,
|
|
100
105
|
v(n)
|
|
101
|
-
),
|
|
106
|
+
), d("update:modelValue", t);
|
|
102
107
|
}
|
|
103
108
|
function $(e) {
|
|
104
109
|
const t = v(l.modelValue);
|
|
105
|
-
t.splice(e, 1),
|
|
110
|
+
t.splice(e, 1), d("update:modelValue", t);
|
|
106
111
|
}
|
|
107
112
|
const L = (e) => {
|
|
108
113
|
const t = v(k.value);
|
|
109
|
-
D(t, e),
|
|
114
|
+
D(t, e), d("update:modelValue", B(t, l.prop));
|
|
110
115
|
};
|
|
111
116
|
function N(e) {
|
|
112
117
|
return l.columns.map((t) => {
|
|
113
|
-
var
|
|
118
|
+
var S;
|
|
114
119
|
const n = [
|
|
115
120
|
l.prop ?? [],
|
|
116
121
|
e
|
|
117
122
|
].flat(), P = [n, t.prop].flat(), r = {
|
|
118
|
-
readonly:
|
|
123
|
+
readonly: m.value,
|
|
119
124
|
...t,
|
|
120
125
|
prop: P
|
|
121
126
|
};
|
|
122
127
|
Reflect.deleteProperty(r, "createTemplateProps"), F(t.templateProps) && (r.templateProps = () => t.templateProps(
|
|
123
|
-
|
|
128
|
+
B(k.value, n)
|
|
124
129
|
));
|
|
125
|
-
const R = ((
|
|
130
|
+
const R = ((S = t.createTemplateProps) == null ? void 0 : S.call(
|
|
126
131
|
t,
|
|
127
132
|
{
|
|
128
133
|
$index: e,
|
|
129
|
-
row:
|
|
134
|
+
row: B(k.value, n)
|
|
130
135
|
},
|
|
131
136
|
r
|
|
132
137
|
)) ?? {};
|
|
@@ -138,59 +143,64 @@ const j = {
|
|
|
138
143
|
p(o(W))
|
|
139
144
|
]),
|
|
140
145
|
default: a(() => [
|
|
141
|
-
p(o(H),
|
|
142
|
-
...o(
|
|
146
|
+
p(o(H), _({ class: "vkf-card-input-collection" }, {
|
|
147
|
+
...o(E),
|
|
143
148
|
...e.$attrs
|
|
144
149
|
}), h({
|
|
145
150
|
default: a(() => {
|
|
146
151
|
var n;
|
|
147
152
|
return [
|
|
148
|
-
!o(
|
|
153
|
+
!o(m) && e.splicable && !e.labelActions && e.topSplicable ? (s(), A("div", oe, [
|
|
149
154
|
p(o(V), {
|
|
150
155
|
type: "primary",
|
|
151
156
|
onClick: t[1] || (t[1] = (P) => C(-1))
|
|
152
157
|
}, {
|
|
153
158
|
default: a(() => [
|
|
154
|
-
|
|
159
|
+
u(c(o(f)("vkf.common.add", "添加")), 1)
|
|
155
160
|
]),
|
|
156
161
|
_: 1
|
|
157
162
|
})
|
|
158
|
-
])) :
|
|
159
|
-
(n = e.modelValue) != null && n.length ?
|
|
163
|
+
])) : g("", !0),
|
|
164
|
+
(n = e.modelValue) != null && n.length ? g("", !0) : (s(), y(o(K), {
|
|
160
165
|
key: 1,
|
|
161
166
|
class: "vkf-card-input-collection-empty"
|
|
162
167
|
}, {
|
|
163
168
|
image: a(() => [...t[2] || (t[2] = [
|
|
164
|
-
|
|
169
|
+
u(c(""), -1)
|
|
165
170
|
])]),
|
|
166
171
|
_: 1
|
|
167
172
|
})),
|
|
168
|
-
p(o(
|
|
173
|
+
p(o(x), {
|
|
169
174
|
data: k.value,
|
|
170
175
|
onSetData: L
|
|
171
176
|
}, {
|
|
172
177
|
default: a(() => [
|
|
173
|
-
(s(!0), A(z, null, M(e.modelValue, (P, r) => (s(), y(o(Q),
|
|
178
|
+
(s(!0), A(z, null, M(e.modelValue, (P, r) => (s(), y(o(Q), _({
|
|
174
179
|
key: r,
|
|
175
180
|
class: "vkf-card-input-collection-card"
|
|
176
181
|
}, { ref_for: !0 }, e.cardProps), h({
|
|
177
182
|
default: a(() => [
|
|
178
|
-
p(o(Y), {
|
|
179
|
-
|
|
180
|
-
|
|
183
|
+
p(o(Y), _({ ref_for: !0 }, e.fieldsetProps), {
|
|
184
|
+
default: a(() => [
|
|
185
|
+
p(o(Z), {
|
|
186
|
+
source: N(r)
|
|
187
|
+
}, null, 8, ["source"])
|
|
188
|
+
]),
|
|
189
|
+
_: 2
|
|
190
|
+
}, 1040)
|
|
181
191
|
]),
|
|
182
192
|
_: 2
|
|
183
193
|
}, [
|
|
184
|
-
!o(
|
|
194
|
+
!o(m) && e.splicable ? {
|
|
185
195
|
name: "footer",
|
|
186
196
|
fn: a(() => [
|
|
187
|
-
U("div",
|
|
197
|
+
U("div", le, [
|
|
188
198
|
p(o(V), {
|
|
189
199
|
type: "primary",
|
|
190
200
|
onClick: () => C(r)
|
|
191
201
|
}, {
|
|
192
202
|
default: a(() => [
|
|
193
|
-
|
|
203
|
+
u(c(o(f)("vkf.common.add", "添加")), 1)
|
|
194
204
|
]),
|
|
195
205
|
_: 1
|
|
196
206
|
}, 8, ["onClick"]),
|
|
@@ -200,7 +210,7 @@ const j = {
|
|
|
200
210
|
onClick: () => $(r)
|
|
201
211
|
}, {
|
|
202
212
|
default: a(() => [
|
|
203
|
-
|
|
213
|
+
u(c(o(f)("vkf.common.delete", "删除")), 1)
|
|
204
214
|
]),
|
|
205
215
|
_: 1
|
|
206
216
|
}, 8, ["disabled", "onClick"])
|
|
@@ -220,17 +230,17 @@ const j = {
|
|
|
220
230
|
name: "labelActions",
|
|
221
231
|
fn: a(() => [
|
|
222
232
|
q(e.$slots, "labelActions"),
|
|
223
|
-
!o(
|
|
233
|
+
!o(m) && e.splicable && e.topSplicable ? (s(), y(o(V), {
|
|
224
234
|
key: 0,
|
|
225
235
|
size: "small",
|
|
226
|
-
icon: o(
|
|
236
|
+
icon: o(te),
|
|
227
237
|
onClick: t[0] || (t[0] = (n) => C(-1))
|
|
228
238
|
}, {
|
|
229
239
|
default: a(() => [
|
|
230
|
-
|
|
240
|
+
u(c(o(f)("vkf.common.add", "添加")), 1)
|
|
231
241
|
]),
|
|
232
242
|
_: 1
|
|
233
|
-
}, 8, ["icon"])) :
|
|
243
|
+
}, 8, ["icon"])) : g("", !0)
|
|
234
244
|
]),
|
|
235
245
|
key: "0"
|
|
236
246
|
} : void 0
|
|
@@ -239,24 +249,24 @@ const j = {
|
|
|
239
249
|
_: 3
|
|
240
250
|
}));
|
|
241
251
|
}
|
|
242
|
-
}),
|
|
252
|
+
}), be = j({
|
|
243
253
|
name: "VkfCardInputCollection",
|
|
244
|
-
props:
|
|
245
|
-
emits:
|
|
246
|
-
setup(
|
|
247
|
-
return () => G(
|
|
248
|
-
...
|
|
249
|
-
"onUpdate:modelValue": (
|
|
254
|
+
props: O,
|
|
255
|
+
emits: T,
|
|
256
|
+
setup(i, { slots: b, emit: l }) {
|
|
257
|
+
return () => G(ae, {
|
|
258
|
+
...i,
|
|
259
|
+
"onUpdate:modelValue": (d) => l("update:modelValue", d)
|
|
250
260
|
}, {
|
|
251
|
-
...
|
|
261
|
+
...i.slots,
|
|
252
262
|
...b
|
|
253
263
|
});
|
|
254
264
|
}
|
|
255
|
-
}),
|
|
265
|
+
}), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
256
266
|
__proto__: null
|
|
257
267
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
258
268
|
export {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
269
|
+
be as VkfCardInputCollection,
|
|
270
|
+
Ce as __VkfCardInputCollection,
|
|
271
|
+
be as default
|
|
262
272
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NormalObject } from '@vunk/shared';
|
|
2
|
+
import { VkfFieldset } from '@vunk/form/components/fieldset';
|
|
2
3
|
declare var __VLS_21: {};
|
|
3
4
|
type __VLS_Slots = {} & {
|
|
4
5
|
labelActions?: (props: typeof __VLS_21) => any;
|
|
@@ -44,6 +45,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
44
45
|
type: import("vue").PropType<Partial<import("element-plus").CardProps>>;
|
|
45
46
|
default: () => {};
|
|
46
47
|
};
|
|
48
|
+
fieldsetProps: {
|
|
49
|
+
type: import("vue").PropType<import("@vunk/shared").VueComponentPropsType<typeof VkfFieldset>>;
|
|
50
|
+
default: () => {};
|
|
51
|
+
};
|
|
47
52
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
48
53
|
labelPosition: {
|
|
49
54
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
@@ -146,6 +151,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
146
151
|
type: import("vue").PropType<Partial<import("element-plus").CardProps>>;
|
|
147
152
|
default: () => {};
|
|
148
153
|
};
|
|
154
|
+
fieldsetProps: {
|
|
155
|
+
type: import("vue").PropType<import("@vunk/shared").VueComponentPropsType<typeof VkfFieldset>>;
|
|
156
|
+
default: () => {};
|
|
157
|
+
};
|
|
149
158
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
150
159
|
labelPosition: {
|
|
151
160
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
@@ -228,6 +237,37 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
228
237
|
keepLast: boolean;
|
|
229
238
|
topSplicable: boolean;
|
|
230
239
|
cardProps: Partial<import("element-plus").CardProps>;
|
|
240
|
+
fieldsetProps: import("@vunk/shared").VueComponentPropsType<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
241
|
+
labelWidth: {
|
|
242
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
243
|
+
default: undefined;
|
|
244
|
+
};
|
|
245
|
+
labelPosition: {
|
|
246
|
+
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
247
|
+
default: undefined;
|
|
248
|
+
};
|
|
249
|
+
labelSuffix: {
|
|
250
|
+
type: StringConstructor;
|
|
251
|
+
default: undefined;
|
|
252
|
+
};
|
|
253
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
254
|
+
labelWidth: {
|
|
255
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
256
|
+
default: undefined;
|
|
257
|
+
};
|
|
258
|
+
labelPosition: {
|
|
259
|
+
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
260
|
+
default: undefined;
|
|
261
|
+
};
|
|
262
|
+
labelSuffix: {
|
|
263
|
+
type: StringConstructor;
|
|
264
|
+
default: undefined;
|
|
265
|
+
};
|
|
266
|
+
}>> & Readonly<{}>, {
|
|
267
|
+
labelPosition: "left" | "right" | "top" | "start" | "end";
|
|
268
|
+
labelWidth: string | number;
|
|
269
|
+
labelSuffix: string;
|
|
270
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
231
271
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
232
272
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
233
273
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { VkfFieldset } from '@vunk/form/components/fieldset';
|
|
2
|
+
import type { VueComponentPropsType } from '@vunk/shared';
|
|
1
3
|
import type { PropType } from 'vue';
|
|
2
4
|
import { NormalObject } from '@vunk/shared';
|
|
3
5
|
import { Slots } from './types';
|
|
@@ -62,6 +64,10 @@ export declare const props: {
|
|
|
62
64
|
type: PropType<Partial<CardProps>>;
|
|
63
65
|
default: () => {};
|
|
64
66
|
};
|
|
67
|
+
fieldsetProps: {
|
|
68
|
+
type: PropType<VueComponentPropsType<typeof VkfFieldset>>;
|
|
69
|
+
default: () => {};
|
|
70
|
+
};
|
|
65
71
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
66
72
|
labelPosition: {
|
|
67
73
|
type: PropType<"left" | "right" | "top" | "start" | "end">;
|
|
@@ -41,6 +41,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
41
41
|
type: import("vue").PropType<Partial<import("element-plus").CardProps>>;
|
|
42
42
|
default: () => {};
|
|
43
43
|
};
|
|
44
|
+
fieldsetProps: {
|
|
45
|
+
type: import("vue").PropType<import("@vunk/shared").VueComponentPropsType<typeof import("../../fieldset/index.ts").VkfFieldset>>;
|
|
46
|
+
default: () => {};
|
|
47
|
+
};
|
|
44
48
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
45
49
|
labelPosition: {
|
|
46
50
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
@@ -145,6 +149,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
145
149
|
type: import("vue").PropType<Partial<import("element-plus").CardProps>>;
|
|
146
150
|
default: () => {};
|
|
147
151
|
};
|
|
152
|
+
fieldsetProps: {
|
|
153
|
+
type: import("vue").PropType<import("@vunk/shared").VueComponentPropsType<typeof import("../../fieldset/index.ts").VkfFieldset>>;
|
|
154
|
+
default: () => {};
|
|
155
|
+
};
|
|
148
156
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
149
157
|
labelPosition: {
|
|
150
158
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
@@ -227,4 +235,35 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
227
235
|
keepLast: boolean;
|
|
228
236
|
topSplicable: boolean;
|
|
229
237
|
cardProps: Partial<import("element-plus").CardProps>;
|
|
238
|
+
fieldsetProps: import("@vunk/shared").VueComponentPropsType<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
239
|
+
labelWidth: {
|
|
240
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
241
|
+
default: undefined;
|
|
242
|
+
};
|
|
243
|
+
labelPosition: {
|
|
244
|
+
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
245
|
+
default: undefined;
|
|
246
|
+
};
|
|
247
|
+
labelSuffix: {
|
|
248
|
+
type: StringConstructor;
|
|
249
|
+
default: undefined;
|
|
250
|
+
};
|
|
251
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
252
|
+
labelWidth: {
|
|
253
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
254
|
+
default: undefined;
|
|
255
|
+
};
|
|
256
|
+
labelPosition: {
|
|
257
|
+
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
258
|
+
default: undefined;
|
|
259
|
+
};
|
|
260
|
+
labelSuffix: {
|
|
261
|
+
type: StringConstructor;
|
|
262
|
+
default: undefined;
|
|
263
|
+
};
|
|
264
|
+
}>> & Readonly<{}>, {
|
|
265
|
+
labelPosition: "left" | "right" | "top" | "start" | "end";
|
|
266
|
+
labelWidth: string | number;
|
|
267
|
+
labelSuffix: string;
|
|
268
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
230
269
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|