@zl-ui-kit/components 0.18.2 → 0.18.4
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/README.md +124 -77
- package/dist/components/ZlCardPage/index.vue.d.ts +40 -2
- package/dist/components/ZlCardPage/index.vue.mjs +36 -34
- package/dist/components/ZlDescription/index.css +1 -1
- package/dist/components/ZlDescription/index.vue.mjs +28 -24
- package/dist/components/ZlForm/index.css +1 -1
- package/dist/components/ZlForm/index.vue.d.ts +7 -0
- package/dist/components/ZlForm/index.vue.mjs +50 -47
- package/dist/components/ZlLayoutSwitch/index.css +1 -1
- package/dist/components/ZlLayoutSwitch/index.vue.d.ts +10 -0
- package/dist/components/ZlLayoutSwitch/index.vue.mjs +1 -1
- package/dist/components/ZlLayoutSwitch/index2.vue.mjs +27 -19
- package/dist/components/ZlSearch/index.vue.d.ts +25 -0
- package/dist/components/ZlSearch/index.vue.mjs +62 -59
- package/dist/components/ZlSearchTable/index.vue.d.ts +40 -2
- package/dist/components/ZlSearchTable/index.vue.mjs +19 -17
- package/dist/locales/en.mjs +2 -2
- package/dist/locales/zh-cn.mjs +2 -2
- package/package.json +6 -6
|
@@ -1,70 +1,72 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Z, toRefs as A, ref as V, computed as h, resolveComponent as m, openBlock as n, createBlock as d, mergeProps as c, withCtx as i, createElementBlock as D, Fragment as M, renderList as S, renderSlot as p, createElementVNode as E, toDisplayString as U, createVNode as q, createCommentVNode as x } from "vue";
|
|
2
2
|
import W from "./ZlFormChild.vue.mjs";
|
|
3
3
|
import j from "../ZlIcon/index.vue.mjs";
|
|
4
|
-
const G = { class: "zl-form-item-label" },
|
|
4
|
+
const G = { class: "zl-form-item-label" }, y = "onUpdate:modelValue", Q = /* @__PURE__ */ Z({
|
|
5
5
|
name: "ZlForm",
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
items: { default: () => [] },
|
|
9
|
-
model: {}
|
|
9
|
+
model: {},
|
|
10
|
+
hideEmptyLabel: { type: Boolean }
|
|
10
11
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
12
|
+
setup(F, { expose: g }) {
|
|
13
|
+
const s = F, { items: v } = A(s), I = V(s.model ?? {}), r = h(() => s.model ?? I.value), P = h(() => {
|
|
13
14
|
const e = [];
|
|
14
15
|
return v.value.forEach((l) => {
|
|
15
16
|
if (!l.model)
|
|
16
17
|
throw new Error("[ZlForm]: form item's model is required!");
|
|
17
18
|
l.defaultValue !== void 0 && r.value[l.model] === void 0 && (r.value[l.model] = l.defaultValue);
|
|
18
19
|
}), v.value.forEach((l) => {
|
|
19
|
-
if (!
|
|
20
|
+
if (!k(l)) return;
|
|
20
21
|
const {
|
|
21
|
-
visible:
|
|
22
|
+
visible: u,
|
|
22
23
|
props: a,
|
|
23
24
|
tooltip: f,
|
|
24
25
|
formItemProps: o = {},
|
|
25
|
-
component:
|
|
26
|
-
label:
|
|
27
|
-
model:
|
|
26
|
+
component: N,
|
|
27
|
+
label: _,
|
|
28
|
+
model: $,
|
|
28
29
|
defaultValue: H,
|
|
29
|
-
slot:
|
|
30
|
-
slots:
|
|
31
|
-
...
|
|
32
|
-
} = l,
|
|
33
|
-
delete
|
|
34
|
-
const
|
|
30
|
+
slot: B,
|
|
31
|
+
slots: C,
|
|
32
|
+
...T
|
|
33
|
+
} = l, b = { ...o };
|
|
34
|
+
delete b.tooltip;
|
|
35
|
+
const R = { ...T, ...a ?? {} };
|
|
35
36
|
e.push({
|
|
36
|
-
formItemProps:
|
|
37
|
+
formItemProps: b,
|
|
37
38
|
tooltip: f,
|
|
38
|
-
component:
|
|
39
|
-
label:
|
|
40
|
-
model:
|
|
41
|
-
slot:
|
|
42
|
-
slots:
|
|
43
|
-
|
|
39
|
+
component: N,
|
|
40
|
+
label: _,
|
|
41
|
+
model: $,
|
|
42
|
+
slot: B,
|
|
43
|
+
slots: C,
|
|
44
|
+
hideLabel: s.hideEmptyLabel && !_,
|
|
45
|
+
props: w(R, l.model)
|
|
44
46
|
});
|
|
45
47
|
}), e;
|
|
46
|
-
}), t =
|
|
47
|
-
function
|
|
48
|
+
}), t = V(null);
|
|
49
|
+
function k(e) {
|
|
48
50
|
const l = e.visible;
|
|
49
51
|
return l === void 0 ? !0 : l === !1 || typeof l == "function" && !l(r.value, e) ? !1 : !!l;
|
|
50
52
|
}
|
|
51
|
-
function
|
|
52
|
-
const
|
|
53
|
-
return e[
|
|
54
|
-
r.value[l] = a,
|
|
53
|
+
function w(e = {}, l) {
|
|
54
|
+
const u = e[y];
|
|
55
|
+
return e[y] = (a) => {
|
|
56
|
+
r.value[l] = a, u?.(a);
|
|
55
57
|
}, e;
|
|
56
58
|
}
|
|
57
|
-
async function
|
|
59
|
+
async function L(e) {
|
|
58
60
|
return await t.value?.validate(e) ?? !0;
|
|
59
61
|
}
|
|
60
|
-
async function
|
|
62
|
+
async function z(e, l) {
|
|
61
63
|
return await t.value?.validateField(e, l) ?? !0;
|
|
62
64
|
}
|
|
63
|
-
return
|
|
65
|
+
return g({
|
|
64
66
|
/** 校验整个表单;同 `el-form.validate()`(无回调时失败会 reject 错误字段集合;0.9.0 及更早成功时返回 `undefined`) */
|
|
65
|
-
validate:
|
|
67
|
+
validate: L,
|
|
66
68
|
/** 校验指定字段(字段名或数组),语义同 `validate()` */
|
|
67
|
-
validateField:
|
|
69
|
+
validateField: z,
|
|
68
70
|
/** 重置字段并清除校验结果;不传参重置全部 */
|
|
69
71
|
resetFields: (e) => t.value?.resetFields(e),
|
|
70
72
|
/** 清除校验提示;不传参清除全部 */
|
|
@@ -84,30 +86,31 @@ const G = { class: "zl-form-item-label" }, E = "onUpdate:modelValue", Q = /* @__
|
|
|
84
86
|
return t.value;
|
|
85
87
|
}
|
|
86
88
|
}), (e, l) => {
|
|
87
|
-
const
|
|
88
|
-
return n(),
|
|
89
|
+
const u = m("el-tooltip"), a = m("el-form-item"), f = m("el-form");
|
|
90
|
+
return n(), d(f, c({
|
|
89
91
|
ref_key: "formRef",
|
|
90
92
|
ref: t,
|
|
91
93
|
class: "zl-form",
|
|
92
94
|
model: r.value
|
|
93
95
|
}, { labelWidth: "auto", ...e.$attrs }), {
|
|
94
|
-
default:
|
|
95
|
-
(n(!0),
|
|
96
|
+
default: i(() => [
|
|
97
|
+
(n(!0), D(M, null, S(P.value, (o) => (n(), d(a, c({
|
|
96
98
|
key: o.model,
|
|
97
99
|
label: o.label,
|
|
98
|
-
prop: o.model
|
|
100
|
+
prop: o.model,
|
|
101
|
+
class: { "zl-form-item--no-label": o.hideLabel }
|
|
99
102
|
}, { ref_for: !0 }, o.formItemProps), {
|
|
100
|
-
label:
|
|
101
|
-
|
|
103
|
+
label: i(() => [
|
|
104
|
+
E("span", G, [
|
|
102
105
|
p(e.$slots, "label", c({ ref_for: !0 }, { label: o.label, item: o }), () => [
|
|
103
|
-
|
|
106
|
+
E("span", null, U(o.label), 1)
|
|
104
107
|
]),
|
|
105
|
-
o.tooltip ? (n(), u
|
|
108
|
+
o.tooltip ? (n(), d(u, {
|
|
106
109
|
key: 0,
|
|
107
110
|
content: o.tooltip,
|
|
108
111
|
placement: "top"
|
|
109
112
|
}, {
|
|
110
|
-
default:
|
|
113
|
+
default: i(() => [
|
|
111
114
|
q(j, {
|
|
112
115
|
class: "zl-form-item-label__tooltip",
|
|
113
116
|
icon: "zl:help-color"
|
|
@@ -117,18 +120,18 @@ const G = { class: "zl-form-item-label" }, E = "onUpdate:modelValue", Q = /* @__
|
|
|
117
120
|
}, 8, ["content"])) : x("", !0)
|
|
118
121
|
])
|
|
119
122
|
]),
|
|
120
|
-
default:
|
|
123
|
+
default: i(() => [
|
|
121
124
|
o.slot ? p(e.$slots, o.model, {
|
|
122
125
|
model: r.value,
|
|
123
126
|
field: o
|
|
124
|
-
}, void 0, void 0, 0) : (n(),
|
|
127
|
+
}, void 0, void 0, 0) : (n(), d(W, {
|
|
125
128
|
key: 1,
|
|
126
129
|
item: o,
|
|
127
130
|
"model-value": r.value[o.model]
|
|
128
131
|
}, null, 8, ["item", "model-value"]))
|
|
129
132
|
]),
|
|
130
133
|
_: 2
|
|
131
|
-
}, 1040, ["label", "prop"]))), 128)),
|
|
134
|
+
}, 1040, ["label", "prop", "class"]))), 128)),
|
|
132
135
|
p(e.$slots, "default")
|
|
133
136
|
]),
|
|
134
137
|
_: 3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-layout-switch .el-radio-
|
|
1
|
+
.zl-layout-switch[data-v-5a70314a] .el-radio-button__inner{display:inline-flex;align-items:center;gap:4px;line-height:1;padding:8px 12px;font-size:14px}.zl-layout-switch__text[data-v-5a70314a]{font-size:12px;line-height:1}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
/** 已废弃,请用 `modelValue`;仅在未双向绑定时作为当前布局 */
|
|
3
3
|
value?: 'grid' | 'table';
|
|
4
|
+
/** 网格按钮文案:缺省走 i18n(卡片),传空字符串则只显示图标 */
|
|
5
|
+
gridText?: string;
|
|
6
|
+
/** 表格按钮文案:缺省走 i18n(列表),传空字符串则只显示图标 */
|
|
7
|
+
tableText?: string;
|
|
8
|
+
/** 网格按钮图标(`zl:` 图标名,不带前缀):缺省 `table` */
|
|
9
|
+
gridIcon?: string;
|
|
10
|
+
/** 列表按钮图标(`zl:` 图标名,不带前缀):缺省 `list-color` */
|
|
11
|
+
tableIcon?: string;
|
|
4
12
|
};
|
|
5
13
|
type __VLS_PublicProps = {
|
|
6
14
|
'modelValue'?: 'grid' | 'table';
|
|
@@ -11,6 +19,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
11
19
|
"onUpdate:modelValue"?: ((value: "table" | "grid") => any) | undefined;
|
|
12
20
|
}>, {
|
|
13
21
|
value: "grid" | "table";
|
|
22
|
+
gridIcon: string;
|
|
23
|
+
tableIcon: string;
|
|
14
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
25
|
export default _default;
|
|
16
26
|
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.vue.mjs";
|
|
2
2
|
import './index.css';/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5a70314a"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,38 +1,46 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useZlT as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as v, computed as _, useModel as p, resolveComponent as r, openBlock as t, createBlock as d, withCtx as c, createElementBlock as i, Fragment as f, renderList as g, createVNode as x, toDisplayString as y, createCommentVNode as h, mergeModels as w } from "vue";
|
|
2
|
+
import { useZlT as V } from "@zl-ui-kit/composables";
|
|
3
|
+
import k from "../ZlIcon/index.vue.mjs";
|
|
4
|
+
const z = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "zl-layout-switch__text"
|
|
7
|
+
}, B = /* @__PURE__ */ v({
|
|
5
8
|
name: "ZlLayoutSwitch",
|
|
6
9
|
__name: "index",
|
|
7
10
|
props: /* @__PURE__ */ w({
|
|
8
|
-
value: { default: "grid" }
|
|
11
|
+
value: { default: "grid" },
|
|
12
|
+
gridText: {},
|
|
13
|
+
tableText: {},
|
|
14
|
+
gridIcon: { default: "table" },
|
|
15
|
+
tableIcon: { default: "list-color" }
|
|
9
16
|
}, {
|
|
10
17
|
modelValue: {},
|
|
11
18
|
modelModifiers: {}
|
|
12
19
|
}),
|
|
13
20
|
emits: ["update:modelValue"],
|
|
14
21
|
setup(o) {
|
|
15
|
-
const { t } =
|
|
16
|
-
{ label:
|
|
17
|
-
{ label:
|
|
18
|
-
]),
|
|
19
|
-
return (
|
|
20
|
-
const m =
|
|
21
|
-
return
|
|
22
|
+
const l = o, { t: a } = V(), s = _(() => [
|
|
23
|
+
{ label: l.gridText ?? a("zl.layoutSwitch.grid", "卡片"), value: "grid", icon: l.gridIcon },
|
|
24
|
+
{ label: l.tableText ?? a("zl.layoutSwitch.table", "列表"), value: "table", icon: l.tableIcon }
|
|
25
|
+
]), u = p(o, "modelValue");
|
|
26
|
+
return (I, n) => {
|
|
27
|
+
const m = r("el-radio-button"), b = r("el-radio-group");
|
|
28
|
+
return t(), d(b, {
|
|
22
29
|
class: "zl-layout-switch",
|
|
23
|
-
"model-value":
|
|
24
|
-
"onUpdate:modelValue":
|
|
30
|
+
"model-value": u.value ?? o.value,
|
|
31
|
+
"onUpdate:modelValue": n[0] || (n[0] = (e) => u.value = e)
|
|
25
32
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
(
|
|
33
|
+
default: c(() => [
|
|
34
|
+
(t(!0), i(f, null, g(s.value, (e) => (t(), d(m, {
|
|
28
35
|
key: e.value,
|
|
29
36
|
value: e.value,
|
|
30
37
|
title: e.label
|
|
31
38
|
}, {
|
|
32
|
-
default:
|
|
33
|
-
|
|
39
|
+
default: c(() => [
|
|
40
|
+
x(k, {
|
|
34
41
|
icon: `zl:${e.icon}`
|
|
35
|
-
}, null, 8, ["icon"])
|
|
42
|
+
}, null, 8, ["icon"]),
|
|
43
|
+
e.label ? (t(), i("span", z, y(e.label), 1)) : h("", !0)
|
|
36
44
|
]),
|
|
37
45
|
_: 2
|
|
38
46
|
}, 1032, ["value", "title"]))), 128))
|
|
@@ -14,6 +14,8 @@ type __VLS_Props = {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
/** 是否展示「筛选条件」标签行;不传时按「是否发生溢出」自动判定 */
|
|
16
16
|
labelsVisible?: boolean;
|
|
17
|
+
/** 表单项 label 为空时是否不渲染 label 占位,透传给 ZlForm 的 hideEmptyLabel */
|
|
18
|
+
hideEmptyLabel?: boolean;
|
|
17
19
|
/**
|
|
18
20
|
* 已废弃,请用 `labelsVisible`
|
|
19
21
|
*
|
|
@@ -36,6 +38,7 @@ declare function __VLS_template(): {
|
|
|
36
38
|
slot?: boolean;
|
|
37
39
|
slots?: Record<string, any>;
|
|
38
40
|
props: Record<string, any>;
|
|
41
|
+
hideLabel?: boolean;
|
|
39
42
|
};
|
|
40
43
|
}) => any>> & Partial<Record<string, (_: {
|
|
41
44
|
model: Record<string, any>;
|
|
@@ -48,6 +51,7 @@ declare function __VLS_template(): {
|
|
|
48
51
|
slot?: boolean;
|
|
49
52
|
slots?: Record<string, any>;
|
|
50
53
|
props: Record<string, any>;
|
|
54
|
+
hideLabel?: boolean;
|
|
51
55
|
};
|
|
52
56
|
}) => any>> & {
|
|
53
57
|
actions?(_: {}): any;
|
|
@@ -59,6 +63,7 @@ declare function __VLS_template(): {
|
|
|
59
63
|
$props: {
|
|
60
64
|
readonly items: import('../..').FormItem[];
|
|
61
65
|
readonly model?: Record<string, any> | undefined;
|
|
66
|
+
readonly hideEmptyLabel?: boolean | undefined;
|
|
62
67
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
63
68
|
$attrs: import('vue').Attrs;
|
|
64
69
|
$refs: {
|
|
@@ -77,6 +82,7 @@ declare function __VLS_template(): {
|
|
|
77
82
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
78
83
|
items: import('../..').FormItem[];
|
|
79
84
|
model?: Record<string, any>;
|
|
85
|
+
hideEmptyLabel?: boolean;
|
|
80
86
|
}> & Readonly<{}>, {
|
|
81
87
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
82
88
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -114,6 +120,7 @@ declare function __VLS_template(): {
|
|
|
114
120
|
}> & Omit<Readonly<{
|
|
115
121
|
items: import('../..').FormItem[];
|
|
116
122
|
model?: Record<string, any>;
|
|
123
|
+
hideEmptyLabel?: boolean;
|
|
117
124
|
}> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
|
|
118
125
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
119
126
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -136,6 +143,7 @@ declare function __VLS_template(): {
|
|
|
136
143
|
slot?: boolean;
|
|
137
144
|
slots?: Record<string, any>;
|
|
138
145
|
props: Record<string, any>;
|
|
146
|
+
hideLabel?: boolean;
|
|
139
147
|
};
|
|
140
148
|
}) => any>> & {
|
|
141
149
|
label?(_: {
|
|
@@ -149,6 +157,7 @@ declare function __VLS_template(): {
|
|
|
149
157
|
slot?: boolean;
|
|
150
158
|
slots?: Record<string, any>;
|
|
151
159
|
props: Record<string, any>;
|
|
160
|
+
hideLabel?: boolean;
|
|
152
161
|
};
|
|
153
162
|
}): any;
|
|
154
163
|
default?(_: {}): any;
|
|
@@ -160,6 +169,7 @@ declare function __VLS_template(): {
|
|
|
160
169
|
$props: {
|
|
161
170
|
readonly items: import('../..').FormItem[];
|
|
162
171
|
readonly model?: Record<string, any> | undefined;
|
|
172
|
+
readonly hideEmptyLabel?: boolean | undefined;
|
|
163
173
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
164
174
|
$attrs: import('vue').Attrs;
|
|
165
175
|
$refs: {
|
|
@@ -178,6 +188,7 @@ declare function __VLS_template(): {
|
|
|
178
188
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
179
189
|
items: import('../..').FormItem[];
|
|
180
190
|
model?: Record<string, any>;
|
|
191
|
+
hideEmptyLabel?: boolean;
|
|
181
192
|
}> & Readonly<{}>, {
|
|
182
193
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
183
194
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -215,6 +226,7 @@ declare function __VLS_template(): {
|
|
|
215
226
|
}> & Omit<Readonly<{
|
|
216
227
|
items: import('../..').FormItem[];
|
|
217
228
|
model?: Record<string, any>;
|
|
229
|
+
hideEmptyLabel?: boolean;
|
|
218
230
|
}> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
|
|
219
231
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
220
232
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -237,6 +249,7 @@ declare function __VLS_template(): {
|
|
|
237
249
|
slot?: boolean;
|
|
238
250
|
slots?: Record<string, any>;
|
|
239
251
|
props: Record<string, any>;
|
|
252
|
+
hideLabel?: boolean;
|
|
240
253
|
};
|
|
241
254
|
}) => any>> & {
|
|
242
255
|
label?(_: {
|
|
@@ -250,6 +263,7 @@ declare function __VLS_template(): {
|
|
|
250
263
|
slot?: boolean;
|
|
251
264
|
slots?: Record<string, any>;
|
|
252
265
|
props: Record<string, any>;
|
|
266
|
+
hideLabel?: boolean;
|
|
253
267
|
};
|
|
254
268
|
}): any;
|
|
255
269
|
default?(_: {}): any;
|
|
@@ -276,6 +290,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
276
290
|
disabled: boolean;
|
|
277
291
|
immediate: boolean;
|
|
278
292
|
items: SearchItem[];
|
|
293
|
+
hideEmptyLabel: boolean;
|
|
279
294
|
labelsVisible: boolean;
|
|
280
295
|
showLabels: boolean;
|
|
281
296
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -285,6 +300,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
285
300
|
$props: {
|
|
286
301
|
readonly items: import('../..').FormItem[];
|
|
287
302
|
readonly model?: Record<string, any> | undefined;
|
|
303
|
+
readonly hideEmptyLabel?: boolean | undefined;
|
|
288
304
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
289
305
|
$attrs: import('vue').Attrs;
|
|
290
306
|
$refs: {
|
|
@@ -303,6 +319,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
303
319
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
304
320
|
items: import('../..').FormItem[];
|
|
305
321
|
model?: Record<string, any>;
|
|
322
|
+
hideEmptyLabel?: boolean;
|
|
306
323
|
}> & Readonly<{}>, {
|
|
307
324
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
308
325
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -340,6 +357,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
340
357
|
}> & Omit<Readonly<{
|
|
341
358
|
items: import('../..').FormItem[];
|
|
342
359
|
model?: Record<string, any>;
|
|
360
|
+
hideEmptyLabel?: boolean;
|
|
343
361
|
}> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
|
|
344
362
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
345
363
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -362,6 +380,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
362
380
|
slot?: boolean;
|
|
363
381
|
slots?: Record<string, any>;
|
|
364
382
|
props: Record<string, any>;
|
|
383
|
+
hideLabel?: boolean;
|
|
365
384
|
};
|
|
366
385
|
}) => any>> & {
|
|
367
386
|
label?(_: {
|
|
@@ -375,6 +394,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
375
394
|
slot?: boolean;
|
|
376
395
|
slots?: Record<string, any>;
|
|
377
396
|
props: Record<string, any>;
|
|
397
|
+
hideLabel?: boolean;
|
|
378
398
|
};
|
|
379
399
|
}): any;
|
|
380
400
|
default?(_: {}): any;
|
|
@@ -386,6 +406,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
386
406
|
$props: {
|
|
387
407
|
readonly items: import('../..').FormItem[];
|
|
388
408
|
readonly model?: Record<string, any> | undefined;
|
|
409
|
+
readonly hideEmptyLabel?: boolean | undefined;
|
|
389
410
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
390
411
|
$attrs: import('vue').Attrs;
|
|
391
412
|
$refs: {
|
|
@@ -404,6 +425,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
404
425
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
405
426
|
items: import('../..').FormItem[];
|
|
406
427
|
model?: Record<string, any>;
|
|
428
|
+
hideEmptyLabel?: boolean;
|
|
407
429
|
}> & Readonly<{}>, {
|
|
408
430
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
409
431
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -441,6 +463,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
441
463
|
}> & Omit<Readonly<{
|
|
442
464
|
items: import('../..').FormItem[];
|
|
443
465
|
model?: Record<string, any>;
|
|
466
|
+
hideEmptyLabel?: boolean;
|
|
444
467
|
}> & Readonly<{}>, "items" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "setInitialValues" | "elForm" | "fields"> & {
|
|
445
468
|
validate: (callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
446
469
|
validateField: (props?: string | string[], callback?: (isValid: boolean, invalidFields?: Record<string, any>) => void) => Promise<boolean>;
|
|
@@ -463,6 +486,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
463
486
|
slot?: boolean;
|
|
464
487
|
slots?: Record<string, any>;
|
|
465
488
|
props: Record<string, any>;
|
|
489
|
+
hideLabel?: boolean;
|
|
466
490
|
};
|
|
467
491
|
}) => any>> & {
|
|
468
492
|
label?(_: {
|
|
@@ -476,6 +500,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
476
500
|
slot?: boolean;
|
|
477
501
|
slots?: Record<string, any>;
|
|
478
502
|
props: Record<string, any>;
|
|
503
|
+
hideLabel?: boolean;
|
|
479
504
|
};
|
|
480
505
|
}): any;
|
|
481
506
|
default?(_: {}): any;
|