@zl-ui-kit/components 0.26.1 → 0.27.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.
- package/README.md +22 -18
- package/dist/components/ZlAction/List.vue.mjs +46 -49
- package/dist/components/ZlAction/index.vue.d.ts +1 -7
- package/dist/components/ZlAction/index.vue.mjs +8 -12
- package/dist/components/ZlAction/types.d.ts +2 -5
- package/dist/components/ZlAppLayout/Horizontal.css +1 -1
- package/dist/components/ZlAppLayout/Vertical.css +1 -1
- package/dist/components/ZlAppLayout/Vertical2.vue.mjs +41 -39
- package/dist/components/ZlAppLayout/index.vue.d.ts +6 -6
- package/dist/components/ZlAppLayout/index.vue.mjs +8 -8
- package/dist/components/ZlAppMenu/AppMenu.css +1 -0
- package/dist/components/ZlAppMenu/AppMenu.vue.d.ts +27 -0
- package/dist/components/ZlAppMenu/AppMenu.vue.mjs +37 -0
- package/dist/components/ZlAppMenu/AppMenu3.vue.mjs +6 -0
- package/dist/components/ZlAppMenu/AppMenuItem.vue.d.ts +11 -0
- package/dist/components/ZlAppMenu/AppMenuItem.vue.mjs +58 -0
- package/dist/components/ZlAppMenu/AppMenuItem2.vue.mjs +5 -0
- package/dist/components/ZlAppSlogan/index.css +1 -1
- package/dist/components/ZlAppSlogan/index.vue.d.ts +1 -1
- package/dist/components/ZlAppSlogan/index.vue.mjs +12 -19
- package/dist/components/ZlCardPage/index.vue.d.ts +3 -41
- package/dist/components/ZlCardPage/index.vue.mjs +68 -68
- package/dist/components/ZlCheckboxTag/index.css +1 -1
- package/dist/components/ZlCheckboxTag/index.vue.d.ts +4 -4
- package/dist/components/ZlCheckboxTag/index.vue.mjs +30 -34
- package/dist/components/ZlCopy/copy.mjs +7 -17
- package/dist/components/ZlCopy/index.css +1 -1
- package/dist/components/ZlCopy/index.vue.mjs +2 -2
- package/dist/components/ZlCopy/index2.vue.mjs +36 -34
- package/dist/components/ZlDescription/index.css +1 -1
- package/dist/components/ZlDescription/index.vue.mjs +24 -28
- package/dist/components/ZlDialog/index.css +1 -1
- package/dist/components/ZlDialog/index.vue.d.ts +0 -3
- package/dist/components/ZlDialog/index.vue.mjs +35 -39
- package/dist/components/ZlDictTag/index.vue.d.ts +3 -12
- package/dist/components/ZlDictTag/index.vue.mjs +26 -31
- package/dist/components/ZlDrawer/index.css +1 -1
- package/dist/components/ZlDrawer/index.vue.d.ts +0 -3
- package/dist/components/ZlDrawer/index.vue.mjs +32 -36
- package/dist/components/ZlDynamicComponent/index.vue.d.ts +3 -5
- package/dist/components/ZlForm/index.css +1 -1
- package/dist/components/ZlForm/index.vue.d.ts +0 -7
- package/dist/components/ZlForm/index.vue.mjs +47 -50
- package/dist/components/ZlLayoutSwitch/index.css +1 -1
- package/dist/components/ZlLayoutSwitch/index.vue.d.ts +0 -10
- package/dist/components/ZlLayoutSwitch/index.vue.mjs +1 -1
- package/dist/components/ZlLayoutSwitch/index2.vue.mjs +19 -27
- package/dist/components/ZlLogin/components/LoginForm.css +1 -1
- package/dist/components/ZlLogin/components/LoginForm.vue.mjs +1 -1
- package/dist/components/ZlLogin/components/LoginForm2.vue.mjs +25 -26
- package/dist/components/ZlPageContainer/index.css +1 -1
- package/dist/components/ZlPageContainer/index.vue.mjs +1 -1
- package/dist/components/ZlPagination/index.css +1 -1
- package/dist/components/ZlPagination/index.vue.d.ts +1 -21
- package/dist/components/ZlPagination/index.vue.mjs +1 -1
- package/dist/components/ZlPagination/index2.vue.mjs +33 -59
- package/dist/components/ZlPagination/usePagination.d.ts +0 -1
- package/dist/components/ZlPagination/usePagination.mjs +34 -51
- package/dist/components/ZlPopconfirm/index.vue.mjs +24 -25
- package/dist/components/ZlSearch/index.vue.d.ts +0 -25
- package/dist/components/ZlSearch/index.vue.mjs +205 -202
- package/dist/components/ZlSearchTable/index.vue.d.ts +2 -40
- package/dist/components/ZlSearchTable/index.vue.mjs +55 -59
- package/dist/components/ZlTable/useTablePagination.d.ts +0 -1
- package/dist/components/ZlTable/useTablePagination.mjs +23 -37
- package/dist/components/ZlTabs/index.vue.d.ts +3 -16
- package/dist/components/ZlTag/ZlCornerTag.css +1 -1
- package/dist/components/ZlTag/ZlCornerTag.vue.d.ts +1 -14
- package/dist/components/ZlTag/ZlCornerTag.vue.mjs +14 -25
- package/dist/components/ZlTag/index.vue.mjs +4 -4
- package/dist/components/ZlUpload/index.css +1 -1
- package/dist/components/ZlUpload/index.vue.d.ts +3 -44
- package/dist/components/ZlUpload/index.vue.mjs +3 -3
- package/dist/components/ZlUpload/index2.vue.mjs +79 -119
- package/dist/index.d.ts +2 -8
- package/dist/index.mjs +169 -183
- package/dist/locales/en.mjs +2 -2
- package/dist/locales/zh-cn.mjs +3 -3
- package/package.json +6 -6
- package/dist/components/ZlAppLayout/HeaderAside.css +0 -1
- package/dist/components/ZlAppLayout/HeaderAside.vue.d.ts +0 -25
- package/dist/components/ZlAppLayout/HeaderAside.vue.mjs +0 -6
- package/dist/components/ZlAppLayout/HeaderAside2.vue.mjs +0 -65
- package/dist/components/ZlBreadcrumb/index.css +0 -1
- package/dist/components/ZlBreadcrumb/index.vue.d.ts +0 -32
- package/dist/components/ZlBreadcrumb/index.vue.mjs +0 -58
- package/dist/components/ZlBreadcrumb/index3.vue.mjs +0 -6
- package/dist/components/ZlBreadcrumb/types.d.ts +0 -16
- package/dist/components/ZlButton/index.vue.d.ts +0 -81
- package/dist/components/ZlButton/index.vue.mjs +0 -60
- package/dist/components/ZlButton/index2.vue.mjs +0 -5
- package/dist/components/ZlCardPage/resolvePagination.d.ts +0 -20
- package/dist/components/ZlCardPage/resolvePagination.mjs +0 -24
- package/dist/components/ZlDevMenu/index.css +0 -1
- package/dist/components/ZlDevMenu/index.vue.d.ts +0 -33
- package/dist/components/ZlDevMenu/index.vue.mjs +0 -110
- package/dist/components/ZlDevMenu/index3.vue.mjs +0 -6
- package/dist/components/ZlDevMenu/types.d.ts +0 -8
- package/dist/components/ZlLoading/index.css +0 -1
- package/dist/components/ZlLoading/index.vue.d.ts +0 -27
- package/dist/components/ZlLoading/index.vue.mjs +0 -8
- package/dist/components/ZlLoading/index2.vue.mjs +0 -30
- package/dist/components/ZlMenu/MenuIcon.d.ts +0 -17
- package/dist/components/ZlMenu/MenuIcon.mjs +0 -21
- package/dist/components/ZlMenu/ZlMenuItem.vue.d.ts +0 -7
- package/dist/components/ZlMenu/ZlMenuItem.vue.mjs +0 -53
- package/dist/components/ZlMenu/ZlMenuItem2.vue.mjs +0 -5
- package/dist/components/ZlMenu/index.css +0 -1
- package/dist/components/ZlMenu/index.vue.d.ts +0 -40
- package/dist/components/ZlMenu/index.vue.mjs +0 -60
- package/dist/components/ZlMenu/index3.vue.mjs +0 -6
- package/dist/components/ZlMenu/types.d.ts +0 -20
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { defineComponent as le, computed as
|
|
2
|
-
import { useZlT as
|
|
3
|
-
import { isArray as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import I from "../ZlForm/index.vue.mjs";
|
|
1
|
+
import { defineComponent as le, computed as d, useSlots as ae, ref as k, watch as te, nextTick as w, resolveComponent as se, openBlock as c, createElementBlock as f, createElementVNode as C, createVNode as t, withModifiers as M, createSlots as R, withCtx as s, createTextVNode as b, toDisplayString as h, renderList as P, renderSlot as $, normalizeProps as N, guardReactiveProps as O, unref as o, createBlock as E, createCommentVNode as p, Fragment as oe, Transition as re } from "vue";
|
|
2
|
+
import { useZlT as ie } from "@zl-ui-kit/composables";
|
|
3
|
+
import { isArray as ne, isPlainObject as ce } from "@zl-ui-kit/utils";
|
|
4
|
+
import I from "../ZlAutoTooltip/index.vue.mjs";
|
|
5
|
+
import A from "../ZlForm/index.vue.mjs";
|
|
7
6
|
import '../ZlTag/index.css';import '../ZlForm/index.css';/* empty css */
|
|
8
|
-
import
|
|
7
|
+
import g from "../ZlIcon/index.vue.mjs";
|
|
9
8
|
import q from "../ZlTag/index.vue.mjs";
|
|
10
9
|
/* empty css */
|
|
11
|
-
import { useSearchFormOverflow as
|
|
12
|
-
const de = { class: "zl-search" },
|
|
10
|
+
import { useSearchFormOverflow as ue } from "./useSearchFormOverflow.mjs";
|
|
11
|
+
const de = { class: "zl-search" }, me = {
|
|
13
12
|
key: 0,
|
|
14
13
|
class: "zl-search-search"
|
|
15
|
-
},
|
|
14
|
+
}, fe = { class: "zl-search-search-single" }, he = { class: "zl-search-form-actions" }, ve = {
|
|
16
15
|
key: 0,
|
|
17
16
|
class: "zl-search-label"
|
|
18
|
-
},
|
|
17
|
+
}, be = { class: "zl-search-label__summary" }, pe = {
|
|
19
18
|
key: 0,
|
|
20
19
|
class: "zl-search-search-multiple"
|
|
21
|
-
},
|
|
20
|
+
}, _e = { class: "zl-search-form-actions" }, ze = {
|
|
22
21
|
key: 1,
|
|
23
22
|
class: "zl-search__actions"
|
|
24
|
-
},
|
|
23
|
+
}, $e = /* @__PURE__ */ le({
|
|
25
24
|
name: "ZlSearch",
|
|
26
25
|
__name: "index",
|
|
27
26
|
props: {
|
|
@@ -30,247 +29,251 @@ const de = { class: "zl-search" }, ue = {
|
|
|
30
29
|
immediate: { type: Boolean, default: !0 },
|
|
31
30
|
disabled: { type: Boolean, default: !1 },
|
|
32
31
|
labelsVisible: { type: Boolean, default: void 0 },
|
|
33
|
-
hideEmptyLabel: { type: Boolean, default: !1 },
|
|
34
32
|
showLabels: { type: Boolean, default: void 0 }
|
|
35
33
|
},
|
|
36
34
|
emits: ["search", "reset"],
|
|
37
|
-
setup(
|
|
38
|
-
const { t: r } =
|
|
35
|
+
setup(S, { expose: D, emit: G }) {
|
|
36
|
+
const { t: r } = ie(), u = S, B = G, T = d(
|
|
39
37
|
() => Object.keys(ae()).filter((e) => e !== "label" && e !== "actions")
|
|
40
|
-
),
|
|
38
|
+
), y = k(null), L = k(null), n = k(!1), { lastVisibleIndex: Z, measure: H } = ue(y), J = d(() => {
|
|
41
39
|
const e = {};
|
|
42
|
-
for (const l of
|
|
40
|
+
for (const l of u.items)
|
|
43
41
|
e[l.model] = typeof l.toLabel == "function" ? l.toLabel : X;
|
|
44
42
|
return e;
|
|
45
|
-
}), K =
|
|
43
|
+
}), K = d(() => {
|
|
46
44
|
const e = {};
|
|
47
|
-
for (const l of
|
|
45
|
+
for (const l of u.items)
|
|
48
46
|
typeof l.toParams == "function" && (e[l.model] = l.toParams);
|
|
49
47
|
return e;
|
|
50
|
-
}),
|
|
48
|
+
}), v = d(() => {
|
|
51
49
|
const e = [];
|
|
52
|
-
for (const l of
|
|
50
|
+
for (const l of u.items) {
|
|
53
51
|
if (!l.model)
|
|
54
52
|
throw new Error("[ZlSearch]: form item's model is required!");
|
|
55
53
|
if (!W(l))
|
|
56
54
|
continue;
|
|
57
|
-
const { toLabel:
|
|
55
|
+
const { toLabel: i, toParams: a, visible: z, ...ee } = l;
|
|
58
56
|
e.push(ee);
|
|
59
57
|
}
|
|
60
58
|
return e;
|
|
61
|
-
}), Q =
|
|
62
|
-
const
|
|
63
|
-
return
|
|
64
|
-
}, {})),
|
|
65
|
-
labelValue: J.value[e.model](
|
|
59
|
+
}), Q = k(u.model ?? {}), m = d(() => u.model ?? Q.value), j = d(() => v.value.reduce((e, l) => {
|
|
60
|
+
const i = K.value[l.model];
|
|
61
|
+
return i ? Object.assign(e, i(m.value[l.model], e)) : { ...e, [l.model]: m.value[l.model] };
|
|
62
|
+
}, {})), F = d(() => v.value.map((e) => ({
|
|
63
|
+
labelValue: J.value[e.model](m.value[e.model]),
|
|
66
64
|
model: e.model,
|
|
67
65
|
label: e.label
|
|
68
|
-
})).filter((e) => e.labelValue)), U =
|
|
69
|
-
() =>
|
|
66
|
+
})).filter((e) => e.labelValue)), U = d(
|
|
67
|
+
() => u.labelsVisible ?? u.showLabels ?? Z.value !== null
|
|
70
68
|
);
|
|
71
69
|
function W(e) {
|
|
72
70
|
const l = e.visible;
|
|
73
|
-
return l === void 0 ? !0 : l === !1 || typeof l == "function" && !l(
|
|
71
|
+
return l === void 0 ? !0 : l === !1 || typeof l == "function" && !l(m.value, e) ? !1 : !!l;
|
|
74
72
|
}
|
|
75
73
|
function X(e) {
|
|
76
|
-
return
|
|
74
|
+
return ne(e) ? e.join(", ") : ce(e) ? e.label : e;
|
|
77
75
|
}
|
|
78
|
-
async function
|
|
79
|
-
|
|
76
|
+
async function V() {
|
|
77
|
+
n.value && (n.value = !1), B("search", j.value);
|
|
80
78
|
}
|
|
81
|
-
async function
|
|
79
|
+
async function _() {
|
|
82
80
|
try {
|
|
83
|
-
await (
|
|
81
|
+
await (n.value ? L.value : y.value)?.validate(), V();
|
|
84
82
|
} catch {
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
|
-
async function
|
|
85
|
+
async function x() {
|
|
88
86
|
try {
|
|
89
|
-
const e =
|
|
90
|
-
e?.resetFields(), await
|
|
91
|
-
}),
|
|
87
|
+
const e = n.value ? L.value : y.value;
|
|
88
|
+
e?.resetFields(), await w(), await e?.validate().catch(() => {
|
|
89
|
+
}), B("reset"), await w(), V();
|
|
92
90
|
} catch (e) {
|
|
93
91
|
console.error("[ZlSearch] reset validate error", e);
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
function Y(e) {
|
|
97
|
-
delete
|
|
95
|
+
delete m.value[e.model];
|
|
98
96
|
}
|
|
99
97
|
return te(
|
|
100
|
-
() =>
|
|
98
|
+
() => v.value.map((e) => e.model).join(","),
|
|
101
99
|
async () => {
|
|
102
|
-
await
|
|
100
|
+
await w(), H();
|
|
103
101
|
}
|
|
104
|
-
),
|
|
102
|
+
), u.immediate && (async () => (await w(), _()))(), D({
|
|
105
103
|
/** 当前查询表单值(已按各项 `toParams` 转换),可直接当请求入参 */
|
|
106
|
-
params:
|
|
104
|
+
params: j,
|
|
107
105
|
/** 收起展开态并触发 `search` 事件(本身不做校验,带校验的查询走组件内查询按钮) */
|
|
108
|
-
search:
|
|
106
|
+
search: V,
|
|
109
107
|
/** 重置表单并清除校验提示,随后触发 `reset` 事件与一次 `search` */
|
|
110
|
-
reset:
|
|
111
|
-
}), (e, l) =>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
s(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
_: 2
|
|
133
|
-
}, [
|
|
134
|
-
x(B.value, (a) => ({
|
|
135
|
-
name: a,
|
|
136
|
-
fn: t((z) => [
|
|
137
|
-
$(e.$slots, a, M(R(z)))
|
|
138
|
-
])
|
|
139
|
-
}))
|
|
140
|
-
]), 1032, ["model", "items", "disabled", "hide-empty-label"]),
|
|
141
|
-
g("div", fe, [
|
|
142
|
-
o(E) !== null ? (n(), N(b, {
|
|
143
|
-
key: 0,
|
|
144
|
-
class: "zl-search-form-actions__toggle",
|
|
145
|
-
title: o(r)("zl.search.expand", "展开"),
|
|
146
|
-
"aria-label": o(r)("zl.search.expand", "展开"),
|
|
147
|
-
"aria-expanded": i.value,
|
|
148
|
-
onClick: l[0] || (l[0] = (a) => i.value = !0)
|
|
149
|
-
}, {
|
|
150
|
-
icon: t(() => [
|
|
151
|
-
s(A, { icon: "zl:filter-color" })
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
}, 8, ["title", "aria-label", "aria-expanded"])) : v("", !0),
|
|
155
|
-
s(b, {
|
|
156
|
-
type: "primary",
|
|
157
|
-
onClick: y
|
|
158
|
-
}, {
|
|
159
|
-
default: t(() => [
|
|
160
|
-
m(c(o(r)("zl.search.search", "搜索")), 1)
|
|
108
|
+
reset: x
|
|
109
|
+
}), (e, l) => {
|
|
110
|
+
const i = se("el-button");
|
|
111
|
+
return c(), f("div", de, [
|
|
112
|
+
v.value.length ? (c(), f("div", me, [
|
|
113
|
+
C("div", fe, [
|
|
114
|
+
t(A, {
|
|
115
|
+
ref_key: "formRef",
|
|
116
|
+
ref: y,
|
|
117
|
+
class: "zl-search-form",
|
|
118
|
+
model: m.value,
|
|
119
|
+
items: v.value,
|
|
120
|
+
disabled: S.disabled,
|
|
121
|
+
onSubmit: M(_, ["prevent"])
|
|
122
|
+
}, R({
|
|
123
|
+
label: s(({ label: a }) => [
|
|
124
|
+
t(I, null, {
|
|
125
|
+
default: s(() => [
|
|
126
|
+
b(h(a), 1)
|
|
127
|
+
]),
|
|
128
|
+
_: 2
|
|
129
|
+
}, 1024)
|
|
161
130
|
]),
|
|
162
|
-
_:
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
131
|
+
_: 2
|
|
132
|
+
}, [
|
|
133
|
+
P(T.value, (a) => ({
|
|
134
|
+
name: a,
|
|
135
|
+
fn: s((z) => [
|
|
136
|
+
$(e.$slots, a, N(O(z)))
|
|
137
|
+
])
|
|
138
|
+
}))
|
|
139
|
+
]), 1032, ["model", "items", "disabled"]),
|
|
140
|
+
C("div", he, [
|
|
141
|
+
t(i, {
|
|
142
|
+
class: "zl-search-form-actions__reset",
|
|
143
|
+
title: o(r)("zl.search.reset", "重置"),
|
|
144
|
+
"aria-label": o(r)("zl.search.reset", "重置"),
|
|
145
|
+
onClick: x
|
|
146
|
+
}, {
|
|
147
|
+
icon: s(() => [
|
|
148
|
+
t(g, { icon: "zl:reset" })
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 8, ["title", "aria-label"]),
|
|
152
|
+
o(Z) !== null ? (c(), E(i, {
|
|
153
|
+
key: 0,
|
|
154
|
+
class: "zl-search-form-actions__toggle",
|
|
155
|
+
title: o(r)("zl.search.expand", "展开"),
|
|
156
|
+
"aria-label": o(r)("zl.search.expand", "展开"),
|
|
157
|
+
"aria-expanded": n.value,
|
|
158
|
+
onClick: l[0] || (l[0] = (a) => n.value = !0)
|
|
159
|
+
}, {
|
|
160
|
+
icon: s(() => [
|
|
161
|
+
t(g, { icon: "zl:filter-color" })
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["title", "aria-label", "aria-expanded"])) : p("", !0),
|
|
165
|
+
t(i, {
|
|
166
|
+
type: "primary",
|
|
167
|
+
onClick: _
|
|
168
|
+
}, {
|
|
169
|
+
default: s(() => [
|
|
170
|
+
b(h(o(r)("zl.search.search", "查询")), 1)
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
})
|
|
174
|
+
])
|
|
175
|
+
]),
|
|
176
|
+
U.value ? (c(), f("div", ve, [
|
|
177
|
+
C("div", be, h(o(r)("zl.search.filterConditions", "筛选条件")), 1),
|
|
178
|
+
F.value.length === 0 ? (c(), E(q, { key: 0 }, {
|
|
179
|
+
default: s(() => [
|
|
180
|
+
b(h(o(r)("zl.search.all", "全部")), 1)
|
|
170
181
|
]),
|
|
171
182
|
_: 1
|
|
172
|
-
})
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
class: "zl-search-label-item"
|
|
186
|
-
}, [
|
|
187
|
-
s(q, {
|
|
188
|
-
closable: "",
|
|
189
|
-
fill: "",
|
|
190
|
-
color: "primary",
|
|
191
|
-
onClose: (z) => Y(a)
|
|
192
|
-
}, {
|
|
193
|
-
default: t(() => [
|
|
194
|
-
m(c(a.labelValue), 1)
|
|
195
|
-
]),
|
|
196
|
-
_: 2
|
|
197
|
-
}, 1032, ["onClose"])
|
|
198
|
-
]))), 128))
|
|
199
|
-
])) : v("", !0),
|
|
200
|
-
s(oe, { name: "zl-search-fade-slide" }, {
|
|
201
|
-
default: t(() => [
|
|
202
|
-
i.value ? (n(), h("div", ve, [
|
|
203
|
-
s(I, {
|
|
204
|
-
ref_key: "multipleFormRef",
|
|
205
|
-
ref: C,
|
|
206
|
-
class: "zl-search-form",
|
|
207
|
-
model: f.value,
|
|
208
|
-
items: p.value,
|
|
209
|
-
disabled: _.disabled,
|
|
210
|
-
"hide-empty-label": _.hideEmptyLabel,
|
|
211
|
-
onSubmit: j(y, ["prevent"])
|
|
212
|
-
}, F({
|
|
213
|
-
label: t(({ label: a }) => [
|
|
214
|
-
s(O, null, {
|
|
215
|
-
default: t(() => [
|
|
216
|
-
m(c(a), 1)
|
|
217
|
-
]),
|
|
218
|
-
_: 2
|
|
219
|
-
}, 1024)
|
|
183
|
+
})) : p("", !0),
|
|
184
|
+
(c(!0), f(oe, null, P(F.value, (a) => (c(), f("div", {
|
|
185
|
+
key: a.model,
|
|
186
|
+
class: "zl-search-label-item"
|
|
187
|
+
}, [
|
|
188
|
+
t(q, {
|
|
189
|
+
closable: "",
|
|
190
|
+
fill: "",
|
|
191
|
+
color: "primary",
|
|
192
|
+
onClose: (z) => Y(a)
|
|
193
|
+
}, {
|
|
194
|
+
default: s(() => [
|
|
195
|
+
b(h(a.labelValue), 1)
|
|
220
196
|
]),
|
|
221
197
|
_: 2
|
|
222
|
-
}, [
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
type: "primary",
|
|
245
|
-
onClick: y
|
|
246
|
-
}, {
|
|
247
|
-
default: t(() => [
|
|
248
|
-
m(c(o(r)("zl.search.search", "搜索")), 1)
|
|
198
|
+
}, 1032, ["onClose"])
|
|
199
|
+
]))), 128))
|
|
200
|
+
])) : p("", !0),
|
|
201
|
+
t(re, { name: "zl-search-fade-slide" }, {
|
|
202
|
+
default: s(() => [
|
|
203
|
+
n.value ? (c(), f("div", pe, [
|
|
204
|
+
t(A, {
|
|
205
|
+
ref_key: "multipleFormRef",
|
|
206
|
+
ref: L,
|
|
207
|
+
class: "zl-search-form",
|
|
208
|
+
model: m.value,
|
|
209
|
+
items: v.value,
|
|
210
|
+
disabled: S.disabled,
|
|
211
|
+
onSubmit: M(_, ["prevent"])
|
|
212
|
+
}, R({
|
|
213
|
+
label: s(({ label: a }) => [
|
|
214
|
+
t(I, null, {
|
|
215
|
+
default: s(() => [
|
|
216
|
+
b(h(a), 1)
|
|
217
|
+
]),
|
|
218
|
+
_: 2
|
|
219
|
+
}, 1024)
|
|
249
220
|
]),
|
|
250
|
-
_:
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
221
|
+
_: 2
|
|
222
|
+
}, [
|
|
223
|
+
P(T.value, (a) => ({
|
|
224
|
+
name: a,
|
|
225
|
+
fn: s((z) => [
|
|
226
|
+
$(e.$slots, a, N(O(z)))
|
|
227
|
+
])
|
|
228
|
+
}))
|
|
229
|
+
]), 1032, ["model", "items", "disabled"]),
|
|
230
|
+
C("div", _e, [
|
|
231
|
+
t(i, {
|
|
232
|
+
class: "zl-search-form-actions__reset",
|
|
233
|
+
title: o(r)("zl.search.reset", "重置"),
|
|
234
|
+
"aria-label": o(r)("zl.search.reset", "重置"),
|
|
235
|
+
onClick: x
|
|
236
|
+
}, {
|
|
237
|
+
icon: s(() => [
|
|
238
|
+
t(g, { icon: "zl:reset" })
|
|
239
|
+
]),
|
|
240
|
+
_: 1
|
|
241
|
+
}, 8, ["title", "aria-label"]),
|
|
242
|
+
t(i, {
|
|
243
|
+
class: "zl-search-form-actions__toggle",
|
|
244
|
+
title: o(r)("zl.search.collapse", "收起"),
|
|
245
|
+
"aria-label": o(r)("zl.search.collapse", "收起"),
|
|
246
|
+
"aria-expanded": n.value,
|
|
247
|
+
onClick: l[1] || (l[1] = (a) => n.value = !1)
|
|
248
|
+
}, {
|
|
249
|
+
icon: s(() => [
|
|
250
|
+
t(g, { icon: "zl:filter-color" })
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
}, 8, ["title", "aria-label", "aria-expanded"]),
|
|
254
|
+
t(i, {
|
|
255
|
+
type: "primary",
|
|
256
|
+
onClick: _
|
|
257
|
+
}, {
|
|
258
|
+
default: s(() => [
|
|
259
|
+
b(h(o(r)("zl.search.search", "查询")), 1)
|
|
260
|
+
]),
|
|
261
|
+
_: 1
|
|
262
|
+
})
|
|
263
|
+
])
|
|
264
|
+
])) : p("", !0)
|
|
265
|
+
]),
|
|
266
|
+
_: 3
|
|
267
|
+
})
|
|
268
|
+
])) : p("", !0),
|
|
269
|
+
e.$slots.actions ? (c(), f("div", ze, [
|
|
270
|
+
$(e.$slots, "actions")
|
|
271
|
+
])) : p("", !0)
|
|
272
|
+
]);
|
|
273
|
+
};
|
|
271
274
|
}
|
|
272
275
|
});
|
|
273
276
|
export {
|
|
274
|
-
|
|
277
|
+
$e as default
|
|
275
278
|
};
|
|
276
279
|
//# sourceMappingURL=index.vue.mjs.map
|