ra-element 0.1.64 → 0.1.67
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/lib/ra-element.css +1 -1
- package/lib/ra-element.es.js +273 -271
- package/lib/ra-element.es.js.map +1 -1
- package/lib/ra-element.umd.js +1 -1
- package/lib/ra-element.umd.js.map +1 -1
- package/package.json +1 -1
package/lib/ra-element.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, useSlots as ja, ref as W, computed as I, watch as de, nextTick as gt, onMounted as Ma, onUnmounted as Fa, createElementBlock as T, openBlock as s, createElementVNode as U, normalizeStyle as xe, createCommentVNode as F, renderSlot as
|
|
1
|
+
import { defineComponent as N, useSlots as ja, ref as W, computed as I, watch as de, nextTick as gt, onMounted as Ma, onUnmounted as Fa, createElementBlock as T, openBlock as s, createElementVNode as U, normalizeStyle as xe, createCommentVNode as F, renderSlot as O, Fragment as M, renderList as J, createBlock as $, resolveDynamicComponent as Ge, useTemplateRef as ee, unref as w, mergeProps as A, createSlots as ne, withCtx as v, normalizeProps as Qe, guardReactiveProps as et, createTextVNode as Y, toDisplayString as k, mergeModels as ke, useModel as tt, reactive as qt, resolveComponent as fe, createVNode as B, withModifiers as Oe, defineAsyncComponent as ae, useAttrs as La, withDirectives as Ua } from "vue";
|
|
2
2
|
import { ElButton as za, ElCheckboxGroup as Ba, ElCheckboxButton as Da, ElCheckbox as at, dayjs as le, ElDatePicker as Na, ElDialog as Ha, ElIcon as Ee, ElCollapse as Ga, ElCollapseItem as Ya, ElForm as qa, ElFormItem as Wt, ElInput as Kt, ElRadioGroup as Wa, ElRadioButton as Ka, ElRadio as Xa, ElSelect as Ja, ElOption as Za, ElTreeSelect as Qa, ElPagination as Ye, ElTableColumn as qe, ElTable as en, vLoading as tn, ElTooltip as an, ElUpload as nn, ElMessage as yt } from "element-plus";
|
|
3
3
|
const rn = /* @__PURE__ */ N({
|
|
4
4
|
name: "RaAutoScroll",
|
|
@@ -20,7 +20,7 @@ const rn = /* @__PURE__ */ N({
|
|
|
20
20
|
itemGap: { type: Number, default: 15 }
|
|
21
21
|
},
|
|
22
22
|
setup(e, { expose: t }) {
|
|
23
|
-
const a = e, n = ja(), l = W(null), r = W(null), d = W(!1), o = W(!1), f = W(0),
|
|
23
|
+
const a = e, n = ja(), l = W(null), r = W(null), d = W(!1), o = W(!1), f = W(0), i = W(0), c = W(0), u = W(0), h = W(null), R = W(0), y = I(() => (n?.default())[0]?.children?.length || 0), E = I(() => y.value > a.showItems), j = I(() => a.showItems), z = I(() => {
|
|
24
24
|
if (!E.value || !n.default)
|
|
25
25
|
return [];
|
|
26
26
|
const b = n?.default();
|
|
@@ -33,7 +33,7 @@ const rn = /* @__PURE__ */ N({
|
|
|
33
33
|
display: "flex",
|
|
34
34
|
flexDirection: "row",
|
|
35
35
|
width: `${f.value}px`,
|
|
36
|
-
transform: `translateX(${
|
|
36
|
+
transform: `translateX(${R.value}px)`,
|
|
37
37
|
transition: "none"
|
|
38
38
|
})), p = () => {
|
|
39
39
|
a.pauseOnHover && (o.value = !0, d.value = !0);
|
|
@@ -46,21 +46,21 @@ const rn = /* @__PURE__ */ N({
|
|
|
46
46
|
let V = 0;
|
|
47
47
|
a.direction === "right" && z.value.length > 0 && (V = z.value.length);
|
|
48
48
|
const G = b[V], m = window.getComputedStyle(G), ye = parseFloat(m.marginLeft) || 0, x = parseFloat(m.marginRight) || 0;
|
|
49
|
-
u.value = ye + x || a.itemGap,
|
|
49
|
+
u.value = ye + x || a.itemGap, c.value = G.offsetWidth + ye + x;
|
|
50
50
|
} else
|
|
51
|
-
|
|
52
|
-
y.value <= a.showItems && (P(),
|
|
51
|
+
c.value = a.itemWidth + a.itemGap, u.value = a.itemGap;
|
|
52
|
+
y.value <= a.showItems && (P(), R.value = 0), l.value && (i.value = a.showItems * c.value + u.value, l.value.style.width = i.value + "px", l.value.style.paddingLeft = u.value + "px"), f.value = c.value * (y.value + j.value);
|
|
53
53
|
}, q = () => {
|
|
54
54
|
if (a.disabled || d.value || o.value || y.value <= a.showItems) {
|
|
55
55
|
h.value = requestAnimationFrame(q);
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
58
|
const b = a.direction === "left" ? -1 : 1, V = a.speed / 60 * b;
|
|
59
|
-
|
|
60
|
-
const G =
|
|
61
|
-
a.direction === "left" ? Math.abs(
|
|
59
|
+
R.value += V;
|
|
60
|
+
const G = c.value * y.value;
|
|
61
|
+
a.direction === "left" ? Math.abs(R.value) >= G && (R.value = R.value + G) : R.value >= 0 && (R.value = R.value - G), h.value = requestAnimationFrame(q);
|
|
62
62
|
}, S = () => {
|
|
63
|
-
C(), !(y.value <= a.showItems) && (h.value && cancelAnimationFrame(h.value), a.direction === "right" ?
|
|
63
|
+
C(), !(y.value <= a.showItems) && (h.value && cancelAnimationFrame(h.value), a.direction === "right" ? R.value = -(c.value * (y.value + j.value) - i.value + u.value) : R.value = 0, h.value = requestAnimationFrame(q));
|
|
64
64
|
}, P = () => {
|
|
65
65
|
h.value && (cancelAnimationFrame(h.value), h.value = null);
|
|
66
66
|
};
|
|
@@ -98,7 +98,7 @@ const rn = /* @__PURE__ */ N({
|
|
|
98
98
|
E.value && a.direction === "right" ? (s(!0), T(M, { key: 0 }, J(z.value, (G, m) => (s(), $(Ge(G), {
|
|
99
99
|
key: "clone" + m
|
|
100
100
|
}))), 128)) : F("", !0),
|
|
101
|
-
|
|
101
|
+
O(b.$slots, "default", {}, void 0, !0),
|
|
102
102
|
E.value && a.direction === "left" ? (s(!0), T(M, { key: 1 }, J(z.value, (G, m) => (s(), $(Ge(G), {
|
|
103
103
|
key: "clone" + m
|
|
104
104
|
}))), 128)) : F("", !0)
|
|
@@ -123,9 +123,9 @@ const rn = /* @__PURE__ */ N({
|
|
|
123
123
|
setup(e, { expose: t, emit: a }) {
|
|
124
124
|
const n = a, l = e, r = W(!1), d = async () => {
|
|
125
125
|
l.click ? (r.value = !0, await l.click(), r.value = !1) : n("click");
|
|
126
|
-
}, o = I(() => l.cssStyle === "1" ? "common-style" : ""), f = ee("componentRef"),
|
|
127
|
-
return
|
|
128
|
-
|
|
126
|
+
}, o = I(() => l.cssStyle === "1" ? "common-style" : ""), f = ee("componentRef"), i = ["ref", "size", "type", "disabled", "shouldAddSpace"], c = {};
|
|
127
|
+
return i.forEach((u) => {
|
|
128
|
+
c[u] = (...h) => {
|
|
129
129
|
if (f.value && typeof f.value[u] == "function")
|
|
130
130
|
return f.value[u](...h);
|
|
131
131
|
if (f.value && f.value[u] !== void 0)
|
|
@@ -134,7 +134,7 @@ const rn = /* @__PURE__ */ N({
|
|
|
134
134
|
}), t({
|
|
135
135
|
// @doc 方法,获取原element组件实例
|
|
136
136
|
component: () => f.value,
|
|
137
|
-
...
|
|
137
|
+
...c
|
|
138
138
|
}), (u, h) => (s(), $(w(za), A({
|
|
139
139
|
class: [o.value],
|
|
140
140
|
ref_key: "componentRef",
|
|
@@ -144,21 +144,21 @@ const rn = /* @__PURE__ */ N({
|
|
|
144
144
|
onClick: d
|
|
145
145
|
}), ne({
|
|
146
146
|
default: v(() => [
|
|
147
|
-
u.$slots.default ?
|
|
147
|
+
u.$slots.default ? O(u.$slots, "default", { key: 0 }, void 0, !0) : F("", !0)
|
|
148
148
|
]),
|
|
149
149
|
_: 2
|
|
150
150
|
}, [
|
|
151
151
|
u.$slots.loading ? {
|
|
152
152
|
name: "loading",
|
|
153
153
|
fn: v(() => [
|
|
154
|
-
|
|
154
|
+
O(u.$slots, "loading", {}, void 0, !0)
|
|
155
155
|
]),
|
|
156
156
|
key: "0"
|
|
157
157
|
} : void 0,
|
|
158
158
|
u.$slots.icon ? {
|
|
159
159
|
name: "icon",
|
|
160
160
|
fn: v(() => [
|
|
161
|
-
|
|
161
|
+
O(u.$slots, "icon", {}, void 0, !0)
|
|
162
162
|
]),
|
|
163
163
|
key: "1"
|
|
164
164
|
} : void 0
|
|
@@ -179,7 +179,7 @@ const rn = /* @__PURE__ */ N({
|
|
|
179
179
|
setup(e) {
|
|
180
180
|
return (t, a) => (s(), $(w(Ba), Qe(et(t.$attrs)), {
|
|
181
181
|
default: v(() => [
|
|
182
|
-
|
|
182
|
+
O(t.$slots, "default"),
|
|
183
183
|
(s(!0), T(M, null, J(e.options, (n) => (s(), T(M, {
|
|
184
184
|
key: n.value
|
|
185
185
|
}, [
|
|
@@ -235,48 +235,48 @@ const rn = /* @__PURE__ */ N({
|
|
|
235
235
|
{
|
|
236
236
|
text: "今年",
|
|
237
237
|
value: () => {
|
|
238
|
-
const
|
|
239
|
-
return [
|
|
238
|
+
const c = le().startOf("year").toDate(), u = le().toDate();
|
|
239
|
+
return [c, u];
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
text: "上月",
|
|
244
244
|
value: () => {
|
|
245
|
-
const
|
|
246
|
-
return [
|
|
245
|
+
const c = le().subtract(1, "month").startOf("month").toDate(), u = le().subtract(1, "month").endOf("month").toDate();
|
|
246
|
+
return [c, u];
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
text: "去年",
|
|
251
251
|
value: () => {
|
|
252
|
-
const
|
|
253
|
-
return [
|
|
252
|
+
const c = le().subtract(1, "year").startOf("year").toDate(), u = le().subtract(1, "year").endOf("year").toDate();
|
|
253
|
+
return [c, u];
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
text: "近三年",
|
|
258
258
|
value: () => {
|
|
259
|
-
const
|
|
260
|
-
return [
|
|
259
|
+
const c = le().subtract(3, "year").toDate(), u = le().toDate();
|
|
260
|
+
return [c, u];
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
] : []), o = ee("componentRef"), f = ["focus", "blur", "handleOpen", "handleClose"],
|
|
264
|
-
return f.forEach((
|
|
265
|
-
c
|
|
266
|
-
if (o.value && typeof o.value[
|
|
267
|
-
return o.value[
|
|
268
|
-
if (o.value && o.value[
|
|
269
|
-
return o.value[
|
|
263
|
+
] : []), o = ee("componentRef"), f = ["focus", "blur", "handleOpen", "handleClose"], i = {};
|
|
264
|
+
return f.forEach((c) => {
|
|
265
|
+
i[c] = (...u) => {
|
|
266
|
+
if (o.value && typeof o.value[c] == "function")
|
|
267
|
+
return o.value[c](...u);
|
|
268
|
+
if (o.value && o.value[c] !== void 0)
|
|
269
|
+
return o.value[c];
|
|
270
270
|
};
|
|
271
271
|
}), t({
|
|
272
272
|
// @doc 方法,获取原element组件实例
|
|
273
273
|
component: () => o.value,
|
|
274
|
-
...
|
|
275
|
-
}), (
|
|
274
|
+
...i
|
|
275
|
+
}), (c, u) => (s(), $(w(Na), A({
|
|
276
276
|
ref_key: "componentRef",
|
|
277
277
|
ref: o,
|
|
278
278
|
class: a.value
|
|
279
|
-
},
|
|
279
|
+
}, c.$attrs, {
|
|
280
280
|
shortcuts: d.value,
|
|
281
281
|
modelValue: l.value,
|
|
282
282
|
"onUpdate:modelValue": u[0] || (u[0] = (h) => l.value = h),
|
|
@@ -286,42 +286,42 @@ const rn = /* @__PURE__ */ N({
|
|
|
286
286
|
style: { width: "100%" }
|
|
287
287
|
}), ne({
|
|
288
288
|
default: v(() => [
|
|
289
|
-
|
|
289
|
+
c.$slots.default ? O(c.$slots, "default", { key: 0 }) : F("", !0)
|
|
290
290
|
]),
|
|
291
291
|
_: 2
|
|
292
292
|
}, [
|
|
293
|
-
|
|
293
|
+
c.$slots["range-separator"] ? {
|
|
294
294
|
name: "range-separator",
|
|
295
295
|
fn: v(() => [
|
|
296
|
-
|
|
296
|
+
O(c.$slots, "range-separator")
|
|
297
297
|
]),
|
|
298
298
|
key: "0"
|
|
299
299
|
} : void 0,
|
|
300
|
-
|
|
300
|
+
c.$slots["prev-month"] ? {
|
|
301
301
|
name: "prev-month",
|
|
302
302
|
fn: v(() => [
|
|
303
|
-
|
|
303
|
+
O(c.$slots, "prev-month")
|
|
304
304
|
]),
|
|
305
305
|
key: "1"
|
|
306
306
|
} : void 0,
|
|
307
|
-
|
|
307
|
+
c.$slots["next-month"] ? {
|
|
308
308
|
name: "next-month",
|
|
309
309
|
fn: v(() => [
|
|
310
|
-
|
|
310
|
+
O(c.$slots, "next-month")
|
|
311
311
|
]),
|
|
312
312
|
key: "2"
|
|
313
313
|
} : void 0,
|
|
314
|
-
|
|
314
|
+
c.$slots["prev-year"] ? {
|
|
315
315
|
name: "prev-year",
|
|
316
316
|
fn: v(() => [
|
|
317
|
-
|
|
317
|
+
O(c.$slots, "prev-year")
|
|
318
318
|
]),
|
|
319
319
|
key: "3"
|
|
320
320
|
} : void 0,
|
|
321
|
-
|
|
321
|
+
c.$slots["next-year"] ? {
|
|
322
322
|
name: "next-year",
|
|
323
323
|
fn: v(() => [
|
|
324
|
-
|
|
324
|
+
O(c.$slots, "next-year")
|
|
325
325
|
]),
|
|
326
326
|
key: "4"
|
|
327
327
|
} : void 0
|
|
@@ -366,21 +366,21 @@ const rn = /* @__PURE__ */ N({
|
|
|
366
366
|
overflow: e.overflow
|
|
367
367
|
}), ne({
|
|
368
368
|
default: v(() => [
|
|
369
|
-
o.$slots.default ?
|
|
369
|
+
o.$slots.default ? O(o.$slots, "default", { key: 0 }) : F("", !0)
|
|
370
370
|
]),
|
|
371
371
|
_: 2
|
|
372
372
|
}, [
|
|
373
373
|
o.$slots.header ? {
|
|
374
374
|
name: "header",
|
|
375
375
|
fn: v(() => [
|
|
376
|
-
|
|
376
|
+
O(o.$slots, "header")
|
|
377
377
|
]),
|
|
378
378
|
key: "0"
|
|
379
379
|
} : void 0,
|
|
380
380
|
o.$slots.footer ? {
|
|
381
381
|
name: "footer",
|
|
382
382
|
fn: v(() => [
|
|
383
|
-
|
|
383
|
+
O(o.$slots, "footer")
|
|
384
384
|
]),
|
|
385
385
|
key: "1"
|
|
386
386
|
} : void 0
|
|
@@ -497,12 +497,12 @@ function _e(e) {
|
|
|
497
497
|
function xn(e) {
|
|
498
498
|
return e;
|
|
499
499
|
}
|
|
500
|
-
var _n = "[object AsyncFunction]", An = "[object Function]",
|
|
500
|
+
var _n = "[object AsyncFunction]", An = "[object Function]", On = "[object GeneratorFunction]", Rn = "[object Proxy]";
|
|
501
501
|
function ra(e) {
|
|
502
502
|
if (!_e(e))
|
|
503
503
|
return !1;
|
|
504
504
|
var t = me(e);
|
|
505
|
-
return t == An || t ==
|
|
505
|
+
return t == An || t == On || t == _n || t == Rn;
|
|
506
506
|
}
|
|
507
507
|
var Be = re["__core-js_shared__"], $t = (function() {
|
|
508
508
|
var e = /[^.]+$/.exec(Be && Be.keys && Be.keys.IE_PROTO || "");
|
|
@@ -680,9 +680,9 @@ var ia = Object.prototype, ir = ia.hasOwnProperty, cr = ia.propertyIsEnumerable,
|
|
|
680
680
|
function dr() {
|
|
681
681
|
return !1;
|
|
682
682
|
}
|
|
683
|
-
var da = typeof exports == "object" && exports && !exports.nodeType && exports, xt = da && typeof module == "object" && module && !module.nodeType && module, fr = xt && xt.exports === da, _t = fr ? re.Buffer : void 0, pr = _t ? _t.isBuffer : void 0, Pe = pr || dr, mr = "[object Arguments]", vr = "[object Array]", gr = "[object Boolean]", yr = "[object Date]", hr = "[object Error]", br = "[object Function]", Tr = "[object Map]", $r = "[object Number]", Sr = "[object Object]", wr = "[object RegExp]", Cr = "[object Set]", xr = "[object String]", _r = "[object WeakMap]", Ar = "[object ArrayBuffer]",
|
|
684
|
-
H[
|
|
685
|
-
H[mr] = H[vr] = H[Ar] = H[gr] = H[
|
|
683
|
+
var da = typeof exports == "object" && exports && !exports.nodeType && exports, xt = da && typeof module == "object" && module && !module.nodeType && module, fr = xt && xt.exports === da, _t = fr ? re.Buffer : void 0, pr = _t ? _t.isBuffer : void 0, Pe = pr || dr, mr = "[object Arguments]", vr = "[object Array]", gr = "[object Boolean]", yr = "[object Date]", hr = "[object Error]", br = "[object Function]", Tr = "[object Map]", $r = "[object Number]", Sr = "[object Object]", wr = "[object RegExp]", Cr = "[object Set]", xr = "[object String]", _r = "[object WeakMap]", Ar = "[object ArrayBuffer]", Or = "[object DataView]", Rr = "[object Float32Array]", Er = "[object Float64Array]", Vr = "[object Int8Array]", kr = "[object Int16Array]", Ir = "[object Int32Array]", Pr = "[object Uint8Array]", jr = "[object Uint8ClampedArray]", Mr = "[object Uint16Array]", Fr = "[object Uint32Array]", H = {};
|
|
684
|
+
H[Rr] = H[Er] = H[Vr] = H[kr] = H[Ir] = H[Pr] = H[jr] = H[Mr] = H[Fr] = !0;
|
|
685
|
+
H[mr] = H[vr] = H[Ar] = H[gr] = H[Or] = H[yr] = H[hr] = H[br] = H[Tr] = H[$r] = H[Sr] = H[wr] = H[Cr] = H[xr] = H[_r] = !1;
|
|
686
686
|
function Lr(e) {
|
|
687
687
|
return ue(e) && ua(e.length) && !!H[me(e)];
|
|
688
688
|
}
|
|
@@ -700,12 +700,12 @@ var fa = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
700
700
|
})(), At = he && he.isTypedArray, pa = At ? ot(At) : Lr, zr = Object.prototype, Br = zr.hasOwnProperty;
|
|
701
701
|
function ma(e, t) {
|
|
702
702
|
var a = se(e), n = !a && ca(e), l = !a && !n && Pe(e), r = !a && !n && !l && pa(e), d = a || n || l || r, o = d ? ur(e.length, String) : [], f = o.length;
|
|
703
|
-
for (var
|
|
704
|
-
(t || Br.call(e,
|
|
705
|
-
(
|
|
706
|
-
l && (
|
|
707
|
-
r && (
|
|
708
|
-
tr(
|
|
703
|
+
for (var i in e)
|
|
704
|
+
(t || Br.call(e, i)) && !(d && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
705
|
+
(i == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
706
|
+
l && (i == "offset" || i == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
707
|
+
r && (i == "buffer" || i == "byteLength" || i == "byteOffset") || // Skip index properties.
|
|
708
|
+
tr(i, f))) && o.push(i);
|
|
709
709
|
return o;
|
|
710
710
|
}
|
|
711
711
|
function va(e, t) {
|
|
@@ -893,17 +893,17 @@ function xl(e) {
|
|
|
893
893
|
}), a = t.cache;
|
|
894
894
|
return t;
|
|
895
895
|
}
|
|
896
|
-
var _l = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Al = /\\(\\)?/g,
|
|
896
|
+
var _l = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Al = /\\(\\)?/g, Ol = xl(function(e) {
|
|
897
897
|
var t = [];
|
|
898
898
|
return e.charCodeAt(0) === 46 && t.push(""), e.replace(_l, function(a, n, l, r) {
|
|
899
899
|
t.push(l ? r.replace(Al, "$1") : n || a);
|
|
900
900
|
}), t;
|
|
901
901
|
});
|
|
902
|
-
function
|
|
902
|
+
function Rl(e) {
|
|
903
903
|
return e == null ? "" : na(e);
|
|
904
904
|
}
|
|
905
905
|
function ct(e, t) {
|
|
906
|
-
return se(e) ? e : Zr(e, t) ? [e] : Rl(
|
|
906
|
+
return se(e) ? e : Zr(e, t) ? [e] : Ol(Rl(e));
|
|
907
907
|
}
|
|
908
908
|
function ga(e) {
|
|
909
909
|
if (typeof e == "string" || nt(e))
|
|
@@ -922,9 +922,9 @@ function dt(e, t) {
|
|
|
922
922
|
e[l + a] = t[a];
|
|
923
923
|
return e;
|
|
924
924
|
}
|
|
925
|
-
var
|
|
925
|
+
var Ot = Z ? Z.isConcatSpreadable : void 0;
|
|
926
926
|
function Vl(e) {
|
|
927
|
-
return se(e) || ca(e) || !!(
|
|
927
|
+
return se(e) || ca(e) || !!(Ot && e && e[Ot]);
|
|
928
928
|
}
|
|
929
929
|
function kl(e, t, a, n, l) {
|
|
930
930
|
var r = -1, d = e.length;
|
|
@@ -997,7 +997,7 @@ function Wl(e, t) {
|
|
|
997
997
|
function Kl(e, t) {
|
|
998
998
|
return e && Ae(t, st(t), e);
|
|
999
999
|
}
|
|
1000
|
-
var ha = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
1000
|
+
var ha = typeof exports == "object" && exports && !exports.nodeType && exports, Rt = ha && typeof module == "object" && module && !module.nodeType && module, Xl = Rt && Rt.exports === ha, Et = Xl ? re.Buffer : void 0, Vt = Et ? Et.allocUnsafe : void 0;
|
|
1001
1001
|
function Jl(e, t) {
|
|
1002
1002
|
if (t)
|
|
1003
1003
|
return e.slice();
|
|
@@ -1085,7 +1085,7 @@ function ho(e, t) {
|
|
|
1085
1085
|
var a = t ? mt(e.buffer) : e.buffer;
|
|
1086
1086
|
return new e.constructor(a, e.byteOffset, e.length);
|
|
1087
1087
|
}
|
|
1088
|
-
var bo = "[object Boolean]", To = "[object Date]", $o = "[object Map]", So = "[object Number]", wo = "[object RegExp]", Co = "[object Set]", xo = "[object String]", _o = "[object Symbol]", Ao = "[object ArrayBuffer]",
|
|
1088
|
+
var bo = "[object Boolean]", To = "[object Date]", $o = "[object Map]", So = "[object Number]", wo = "[object RegExp]", Co = "[object Set]", xo = "[object String]", _o = "[object Symbol]", Ao = "[object ArrayBuffer]", Oo = "[object DataView]", Ro = "[object Float32Array]", Eo = "[object Float64Array]", Vo = "[object Int8Array]", ko = "[object Int16Array]", Io = "[object Int32Array]", Po = "[object Uint8Array]", jo = "[object Uint8ClampedArray]", Mo = "[object Uint16Array]", Fo = "[object Uint32Array]";
|
|
1089
1089
|
function Lo(e, t, a) {
|
|
1090
1090
|
var n = e.constructor;
|
|
1091
1091
|
switch (t) {
|
|
@@ -1094,9 +1094,9 @@ function Lo(e, t, a) {
|
|
|
1094
1094
|
case bo:
|
|
1095
1095
|
case To:
|
|
1096
1096
|
return new n(+e);
|
|
1097
|
-
case Ro:
|
|
1098
|
-
return mo(e, a);
|
|
1099
1097
|
case Oo:
|
|
1098
|
+
return mo(e, a);
|
|
1099
|
+
case Ro:
|
|
1100
1100
|
case Eo:
|
|
1101
1101
|
case Vo:
|
|
1102
1102
|
case ko:
|
|
@@ -1134,13 +1134,13 @@ var Bt = he && he.isSet, Go = Bt ? ot(Bt) : Ho, Yo = 1, qo = 2, Wo = 4, wa = "[o
|
|
|
1134
1134
|
D[wa] = D[Ko] = D[uu] = D[su] = D[Xo] = D[Jo] = D[iu] = D[cu] = D[du] = D[fu] = D[pu] = D[eu] = D[tu] = D[xa] = D[au] = D[nu] = D[ru] = D[lu] = D[mu] = D[vu] = D[gu] = D[yu] = !0;
|
|
1135
1135
|
D[Zo] = D[Ca] = D[ou] = !1;
|
|
1136
1136
|
function Se(e, t, a, n, l, r) {
|
|
1137
|
-
var d, o = t & Yo, f = t & qo,
|
|
1137
|
+
var d, o = t & Yo, f = t & qo, i = t & Wo;
|
|
1138
1138
|
if (a && (d = l ? a(e, n, l, r) : a(e)), d !== void 0)
|
|
1139
1139
|
return d;
|
|
1140
1140
|
if (!_e(e))
|
|
1141
1141
|
return e;
|
|
1142
|
-
var
|
|
1143
|
-
if (
|
|
1142
|
+
var c = se(e);
|
|
1143
|
+
if (c) {
|
|
1144
1144
|
if (d = po(e), !o)
|
|
1145
1145
|
return Hn(e, d);
|
|
1146
1146
|
} else {
|
|
@@ -1157,15 +1157,15 @@ function Se(e, t, a, n, l, r) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
1159
|
r || (r = new oe());
|
|
1160
|
-
var
|
|
1161
|
-
if (
|
|
1162
|
-
return
|
|
1160
|
+
var R = r.get(e);
|
|
1161
|
+
if (R)
|
|
1162
|
+
return R;
|
|
1163
1163
|
r.set(e, d), Go(e) ? e.forEach(function(j) {
|
|
1164
1164
|
d.add(Se(j, t, a, j, e, r));
|
|
1165
1165
|
}) : Do(e) && e.forEach(function(j, z) {
|
|
1166
1166
|
d.set(z, Se(j, t, a, z, e, r));
|
|
1167
1167
|
});
|
|
1168
|
-
var y =
|
|
1168
|
+
var y = i ? f ? Sa : Ke : f ? st : ut, E = c ? void 0 : y(e);
|
|
1169
1169
|
return Zn(E || e, function(j, z) {
|
|
1170
1170
|
E && (z = j, j = e[z]), oa(d, z, Se(j, t, a, z, e, r));
|
|
1171
1171
|
}), d;
|
|
@@ -1202,10 +1202,10 @@ function _a(e, t, a, n, l, r) {
|
|
|
1202
1202
|
var d = a & xu, o = e.length, f = t.length;
|
|
1203
1203
|
if (o != f && !(d && f > o))
|
|
1204
1204
|
return !1;
|
|
1205
|
-
var
|
|
1206
|
-
if (
|
|
1207
|
-
return
|
|
1208
|
-
var u = -1, h = !0,
|
|
1205
|
+
var i = r.get(e), c = r.get(t);
|
|
1206
|
+
if (i && c)
|
|
1207
|
+
return i == t && c == e;
|
|
1208
|
+
var u = -1, h = !0, R = a & _u ? new Me() : void 0;
|
|
1209
1209
|
for (r.set(e, t), r.set(t, e); ++u < o; ) {
|
|
1210
1210
|
var y = e[u], E = t[u];
|
|
1211
1211
|
if (n)
|
|
@@ -1216,10 +1216,10 @@ function _a(e, t, a, n, l, r) {
|
|
|
1216
1216
|
h = !1;
|
|
1217
1217
|
break;
|
|
1218
1218
|
}
|
|
1219
|
-
if (
|
|
1219
|
+
if (R) {
|
|
1220
1220
|
if (!wu(t, function(z, g) {
|
|
1221
|
-
if (!Cu(
|
|
1222
|
-
return
|
|
1221
|
+
if (!Cu(R, g) && (y === z || l(y, z, a, n, r)))
|
|
1222
|
+
return R.push(g);
|
|
1223
1223
|
})) {
|
|
1224
1224
|
h = !1;
|
|
1225
1225
|
break;
|
|
@@ -1237,13 +1237,13 @@ function Au(e) {
|
|
|
1237
1237
|
a[++t] = [l, n];
|
|
1238
1238
|
}), a;
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1240
|
+
function Ou(e) {
|
|
1241
1241
|
var t = -1, a = Array(e.size);
|
|
1242
1242
|
return e.forEach(function(n) {
|
|
1243
1243
|
a[++t] = n;
|
|
1244
1244
|
}), a;
|
|
1245
1245
|
}
|
|
1246
|
-
var
|
|
1246
|
+
var Ru = 1, Eu = 2, Vu = "[object Boolean]", ku = "[object Date]", Iu = "[object Error]", Pu = "[object Map]", ju = "[object Number]", Mu = "[object RegExp]", Fu = "[object Set]", Lu = "[object String]", Uu = "[object Symbol]", zu = "[object ArrayBuffer]", Bu = "[object DataView]", Dt = Z ? Z.prototype : void 0, Ne = Dt ? Dt.valueOf : void 0;
|
|
1247
1247
|
function Du(e, t, a, n, l, r, d) {
|
|
1248
1248
|
switch (a) {
|
|
1249
1249
|
case Bu:
|
|
@@ -1264,15 +1264,15 @@ function Du(e, t, a, n, l, r, d) {
|
|
|
1264
1264
|
case Pu:
|
|
1265
1265
|
var o = Au;
|
|
1266
1266
|
case Fu:
|
|
1267
|
-
var f = n &
|
|
1268
|
-
if (o || (o =
|
|
1267
|
+
var f = n & Ru;
|
|
1268
|
+
if (o || (o = Ou), e.size != t.size && !f)
|
|
1269
1269
|
return !1;
|
|
1270
|
-
var
|
|
1271
|
-
if (
|
|
1272
|
-
return
|
|
1270
|
+
var i = d.get(e);
|
|
1271
|
+
if (i)
|
|
1272
|
+
return i == t;
|
|
1273
1273
|
n |= Eu, d.set(e, t);
|
|
1274
|
-
var
|
|
1275
|
-
return d.delete(e),
|
|
1274
|
+
var c = _a(o(e), o(t), n, l, r, d);
|
|
1275
|
+
return d.delete(e), c;
|
|
1276
1276
|
case Uu:
|
|
1277
1277
|
if (Ne)
|
|
1278
1278
|
return Ne.call(e) == Ne.call(t);
|
|
@@ -1281,17 +1281,17 @@ function Du(e, t, a, n, l, r, d) {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
var Nu = 1, Hu = Object.prototype, Gu = Hu.hasOwnProperty;
|
|
1283
1283
|
function Yu(e, t, a, n, l, r) {
|
|
1284
|
-
var d = a & Nu, o = Ke(e), f = o.length,
|
|
1285
|
-
if (f !=
|
|
1284
|
+
var d = a & Nu, o = Ke(e), f = o.length, i = Ke(t), c = i.length;
|
|
1285
|
+
if (f != c && !d)
|
|
1286
1286
|
return !1;
|
|
1287
1287
|
for (var u = f; u--; ) {
|
|
1288
1288
|
var h = o[u];
|
|
1289
1289
|
if (!(d ? h in t : Gu.call(t, h)))
|
|
1290
1290
|
return !1;
|
|
1291
1291
|
}
|
|
1292
|
-
var
|
|
1293
|
-
if (
|
|
1294
|
-
return
|
|
1292
|
+
var R = r.get(e), y = r.get(t);
|
|
1293
|
+
if (R && y)
|
|
1294
|
+
return R == t && y == e;
|
|
1295
1295
|
var E = !0;
|
|
1296
1296
|
r.set(e, t), r.set(t, e);
|
|
1297
1297
|
for (var j = d; ++u < f; ) {
|
|
@@ -1311,22 +1311,22 @@ function Yu(e, t, a, n, l, r) {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
return r.delete(e), r.delete(t), E;
|
|
1313
1313
|
}
|
|
1314
|
-
var qu = 1, Nt = "[object Arguments]", Ht = "[object Array]",
|
|
1314
|
+
var qu = 1, Nt = "[object Arguments]", Ht = "[object Array]", Re = "[object Object]", Wu = Object.prototype, Gt = Wu.hasOwnProperty;
|
|
1315
1315
|
function Ku(e, t, a, n, l, r) {
|
|
1316
|
-
var d = se(e), o = se(t), f = d ? Ht : Q(e),
|
|
1317
|
-
f = f == Nt ?
|
|
1318
|
-
var
|
|
1316
|
+
var d = se(e), o = se(t), f = d ? Ht : Q(e), i = o ? Ht : Q(t);
|
|
1317
|
+
f = f == Nt ? Re : f, i = i == Nt ? Re : i;
|
|
1318
|
+
var c = f == Re, u = i == Re, h = f == i;
|
|
1319
1319
|
if (h && Pe(e)) {
|
|
1320
1320
|
if (!Pe(t))
|
|
1321
1321
|
return !1;
|
|
1322
|
-
d = !0,
|
|
1322
|
+
d = !0, c = !1;
|
|
1323
1323
|
}
|
|
1324
|
-
if (h && !
|
|
1324
|
+
if (h && !c)
|
|
1325
1325
|
return r || (r = new oe()), d || pa(e) ? _a(e, t, a, n, l, r) : Du(e, t, f, a, n, l, r);
|
|
1326
1326
|
if (!(a & qu)) {
|
|
1327
|
-
var
|
|
1328
|
-
if (
|
|
1329
|
-
var E =
|
|
1327
|
+
var R = c && Gt.call(e, "__wrapped__"), y = u && Gt.call(t, "__wrapped__");
|
|
1328
|
+
if (R || y) {
|
|
1329
|
+
var E = R ? e.value() : e, j = y ? t.value() : t;
|
|
1330
1330
|
return r || (r = new oe()), l(E, j, a, n, r);
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
@@ -1404,15 +1404,15 @@ const ls = ["title"], os = {
|
|
|
1404
1404
|
},
|
|
1405
1405
|
{ immediate: !0, deep: !0 }
|
|
1406
1406
|
);
|
|
1407
|
-
const
|
|
1407
|
+
const i = I(() => {
|
|
1408
1408
|
const g = [];
|
|
1409
1409
|
return a.options.forEach((p) => {
|
|
1410
1410
|
Array.isArray(p?.children) && p.children.forEach((_) => {
|
|
1411
1411
|
_.value && r.value.includes(_.value) && g.push(_);
|
|
1412
1412
|
});
|
|
1413
1413
|
}), g;
|
|
1414
|
-
}),
|
|
1415
|
-
const g =
|
|
1414
|
+
}), c = I(() => {
|
|
1415
|
+
const g = i.value.find((p) => !p.disabled);
|
|
1416
1416
|
return g || null;
|
|
1417
1417
|
});
|
|
1418
1418
|
de(
|
|
@@ -1429,7 +1429,7 @@ const ls = ["title"], os = {
|
|
|
1429
1429
|
Object.keys(d).forEach((p) => {
|
|
1430
1430
|
d[p] && g.push(p);
|
|
1431
1431
|
}), n("update:modelValue", g), n("input", g), n("change", g), l.value = !1;
|
|
1432
|
-
},
|
|
1432
|
+
}, R = () => {
|
|
1433
1433
|
f(), l.value = !1;
|
|
1434
1434
|
}, y = (g) => {
|
|
1435
1435
|
a.options.forEach((p) => {
|
|
@@ -1463,24 +1463,24 @@ const ls = ["title"], os = {
|
|
|
1463
1463
|
class: "chose-wrap",
|
|
1464
1464
|
style: xe({ width: e.width + "px" }),
|
|
1465
1465
|
onClick: u,
|
|
1466
|
-
title:
|
|
1466
|
+
title: i.value.map((C) => C.label).join(";")
|
|
1467
1467
|
}, [
|
|
1468
|
-
Y(k(
|
|
1469
|
-
|
|
1470
|
-
U("p", null, k(
|
|
1468
|
+
Y(k(i.value.length ? "" : e.placeholder) + " ", 1),
|
|
1469
|
+
i.value.length && c.value ? (s(), T("div", os, [
|
|
1470
|
+
U("p", null, k(c.value.label), 1),
|
|
1471
1471
|
B(w(Ee), {
|
|
1472
|
-
onClick: p[0] || (p[0] =
|
|
1472
|
+
onClick: p[0] || (p[0] = Oe((C) => z(i.value[1]?.value || ""), ["stop"]))
|
|
1473
1473
|
}, {
|
|
1474
1474
|
default: v(() => [
|
|
1475
1475
|
B(w(sn))
|
|
1476
1476
|
]),
|
|
1477
1477
|
_: 1
|
|
1478
1478
|
})
|
|
1479
|
-
])) :
|
|
1480
|
-
U("p", null, k(
|
|
1479
|
+
])) : i.value.length > 0 ? (s(), T("div", us, [
|
|
1480
|
+
U("p", null, k(i.value[0].label || ""), 1)
|
|
1481
1481
|
])) : F("", !0),
|
|
1482
|
-
|
|
1483
|
-
U("p", null, "+" + k(
|
|
1482
|
+
i.value.length > 1 ? (s(), T("div", ss, [
|
|
1483
|
+
U("p", null, "+" + k(i.value.length - 1), 1)
|
|
1484
1484
|
])) : F("", !0)
|
|
1485
1485
|
], 12, ls),
|
|
1486
1486
|
B(Zt, {
|
|
@@ -1489,7 +1489,7 @@ const ls = ["title"], os = {
|
|
|
1489
1489
|
"onUpdate:modelValue": p[5] || (p[5] = (C) => l.value = C),
|
|
1490
1490
|
width: "50vw",
|
|
1491
1491
|
top: "5.20833vw",
|
|
1492
|
-
onClose:
|
|
1492
|
+
onClose: R
|
|
1493
1493
|
}, {
|
|
1494
1494
|
default: v(() => [
|
|
1495
1495
|
U("div", is, [
|
|
@@ -1552,7 +1552,7 @@ const ls = ["title"], os = {
|
|
|
1552
1552
|
C.value && o.value.includes(C.value) ? (s(), T(M, { key: 0 }, [
|
|
1553
1553
|
B(te, {
|
|
1554
1554
|
link: "",
|
|
1555
|
-
onClick:
|
|
1555
|
+
onClick: Oe((S) => y(C.value), ["stop"]),
|
|
1556
1556
|
title: "全选"
|
|
1557
1557
|
}, {
|
|
1558
1558
|
default: v(() => [
|
|
@@ -1565,7 +1565,7 @@ const ls = ["title"], os = {
|
|
|
1565
1565
|
}, 8, ["onClick"]),
|
|
1566
1566
|
B(te, {
|
|
1567
1567
|
link: "",
|
|
1568
|
-
onClick:
|
|
1568
|
+
onClick: Oe((S) => E(C.value), ["stop"]),
|
|
1569
1569
|
title: "反选"
|
|
1570
1570
|
}, {
|
|
1571
1571
|
default: v(() => [
|
|
@@ -1578,7 +1578,7 @@ const ls = ["title"], os = {
|
|
|
1578
1578
|
}, 8, ["onClick"]),
|
|
1579
1579
|
B(te, {
|
|
1580
1580
|
link: "",
|
|
1581
|
-
onClick:
|
|
1581
|
+
onClick: Oe((S) => j(C.value), ["stop"]),
|
|
1582
1582
|
title: "清空"
|
|
1583
1583
|
}, {
|
|
1584
1584
|
default: v(() => [
|
|
@@ -1629,7 +1629,7 @@ const ls = ["title"], os = {
|
|
|
1629
1629
|
}),
|
|
1630
1630
|
B(te, {
|
|
1631
1631
|
size: "small",
|
|
1632
|
-
onClick:
|
|
1632
|
+
onClick: R
|
|
1633
1633
|
}, {
|
|
1634
1634
|
default: v(() => [...p[10] || (p[10] = [
|
|
1635
1635
|
Y("取消", -1)
|
|
@@ -1660,7 +1660,7 @@ function hs() {
|
|
|
1660
1660
|
return He(ys);
|
|
1661
1661
|
}
|
|
1662
1662
|
const bs = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Yt = { randomUUID: bs };
|
|
1663
|
-
function
|
|
1663
|
+
function Oa(e, t, a) {
|
|
1664
1664
|
if (Yt.randomUUID && !e)
|
|
1665
1665
|
return Yt.randomUUID();
|
|
1666
1666
|
e = e || {};
|
|
@@ -1691,12 +1691,12 @@ const Ts = {
|
|
|
1691
1691
|
},
|
|
1692
1692
|
emits: ["update:modelValue", "itemChange"],
|
|
1693
1693
|
setup(e, { expose: t, emit: a }) {
|
|
1694
|
-
const n = ae(() => Promise.resolve().then(() => Cs)), l = ae(() => Promise.resolve().then(() => _s)), r = ae(() => import("./index-DE9tcA5I.js")), d = ae(() => import("./index-DN2aloZb.js")), o = ae(() => import("./index-DUdhhr_j.js")), f = ae(() => Promise.resolve().then(() =>
|
|
1694
|
+
const n = ae(() => Promise.resolve().then(() => Cs)), l = ae(() => Promise.resolve().then(() => _s)), r = ae(() => import("./index-DE9tcA5I.js")), d = ae(() => import("./index-DN2aloZb.js")), o = ae(() => import("./index-DUdhhr_j.js")), f = ae(() => Promise.resolve().then(() => Os)), i = ae(() => Promise.resolve().then(() => Xt)), c = a, u = e, h = I(() => u.cssStyle === "1" ? "common-style" : ""), R = W({}), y = I({
|
|
1695
1695
|
get() {
|
|
1696
|
-
return u.modelValue ||
|
|
1696
|
+
return u.modelValue || R.value;
|
|
1697
1697
|
},
|
|
1698
1698
|
set(b) {
|
|
1699
|
-
u.modelValue !== void 0 ?
|
|
1699
|
+
u.modelValue !== void 0 ? c("update:modelValue", b) : R.value = b;
|
|
1700
1700
|
}
|
|
1701
1701
|
}), E = I(() => {
|
|
1702
1702
|
const b = [];
|
|
@@ -1708,7 +1708,7 @@ const Ts = {
|
|
|
1708
1708
|
return { ...V };
|
|
1709
1709
|
let G = { width: "100%", "margin-right": u.itemMarginRight + "px" };
|
|
1710
1710
|
return u.inlineNumber ? (G.width = `calc(((100% - (${u.itemMarginRight} * ${u.inlineNumber - 1}px)) / ${u.inlineNumber}) * ${E.value[b]} + ${u.itemMarginRight} * ${E.value[b] - 1}px)`, j(E.value, b) % u.inlineNumber === 0 && (G["margin-right"] = "0")) : G.width = "", V && (G = { ...G, ...V }), G;
|
|
1711
|
-
}, g = I(() => Te(u.options).map((b) => (b.prop || (b.prop =
|
|
1711
|
+
}, g = I(() => Te(u.options).map((b) => (b.prop || (b.prop = Oa()), b))), p = (b = !1) => {
|
|
1712
1712
|
u.options.forEach((V) => {
|
|
1713
1713
|
b ? ["multipleSelect", "dataRange", "dateTimeRange", "checkbox", "multipleTreeSelect"].includes(V.formType) ? y.value[V.prop] = V.defaultValue_raw || [] : y.value[V.prop] = V.defaultValue_raw || "" : V.prop && (y.value[V.prop] === void 0 || y.value[V.prop] === null) && (["multipleSelect", "dataRange", "dateTimeRange", "checkbox", "multipleTreeSelect"].includes(V.formType) ? y.value[V.prop] = V.defaultValue_raw || [] : y.value[V.prop] = V.defaultValue_raw || "");
|
|
1714
1714
|
});
|
|
@@ -1724,12 +1724,12 @@ const Ts = {
|
|
|
1724
1724
|
), de(
|
|
1725
1725
|
() => y.value,
|
|
1726
1726
|
(b) => {
|
|
1727
|
-
u.modelValue === void 0 && (
|
|
1727
|
+
u.modelValue === void 0 && (R.value = b);
|
|
1728
1728
|
},
|
|
1729
1729
|
{ deep: !0 }
|
|
1730
1730
|
);
|
|
1731
1731
|
const C = (b, V) => {
|
|
1732
|
-
|
|
1732
|
+
c("itemChange", b, V);
|
|
1733
1733
|
}, q = ee("componentRef"), S = ["validate", "validateField", "resetFields", "scrollToField", "clearValidate", "fields", "getField"], P = {};
|
|
1734
1734
|
return S.forEach((b) => {
|
|
1735
1735
|
P[b] = (...V) => {
|
|
@@ -1758,7 +1758,7 @@ const Ts = {
|
|
|
1758
1758
|
inline: e.inlineNumber ? !0 : e.inline
|
|
1759
1759
|
}), {
|
|
1760
1760
|
default: v(() => [
|
|
1761
|
-
|
|
1761
|
+
O(b.$slots, "default", {}, void 0, !0),
|
|
1762
1762
|
(s(!0), T(M, null, J(g.value, (m, ye) => (s(), $(w(Wt), A({
|
|
1763
1763
|
key: m.prop,
|
|
1764
1764
|
ref_for: !0
|
|
@@ -1847,8 +1847,8 @@ const Ts = {
|
|
|
1847
1847
|
multiple: "",
|
|
1848
1848
|
"collapse-tags-tooltip": "",
|
|
1849
1849
|
onChange: (x) => C(m.prop, x)
|
|
1850
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : m.formType === "slot" ?
|
|
1851
|
-
(s(!0), T(M, null, J(m.buttons, (x, Pa) => (s(), $(w(
|
|
1850
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : m.formType === "slot" ? O(b.$slots, m.slotName, { key: 12 }, void 0, !0) : m.formType === "buttons" ? (s(), T("div", Ts, [
|
|
1851
|
+
(s(!0), T(M, null, J(m.buttons, (x, Pa) => (s(), $(w(i), A({
|
|
1852
1852
|
key: "button" + Pa
|
|
1853
1853
|
}, { ref_for: !0 }, x, {
|
|
1854
1854
|
cssStyle: x.cssStyle || "1"
|
|
@@ -1867,7 +1867,7 @@ const Ts = {
|
|
|
1867
1867
|
}, 16, ["class", "model", "inline"]);
|
|
1868
1868
|
};
|
|
1869
1869
|
}
|
|
1870
|
-
}), Ss = /* @__PURE__ */ X($s, [["__scopeId", "data-v-a4d3bfcd"]]),
|
|
1870
|
+
}), Ss = /* @__PURE__ */ X($s, [["__scopeId", "data-v-a4d3bfcd"]]), Ra = /* @__PURE__ */ N({
|
|
1871
1871
|
name: "RaTextarea",
|
|
1872
1872
|
__name: "index",
|
|
1873
1873
|
props: {
|
|
@@ -1930,35 +1930,35 @@ const Ts = {
|
|
|
1930
1930
|
"show-word-limit": ""
|
|
1931
1931
|
}, o.$attrs), ne({
|
|
1932
1932
|
default: v(() => [
|
|
1933
|
-
|
|
1933
|
+
O(o.$slots, "default", {}, void 0, !0)
|
|
1934
1934
|
]),
|
|
1935
1935
|
_: 2
|
|
1936
1936
|
}, [
|
|
1937
1937
|
o.$slots.prefix ? {
|
|
1938
1938
|
name: "prefix",
|
|
1939
1939
|
fn: v(() => [
|
|
1940
|
-
|
|
1940
|
+
O(o.$slots, "prefix", {}, void 0, !0)
|
|
1941
1941
|
]),
|
|
1942
1942
|
key: "0"
|
|
1943
1943
|
} : void 0,
|
|
1944
1944
|
o.$slots.suffix ? {
|
|
1945
1945
|
name: "suffix",
|
|
1946
1946
|
fn: v(() => [
|
|
1947
|
-
|
|
1947
|
+
O(o.$slots, "suffix", {}, void 0, !0)
|
|
1948
1948
|
]),
|
|
1949
1949
|
key: "1"
|
|
1950
1950
|
} : void 0,
|
|
1951
1951
|
o.$slots.prepend ? {
|
|
1952
1952
|
name: "prepend",
|
|
1953
1953
|
fn: v(() => [
|
|
1954
|
-
|
|
1954
|
+
O(o.$slots, "prepend", {}, void 0, !0)
|
|
1955
1955
|
]),
|
|
1956
1956
|
key: "2"
|
|
1957
1957
|
} : void 0,
|
|
1958
1958
|
o.$slots.append ? {
|
|
1959
1959
|
name: "append",
|
|
1960
1960
|
fn: v(() => [
|
|
1961
|
-
|
|
1961
|
+
O(o.$slots, "append", {}, void 0, !0)
|
|
1962
1962
|
]),
|
|
1963
1963
|
key: "3"
|
|
1964
1964
|
} : void 0
|
|
@@ -1979,7 +1979,7 @@ const Ts = {
|
|
|
1979
1979
|
setup(e) {
|
|
1980
1980
|
return (t, a) => (s(), $(w(Wa), Qe(et(t.$attrs)), {
|
|
1981
1981
|
default: v(() => [
|
|
1982
|
-
|
|
1982
|
+
O(t.$slots, "default"),
|
|
1983
1983
|
(s(!0), T(M, null, J(e.options, (n) => (s(), T(M, {
|
|
1984
1984
|
key: n.value
|
|
1985
1985
|
}, [
|
|
@@ -2032,9 +2032,9 @@ const Ts = {
|
|
|
2032
2032
|
a.multiple && de(l, (u) => {
|
|
2033
2033
|
Array.isArray(u) && (l.value = u, u.length === 0 ? (r.value = !1, d.value = !1) : u.length === a.options.length ? (r.value = !0, d.value = !1) : d.value = !0);
|
|
2034
2034
|
});
|
|
2035
|
-
const f = ee("componentRef"),
|
|
2036
|
-
return
|
|
2037
|
-
|
|
2035
|
+
const f = ee("componentRef"), i = ["focus", "blur", "selectedLabel"], c = {};
|
|
2036
|
+
return i.forEach((u) => {
|
|
2037
|
+
c[u] = (...h) => {
|
|
2038
2038
|
if (f.value && typeof f.value[u] == "function")
|
|
2039
2039
|
return f.value[u](...h);
|
|
2040
2040
|
if (f.value && f.value[u] !== void 0)
|
|
@@ -2043,24 +2043,24 @@ const Ts = {
|
|
|
2043
2043
|
}), t({
|
|
2044
2044
|
// @doc 方法,获取原element组件实例
|
|
2045
2045
|
component: () => f.value,
|
|
2046
|
-
...
|
|
2046
|
+
...c
|
|
2047
2047
|
}), (u, h) => (s(), $(w(Ja), A({
|
|
2048
2048
|
class: [n.value],
|
|
2049
2049
|
ref_key: "componentRef",
|
|
2050
2050
|
ref: f
|
|
2051
2051
|
}, u.$attrs, {
|
|
2052
2052
|
modelValue: l.value,
|
|
2053
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
2053
|
+
"onUpdate:modelValue": h[1] || (h[1] = (R) => l.value = R),
|
|
2054
2054
|
multiple: e.multiple,
|
|
2055
2055
|
collapseTags: e.collapseTags,
|
|
2056
2056
|
clearable: e.clearable
|
|
2057
2057
|
}), ne({
|
|
2058
2058
|
default: v(() => [
|
|
2059
|
-
|
|
2060
|
-
(s(!0), T(M, null, J(e.options, (
|
|
2061
|
-
key:
|
|
2062
|
-
label:
|
|
2063
|
-
value:
|
|
2059
|
+
O(u.$slots, "default", {}, void 0, !0),
|
|
2060
|
+
(s(!0), T(M, null, J(e.options, (R) => (s(), $(w(Za), {
|
|
2061
|
+
key: R.prop,
|
|
2062
|
+
label: R.label,
|
|
2063
|
+
value: R.value
|
|
2064
2064
|
}, null, 8, ["label", "value"]))), 128))
|
|
2065
2065
|
]),
|
|
2066
2066
|
_: 2
|
|
@@ -2070,7 +2070,7 @@ const Ts = {
|
|
|
2070
2070
|
fn: v(() => [
|
|
2071
2071
|
B(w(at), {
|
|
2072
2072
|
modelValue: r.value,
|
|
2073
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2073
|
+
"onUpdate:modelValue": h[0] || (h[0] = (R) => r.value = R),
|
|
2074
2074
|
indeterminate: d.value,
|
|
2075
2075
|
onChange: o
|
|
2076
2076
|
}, {
|
|
@@ -2121,10 +2121,10 @@ const Ts = {
|
|
|
2121
2121
|
clearable: e.clearable
|
|
2122
2122
|
}), null, 16, ["data", "collapseTags", "clearable"]));
|
|
2123
2123
|
}
|
|
2124
|
-
}), Le = /* @__PURE__ */ X(As, [["__scopeId", "data-v-4794fe5d"]]),
|
|
2124
|
+
}), Le = /* @__PURE__ */ X(As, [["__scopeId", "data-v-4794fe5d"]]), Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2125
2125
|
__proto__: null,
|
|
2126
2126
|
default: Le
|
|
2127
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2127
|
+
}, Symbol.toStringTag, { value: "Module" })), Rs = {
|
|
2128
2128
|
key: 1,
|
|
2129
2129
|
class: "detail"
|
|
2130
2130
|
}, Es = {
|
|
@@ -2184,119 +2184,119 @@ const Ts = {
|
|
|
2184
2184
|
}),
|
|
2185
2185
|
emits: /* @__PURE__ */ ke(["change"], ["update:modelValue"]),
|
|
2186
2186
|
setup(e, { emit: t }) {
|
|
2187
|
-
const a = e, n = tt(e, "modelValue"), l = t, r = (
|
|
2188
|
-
l("change",
|
|
2187
|
+
const a = e, n = tt(e, "modelValue"), l = t, r = (i) => {
|
|
2188
|
+
l("change", i);
|
|
2189
2189
|
}, d = La(), o = I(() => {
|
|
2190
|
-
const
|
|
2190
|
+
const i = d.options || [];
|
|
2191
2191
|
if (a.itemType === "select" || a.itemType === "radio" || a.itemType === "treeSelect") {
|
|
2192
|
-
const
|
|
2193
|
-
if (
|
|
2194
|
-
return
|
|
2192
|
+
const c = i.find((u) => u.value === n.value);
|
|
2193
|
+
if (c)
|
|
2194
|
+
return c.label;
|
|
2195
2195
|
} else if (a.itemType === "checkbox" || a.itemType === "multipleSelect" || a.itemType === "treeMultipleSelect") {
|
|
2196
|
-
const
|
|
2197
|
-
if (
|
|
2198
|
-
return
|
|
2196
|
+
const c = n.value;
|
|
2197
|
+
if (c !== void 0 && Array.isArray(c))
|
|
2198
|
+
return i.filter((h) => c.includes(h.value)).map((h) => h.label).join(",");
|
|
2199
2199
|
}
|
|
2200
2200
|
return n.value;
|
|
2201
2201
|
}), f = I(() => {
|
|
2202
|
-
const
|
|
2203
|
-
return
|
|
2204
|
-
height: `${
|
|
2202
|
+
const i = Number(d.rows);
|
|
2203
|
+
return i ? {
|
|
2204
|
+
height: `${i * 32}px`
|
|
2205
2205
|
} : {
|
|
2206
2206
|
minHeight: "32px",
|
|
2207
2207
|
height: "max-content"
|
|
2208
2208
|
};
|
|
2209
2209
|
});
|
|
2210
|
-
return (
|
|
2210
|
+
return (i, c) => (s(), $(w(Wt), {
|
|
2211
2211
|
label: e.label,
|
|
2212
2212
|
prop: e.prop,
|
|
2213
2213
|
required: e.required
|
|
2214
2214
|
}, {
|
|
2215
2215
|
default: v(() => [
|
|
2216
2216
|
e.itemType === "input" ? (s(), T(M, { key: 0 }, [
|
|
2217
|
-
e.actionType === "create" || e.actionType === "update" ? (s(), $(vt, A({ key: 0 },
|
|
2217
|
+
e.actionType === "create" || e.actionType === "update" ? (s(), $(vt, A({ key: 0 }, i.$attrs, {
|
|
2218
2218
|
modelValue: n.value,
|
|
2219
|
-
"onUpdate:modelValue":
|
|
2219
|
+
"onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
|
|
2220
2220
|
onChange: r
|
|
2221
|
-
}), null, 16, ["modelValue"])) : (s(), T("div",
|
|
2221
|
+
}), null, 16, ["modelValue"])) : (s(), T("div", Rs, k(o.value), 1))
|
|
2222
2222
|
], 64)) : e.itemType === "select" ? (s(), T(M, { key: 1 }, [
|
|
2223
|
-
e.actionType === "create" || e.actionType === "update" ? (s(), $(Fe, A({ key: 0 },
|
|
2223
|
+
e.actionType === "create" || e.actionType === "update" ? (s(), $(Fe, A({ key: 0 }, i.$attrs, {
|
|
2224
2224
|
modelValue: n.value,
|
|
2225
|
-
"onUpdate:modelValue":
|
|
2225
|
+
"onUpdate:modelValue": c[1] || (c[1] = (u) => n.value = u),
|
|
2226
2226
|
onChange: r
|
|
2227
2227
|
}), null, 16, ["modelValue"])) : (s(), T("div", Es, k(o.value), 1))
|
|
2228
2228
|
], 64)) : e.itemType === "multipleSelect" ? (s(), T(M, { key: 2 }, [
|
|
2229
2229
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Fe, A({
|
|
2230
2230
|
key: 0,
|
|
2231
2231
|
multiple: ""
|
|
2232
|
-
},
|
|
2232
|
+
}, i.$attrs, {
|
|
2233
2233
|
modelValue: n.value,
|
|
2234
|
-
"onUpdate:modelValue":
|
|
2234
|
+
"onUpdate:modelValue": c[2] || (c[2] = (u) => n.value = u),
|
|
2235
2235
|
onChange: r
|
|
2236
2236
|
}), null, 16, ["modelValue"])) : (s(), T("div", Vs, k(o.value), 1))
|
|
2237
2237
|
], 64)) : e.itemType === "datetime" ? (s(), T(M, { key: 3 }, [
|
|
2238
2238
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Ve, A({
|
|
2239
2239
|
key: 0,
|
|
2240
2240
|
type: "datetime"
|
|
2241
|
-
},
|
|
2241
|
+
}, i.$attrs, {
|
|
2242
2242
|
modelValue: n.value,
|
|
2243
|
-
"onUpdate:modelValue":
|
|
2243
|
+
"onUpdate:modelValue": c[3] || (c[3] = (u) => n.value = u),
|
|
2244
2244
|
onChange: r
|
|
2245
2245
|
}), null, 16, ["modelValue"])) : (s(), T("div", ks, k(o.value), 1))
|
|
2246
2246
|
], 64)) : e.itemType === "date" ? (s(), T(M, { key: 4 }, [
|
|
2247
2247
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Ve, A({
|
|
2248
2248
|
key: 0,
|
|
2249
2249
|
type: "date"
|
|
2250
|
-
},
|
|
2250
|
+
}, i.$attrs, {
|
|
2251
2251
|
modelValue: n.value,
|
|
2252
|
-
"onUpdate:modelValue":
|
|
2252
|
+
"onUpdate:modelValue": c[4] || (c[4] = (u) => n.value = u),
|
|
2253
2253
|
onChange: r
|
|
2254
2254
|
}), null, 16, ["modelValue"])) : (s(), T("div", Is, k(o.value), 1))
|
|
2255
2255
|
], 64)) : e.itemType === "dateRange" ? (s(), T(M, { key: 5 }, [
|
|
2256
2256
|
e.actionType === "create" || e.actionType === "update" ? (s(), $(Ve, A({
|
|
2257
2257
|
key: 0,
|
|
2258
2258
|
type: "daterange"
|
|
2259
|
-
},
|
|
2259
|
+
}, i.$attrs, {
|
|
2260
2260
|
modelValue: n.value,
|
|
2261
|
-
"onUpdate:modelValue":
|
|
2261
|
+
"onUpdate:modelValue": c[5] || (c[5] = (u) => n.value = u),
|
|
2262
2262
|
onChange: r
|
|
2263
2263
|
}), null, 16, ["modelValue"])) : (s(), T("div", Ps, k(o.value), 1))
|
|
2264
2264
|
], 64)) : e.itemType === "radio" ? (s(), T(M, { key: 6 }, [
|
|
2265
|
-
e.actionType === "create" || e.actionType === "update" ? (s(), $(Ea, A({ key: 0 },
|
|
2265
|
+
e.actionType === "create" || e.actionType === "update" ? (s(), $(Ea, A({ key: 0 }, i.$attrs, {
|
|
2266
2266
|
modelValue: n.value,
|
|
2267
|
-
"onUpdate:modelValue":
|
|
2267
|
+
"onUpdate:modelValue": c[6] || (c[6] = (u) => n.value = u),
|
|
2268
2268
|
onChange: r
|
|
2269
2269
|
}), null, 16, ["modelValue"])) : (s(), T("div", js, k(o.value), 1))
|
|
2270
2270
|
], 64)) : e.itemType === "checkbox" ? (s(), T(M, { key: 7 }, [
|
|
2271
|
-
e.actionType === "create" || e.actionType === "update" ? (s(), $(Jt, A({ key: 0 },
|
|
2271
|
+
e.actionType === "create" || e.actionType === "update" ? (s(), $(Jt, A({ key: 0 }, i.$attrs, {
|
|
2272
2272
|
modelValue: n.value,
|
|
2273
|
-
"onUpdate:modelValue":
|
|
2273
|
+
"onUpdate:modelValue": c[7] || (c[7] = (u) => n.value = u),
|
|
2274
2274
|
onChange: r
|
|
2275
2275
|
}), null, 16, ["modelValue"])) : (s(), T("div", Ms, k(o.value), 1))
|
|
2276
2276
|
], 64)) : e.itemType === "treeSelect" ? (s(), T(M, { key: 8 }, [
|
|
2277
|
-
e.actionType === "create" || e.actionType === "update" ? (s(), $(Le, A({ key: 0 },
|
|
2277
|
+
e.actionType === "create" || e.actionType === "update" ? (s(), $(Le, A({ key: 0 }, i.$attrs, {
|
|
2278
2278
|
modelValue: n.value,
|
|
2279
|
-
"onUpdate:modelValue":
|
|
2279
|
+
"onUpdate:modelValue": c[8] || (c[8] = (u) => n.value = u),
|
|
2280
2280
|
onChange: r
|
|
2281
2281
|
}), null, 16, ["modelValue"])) : (s(), T("div", Fs, k(o.value), 1))
|
|
2282
2282
|
], 64)) : e.itemType === "multipleTreeSelect" ? (s(), T(M, { key: 9 }, [
|
|
2283
|
-
e.actionType === "create" || e.actionType === "update" ? (s(), $(Le, A({ key: 0 },
|
|
2283
|
+
e.actionType === "create" || e.actionType === "update" ? (s(), $(Le, A({ key: 0 }, i.$attrs, {
|
|
2284
2284
|
modelValue: n.value,
|
|
2285
|
-
"onUpdate:modelValue":
|
|
2285
|
+
"onUpdate:modelValue": c[9] || (c[9] = (u) => n.value = u),
|
|
2286
2286
|
multiple: "",
|
|
2287
2287
|
onChange: r
|
|
2288
2288
|
}), null, 16, ["modelValue"])) : (s(), T("div", Ls, k(o.value), 1))
|
|
2289
2289
|
], 64)) : e.itemType === "textarea" ? (s(), T(M, { key: 10 }, [
|
|
2290
|
-
e.actionType === "create" || e.actionType === "update" ? (s(), $(
|
|
2290
|
+
e.actionType === "create" || e.actionType === "update" ? (s(), $(Ra, A({ key: 0 }, i.$attrs, {
|
|
2291
2291
|
modelValue: n.value,
|
|
2292
|
-
"onUpdate:modelValue":
|
|
2292
|
+
"onUpdate:modelValue": c[10] || (c[10] = (u) => n.value = u),
|
|
2293
2293
|
onChange: r
|
|
2294
2294
|
}), null, 16, ["modelValue"])) : (s(), T("div", {
|
|
2295
2295
|
key: 1,
|
|
2296
2296
|
class: "detail",
|
|
2297
2297
|
style: xe(f.value)
|
|
2298
2298
|
}, k(o.value), 5))
|
|
2299
|
-
], 64)) :
|
|
2299
|
+
], 64)) : O(i.$slots, "default", { key: 11 }, void 0, !0)
|
|
2300
2300
|
]),
|
|
2301
2301
|
_: 3
|
|
2302
2302
|
}, 8, ["label", "prop", "required"]));
|
|
@@ -2318,7 +2318,7 @@ const Ts = {
|
|
|
2318
2318
|
placement: e.placement
|
|
2319
2319
|
}, {
|
|
2320
2320
|
content: v(() => [
|
|
2321
|
-
|
|
2321
|
+
O(t.$slots, "default", {}, () => [
|
|
2322
2322
|
Y(k(e.tipText), 1)
|
|
2323
2323
|
], !0)
|
|
2324
2324
|
]),
|
|
@@ -2367,12 +2367,12 @@ const Ts = {
|
|
|
2367
2367
|
});
|
|
2368
2368
|
return (o, f) => (s(), $(w(Ye), A({ class: l.value }, o.$attrs, {
|
|
2369
2369
|
"current-page": r.value,
|
|
2370
|
-
"onUpdate:currentPage": f[0] || (f[0] = (
|
|
2370
|
+
"onUpdate:currentPage": f[0] || (f[0] = (i) => r.value = i),
|
|
2371
2371
|
"page-size": d.value,
|
|
2372
|
-
"onUpdate:pageSize": f[1] || (f[1] = (
|
|
2372
|
+
"onUpdate:pageSize": f[1] || (f[1] = (i) => d.value = i)
|
|
2373
2373
|
}), {
|
|
2374
2374
|
default: v(() => [
|
|
2375
|
-
|
|
2375
|
+
O(o.$slots, "default", {}, void 0, !0)
|
|
2376
2376
|
]),
|
|
2377
2377
|
_: 3
|
|
2378
2378
|
}, 16, ["class", "current-page", "page-size"]));
|
|
@@ -2407,23 +2407,25 @@ const Ts = {
|
|
|
2407
2407
|
const t = ae(() => Promise.resolve().then(() => Zs)), n = Object.fromEntries(
|
|
2408
2408
|
Object.entries(/* @__PURE__ */ Object.assign({ "../column-component/ExampleItem.vue": () => import("./ExampleItem-DwhALQGq.js") })).map(([o, f]) => [o.replace(/^.*[\\/]/, "").replace(/\.\w+$/, ""), ae(f)])
|
|
2409
2409
|
), l = ae(() => Promise.resolve().then(() => Xt)), r = (o, f = "YYYY-MM-DD HH:mm:ss") => o ? le(o).format(f) : "", d = (o, f) => {
|
|
2410
|
-
const
|
|
2411
|
-
return
|
|
2410
|
+
const i = o[f.property];
|
|
2411
|
+
return i == null || i === "" ? "-" : i;
|
|
2412
2412
|
};
|
|
2413
|
-
return (o, f) => (s(!0), T(M, null, J(e.options, (
|
|
2414
|
-
key:
|
|
2415
|
-
formatter: d
|
|
2413
|
+
return (o, f) => (s(!0), T(M, null, J(e.options, (i) => (s(), $(w(qe), A({ ref_for: !0 }, w(rs)(i, "children", "align"), {
|
|
2414
|
+
key: i.prop,
|
|
2415
|
+
formatter: d,
|
|
2416
|
+
align: i.align ?? "center",
|
|
2417
|
+
showOverflowTooltip: typeof i.showOverflowTooltip == "boolean" ? i.showOverflowTooltip : !0
|
|
2416
2418
|
}), ne({
|
|
2417
2419
|
default: v(() => [
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
+
i?.children?.length ? (s(), T(M, { key: 0 }, [
|
|
2421
|
+
O(o.$slots, "default", {}, void 0, !0),
|
|
2420
2422
|
B(w(t), {
|
|
2421
|
-
options:
|
|
2423
|
+
options: i.children
|
|
2422
2424
|
}, ne({ _: 2 }, [
|
|
2423
|
-
J(Object.keys(o.$slots).filter((
|
|
2424
|
-
name:
|
|
2425
|
+
J(Object.keys(o.$slots).filter((c) => c.match("slot_")), (c) => ({
|
|
2426
|
+
name: c,
|
|
2425
2427
|
fn: v((u) => [
|
|
2426
|
-
|
|
2428
|
+
O(o.$slots, c, A({ ref_for: !0 }, u), void 0, !0)
|
|
2427
2429
|
])
|
|
2428
2430
|
}))
|
|
2429
2431
|
]), 1032, ["options"])
|
|
@@ -2431,14 +2433,14 @@ const Ts = {
|
|
|
2431
2433
|
]),
|
|
2432
2434
|
_: 2
|
|
2433
2435
|
}, [
|
|
2434
|
-
|
|
2436
|
+
i.itemType ? {
|
|
2435
2437
|
name: "default",
|
|
2436
|
-
fn: v((
|
|
2437
|
-
|
|
2438
|
-
(s(!0), T(M, null, J(
|
|
2438
|
+
fn: v((c) => [
|
|
2439
|
+
i.itemType === "operation" ? (s(), T("div", Ks, [
|
|
2440
|
+
(s(!0), T(M, null, J(i.buttons?.filter((u) => i?.opShow?.(c.row, u.label, u.name) ?? !0), (u, h) => (s(), $(w(l), A({
|
|
2439
2441
|
key: "button" + h
|
|
2440
2442
|
}, { ref_for: !0 }, u, {
|
|
2441
|
-
click: () => u?.click?.(
|
|
2443
|
+
click: () => u?.click?.(c.row)
|
|
2442
2444
|
}), {
|
|
2443
2445
|
default: v(() => [
|
|
2444
2446
|
Y(k(u.label), 1)
|
|
@@ -2446,40 +2448,40 @@ const Ts = {
|
|
|
2446
2448
|
_: 2
|
|
2447
2449
|
}, 1040, ["click"]))), 128))
|
|
2448
2450
|
])) : F("", !0),
|
|
2449
|
-
|
|
2450
|
-
B(w(l), A({ class: "button-item" }, { ref_for: !0 },
|
|
2451
|
-
click: () =>
|
|
2451
|
+
i.itemType === "button" ? (s(), T("div", Xs, [
|
|
2452
|
+
B(w(l), A({ class: "button-item" }, { ref_for: !0 }, i, {
|
|
2453
|
+
click: () => i?.click?.(c.row)
|
|
2452
2454
|
}), {
|
|
2453
2455
|
default: v(() => [
|
|
2454
|
-
Y(k(
|
|
2456
|
+
Y(k(c.row[i.prop]), 1)
|
|
2455
2457
|
]),
|
|
2456
2458
|
_: 2
|
|
2457
2459
|
}, 1040, ["click"])
|
|
2458
2460
|
])) : F("", !0),
|
|
2459
|
-
|
|
2460
|
-
Y(k(r(
|
|
2461
|
+
i.itemType === "formatTime" ? (s(), T(M, { key: 2 }, [
|
|
2462
|
+
Y(k(r(c.row[i.prop], i.format)), 1)
|
|
2461
2463
|
], 64)) : F("", !0),
|
|
2462
|
-
|
|
2463
|
-
Y(k(
|
|
2464
|
+
i.itemType === "appendStr" ? (s(), T(M, { key: 3 }, [
|
|
2465
|
+
Y(k(c.row[i.prop]) + k(i.appendStr), 1)
|
|
2464
2466
|
], 64)) : F("", !0),
|
|
2465
|
-
|
|
2467
|
+
i.itemType === "slot" ? O(o.$slots, i.slotName, A({
|
|
2466
2468
|
key: 4,
|
|
2467
2469
|
ref_for: !0
|
|
2468
|
-
},
|
|
2469
|
-
row:
|
|
2470
|
+
}, i, {
|
|
2471
|
+
row: c.row
|
|
2470
2472
|
}), void 0, !0) : F("", !0),
|
|
2471
|
-
|
|
2473
|
+
i.itemType === "custom" && i.componentName ? (s(), $(Ge(w(n)[i.componentName]), A({
|
|
2472
2474
|
key: 5,
|
|
2473
2475
|
ref_for: !0
|
|
2474
|
-
},
|
|
2475
|
-
row:
|
|
2476
|
+
}, i, {
|
|
2477
|
+
row: c.row
|
|
2476
2478
|
}), null, 16, ["row"])) : F("", !0)
|
|
2477
2479
|
]),
|
|
2478
2480
|
key: "0"
|
|
2479
2481
|
} : void 0
|
|
2480
|
-
]), 1040))), 128));
|
|
2482
|
+
]), 1040, ["align", "showOverflowTooltip"]))), 128));
|
|
2481
2483
|
}
|
|
2482
|
-
}), Va = /* @__PURE__ */ X(Js, [["__scopeId", "data-v-
|
|
2484
|
+
}), Va = /* @__PURE__ */ X(Js, [["__scopeId", "data-v-c061988f"]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2483
2485
|
__proto__: null,
|
|
2484
2486
|
default: Va
|
|
2485
2487
|
}, Symbol.toStringTag, { value: "Module" })), Qs = { class: "top-module" }, ei = { class: "left" }, ti = { class: "right" }, ai = /* @__PURE__ */ N({
|
|
@@ -2512,14 +2514,14 @@ const Ts = {
|
|
|
2512
2514
|
n("exportTable");
|
|
2513
2515
|
}
|
|
2514
2516
|
return (o, f) => {
|
|
2515
|
-
const
|
|
2517
|
+
const i = fe("ra-tree-select"), c = fe("ra-button");
|
|
2516
2518
|
return s(), T("div", Qs, [
|
|
2517
2519
|
U("div", ei, [
|
|
2518
|
-
|
|
2520
|
+
O(o.$slots, "topModuleLeft", {}, void 0, !0)
|
|
2519
2521
|
]),
|
|
2520
2522
|
U("div", ti, [
|
|
2521
|
-
|
|
2522
|
-
e.enableFilterColumn ? (s(), $(
|
|
2523
|
+
O(o.$slots, "rightModuleLeft", {}, void 0, !0),
|
|
2524
|
+
e.enableFilterColumn ? (s(), $(i, {
|
|
2523
2525
|
key: 0,
|
|
2524
2526
|
class: "tree-select-wrap",
|
|
2525
2527
|
style: { width: "10.41667vw" },
|
|
@@ -2533,8 +2535,8 @@ const Ts = {
|
|
|
2533
2535
|
placeholder: "显示列",
|
|
2534
2536
|
"value-consists-of": "LEAF_PRIORITY"
|
|
2535
2537
|
}, null, 8, ["modelValue", "options"])) : F("", !0),
|
|
2536
|
-
|
|
2537
|
-
l.value ? (s(), $(
|
|
2538
|
+
O(o.$slots, "rightModuleCenter", {}, void 0, !0),
|
|
2539
|
+
l.value ? (s(), $(c, {
|
|
2538
2540
|
key: 1,
|
|
2539
2541
|
class: "export-button-module",
|
|
2540
2542
|
onClick: d,
|
|
@@ -2547,7 +2549,7 @@ const Ts = {
|
|
|
2547
2549
|
]),
|
|
2548
2550
|
_: 1
|
|
2549
2551
|
}, 8, ["icon"])) : F("", !0),
|
|
2550
|
-
|
|
2552
|
+
O(o.$slots, "rightModuleRight", {}, void 0, !0)
|
|
2551
2553
|
])
|
|
2552
2554
|
]);
|
|
2553
2555
|
};
|
|
@@ -2602,11 +2604,11 @@ const ri = {
|
|
|
2602
2604
|
U("div", {
|
|
2603
2605
|
style: xe({ paddingTop: r.$slots.pageLeft ? "0.52083vw" : "0" })
|
|
2604
2606
|
}, [
|
|
2605
|
-
|
|
2607
|
+
O(r.$slots, "pageLeft", {}, void 0, !0)
|
|
2606
2608
|
], 4),
|
|
2607
2609
|
U("div", li, [
|
|
2608
2610
|
r.$slots.pageTotalLeft ? (s(), T("div", oi, [
|
|
2609
|
-
|
|
2611
|
+
O(r.$slots, "pageTotalLeft", {}, void 0, !0)
|
|
2610
2612
|
])) : F("", !0),
|
|
2611
2613
|
e.pageReqType === "manually" ? (s(), $(w(Ye), {
|
|
2612
2614
|
key: 1,
|
|
@@ -2638,7 +2640,7 @@ const ri = {
|
|
|
2638
2640
|
__name: "index",
|
|
2639
2641
|
props: {
|
|
2640
2642
|
// @doc table的loading状态
|
|
2641
|
-
tableKey: { type: [Number, String], default:
|
|
2643
|
+
tableKey: { type: [Number, String], default: Oa() },
|
|
2642
2644
|
// @doc table的loading状态
|
|
2643
2645
|
loading: { type: Boolean, default: !1 },
|
|
2644
2646
|
// @doc 表格数据,同原组件
|
|
@@ -2689,13 +2691,13 @@ const ri = {
|
|
|
2689
2691
|
pageNum: 1,
|
|
2690
2692
|
pageSize: n.defaultPageSize,
|
|
2691
2693
|
pageTotal: n.paginationType === "manually" ? n.data.length : n.total
|
|
2692
|
-
}), d = I(() => n.cssStyle === "1" ? "common-style" : ""), o = I(() => n.border !== void 0 ? n.border : (n.cssStyle === "1", !1)), f = I(() => n.stripe !== void 0 ? n.stripe : n.cssStyle === "1"),
|
|
2694
|
+
}), d = I(() => n.cssStyle === "1" ? "common-style" : ""), o = I(() => n.border !== void 0 ? n.border : (n.cssStyle === "1", !1)), f = I(() => n.stripe !== void 0 ? n.stripe : n.cssStyle === "1"), i = I(() => {
|
|
2693
2695
|
if (n.paginationType === "manually") {
|
|
2694
2696
|
const S = (r.pageNum - 1) * r.pageSize, P = S + r.pageSize;
|
|
2695
2697
|
return n.data.slice(S, P);
|
|
2696
2698
|
} else
|
|
2697
2699
|
return n.data;
|
|
2698
|
-
}),
|
|
2700
|
+
}), c = W(n.defaultColumnKeys ?? []), u = I(() => {
|
|
2699
2701
|
const S = Te(n.options).filter((L) => !["operation"].includes(L.itemType));
|
|
2700
2702
|
return ka(S, "label", "prop", "children");
|
|
2701
2703
|
});
|
|
@@ -2709,24 +2711,24 @@ const ri = {
|
|
|
2709
2711
|
L?.length && (S.push(P.value), S.push(...L));
|
|
2710
2712
|
} else
|
|
2711
2713
|
P.firstHide || S.push(P.value);
|
|
2712
|
-
}),
|
|
2714
|
+
}), c.value = S;
|
|
2713
2715
|
},
|
|
2714
2716
|
{ deep: !0, immediate: !0 }
|
|
2715
2717
|
);
|
|
2716
2718
|
const h = I(() => {
|
|
2717
2719
|
if (n.enableFilterColumn) {
|
|
2718
|
-
const S = Te(n.options).find((b) => b.itemType && ["operation"].includes(b.itemType)), P = Te(n.options).filter((b) => !b.itemType || !["operation"].includes(b.itemType)), L = Ia(
|
|
2720
|
+
const S = Te(n.options).find((b) => b.itemType && ["operation"].includes(b.itemType)), P = Te(n.options).filter((b) => !b.itemType || !["operation"].includes(b.itemType)), L = Ia(c.value, P, "prop");
|
|
2719
2721
|
return S && L.push(S), L;
|
|
2720
2722
|
} else
|
|
2721
2723
|
return Te(n.options);
|
|
2722
|
-
}),
|
|
2724
|
+
}), R = (S, P = "12px Microsoft YaHei") => {
|
|
2723
2725
|
const b = document.createElement("canvas").getContext("2d");
|
|
2724
2726
|
if (!b) return 60;
|
|
2725
2727
|
b.font = P;
|
|
2726
2728
|
const V = b.measureText(S);
|
|
2727
2729
|
return Math.ceil(V.width);
|
|
2728
2730
|
}, y = I(() => {
|
|
2729
|
-
const P = (r.pageNum - 1) * r.pageSize + 1 + r.pageSize - 1, L =
|
|
2731
|
+
const P = (r.pageNum - 1) * r.pageSize + 1 + r.pageSize - 1, L = R(String(P)) + 20;
|
|
2730
2732
|
return L < 60 ? "60px" : L + "px";
|
|
2731
2733
|
}), E = () => {
|
|
2732
2734
|
l("exportTable");
|
|
@@ -2771,8 +2773,8 @@ const ri = {
|
|
|
2771
2773
|
}), (S, P) => (s(), T("div", ii, [
|
|
2772
2774
|
e.enableTopLine ? (s(), $(ni, {
|
|
2773
2775
|
key: 0,
|
|
2774
|
-
modelValue:
|
|
2775
|
-
"onUpdate:modelValue": P[0] || (P[0] = (L) =>
|
|
2776
|
+
modelValue: c.value,
|
|
2777
|
+
"onUpdate:modelValue": P[0] || (P[0] = (L) => c.value = L),
|
|
2776
2778
|
onExportTable: E,
|
|
2777
2779
|
pageTotal: r.pageTotal,
|
|
2778
2780
|
selectOptions: u.value,
|
|
@@ -2781,16 +2783,16 @@ const ri = {
|
|
|
2781
2783
|
exportNumberLimit: e.exportNumberLimit
|
|
2782
2784
|
}, {
|
|
2783
2785
|
topModuleLeft: v(() => [
|
|
2784
|
-
|
|
2786
|
+
O(S.$slots, "topModuleLeft", {}, void 0, !0)
|
|
2785
2787
|
]),
|
|
2786
2788
|
rightModuleLeft: v(() => [
|
|
2787
|
-
|
|
2789
|
+
O(S.$slots, "rightModuleLeft", {}, void 0, !0)
|
|
2788
2790
|
]),
|
|
2789
2791
|
rightModuleCenter: v(() => [
|
|
2790
|
-
|
|
2792
|
+
O(S.$slots, "rightModuleCenter", {}, void 0, !0)
|
|
2791
2793
|
]),
|
|
2792
2794
|
rightModuleRight: v(() => [
|
|
2793
|
-
|
|
2795
|
+
O(S.$slots, "rightModuleRight", {}, void 0, !0)
|
|
2794
2796
|
]),
|
|
2795
2797
|
_: 3
|
|
2796
2798
|
}, 8, ["modelValue", "pageTotal", "selectOptions", "enableFilterColumn", "exportButtonText", "exportNumberLimit"])) : F("", !0),
|
|
@@ -2800,7 +2802,7 @@ const ri = {
|
|
|
2800
2802
|
ref_key: "componentRef",
|
|
2801
2803
|
ref: _
|
|
2802
2804
|
}, S.$attrs, {
|
|
2803
|
-
data:
|
|
2805
|
+
data: i.value,
|
|
2804
2806
|
border: o.value,
|
|
2805
2807
|
stripe: f.value
|
|
2806
2808
|
}), ne({
|
|
@@ -2823,8 +2825,8 @@ const ri = {
|
|
|
2823
2825
|
]),
|
|
2824
2826
|
_: 1
|
|
2825
2827
|
}, 8, ["label", "width", "fixed"])) : F("", !0),
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
+
O(S.$slots, "default", {}, void 0, !0),
|
|
2829
|
+
O(S.$slots, "tableColumnBefore", {}, void 0, !0),
|
|
2828
2830
|
h.value?.length ? (s(), $(Va, {
|
|
2829
2831
|
key: 2,
|
|
2830
2832
|
options: h.value
|
|
@@ -2832,7 +2834,7 @@ const ri = {
|
|
|
2832
2834
|
J(Object.keys(S.$slots).filter((L) => L.match("slot_")), (L) => ({
|
|
2833
2835
|
name: L,
|
|
2834
2836
|
fn: v((b) => [
|
|
2835
|
-
|
|
2837
|
+
O(S.$slots, L, Qe(et(b)), void 0, !0)
|
|
2836
2838
|
])
|
|
2837
2839
|
}))
|
|
2838
2840
|
]), 1032, ["options"])) : F("", !0)
|
|
@@ -2842,14 +2844,14 @@ const ri = {
|
|
|
2842
2844
|
S.$slots.append ? {
|
|
2843
2845
|
name: "append",
|
|
2844
2846
|
fn: v(() => [
|
|
2845
|
-
|
|
2847
|
+
O(S.$slots, "append", {}, void 0, !0)
|
|
2846
2848
|
]),
|
|
2847
2849
|
key: "0"
|
|
2848
2850
|
} : void 0,
|
|
2849
2851
|
S.$slots.empty ? {
|
|
2850
2852
|
name: "empty",
|
|
2851
2853
|
fn: v(() => [
|
|
2852
|
-
|
|
2854
|
+
O(S.$slots, "empty", {}, void 0, !0)
|
|
2853
2855
|
]),
|
|
2854
2856
|
key: "1"
|
|
2855
2857
|
} : void 0
|
|
@@ -2869,10 +2871,10 @@ const ri = {
|
|
|
2869
2871
|
paginationButtonNumber: e.paginationButtonNumber
|
|
2870
2872
|
}, {
|
|
2871
2873
|
pageLeft: v(() => [
|
|
2872
|
-
|
|
2874
|
+
O(S.$slots, "pageLeft", {}, void 0, !0)
|
|
2873
2875
|
]),
|
|
2874
2876
|
pageTotalLeft: v(() => [
|
|
2875
|
-
|
|
2877
|
+
O(S.$slots, "pageTotalLeft", {}, void 0, !0)
|
|
2876
2878
|
]),
|
|
2877
2879
|
_: 3
|
|
2878
2880
|
}, 8, ["pageReqType", "pageSize", "pageNum", "paginationLayout", "pageTotal", "paginationButtonNumber"])
|
|
@@ -2902,10 +2904,10 @@ const ri = {
|
|
|
2902
2904
|
ref: a
|
|
2903
2905
|
}, r.$attrs, { "open-delay": e.openDelay }), {
|
|
2904
2906
|
content: v(() => [
|
|
2905
|
-
|
|
2907
|
+
O(r.$slots, "content")
|
|
2906
2908
|
]),
|
|
2907
2909
|
default: v(() => [
|
|
2908
|
-
|
|
2910
|
+
O(r.$slots, "default")
|
|
2909
2911
|
]),
|
|
2910
2912
|
_: 3
|
|
2911
2913
|
}, 16, ["open-delay"]));
|
|
@@ -2985,15 +2987,15 @@ const ri = {
|
|
|
2985
2987
|
l("update:modelValue", p), l("change", g, p);
|
|
2986
2988
|
}, f = (g, p, _) => {
|
|
2987
2989
|
l("success", g, p, _);
|
|
2988
|
-
},
|
|
2990
|
+
}, i = (g, p, _) => {
|
|
2989
2991
|
l("error", g, p, _);
|
|
2990
|
-
},
|
|
2992
|
+
}, c = (g, p) => {
|
|
2991
2993
|
l("update:modelValue", p), l("remove", g);
|
|
2992
2994
|
}, u = (g) => {
|
|
2993
2995
|
E.value?.handleRemove(g);
|
|
2994
2996
|
}, h = (g) => {
|
|
2995
2997
|
l("download", g);
|
|
2996
|
-
},
|
|
2998
|
+
}, R = (g, p) => {
|
|
2997
2999
|
yt.error(`文件超出限制,最多只能上传 ${n.limit} 个文件!`), l("exceed", g, p);
|
|
2998
3000
|
}, y = (g) => {
|
|
2999
3001
|
const p = n.maxSize * 1024 * 1024;
|
|
@@ -3022,9 +3024,9 @@ const ri = {
|
|
|
3022
3024
|
"before-upload": y,
|
|
3023
3025
|
"on-change": o,
|
|
3024
3026
|
"on-success": f,
|
|
3025
|
-
"on-error":
|
|
3026
|
-
"on-remove":
|
|
3027
|
-
"on-exceed":
|
|
3027
|
+
"on-error": i,
|
|
3028
|
+
"on-remove": c,
|
|
3029
|
+
"on-exceed": R
|
|
3028
3030
|
}), ne({
|
|
3029
3031
|
default: v(() => [
|
|
3030
3032
|
e.listType === "text" ? (s(), T(M, { key: 0 }, [
|
|
@@ -3125,11 +3127,11 @@ const ri = {
|
|
|
3125
3127
|
Fe,
|
|
3126
3128
|
Ws,
|
|
3127
3129
|
di,
|
|
3128
|
-
|
|
3130
|
+
Ra,
|
|
3129
3131
|
fi,
|
|
3130
3132
|
Le,
|
|
3131
3133
|
xi
|
|
3132
|
-
],
|
|
3134
|
+
], Ri = (e) => {
|
|
3133
3135
|
_i.forEach((t) => {
|
|
3134
3136
|
e.component(t.name, t);
|
|
3135
3137
|
});
|
|
@@ -3150,10 +3152,10 @@ export {
|
|
|
3150
3152
|
Fe as RaSelect,
|
|
3151
3153
|
Ws as RaSvg,
|
|
3152
3154
|
di as RaTable,
|
|
3153
|
-
|
|
3155
|
+
Ra as RaTextarea,
|
|
3154
3156
|
fi as RaToolTip,
|
|
3155
3157
|
Le as RaTreeSelect,
|
|
3156
3158
|
xi as RaUpload,
|
|
3157
|
-
|
|
3159
|
+
Ri as default
|
|
3158
3160
|
};
|
|
3159
3161
|
//# sourceMappingURL=ra-element.es.js.map
|