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