@zl-ui-kit/components 0.7.1 → 0.8.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 +114 -63
- package/dist/components/ZlAction/List.vue.mjs +16 -15
- package/dist/components/ZlAction/types.d.ts +5 -2
- package/dist/components/ZlCardPage/index.vue.d.ts +37 -5
- package/dist/components/ZlCardPage/index.vue.mjs +87 -93
- package/dist/components/ZlDictTag/index.vue.d.ts +5 -0
- package/dist/components/ZlDictTag/index.vue.mjs +20 -19
- package/dist/components/ZlPagination/index.css +1 -1
- package/dist/components/ZlPagination/index.vue.mjs +1 -1
- package/dist/components/ZlPagination/usePagination.d.ts +6 -0
- package/dist/components/ZlPagination/usePagination.mjs +22 -19
- package/dist/components/ZlSearch/index.vue.d.ts +3 -0
- package/dist/components/ZlSearch/index.vue.mjs +105 -92
- package/dist/components/ZlSearchTable/index.vue.d.ts +12 -2
- package/dist/components/ZlUpload/index.css +1 -1
- package/dist/components/ZlUpload/index.vue.d.ts +8 -0
- package/dist/components/ZlUpload/index.vue.mjs +2 -2
- package/dist/components/ZlUpload/index2.vue.mjs +76 -72
- package/dist/locales/en.mjs +1 -0
- package/dist/locales/zh-cn.mjs +1 -0
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as le, computed as
|
|
2
|
-
import { useZlT as
|
|
3
|
-
import { isArray as
|
|
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
4
|
import I from "../ZlAutoTooltip/index.vue.mjs";
|
|
5
5
|
import A from "../ZlForm/index.vue.mjs";
|
|
6
6
|
import '../ZlTag/index.css';import '../ZlForm/index.css';/* empty css */
|
|
7
|
-
import
|
|
7
|
+
import g from "../ZlIcon/index.vue.mjs";
|
|
8
8
|
import q from "../ZlTag/index.vue.mjs";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { useSearchFormOverflow as ue } from "./useSearchFormOverflow.mjs";
|
|
@@ -14,10 +14,10 @@ const de = { class: "zl-search" }, me = {
|
|
|
14
14
|
}, fe = { class: "zl-search-search-single" }, he = { class: "zl-search-form-actions" }, ve = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "zl-search-label"
|
|
17
|
-
},
|
|
17
|
+
}, be = { class: "zl-search-label__summary" }, pe = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "zl-search-search-multiple"
|
|
20
|
-
}, _e = { class: "zl-search-form-actions" },
|
|
20
|
+
}, _e = { class: "zl-search-form-actions" }, ze = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "zl-search__actions"
|
|
23
23
|
}, $e = /* @__PURE__ */ le({
|
|
@@ -28,62 +28,65 @@ const de = { class: "zl-search" }, me = {
|
|
|
28
28
|
model: {},
|
|
29
29
|
immediate: { type: Boolean, default: !0 },
|
|
30
30
|
disabled: { type: Boolean, default: !1 },
|
|
31
|
+
labelsVisible: { type: Boolean, default: void 0 },
|
|
31
32
|
showLabels: { type: Boolean, default: void 0 }
|
|
32
33
|
},
|
|
33
34
|
emits: ["search", "reset"],
|
|
34
35
|
setup(S, { expose: D, emit: G }) {
|
|
35
|
-
const { t:
|
|
36
|
+
const { t: r } = ie(), u = S, B = G, T = d(
|
|
36
37
|
() => Object.keys(ae()).filter((e) => e !== "label" && e !== "actions")
|
|
37
|
-
),
|
|
38
|
+
), y = k(null), L = k(null), n = k(!1), { lastVisibleIndex: Z, measure: H } = ue(y), J = d(() => {
|
|
38
39
|
const e = {};
|
|
39
|
-
for (const l of
|
|
40
|
+
for (const l of u.items)
|
|
40
41
|
e[l.model] = typeof l.toLabel == "function" ? l.toLabel : X;
|
|
41
42
|
return e;
|
|
42
|
-
}), K =
|
|
43
|
+
}), K = d(() => {
|
|
43
44
|
const e = {};
|
|
44
|
-
for (const l of
|
|
45
|
+
for (const l of u.items)
|
|
45
46
|
typeof l.toParams == "function" && (e[l.model] = l.toParams);
|
|
46
47
|
return e;
|
|
47
|
-
}), v =
|
|
48
|
+
}), v = d(() => {
|
|
48
49
|
const e = [];
|
|
49
|
-
for (const l of
|
|
50
|
+
for (const l of u.items) {
|
|
50
51
|
if (!l.model)
|
|
51
52
|
throw new Error("[ZlSearch]: form item's model is required!");
|
|
52
53
|
if (!W(l))
|
|
53
54
|
continue;
|
|
54
|
-
const { toLabel:
|
|
55
|
+
const { toLabel: i, toParams: a, visible: z, ...ee } = l;
|
|
55
56
|
e.push(ee);
|
|
56
57
|
}
|
|
57
58
|
return e;
|
|
58
|
-
}), Q = k(
|
|
59
|
-
const
|
|
60
|
-
return
|
|
61
|
-
}, {})), F =
|
|
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) => ({
|
|
62
63
|
labelValue: J.value[e.model](m.value[e.model]),
|
|
63
64
|
model: e.model,
|
|
64
65
|
label: e.label
|
|
65
|
-
})).filter((e) => e.labelValue)), U =
|
|
66
|
+
})).filter((e) => e.labelValue)), U = d(
|
|
67
|
+
() => u.labelsVisible ?? u.showLabels ?? Z.value !== null
|
|
68
|
+
);
|
|
66
69
|
function W(e) {
|
|
67
70
|
const l = e.visible;
|
|
68
71
|
return l === void 0 ? !0 : l === !1 || typeof l == "function" && !l(m.value, e) ? !1 : !!l;
|
|
69
72
|
}
|
|
70
73
|
function X(e) {
|
|
71
|
-
return
|
|
74
|
+
return ne(e) ? e.join(", ") : ce(e) ? e.label : e;
|
|
72
75
|
}
|
|
73
|
-
async function
|
|
74
|
-
|
|
76
|
+
async function V() {
|
|
77
|
+
n.value && (n.value = !1), B("search", j.value);
|
|
75
78
|
}
|
|
76
79
|
async function _() {
|
|
77
80
|
try {
|
|
78
|
-
await (
|
|
81
|
+
await (n.value ? L.value : y.value)?.validate(), V();
|
|
79
82
|
} catch {
|
|
80
83
|
}
|
|
81
84
|
}
|
|
82
|
-
async function
|
|
85
|
+
async function x() {
|
|
83
86
|
try {
|
|
84
|
-
const e =
|
|
87
|
+
const e = n.value ? L.value : y.value;
|
|
85
88
|
e?.resetFields(), await w(), await e?.validate().catch(() => {
|
|
86
|
-
}), B("reset"), await w(),
|
|
89
|
+
}), B("reset"), await w(), V();
|
|
87
90
|
} catch (e) {
|
|
88
91
|
console.error("[ZlSearch] reset validate error", e);
|
|
89
92
|
}
|
|
@@ -96,77 +99,82 @@ const de = { class: "zl-search" }, me = {
|
|
|
96
99
|
async () => {
|
|
97
100
|
await w(), H();
|
|
98
101
|
}
|
|
99
|
-
),
|
|
100
|
-
const
|
|
101
|
-
return
|
|
102
|
-
v.value.length ? (
|
|
103
|
-
|
|
102
|
+
), u.immediate && (async () => (await w(), _()))(), D({ params: j, search: V, reset: x }), (e, l) => {
|
|
103
|
+
const i = se("el-button");
|
|
104
|
+
return c(), f("div", de, [
|
|
105
|
+
v.value.length ? (c(), f("div", me, [
|
|
106
|
+
C("div", fe, [
|
|
104
107
|
t(A, {
|
|
105
108
|
ref_key: "formRef",
|
|
106
|
-
ref:
|
|
109
|
+
ref: y,
|
|
107
110
|
class: "zl-search-form",
|
|
108
111
|
model: m.value,
|
|
109
112
|
items: v.value,
|
|
110
113
|
disabled: S.disabled,
|
|
111
114
|
onSubmit: M(_, ["prevent"])
|
|
112
115
|
}, R({
|
|
113
|
-
label:
|
|
116
|
+
label: s(({ label: a }) => [
|
|
114
117
|
t(I, null, {
|
|
115
|
-
default:
|
|
116
|
-
|
|
118
|
+
default: s(() => [
|
|
119
|
+
b(h(a), 1)
|
|
117
120
|
]),
|
|
118
121
|
_: 2
|
|
119
122
|
}, 1024)
|
|
120
123
|
]),
|
|
121
124
|
_: 2
|
|
122
125
|
}, [
|
|
123
|
-
|
|
126
|
+
P(T.value, (a) => ({
|
|
124
127
|
name: a,
|
|
125
|
-
fn:
|
|
126
|
-
$(e.$slots, a, N(O(
|
|
128
|
+
fn: s((z) => [
|
|
129
|
+
$(e.$slots, a, N(O(z)))
|
|
127
130
|
])
|
|
128
131
|
}))
|
|
129
132
|
]), 1032, ["model", "items", "disabled"]),
|
|
130
|
-
|
|
131
|
-
t(
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
C("div", he, [
|
|
134
|
+
t(i, {
|
|
135
|
+
class: "zl-search-form-actions__reset",
|
|
136
|
+
title: o(r)("zl.search.reset", "重置"),
|
|
137
|
+
"aria-label": o(r)("zl.search.reset", "重置"),
|
|
138
|
+
onClick: x
|
|
139
|
+
}, {
|
|
140
|
+
icon: s(() => [
|
|
141
|
+
t(g, { icon: "zl:reset" })
|
|
134
142
|
]),
|
|
135
143
|
_: 1
|
|
136
|
-
}),
|
|
137
|
-
|
|
144
|
+
}, 8, ["title", "aria-label"]),
|
|
145
|
+
o(Z) !== null ? (c(), E(i, {
|
|
138
146
|
key: 0,
|
|
139
147
|
class: "zl-search-form-actions__toggle",
|
|
140
|
-
title:
|
|
141
|
-
"aria-label":
|
|
142
|
-
"aria-expanded":
|
|
143
|
-
onClick: l[0] || (l[0] = (a) =>
|
|
148
|
+
title: o(r)("zl.search.expand", "展开"),
|
|
149
|
+
"aria-label": o(r)("zl.search.expand", "展开"),
|
|
150
|
+
"aria-expanded": n.value,
|
|
151
|
+
onClick: l[0] || (l[0] = (a) => n.value = !0)
|
|
144
152
|
}, {
|
|
145
|
-
icon:
|
|
146
|
-
t(
|
|
153
|
+
icon: s(() => [
|
|
154
|
+
t(g, { icon: "zl:filter-color" })
|
|
147
155
|
]),
|
|
148
156
|
_: 1
|
|
149
|
-
}, 8, ["title", "aria-label", "aria-expanded"])) :
|
|
150
|
-
t(
|
|
157
|
+
}, 8, ["title", "aria-label", "aria-expanded"])) : p("", !0),
|
|
158
|
+
t(i, {
|
|
151
159
|
type: "primary",
|
|
152
160
|
onClick: _
|
|
153
161
|
}, {
|
|
154
|
-
default:
|
|
155
|
-
|
|
162
|
+
default: s(() => [
|
|
163
|
+
b(h(o(r)("zl.search.search", "查询")), 1)
|
|
156
164
|
]),
|
|
157
165
|
_: 1
|
|
158
166
|
})
|
|
159
167
|
])
|
|
160
168
|
]),
|
|
161
|
-
U.value ? (
|
|
162
|
-
|
|
163
|
-
F.value.length === 0 ? (
|
|
164
|
-
default:
|
|
165
|
-
|
|
169
|
+
U.value ? (c(), f("div", ve, [
|
|
170
|
+
C("div", be, h(o(r)("zl.search.filterConditions", "筛选条件")), 1),
|
|
171
|
+
F.value.length === 0 ? (c(), E(q, { key: 0 }, {
|
|
172
|
+
default: s(() => [
|
|
173
|
+
b(h(o(r)("zl.search.all", "全部")), 1)
|
|
166
174
|
]),
|
|
167
175
|
_: 1
|
|
168
|
-
})) :
|
|
169
|
-
(
|
|
176
|
+
})) : p("", !0),
|
|
177
|
+
(c(!0), f(oe, null, P(F.value, (a) => (c(), f("div", {
|
|
170
178
|
key: a.model,
|
|
171
179
|
class: "zl-search-label-item"
|
|
172
180
|
}, [
|
|
@@ -174,18 +182,18 @@ const de = { class: "zl-search" }, me = {
|
|
|
174
182
|
closable: "",
|
|
175
183
|
fill: "",
|
|
176
184
|
color: "primary",
|
|
177
|
-
onClose: (
|
|
185
|
+
onClose: (z) => Y(a)
|
|
178
186
|
}, {
|
|
179
|
-
default:
|
|
180
|
-
|
|
187
|
+
default: s(() => [
|
|
188
|
+
b(h(a.labelValue), 1)
|
|
181
189
|
]),
|
|
182
190
|
_: 2
|
|
183
191
|
}, 1032, ["onClose"])
|
|
184
192
|
]))), 128))
|
|
185
|
-
])) :
|
|
193
|
+
])) : p("", !0),
|
|
186
194
|
t(re, { name: "zl-search-fade-slide" }, {
|
|
187
|
-
default:
|
|
188
|
-
|
|
195
|
+
default: s(() => [
|
|
196
|
+
n.value ? (c(), f("div", pe, [
|
|
189
197
|
t(A, {
|
|
190
198
|
ref_key: "multipleFormRef",
|
|
191
199
|
ref: L,
|
|
@@ -195,60 +203,65 @@ const de = { class: "zl-search" }, me = {
|
|
|
195
203
|
disabled: S.disabled,
|
|
196
204
|
onSubmit: M(_, ["prevent"])
|
|
197
205
|
}, R({
|
|
198
|
-
label:
|
|
206
|
+
label: s(({ label: a }) => [
|
|
199
207
|
t(I, null, {
|
|
200
|
-
default:
|
|
201
|
-
|
|
208
|
+
default: s(() => [
|
|
209
|
+
b(h(a), 1)
|
|
202
210
|
]),
|
|
203
211
|
_: 2
|
|
204
212
|
}, 1024)
|
|
205
213
|
]),
|
|
206
214
|
_: 2
|
|
207
215
|
}, [
|
|
208
|
-
|
|
216
|
+
P(T.value, (a) => ({
|
|
209
217
|
name: a,
|
|
210
|
-
fn:
|
|
211
|
-
$(e.$slots, a, N(O(
|
|
218
|
+
fn: s((z) => [
|
|
219
|
+
$(e.$slots, a, N(O(z)))
|
|
212
220
|
])
|
|
213
221
|
}))
|
|
214
222
|
]), 1032, ["model", "items", "disabled"]),
|
|
215
|
-
|
|
216
|
-
t(
|
|
217
|
-
|
|
218
|
-
|
|
223
|
+
C("div", _e, [
|
|
224
|
+
t(i, {
|
|
225
|
+
class: "zl-search-form-actions__reset",
|
|
226
|
+
title: o(r)("zl.search.reset", "重置"),
|
|
227
|
+
"aria-label": o(r)("zl.search.reset", "重置"),
|
|
228
|
+
onClick: x
|
|
229
|
+
}, {
|
|
230
|
+
icon: s(() => [
|
|
231
|
+
t(g, { icon: "zl:reset" })
|
|
219
232
|
]),
|
|
220
233
|
_: 1
|
|
221
|
-
}),
|
|
222
|
-
t(
|
|
234
|
+
}, 8, ["title", "aria-label"]),
|
|
235
|
+
t(i, {
|
|
223
236
|
class: "zl-search-form-actions__toggle",
|
|
224
|
-
title:
|
|
225
|
-
"aria-label":
|
|
226
|
-
"aria-expanded":
|
|
227
|
-
onClick: l[1] || (l[1] = (a) =>
|
|
237
|
+
title: o(r)("zl.search.collapse", "收起"),
|
|
238
|
+
"aria-label": o(r)("zl.search.collapse", "收起"),
|
|
239
|
+
"aria-expanded": n.value,
|
|
240
|
+
onClick: l[1] || (l[1] = (a) => n.value = !1)
|
|
228
241
|
}, {
|
|
229
|
-
icon:
|
|
230
|
-
t(
|
|
242
|
+
icon: s(() => [
|
|
243
|
+
t(g, { icon: "zl:filter-color" })
|
|
231
244
|
]),
|
|
232
245
|
_: 1
|
|
233
246
|
}, 8, ["title", "aria-label", "aria-expanded"]),
|
|
234
|
-
t(
|
|
247
|
+
t(i, {
|
|
235
248
|
type: "primary",
|
|
236
249
|
onClick: _
|
|
237
250
|
}, {
|
|
238
|
-
default:
|
|
239
|
-
|
|
251
|
+
default: s(() => [
|
|
252
|
+
b(h(o(r)("zl.search.search", "查询")), 1)
|
|
240
253
|
]),
|
|
241
254
|
_: 1
|
|
242
255
|
})
|
|
243
256
|
])
|
|
244
|
-
])) :
|
|
257
|
+
])) : p("", !0)
|
|
245
258
|
]),
|
|
246
259
|
_: 3
|
|
247
260
|
})
|
|
248
|
-
])) :
|
|
249
|
-
e.$slots.actions ? (
|
|
261
|
+
])) : p("", !0),
|
|
262
|
+
e.$slots.actions ? (c(), f("div", ze, [
|
|
250
263
|
$(e.$slots, "actions")
|
|
251
|
-
])) :
|
|
264
|
+
])) : p("", !0)
|
|
252
265
|
]);
|
|
253
266
|
};
|
|
254
267
|
}
|
|
@@ -36,6 +36,7 @@ declare function __VLS_template(): {
|
|
|
36
36
|
readonly model?: Record<string, any> | undefined;
|
|
37
37
|
readonly immediate?: boolean | undefined;
|
|
38
38
|
readonly disabled?: boolean | undefined;
|
|
39
|
+
readonly labelsVisible?: boolean | undefined;
|
|
39
40
|
readonly showLabels?: boolean | undefined;
|
|
40
41
|
readonly onSearch?: ((params: Record<string, any>) => any) | undefined;
|
|
41
42
|
readonly onReset?: (() => any) | undefined;
|
|
@@ -232,6 +233,7 @@ declare function __VLS_template(): {
|
|
|
232
233
|
model?: Record<string, any>;
|
|
233
234
|
immediate?: boolean;
|
|
234
235
|
disabled?: boolean;
|
|
236
|
+
labelsVisible?: boolean;
|
|
235
237
|
showLabels?: boolean;
|
|
236
238
|
}> & Readonly<{
|
|
237
239
|
onSearch?: ((params: Record<string, any>) => any) | undefined;
|
|
@@ -247,6 +249,7 @@ declare function __VLS_template(): {
|
|
|
247
249
|
immediate: boolean;
|
|
248
250
|
disabled: boolean;
|
|
249
251
|
items: SearchItem[];
|
|
252
|
+
labelsVisible: boolean;
|
|
250
253
|
showLabels: boolean;
|
|
251
254
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
252
255
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -272,17 +275,19 @@ declare function __VLS_template(): {
|
|
|
272
275
|
immediate: boolean;
|
|
273
276
|
disabled: boolean;
|
|
274
277
|
items: SearchItem[];
|
|
278
|
+
labelsVisible: boolean;
|
|
275
279
|
showLabels: boolean;
|
|
276
280
|
}> & Omit<Readonly<{
|
|
277
281
|
items?: SearchItem[];
|
|
278
282
|
model?: Record<string, any>;
|
|
279
283
|
immediate?: boolean;
|
|
280
284
|
disabled?: boolean;
|
|
285
|
+
labelsVisible?: boolean;
|
|
281
286
|
showLabels?: boolean;
|
|
282
287
|
}> & Readonly<{
|
|
283
288
|
onSearch?: ((params: Record<string, any>) => any) | undefined;
|
|
284
289
|
onReset?: (() => any) | undefined;
|
|
285
|
-
}>, "search" | "reset" | "params" | ("immediate" | "disabled" | "items" | "showLabels")> & {
|
|
290
|
+
}>, "search" | "reset" | "params" | ("immediate" | "disabled" | "items" | "labelsVisible" | "showLabels")> & {
|
|
286
291
|
params: Record<string, any>;
|
|
287
292
|
search: () => Promise<void>;
|
|
288
293
|
reset: () => Promise<void>;
|
|
@@ -443,6 +448,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
443
448
|
readonly model?: Record<string, any> | undefined;
|
|
444
449
|
readonly immediate?: boolean | undefined;
|
|
445
450
|
readonly disabled?: boolean | undefined;
|
|
451
|
+
readonly labelsVisible?: boolean | undefined;
|
|
446
452
|
readonly showLabels?: boolean | undefined;
|
|
447
453
|
readonly onSearch?: ((params: Record<string, any>) => any) | undefined;
|
|
448
454
|
readonly onReset?: (() => any) | undefined;
|
|
@@ -639,6 +645,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
639
645
|
model?: Record<string, any>;
|
|
640
646
|
immediate?: boolean;
|
|
641
647
|
disabled?: boolean;
|
|
648
|
+
labelsVisible?: boolean;
|
|
642
649
|
showLabels?: boolean;
|
|
643
650
|
}> & Readonly<{
|
|
644
651
|
onSearch?: ((params: Record<string, any>) => any) | undefined;
|
|
@@ -654,6 +661,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
654
661
|
immediate: boolean;
|
|
655
662
|
disabled: boolean;
|
|
656
663
|
items: SearchItem[];
|
|
664
|
+
labelsVisible: boolean;
|
|
657
665
|
showLabels: boolean;
|
|
658
666
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
659
667
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -679,17 +687,19 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
679
687
|
immediate: boolean;
|
|
680
688
|
disabled: boolean;
|
|
681
689
|
items: SearchItem[];
|
|
690
|
+
labelsVisible: boolean;
|
|
682
691
|
showLabels: boolean;
|
|
683
692
|
}> & Omit<Readonly<{
|
|
684
693
|
items?: SearchItem[];
|
|
685
694
|
model?: Record<string, any>;
|
|
686
695
|
immediate?: boolean;
|
|
687
696
|
disabled?: boolean;
|
|
697
|
+
labelsVisible?: boolean;
|
|
688
698
|
showLabels?: boolean;
|
|
689
699
|
}> & Readonly<{
|
|
690
700
|
onSearch?: ((params: Record<string, any>) => any) | undefined;
|
|
691
701
|
onReset?: (() => any) | undefined;
|
|
692
|
-
}>, "search" | "reset" | "params" | ("immediate" | "disabled" | "items" | "showLabels")> & {
|
|
702
|
+
}>, "search" | "reset" | "params" | ("immediate" | "disabled" | "items" | "labelsVisible" | "showLabels")> & {
|
|
693
703
|
params: Record<string, any>;
|
|
694
704
|
search: () => Promise<void>;
|
|
695
705
|
reset: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zl-upload[data-v-
|
|
1
|
+
.zl-upload[data-v-cde4c2e9]{width:100%}.zl-upload__trigger[data-v-cde4c2e9]{width:80px;height:80px;display:flex;align-items:center;justify-content:center;border:1px dashed var(--zl-border-3, var(--el-border-color));border-radius:6px;cursor:pointer}.zl-upload__trigger[data-v-cde4c2e9]:hover{border-color:var(--zl-primary-6, var(--el-color-primary))}.zl-upload__item[data-v-cde4c2e9]{display:flex;align-items:center;gap:8px;padding:4px 8px;width:100%}.zl-upload__item[data-v-cde4c2e9]:hover{background:var(--zl-fill-1, var(--el-fill-color-light))}.zl-upload__item-thumbnail[data-v-cde4c2e9]{height:32px;width:32px;object-fit:cover;cursor:pointer}.zl-upload__item-name[data-v-cde4c2e9]{flex:1;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.zl-upload__item-op[data-v-cde4c2e9]{color:var(--zl-text-2)}.zl-upload__tip[data-v-cde4c2e9]{font-size:12px;color:var(--zl-text-3);line-height:18px;white-space:pre-wrap;word-break:break-all}
|
|
@@ -11,7 +11,13 @@ type __VLS_Props = {
|
|
|
11
11
|
separator?: string;
|
|
12
12
|
/** 响应中文件地址的取值键 */
|
|
13
13
|
responseUrlKey?: string;
|
|
14
|
+
/** 是否展示「下载」按钮(默认 true) */
|
|
15
|
+
downloadButtonVisible?: boolean;
|
|
16
|
+
/** 是否展示提示文案(默认 true) */
|
|
17
|
+
tipVisible?: boolean;
|
|
18
|
+
/** @deprecated 用 `downloadButtonVisible`(全库显隐统一用 visible 语义) */
|
|
14
19
|
showDownloadButton?: boolean;
|
|
20
|
+
/** @deprecated 用 `tipVisible`(全库显隐统一用 visible 语义) */
|
|
15
21
|
showTip?: boolean;
|
|
16
22
|
/** 校验文件名不得含空格 */
|
|
17
23
|
verifySpace?: boolean;
|
|
@@ -36,6 +42,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
36
42
|
separator: string;
|
|
37
43
|
modelValue: any;
|
|
38
44
|
responseUrlKey: string;
|
|
45
|
+
downloadButtonVisible: boolean;
|
|
46
|
+
tipVisible: boolean;
|
|
39
47
|
showDownloadButton: boolean;
|
|
40
48
|
showTip: boolean;
|
|
41
49
|
verifySpace: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cde4c2e9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.vue.mjs.map
|