@zl-ui-kit/components 0.18.2 → 0.18.3
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 +53 -37
- package/dist/components/ZlCardPage/index.vue.d.ts +40 -2
- package/dist/components/ZlCardPage/index.vue.mjs +36 -34
- 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/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/package.json +7 -7
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { usePageableRequest as
|
|
3
|
-
import { isArray as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as K, useSlots as M, ref as V, computed as u, watch as x, resolveDirective as F, withDirectives as G, openBlock as m, createElementBlock as z, normalizeStyle as H, createBlock as g, createSlots as J, withCtx as P, renderSlot as h, renderList as b, normalizeProps as Q, guardReactiveProps as T, createCommentVNode as k, createElementVNode as q, Fragment as U, mergeProps as $, unref as v } from "vue";
|
|
2
|
+
import { usePageableRequest as X } from "@zl-ui-kit/composables";
|
|
3
|
+
import { isArray as D } from "@zl-ui-kit/utils";
|
|
4
|
+
import Y from "../ZlEmpty/index.vue.mjs";
|
|
5
|
+
import _ from "../ZlPagination/index.vue.mjs";
|
|
6
6
|
import ee from "../ZlSearch/index.vue.mjs";
|
|
7
7
|
import '../ZlSearch/index.css';/* empty css */
|
|
8
8
|
import { usePagination as te } from "../ZlPagination/usePagination.mjs";
|
|
9
|
-
const ae = { class: "zl-card-page__content" }, se = { class: "zl-card-page__list" },
|
|
9
|
+
const ae = { class: "zl-card-page__content" }, se = { class: "zl-card-page__list" }, B = "search-", de = /* @__PURE__ */ K({
|
|
10
10
|
name: "ZlCardPage",
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
13
13
|
immediate: { type: Boolean, default: !0 },
|
|
14
14
|
request: {},
|
|
15
15
|
queryItems: { default: () => [] },
|
|
16
|
+
hideEmptyLabel: { type: Boolean, default: !1 },
|
|
16
17
|
pagination: { type: [Object, Boolean], default: !0 },
|
|
17
18
|
itemKey: { default: "id" },
|
|
18
19
|
cardMinWidth: {}
|
|
19
20
|
},
|
|
20
21
|
emits: ["search-reset"],
|
|
21
|
-
setup(s, { expose:
|
|
22
|
-
const n = s,
|
|
22
|
+
setup(s, { expose: E, emit: N }) {
|
|
23
|
+
const n = s, R = N, w = M(), C = V(null), p = u(() => {
|
|
23
24
|
const e = n.request;
|
|
24
25
|
if (e && typeof e == "object" && "run" in e && "data" in e && !("service" in e))
|
|
25
26
|
return {
|
|
@@ -40,14 +41,14 @@ const ae = { class: "zl-card-page__content" }, se = { class: "zl-card-page__list
|
|
|
40
41
|
...r ? { refreshDeps: r, refreshDepsAction: a ?? (() => l()) } : {}
|
|
41
42
|
}
|
|
42
43
|
};
|
|
43
|
-
}), o =
|
|
44
|
+
}), o = X(p.value.service, p.value.options), I = p.value.instance ?? {
|
|
44
45
|
loading: o.loading,
|
|
45
46
|
data: o.data,
|
|
46
47
|
run: o.run,
|
|
47
48
|
params: o.params,
|
|
48
49
|
refresh: o.refresh
|
|
49
|
-
}, { loading: O, data: i, run: j, params: A, refresh:
|
|
50
|
-
if (
|
|
50
|
+
}, { loading: O, data: i, run: j, params: A, refresh: L } = I, y = u(() => A.value?.[0]), W = u(() => {
|
|
51
|
+
if (D(i.value))
|
|
51
52
|
return n.pagination && { total: i.value.length, ...n.pagination };
|
|
52
53
|
{
|
|
53
54
|
const e = i.value ?? {}, t = y.value ?? {}, r = n.pagination;
|
|
@@ -58,12 +59,12 @@ const ae = { class: "zl-card-page__content" }, se = { class: "zl-card-page__list
|
|
|
58
59
|
total: e.total ?? 0
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
}), d = te(() =>
|
|
62
|
-
() =>
|
|
63
|
-
),
|
|
62
|
+
}), d = te(() => W.value ?? !1), S = u(
|
|
63
|
+
() => D(i.value) ? i.value : i.value?.rows ?? []
|
|
64
|
+
), Z = u(() => {
|
|
64
65
|
const e = [];
|
|
65
|
-
return Object.keys(
|
|
66
|
-
t.startsWith(
|
|
66
|
+
return Object.keys(w).forEach((t) => {
|
|
67
|
+
t.startsWith(B) && t !== "search-actions" && e.push(t.slice(B.length));
|
|
67
68
|
}), e;
|
|
68
69
|
});
|
|
69
70
|
let f;
|
|
@@ -83,54 +84,55 @@ const ae = { class: "zl-card-page__content" }, se = { class: "zl-card-page__list
|
|
|
83
84
|
e && !n.queryItems.length && l();
|
|
84
85
|
},
|
|
85
86
|
{ immediate: !0, once: !0 }
|
|
86
|
-
),
|
|
87
|
+
), E({
|
|
87
88
|
/** 原地重查:用最近一次入参重新请求,保持当前页码(区别于 `search()` 会回到第 1 页) */
|
|
88
|
-
refresh:
|
|
89
|
+
refresh: L,
|
|
89
90
|
/** 最近一次请求的入参(`{ pageNum, pageSize, ...查询表单 }`),未请求过时为 `undefined` */
|
|
90
91
|
params: y,
|
|
91
92
|
/** 重新查询并回到第 1 页;消费方可在 useRequest 的 refreshDepsAction 里调用 */
|
|
92
93
|
search: l
|
|
93
94
|
}), (e, t) => {
|
|
94
95
|
const r = F("loading");
|
|
95
|
-
return
|
|
96
|
+
return G((m(), z("div", {
|
|
96
97
|
class: "zl-card-page",
|
|
97
|
-
style:
|
|
98
|
+
style: H({ "--card-min-width": s.cardMinWidth })
|
|
98
99
|
}, [
|
|
99
100
|
s.queryItems.length || e.$slots["search-actions"] ? (m(), g(ee, {
|
|
100
101
|
key: 0,
|
|
101
102
|
ref_key: "searchRef",
|
|
102
|
-
ref:
|
|
103
|
+
ref: C,
|
|
103
104
|
items: s.queryItems,
|
|
104
105
|
immediate: s.immediate,
|
|
106
|
+
"hide-empty-label": s.hideEmptyLabel,
|
|
105
107
|
onSearch: l,
|
|
106
|
-
onReset: t[0] || (t[0] = (a) =>
|
|
107
|
-
},
|
|
108
|
+
onReset: t[0] || (t[0] = (a) => R("search-reset"))
|
|
109
|
+
}, J({ _: 2 }, [
|
|
108
110
|
e.$slots["search-actions"] ? {
|
|
109
111
|
name: "actions",
|
|
110
112
|
fn: P(() => [
|
|
111
|
-
|
|
113
|
+
h(e.$slots, "search-actions")
|
|
112
114
|
]),
|
|
113
115
|
key: "0"
|
|
114
116
|
} : void 0,
|
|
115
|
-
|
|
117
|
+
b(Z.value, (a) => ({
|
|
116
118
|
name: a,
|
|
117
119
|
fn: P((c) => [
|
|
118
|
-
|
|
120
|
+
h(e.$slots, `search-${a}`, Q(T(c)))
|
|
119
121
|
])
|
|
120
122
|
}))
|
|
121
|
-
]), 1032, ["items", "immediate"])) :
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
S.value.length ? (m(!0), z(
|
|
123
|
+
]), 1032, ["items", "immediate", "hide-empty-label"])) : k("", !0),
|
|
124
|
+
q("div", ae, [
|
|
125
|
+
q("div", se, [
|
|
126
|
+
S.value.length ? (m(!0), z(U, { key: 0 }, b(S.value, (a, c) => h(e.$slots, "default", $({
|
|
125
127
|
key: a[s.itemKey] || c
|
|
126
|
-
}, { ref_for: !0 }, { data: a }))), 128)) : (m(), g(
|
|
128
|
+
}, { ref_for: !0 }, { data: a }))), 128)) : (m(), g(Y, { key: 1 }))
|
|
127
129
|
])
|
|
128
130
|
]),
|
|
129
|
-
s.pagination &&
|
|
131
|
+
s.pagination && v(d) !== !1 ? (m(), g(_, $({ key: 1 }, v(d), {
|
|
130
132
|
onChange: t[1] || (t[1] = (a) => l(void 0, a))
|
|
131
|
-
}), null, 16)) :
|
|
133
|
+
}), null, 16)) : k("", !0)
|
|
132
134
|
], 4)), [
|
|
133
|
-
[r,
|
|
135
|
+
[r, v(O)]
|
|
134
136
|
]);
|
|
135
137
|
};
|
|
136
138
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
@charset "UTF-8";.zl-form-item-label{display:inline-flex;align-items:center;gap:2px}.zl-form-item-label__tooltip{color:var(--zl-text-3, var(--el-text-color-secondary))}.zl-form-item--no-label .el-form-item__label{display:none}
|
|
@@ -4,6 +4,11 @@ type __VLS_Props = {
|
|
|
4
4
|
items: FormItem[];
|
|
5
5
|
/** 表单值对象,不传时由组件内部自建 */
|
|
6
6
|
model?: Record<string, any>;
|
|
7
|
+
/**
|
|
8
|
+
* 表单项 `label` 为空字符串/缺省时不渲染 label 占位(控件直接顶到最左)。
|
|
9
|
+
* 默认 false:即使 label 为空,EP 也会因 #label 插槽存在而保留 label 列占位
|
|
10
|
+
*/
|
|
11
|
+
hideEmptyLabel?: boolean;
|
|
7
12
|
};
|
|
8
13
|
/** el-form 的校验回调:第一个参数为是否通过,失败时第二个参数为错误字段集合 */
|
|
9
14
|
type ValidateCallback = (isValid: boolean, invalidFields?: Record<string, any>) => void;
|
|
@@ -32,6 +37,7 @@ declare function __VLS_template(): {
|
|
|
32
37
|
slot?: boolean;
|
|
33
38
|
slots?: Record<string, any>;
|
|
34
39
|
props: Record<string, any>;
|
|
40
|
+
hideLabel?: boolean;
|
|
35
41
|
};
|
|
36
42
|
}) => any>> & {
|
|
37
43
|
label?(_: {
|
|
@@ -45,6 +51,7 @@ declare function __VLS_template(): {
|
|
|
45
51
|
slot?: boolean;
|
|
46
52
|
slots?: Record<string, any>;
|
|
47
53
|
props: Record<string, any>;
|
|
54
|
+
hideLabel?: boolean;
|
|
48
55
|
};
|
|
49
56
|
}): any;
|
|
50
57
|
default?(_: {}): any;
|
|
@@ -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
|
|
@@ -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;
|