lw-cdp-ui 1.0.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.
@@ -0,0 +1,604 @@
1
+ import le from "./input-DjTO0SAt.js";
2
+ import de from "./select-DV7iQWOt.js";
3
+ import fe from "./date-3aIueTWp.js";
4
+ import ce from "./dates-duu3mVu7.js";
5
+ import he from "./dateRange-CELAeHet.js";
6
+ import { c as me, g as pe } from "./_commonjsHelpers-DaMA6jEr.js";
7
+ import { resolveComponent as H, openBlock as k, createElementBlock as ne, createElementVNode as W, createVNode as C, withModifiers as ye, withCtx as x, normalizeClass as P, Fragment as Se, renderList as be, createBlock as I, resolveDynamicComponent as G, normalizeStyle as ge, createTextVNode as re, toDisplayString as Q } from "vue";
8
+ import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ var se = { exports: {} };
10
+ (function(l, c) {
11
+ (function(a, O) {
12
+ l.exports = O();
13
+ })(me, function() {
14
+ var a = 1e3, O = 6e4, m = 36e5, $ = "millisecond", M = "second", D = "minute", _ = "hour", N = "day", J = "week", i = "month", B = "quarter", p = "year", Y = "date", X = "Invalid Date", ae = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ie = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, oe = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
15
+ var n = ["th", "st", "nd", "rd"], e = s % 100;
16
+ return "[" + s + (n[(e - 20) % 10] || n[e] || n[0]) + "]";
17
+ } }, Z = function(s, n, e) {
18
+ var r = String(s);
19
+ return !r || r.length >= n ? s : "" + Array(n + 1 - r.length).join(e) + s;
20
+ }, ue = { s: Z, z: function(s) {
21
+ var n = -s.utcOffset(), e = Math.abs(n), r = Math.floor(e / 60), t = e % 60;
22
+ return (n <= 0 ? "+" : "-") + Z(r, 2, "0") + ":" + Z(t, 2, "0");
23
+ }, m: function s(n, e) {
24
+ if (n.date() < e.date()) return -s(e, n);
25
+ var r = 12 * (e.year() - n.year()) + (e.month() - n.month()), t = n.clone().add(r, i), o = e - t < 0, u = n.clone().add(r + (o ? -1 : 1), i);
26
+ return +(-(r + (e - t) / (o ? t - u : u - t)) || 0);
27
+ }, a: function(s) {
28
+ return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
29
+ }, p: function(s) {
30
+ return { M: i, y: p, w: J, d: N, D: Y, h: _, m: D, s: M, ms: $, Q: B }[s] || String(s || "").toLowerCase().replace(/s$/, "");
31
+ }, u: function(s) {
32
+ return s === void 0;
33
+ } }, j = "en", F = {};
34
+ F[j] = oe;
35
+ var ee = "$isDayjsObject", R = function(s) {
36
+ return s instanceof q || !(!s || !s[ee]);
37
+ }, z = function s(n, e, r) {
38
+ var t;
39
+ if (!n) return j;
40
+ if (typeof n == "string") {
41
+ var o = n.toLowerCase();
42
+ F[o] && (t = o), e && (F[o] = e, t = o);
43
+ var u = n.split("-");
44
+ if (!t && u.length > 1) return s(u[0]);
45
+ } else {
46
+ var f = n.name;
47
+ F[f] = n, t = f;
48
+ }
49
+ return !r && t && (j = t), t || !r && j;
50
+ }, y = function(s, n) {
51
+ if (R(s)) return s.clone();
52
+ var e = typeof n == "object" ? n : {};
53
+ return e.date = s, e.args = arguments, new q(e);
54
+ }, d = ue;
55
+ d.l = z, d.i = R, d.w = function(s, n) {
56
+ return y(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
57
+ };
58
+ var q = function() {
59
+ function s(e) {
60
+ this.$L = z(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[ee] = !0;
61
+ }
62
+ var n = s.prototype;
63
+ return n.parse = function(e) {
64
+ this.$d = function(r) {
65
+ var t = r.date, o = r.utc;
66
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
67
+ if (d.u(t)) return /* @__PURE__ */ new Date();
68
+ if (t instanceof Date) return new Date(t);
69
+ if (typeof t == "string" && !/Z$/i.test(t)) {
70
+ var u = t.match(ae);
71
+ if (u) {
72
+ var f = u[2] - 1 || 0, h = (u[7] || "0").substring(0, 3);
73
+ return o ? new Date(Date.UTC(u[1], f, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, h)) : new Date(u[1], f, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, h);
74
+ }
75
+ }
76
+ return new Date(t);
77
+ }(e), this.init();
78
+ }, n.init = function() {
79
+ var e = this.$d;
80
+ this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
81
+ }, n.$utils = function() {
82
+ return d;
83
+ }, n.isValid = function() {
84
+ return this.$d.toString() !== X;
85
+ }, n.isSame = function(e, r) {
86
+ var t = y(e);
87
+ return this.startOf(r) <= t && t <= this.endOf(r);
88
+ }, n.isAfter = function(e, r) {
89
+ return y(e) < this.startOf(r);
90
+ }, n.isBefore = function(e, r) {
91
+ return this.endOf(r) < y(e);
92
+ }, n.$g = function(e, r, t) {
93
+ return d.u(e) ? this[r] : this.set(t, e);
94
+ }, n.unix = function() {
95
+ return Math.floor(this.valueOf() / 1e3);
96
+ }, n.valueOf = function() {
97
+ return this.$d.getTime();
98
+ }, n.startOf = function(e, r) {
99
+ var t = this, o = !!d.u(r) || r, u = d.p(e), f = function(L, g) {
100
+ var w = d.w(t.$u ? Date.UTC(t.$y, g, L) : new Date(t.$y, g, L), t);
101
+ return o ? w : w.endOf(N);
102
+ }, h = function(L, g) {
103
+ return d.w(t.toDate()[L].apply(t.toDate("s"), (o ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(g)), t);
104
+ }, S = this.$W, b = this.$M, v = this.$D, E = "set" + (this.$u ? "UTC" : "");
105
+ switch (u) {
106
+ case p:
107
+ return o ? f(1, 0) : f(31, 11);
108
+ case i:
109
+ return o ? f(1, b) : f(0, b + 1);
110
+ case J:
111
+ var V = this.$locale().weekStart || 0, T = (S < V ? S + 7 : S) - V;
112
+ return f(o ? v - T : v + (6 - T), b);
113
+ case N:
114
+ case Y:
115
+ return h(E + "Hours", 0);
116
+ case _:
117
+ return h(E + "Minutes", 1);
118
+ case D:
119
+ return h(E + "Seconds", 2);
120
+ case M:
121
+ return h(E + "Milliseconds", 3);
122
+ default:
123
+ return this.clone();
124
+ }
125
+ }, n.endOf = function(e) {
126
+ return this.startOf(e, !1);
127
+ }, n.$set = function(e, r) {
128
+ var t, o = d.p(e), u = "set" + (this.$u ? "UTC" : ""), f = (t = {}, t[N] = u + "Date", t[Y] = u + "Date", t[i] = u + "Month", t[p] = u + "FullYear", t[_] = u + "Hours", t[D] = u + "Minutes", t[M] = u + "Seconds", t[$] = u + "Milliseconds", t)[o], h = o === N ? this.$D + (r - this.$W) : r;
129
+ if (o === i || o === p) {
130
+ var S = this.clone().set(Y, 1);
131
+ S.$d[f](h), S.init(), this.$d = S.set(Y, Math.min(this.$D, S.daysInMonth())).$d;
132
+ } else f && this.$d[f](h);
133
+ return this.init(), this;
134
+ }, n.set = function(e, r) {
135
+ return this.clone().$set(e, r);
136
+ }, n.get = function(e) {
137
+ return this[d.p(e)]();
138
+ }, n.add = function(e, r) {
139
+ var t, o = this;
140
+ e = Number(e);
141
+ var u = d.p(r), f = function(b) {
142
+ var v = y(o);
143
+ return d.w(v.date(v.date() + Math.round(b * e)), o);
144
+ };
145
+ if (u === i) return this.set(i, this.$M + e);
146
+ if (u === p) return this.set(p, this.$y + e);
147
+ if (u === N) return f(1);
148
+ if (u === J) return f(7);
149
+ var h = (t = {}, t[D] = O, t[_] = m, t[M] = a, t)[u] || 1, S = this.$d.getTime() + e * h;
150
+ return d.w(S, this);
151
+ }, n.subtract = function(e, r) {
152
+ return this.add(-1 * e, r);
153
+ }, n.format = function(e) {
154
+ var r = this, t = this.$locale();
155
+ if (!this.isValid()) return t.invalidDate || X;
156
+ var o = e || "YYYY-MM-DDTHH:mm:ssZ", u = d.z(this), f = this.$H, h = this.$m, S = this.$M, b = t.weekdays, v = t.months, E = t.meridiem, V = function(g, w, A, K) {
157
+ return g && (g[w] || g(r, o)) || A[w].slice(0, K);
158
+ }, T = function(g) {
159
+ return d.s(f % 12 || 12, g, "0");
160
+ }, L = E || function(g, w, A) {
161
+ var K = g < 12 ? "AM" : "PM";
162
+ return A ? K.toLowerCase() : K;
163
+ };
164
+ return o.replace(ie, function(g, w) {
165
+ return w || function(A) {
166
+ switch (A) {
167
+ case "YY":
168
+ return String(r.$y).slice(-2);
169
+ case "YYYY":
170
+ return d.s(r.$y, 4, "0");
171
+ case "M":
172
+ return S + 1;
173
+ case "MM":
174
+ return d.s(S + 1, 2, "0");
175
+ case "MMM":
176
+ return V(t.monthsShort, S, v, 3);
177
+ case "MMMM":
178
+ return V(v, S);
179
+ case "D":
180
+ return r.$D;
181
+ case "DD":
182
+ return d.s(r.$D, 2, "0");
183
+ case "d":
184
+ return String(r.$W);
185
+ case "dd":
186
+ return V(t.weekdaysMin, r.$W, b, 2);
187
+ case "ddd":
188
+ return V(t.weekdaysShort, r.$W, b, 3);
189
+ case "dddd":
190
+ return b[r.$W];
191
+ case "H":
192
+ return String(f);
193
+ case "HH":
194
+ return d.s(f, 2, "0");
195
+ case "h":
196
+ return T(1);
197
+ case "hh":
198
+ return T(2);
199
+ case "a":
200
+ return L(f, h, !0);
201
+ case "A":
202
+ return L(f, h, !1);
203
+ case "m":
204
+ return String(h);
205
+ case "mm":
206
+ return d.s(h, 2, "0");
207
+ case "s":
208
+ return String(r.$s);
209
+ case "ss":
210
+ return d.s(r.$s, 2, "0");
211
+ case "SSS":
212
+ return d.s(r.$ms, 3, "0");
213
+ case "Z":
214
+ return u;
215
+ }
216
+ return null;
217
+ }(g) || u.replace(":", "");
218
+ });
219
+ }, n.utcOffset = function() {
220
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
221
+ }, n.diff = function(e, r, t) {
222
+ var o, u = this, f = d.p(r), h = y(e), S = (h.utcOffset() - this.utcOffset()) * O, b = this - h, v = function() {
223
+ return d.m(u, h);
224
+ };
225
+ switch (f) {
226
+ case p:
227
+ o = v() / 12;
228
+ break;
229
+ case i:
230
+ o = v();
231
+ break;
232
+ case B:
233
+ o = v() / 3;
234
+ break;
235
+ case J:
236
+ o = (b - S) / 6048e5;
237
+ break;
238
+ case N:
239
+ o = (b - S) / 864e5;
240
+ break;
241
+ case _:
242
+ o = b / m;
243
+ break;
244
+ case D:
245
+ o = b / O;
246
+ break;
247
+ case M:
248
+ o = b / a;
249
+ break;
250
+ default:
251
+ o = b;
252
+ }
253
+ return t ? o : d.a(o);
254
+ }, n.daysInMonth = function() {
255
+ return this.endOf(i).$D;
256
+ }, n.$locale = function() {
257
+ return F[this.$L];
258
+ }, n.locale = function(e, r) {
259
+ if (!e) return this.$L;
260
+ var t = this.clone(), o = z(e, r, !0);
261
+ return o && (t.$L = o), t;
262
+ }, n.clone = function() {
263
+ return d.w(this.$d, this);
264
+ }, n.toDate = function() {
265
+ return new Date(this.valueOf());
266
+ }, n.toJSON = function() {
267
+ return this.isValid() ? this.toISOString() : null;
268
+ }, n.toISOString = function() {
269
+ return this.$d.toISOString();
270
+ }, n.toString = function() {
271
+ return this.$d.toUTCString();
272
+ }, s;
273
+ }(), te = q.prototype;
274
+ return y.prototype = te, [["$ms", $], ["$s", M], ["$m", D], ["$H", _], ["$W", N], ["$M", i], ["$y", p], ["$D", Y]].forEach(function(s) {
275
+ te[s[1]] = function(n) {
276
+ return this.$g(n, s[0], s[1]);
277
+ };
278
+ }), y.extend = function(s, n) {
279
+ return s.$i || (s(n, q, y), s.$i = !0), y;
280
+ }, y.locale = z, y.isDayjs = R, y.unix = function(s) {
281
+ return y(1e3 * s);
282
+ }, y.en = F[j], y.Ls = F, y.p = {}, y;
283
+ });
284
+ })(se);
285
+ var $e = se.exports;
286
+ const U = /* @__PURE__ */ pe($e), Ne = {
287
+ components: {
288
+ SearchInput: le,
289
+ SearchSelect: de,
290
+ SearchDate: fe,
291
+ SearchDates: ce,
292
+ SearchDateRange: he
293
+ },
294
+ name: "search",
295
+ props: {
296
+ options: {
297
+ // 配置项
298
+ type: Array,
299
+ default: () => []
300
+ },
301
+ modelValue: {
302
+ // 绑定的结果对象
303
+ type: Object,
304
+ default: () => ({})
305
+ },
306
+ labelWidth: {
307
+ // label全局宽度
308
+ type: String,
309
+ default: "70px"
310
+ },
311
+ labelPosition: {
312
+ // label全局位置
313
+ type: String,
314
+ default: "left"
315
+ },
316
+ columnNumber: {
317
+ // 每行列数量
318
+ type: Number,
319
+ default: 4
320
+ },
321
+ isSave: {
322
+ // 是否保存功能
323
+ type: Boolean,
324
+ default: !1
325
+ },
326
+ isCloud: {
327
+ // 是否保存功能
328
+ type: Boolean,
329
+ default: !1
330
+ },
331
+ saveKey: {
332
+ // 保存功能指定localStorage searchSaveData对象中key
333
+ type: String,
334
+ default: ""
335
+ },
336
+ isExpand: {
337
+ // 默认是否展开
338
+ type: Boolean,
339
+ default: !1
340
+ },
341
+ expandNumber: {
342
+ // 默认收起展示数量
343
+ type: Number,
344
+ default: 4
345
+ },
346
+ hasExpandAll: {
347
+ // 默认收起展示数量
348
+ type: Boolean,
349
+ default: !1
350
+ },
351
+ hideLabel: {
352
+ // 是否隐藏标签
353
+ type: Boolean,
354
+ default: !1
355
+ },
356
+ labelAlign: {
357
+ //标签对齐方式
358
+ type: String,
359
+ default: "right"
360
+ }
361
+ },
362
+ data() {
363
+ return {
364
+ form: {},
365
+ // 内部维护数据
366
+ defaultForm: {},
367
+ // 原始数据
368
+ isExpandStatus: !1,
369
+ // 是否展开搜索条件
370
+ isChange: !1,
371
+ // 是否展示变式下拉框
372
+ saveList: [],
373
+ // 搜索保存数据列表
374
+ saveFormName: "",
375
+ // 当前保存数据名称
376
+ isSaveShow: !1,
377
+ // 是否展示保存操作
378
+ isSelectShow: !1,
379
+ // 是否展示选择操作
380
+ selectForm: "",
381
+ // 当前选中数据
382
+ currentExpandNumber: 4,
383
+ // 当前收起展示数量
384
+ isExpandAll: !0,
385
+ currentTemplate: {},
386
+ variantList: [],
387
+ varianId: [],
388
+ systemName: "shopManagement"
389
+ };
390
+ },
391
+ watch: {
392
+ modelValue: {
393
+ handler(l) {
394
+ JSON.stringify(l) !== JSON.stringify(this.form) && (this.form = JSON.parse(JSON.stringify(l)));
395
+ },
396
+ deep: !0
397
+ },
398
+ form: {
399
+ handler(l) {
400
+ JSON.stringify(l) !== JSON.stringify(this.modelValue) && this.$emit("update:modelValue", l);
401
+ },
402
+ deep: !0
403
+ }
404
+ },
405
+ mounted() {
406
+ this.isExpandStatus = this.isExpand, this.currentExpandNumber = this.expandNumber || this.columnNumber, this.form = JSON.parse(JSON.stringify(this.modelValue)), this.defaultForm = JSON.stringify(this.defaultForm) === "{}" ? JSON.parse(JSON.stringify(this.modelValue)) : this.defaultForm;
407
+ },
408
+ methods: {
409
+ // 根据renderType设置对应组件
410
+ setComponent(l) {
411
+ return {
412
+ input: "SearchInput",
413
+ select: "SearchSelect",
414
+ date: "SearchDate",
415
+ dates: "SearchDates",
416
+ dateRange: "SearchDateRange"
417
+ }[l] || "SearchInput";
418
+ },
419
+ // 触发提交
420
+ submitForm(l) {
421
+ l && l.validate((c) => {
422
+ c && this.$emit("search");
423
+ });
424
+ },
425
+ // 重置条件
426
+ resetForm(l) {
427
+ l && (l.resetFields(), this.form = JSON.parse(JSON.stringify(this.defaultForm)), this.form.size = this.modelValue.size, this.form.page = this.modelValue.page, this.$emit("reset"));
428
+ },
429
+ // 关闭变式
430
+ handleChangeHide(l) {
431
+ l === !1 && (this.isChange = !1, this.isSaveShow = !1, this.isSelectShow = !1, this.saveFormName = "", this.selectForm = "");
432
+ },
433
+ // 保存搜索表单
434
+ handleSaveSearchForm() {
435
+ if (this.saveKey && this.isSave) {
436
+ if (Object.keys(this.form).length === 0) {
437
+ this.$message.error("搜索条件为空!");
438
+ return;
439
+ }
440
+ let l = Object.assign({}, this.form, { searchSaveName: this.saveFormName, id: U().valueOf() + Math.random() + "" }), c = {
441
+ route: this.$route.name,
442
+ system: this.systemName,
443
+ variant: [l]
444
+ }, a = this.variantList.find((O) => O.route === this.$route.name);
445
+ a ? a.variant.push(l) : this.variantList.push(c), this.isCloud ? (this.varianId, JSON.parse(sessionStorage.userAuthInfo).username, this.systemName, this.saveKey, JSON.stringify(this.variantList)) : localStorage.setItem("variantList", JSON.stringify(this.variantList));
446
+ }
447
+ },
448
+ // 选择保存过的搜索历史
449
+ handleSearchSelect(l) {
450
+ let c = this.saveList.find((a) => a.id === l);
451
+ if (c) {
452
+ let a = JSON.parse(JSON.stringify(c));
453
+ delete a.id, delete a.searchSaveName, this.$emit("update:modelValue", a);
454
+ }
455
+ },
456
+ // 删除保存过的搜索历史
457
+ handleDeleteSearchList(l) {
458
+ JSON.parse(JSON.stringify(this.saveList)).splice(l, 1), this.saveKey && this.isSave;
459
+ },
460
+ // 禁止选择日期
461
+ disabledDate(l, c, a = "") {
462
+ if (a) {
463
+ if (c === "prev")
464
+ return U(l.getTime()).isAfter(U(a), "day");
465
+ if (c === "next")
466
+ return U(l.getTime()).isBefore(U(a), "day");
467
+ }
468
+ },
469
+ // 一键收缩展开
470
+ expandAll() {
471
+ this.isExpandAll = !this.isExpandAll;
472
+ }
473
+ }
474
+ }, Me = { id: "search-wrap" }, De = { class: "search-content" }, xe = /* @__PURE__ */ W("span", { class: "date-section-line" }, " - ", -1);
475
+ function Oe(l, c, a, O, m, $) {
476
+ const M = H("el-col"), D = H("el-row"), _ = H("el-form-item"), N = H("el-button"), J = H("el-form");
477
+ return k(), ne("div", Me, [
478
+ W("div", De, [
479
+ C(J, {
480
+ ref: "searchForm",
481
+ model: m.form,
482
+ onSubmit: c[3] || (c[3] = ye(() => {
483
+ }, ["prevent"])),
484
+ "label-align": a.labelAlign,
485
+ style: { width: "100%" }
486
+ }, {
487
+ default: x(() => [
488
+ C(D, {
489
+ class: P(a.options.length - a.expandNumber === 0 ? "expand-row" : a.options.length - a.expandNumber < a.columnNumber ? "" : m.isExpandStatus ? a.options.length % a.columnNumber === 0 ? "expand-row" : "" : a.options.length >= a.expandNumber ? "expand-row" : ""),
490
+ type: "flex",
491
+ justify: "start",
492
+ gutter: 50
493
+ }, {
494
+ default: x(() => [
495
+ (k(!0), ne(Se, null, be(a.options, (i, B) => (k(), I(M, {
496
+ key: i.prop,
497
+ class: P(!m.isExpandStatus && i.isExpand || a.options.length - a.expandNumber < a.columnNumber ? "" : !m.isExpandStatus && B > a.expandNumber - 1 ? "hide" : ""),
498
+ span: a.columnNumber ? 24 / a.columnNumber : i.span || 8
499
+ }, {
500
+ default: x(() => [
501
+ C(_, {
502
+ "label-width": a.hideLabel ? 0 : a.labelWidth,
503
+ required: i.required,
504
+ label: a.hideLabel ? "" : l.$t(i.label)
505
+ }, {
506
+ default: x(() => [
507
+ i.dateSection && i.prop && i.prop.length === 2 ? (k(), I(D, {
508
+ key: 0,
509
+ gutter: 10,
510
+ class: "date-section"
511
+ }, {
512
+ default: x(() => [
513
+ C(M, {
514
+ span: 12,
515
+ style: { width: "45%", flex: "0 0 45%" }
516
+ }, {
517
+ default: x(() => [
518
+ (k(), I(G($.setComponent(i.renderType)), {
519
+ disabled: i.disabled,
520
+ item: i,
521
+ modelValue: m.form[i.prop[0]],
522
+ "onUpdate:modelValue": (p) => m.form[i.prop[0]] = p,
523
+ "disabled-date": (p) => $.disabledDate(p, "prev", m.form[i.prop[1]]),
524
+ propValueFormat: i.valueFormat || "YYYY-MM-DD 00:00:00"
525
+ }, null, 8, ["disabled", "item", "modelValue", "onUpdate:modelValue", "disabled-date", "propValueFormat"]))
526
+ ]),
527
+ _: 2
528
+ }, 1024),
529
+ xe,
530
+ C(M, {
531
+ span: 12,
532
+ style: { width: "45%", flex: "0 0 45%" }
533
+ }, {
534
+ default: x(() => [
535
+ (k(), I(G($.setComponent(i.renderType)), {
536
+ disabled: i.disabled,
537
+ item: i,
538
+ modelValue: m.form[i.prop[1]],
539
+ "onUpdate:modelValue": (p) => m.form[i.prop[1]] = p,
540
+ "disabled-date": (p) => $.disabledDate(p, "next", m.form[i.prop[0]]),
541
+ propValueFormat: i.valueFormat || "YYYY-MM-DD 23:59:59"
542
+ }, null, 8, ["disabled", "item", "modelValue", "onUpdate:modelValue", "disabled-date", "propValueFormat"]))
543
+ ]),
544
+ _: 2
545
+ }, 1024)
546
+ ]),
547
+ _: 2
548
+ }, 1024)) : (k(), I(G($.setComponent(i.renderType)), {
549
+ key: 1,
550
+ disabled: i.disabled,
551
+ item: i,
552
+ modelValue: m.form[i.prop],
553
+ "onUpdate:modelValue": (p) => m.form[i.prop] = p,
554
+ style: { width: "100%" }
555
+ }, null, 8, ["disabled", "item", "modelValue", "onUpdate:modelValue"]))
556
+ ]),
557
+ _: 2
558
+ }, 1032, ["label-width", "required", "label"])
559
+ ]),
560
+ _: 2
561
+ }, 1032, ["class", "span"]))), 128))
562
+ ]),
563
+ _: 1
564
+ }, 8, ["class"]),
565
+ W("div", {
566
+ class: "control",
567
+ style: ge({ bottom: a.options.length % a.columnNumber === 0 ? "0px" : "16px" })
568
+ }, [
569
+ C(N, {
570
+ class: "reset",
571
+ onClick: c[0] || (c[0] = (i) => $.resetForm(l.searchForm))
572
+ }, {
573
+ default: x(() => [
574
+ re(Q(l.$t("btn.reset")), 1)
575
+ ]),
576
+ _: 1
577
+ }),
578
+ C(N, {
579
+ class: "submit",
580
+ type: "primary",
581
+ onClick: c[1] || (c[1] = (i) => $.submitForm(l.searchForm))
582
+ }, {
583
+ default: x(() => [
584
+ re(Q(l.$t("btn.query")), 1)
585
+ ]),
586
+ _: 1
587
+ }),
588
+ W("div", {
589
+ class: P(a.options.length - a.expandNumber >= a.columnNumber ? "expand-button" : "hidden"),
590
+ onClick: c[2] || (c[2] = (i) => m.isExpandStatus = !m.isExpandStatus)
591
+ }, [
592
+ W("span", null, Q(m.isExpandStatus ? "收起" : "展开"), 1)
593
+ ], 2)
594
+ ], 4)
595
+ ]),
596
+ _: 1
597
+ }, 8, ["model", "label-align"])
598
+ ])
599
+ ]);
600
+ }
601
+ const Ye = /* @__PURE__ */ ve(Ne, [["render", Oe]]);
602
+ export {
603
+ Ye as default
604
+ };