asiaint-lowcode 3.1.136 → 3.1.139
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 +31 -31
- package/dist/asiaint-lowcode.d.ts +28 -13
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +172 -171
- package/dist/lazy/{Card-_QHrWfh1.js → Card-BTOGiiFk.js} +8 -8
- package/dist/lazy/{Cascader-CSS81vHb.js → Cascader-D5Npj_J3.js} +5 -4
- package/dist/lazy/{Checkbox-DAApla45.js → Checkbox-Cr7IUX2L.js} +3 -2
- package/dist/lazy/{Collapse-_FkmzGfa.js → Collapse-Dx5MZzYK.js} +1 -1
- package/dist/lazy/{Component-CjoqXHaM.js → Component-BIkyG3qG.js} +2 -2
- package/dist/lazy/{Component-DA4fNiKb.js → Component-BmUWJTHt.js} +1 -1
- package/dist/lazy/{Component-D3p0iztO.js → Component-CDclw9Z9.js} +2 -2
- package/dist/lazy/{Component-CopvG4ii.js → Component-Ckpht8pc.js} +1 -1
- package/dist/lazy/{Component-BoTXYxC9.js → Component-D3HVwOpC.js} +2 -2
- package/dist/lazy/{CurdCard-CwkoYUjU.js → CurdCard-DTR0sIBq.js} +2 -2
- package/dist/lazy/Custom-T6BRc5hT.js +26 -0
- package/dist/lazy/{DatePicker-CTscM3QD.js → DatePicker-BdlkQqRE.js} +1 -1
- package/dist/lazy/{DragList-Dnqi6G3I.js → DragList-E_EZeOyA.js} +13 -13
- package/dist/lazy/{FilterSearch-BSpH-2Lv.js → FilterSearch-bdyx2RJS.js} +2 -2
- package/dist/lazy/{FloatCurd-ljGcmC6W.js → FloatCurd-CP_tH8tY.js} +2 -2
- package/dist/lazy/{FormList-D7puBzTU.js → FormList-Dyg_JXxQ.js} +1 -1
- package/dist/lazy/{Grid-Pn2z-cPo.js → Grid-CIzv77uP.js} +1 -1
- package/dist/lazy/{InfiniteScroll-eztx5ree.js → InfiniteScroll-BlT1x8Z-.js} +4 -4
- package/dist/lazy/{Inline-CegvT-Fd.js → Inline-D5dPf9ZU.js} +3 -3
- package/dist/lazy/{JsonEdit-BDY-kDjg.js → JsonEdit-CHi0JSJt.js} +3 -3
- package/dist/lazy/{LogList-CBkzwln7.js → LogList-DjGC7Wwz.js} +7 -7
- package/dist/lazy/{ObjGroup-UBhz9TtW.js → ObjGroup-JDm0lS70.js} +1 -1
- package/dist/lazy/{OfferDetails-D4REtztW.js → OfferDetails-LQRW8PQO.js} +9 -8
- package/dist/lazy/{Pagination-D0VE2g-_.js → Pagination-DsXpzy8L.js} +2 -2
- package/dist/lazy/{Progress-YomjNyOG.js → Progress-VvRhpxOo.js} +15 -15
- package/dist/lazy/{Radio-OBwJIsHr.js → Radio-HS5f2CyF.js} +4 -3
- package/dist/lazy/{SearchSelect-D0WS8DvA.js → SearchSelect-f8uSdUbq.js} +10 -9
- package/dist/lazy/{Select-DdU6S88e.js → Select-BgVSf4DU.js} +33 -23
- package/dist/lazy/{Table-CkRwW1pF.js → Table-DdtPKKwg.js} +26 -25
- package/dist/lazy/Tabs-exO8g-T4.js +150 -0
- package/dist/lazy/{TextArea-Gyze6BKD.js → TextArea-BaPPb6ip.js} +3 -3
- package/dist/lazy/{Wrapper-DebHZiUt.js → Wrapper-CCNJ2-wm.js} +4 -4
- package/dist/lazy/{index-Cg69BrL8.js → index-ql-DE2T2.js} +1408 -1393
- package/dist/lazy/{useSelect--vt9GSVO.js → useSelect-DmoGseuL.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +1 -1
- package/dist/lazy/Custom-CkS4wS5a.js +0 -26
- package/dist/lazy/Tabs-YodEJRwl.js +0 -144
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as T, mergeModels as w, useModel as F, inject as g, resolveComponent as i, resolveDirective as S, openBlock as o, createElementBlock as c, toDisplayString as z, unref as u, withDirectives as I, createBlock as f, mergeProps as h, withCtx as K, createVNode as $, Fragment as C, renderList as k } from "vue";
|
|
2
|
-
import { u as N, _ as O } from "./index-
|
|
3
|
-
import { u as P } from "./useSelect
|
|
2
|
+
import { u as N, _ as O } from "./index-ql-DE2T2.js";
|
|
3
|
+
import { u as P } from "./useSelect-DmoGseuL.js";
|
|
4
4
|
const R = { key: 0 }, j = /* @__PURE__ */ T({
|
|
5
5
|
__name: "Radio",
|
|
6
6
|
props: /* @__PURE__ */ w({
|
|
@@ -15,6 +15,7 @@ const R = { key: 0 }, j = /* @__PURE__ */ T({
|
|
|
15
15
|
dependentFields: {},
|
|
16
16
|
name: { default: "" },
|
|
17
17
|
onChange: {},
|
|
18
|
+
onClear: {},
|
|
18
19
|
read: { type: Boolean },
|
|
19
20
|
readTextColor: {},
|
|
20
21
|
filters: {},
|
|
@@ -82,7 +83,7 @@ onChange: ${l.onChange}`);
|
|
|
82
83
|
]);
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
|
-
}), q = /* @__PURE__ */ O(j, [["__scopeId", "data-v-
|
|
86
|
+
}), q = /* @__PURE__ */ O(j, [["__scopeId", "data-v-1e24870a"]]);
|
|
86
87
|
export {
|
|
87
88
|
q as default
|
|
88
89
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as w, mergeModels as F, useModel as $, inject as
|
|
2
|
-
import { u as T, a as E, _ as L } from "./index-
|
|
3
|
-
import { u as U } from "./useSelect
|
|
1
|
+
import { defineComponent as w, mergeModels as F, useModel as $, inject as C, resolveComponent as f, resolveDirective as A, openBlock as t, createElementBlock as i, toDisplayString as h, unref as u, withDirectives as I, createBlock as K, mergeProps as N, withCtx as y, Fragment as j, renderList as O, createTextVNode as P, createVNode as k } from "vue";
|
|
2
|
+
import { u as T, a as E, _ as L } from "./index-ql-DE2T2.js";
|
|
3
|
+
import { u as U } from "./useSelect-DmoGseuL.js";
|
|
4
4
|
const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "search-select-wrapper"
|
|
@@ -22,6 +22,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
22
22
|
dependentFields: {},
|
|
23
23
|
name: { default: "" },
|
|
24
24
|
onChange: {},
|
|
25
|
+
onClear: {},
|
|
25
26
|
readTextColor: {},
|
|
26
27
|
filters: {},
|
|
27
28
|
refreshFlag: { type: Boolean },
|
|
@@ -32,11 +33,11 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
32
33
|
modelModifiers: {}
|
|
33
34
|
}),
|
|
34
35
|
emits: ["update:modelValue"],
|
|
35
|
-
setup(
|
|
36
|
-
const l =
|
|
36
|
+
setup(b) {
|
|
37
|
+
const l = b, r = $(b, "modelValue"), v = T(), c = C("ruleModule", void 0), g = C("pageMethodMap", {}), B = (e) => {
|
|
37
38
|
const { valueKey: s = "value", multiple: m, name: p } = l;
|
|
38
39
|
let n = {};
|
|
39
|
-
if (m && Array.isArray(e) ? n = d.value.filter((o) => e.includes(o[s])) : n = d.value.find((o) => o[s] === e) || {},
|
|
40
|
+
if (m && Array.isArray(e) ? n = d.value.filter((o) => e.includes(o[s])) : n = d.value.find((o) => o[s] === e) || {}, v.selectData && p && v.updateSelectData(p, n), l.onChange && c)
|
|
40
41
|
try {
|
|
41
42
|
c[l.onChange](g, e, n);
|
|
42
43
|
} catch (o) {
|
|
@@ -61,7 +62,7 @@ onSearch: ${l.onSearch}`);
|
|
|
61
62
|
return (S = u(d).find((D) => D[e.valueKey] === a)) == null ? void 0 : S[e.labelKey];
|
|
62
63
|
}).join("、")), 1)) : (t(), i("div", G, h(((_ = u(d).find((a) => a[e.valueKey] === r.value)) == null ? void 0 : _[e.labelKey]) || "--"), 1))
|
|
63
64
|
])) : (t(), i("div", H, [
|
|
64
|
-
I((t(),
|
|
65
|
+
I((t(), K(p, N({
|
|
65
66
|
modelValue: r.value,
|
|
66
67
|
"onUpdate:modelValue": s[0] || (s[0] = (a) => r.value = a)
|
|
67
68
|
}, e.$attrs, {
|
|
@@ -72,7 +73,7 @@ onSearch: ${l.onSearch}`);
|
|
|
72
73
|
disabled: e.disabled
|
|
73
74
|
}), {
|
|
74
75
|
default: y(() => [
|
|
75
|
-
(t(!0), i(j, null, O(u(d), (a) => (t(),
|
|
76
|
+
(t(!0), i(j, null, O(u(d), (a) => (t(), K(m, {
|
|
76
77
|
key: a[e.valueKey],
|
|
77
78
|
label: a[e.labelKey],
|
|
78
79
|
value: a[e.valueKey],
|
|
@@ -101,7 +102,7 @@ onSearch: ${l.onSearch}`);
|
|
|
101
102
|
]));
|
|
102
103
|
};
|
|
103
104
|
}
|
|
104
|
-
}), X = /* @__PURE__ */ L(J, [["__scopeId", "data-v-
|
|
105
|
+
}), X = /* @__PURE__ */ L(J, [["__scopeId", "data-v-b14d9207"]]);
|
|
105
106
|
export {
|
|
106
107
|
X as default
|
|
107
108
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as F, mergeModels as J, computed as m, useModel as $, inject as b, ref as x, watch as C, resolveComponent as V, openBlock as p, createElementBlock as K, normalizeStyle as A, toDisplayString as M, createBlock as S, mergeProps as E, unref as T, withCtx as y, createElementVNode as u, Fragment as j, renderList as I, createTextVNode as P } from "vue";
|
|
2
|
+
import { u as R } from "./index-ql-DE2T2.js";
|
|
3
|
+
import { u as z } from "./useSelect-DmoGseuL.js";
|
|
4
|
+
const L = { style: { "min-height": "32px" } }, G = /* @__PURE__ */ F({
|
|
5
5
|
__name: "Select",
|
|
6
|
-
props: /* @__PURE__ */
|
|
6
|
+
props: /* @__PURE__ */ J({
|
|
7
7
|
options: { default: () => [] },
|
|
8
8
|
defaultOptions: {},
|
|
9
9
|
multiple: { type: Boolean, default: !1 },
|
|
@@ -16,6 +16,7 @@ const z = { style: { "min-height": "32px" } }, q = /* @__PURE__ */ D({
|
|
|
16
16
|
dependentFields: {},
|
|
17
17
|
name: { default: "" },
|
|
18
18
|
onChange: {},
|
|
19
|
+
onClear: {},
|
|
19
20
|
read: { type: Boolean },
|
|
20
21
|
readTextColor: {},
|
|
21
22
|
filters: {},
|
|
@@ -27,18 +28,26 @@ const z = { style: { "min-height": "32px" } }, q = /* @__PURE__ */ D({
|
|
|
27
28
|
modelModifiers: {}
|
|
28
29
|
}),
|
|
29
30
|
emits: ["update:modelValue"],
|
|
30
|
-
setup(
|
|
31
|
-
const l =
|
|
31
|
+
setup(v) {
|
|
32
|
+
const l = v, k = m(() => l.clearable === null || l.clearable === void 0 ? !0 : !!l.clearable), a = $(v, "modelValue"), f = R(), w = m(() => l.read || f.schema.read), c = b("ruleModule", void 0), h = b("pageMethodMap", {}), B = (e) => {
|
|
32
33
|
const { valueKey: t = "value", multiple: r, name: n } = l;
|
|
33
34
|
let o = {};
|
|
34
|
-
if (r && Array.isArray(e) ? o = s.value.filter((i) => e.includes(i[t])) : o = s.value.find((i) => i[t] === e) || {},
|
|
35
|
+
if (r && Array.isArray(e) ? o = s.value.filter((i) => e.includes(i[t])) : o = s.value.find((i) => i[t] === e) || {}, f.selectData && n && f.updateSelectData(n, o), l.onChange && c)
|
|
35
36
|
try {
|
|
36
|
-
|
|
37
|
+
c[l.onChange](h, e, o);
|
|
37
38
|
} catch (i) {
|
|
38
39
|
console.error(i + `
|
|
39
40
|
onChange: ${l.onChange}`);
|
|
40
41
|
}
|
|
41
|
-
},
|
|
42
|
+
}, N = () => {
|
|
43
|
+
if (l.onClear && c)
|
|
44
|
+
try {
|
|
45
|
+
c[l.onClear](h);
|
|
46
|
+
} catch (e) {
|
|
47
|
+
console.error(e + `
|
|
48
|
+
onClear: ${l.onClear}`);
|
|
49
|
+
}
|
|
50
|
+
}, { currentOptions: d, loading: O } = z(l), s = x(JSON.parse(JSON.stringify(d.value))), D = m(() => {
|
|
42
51
|
var t;
|
|
43
52
|
if (l.multiple)
|
|
44
53
|
return s.value.filter(
|
|
@@ -47,12 +56,12 @@ onChange: ${l.onChange}`);
|
|
|
47
56
|
const e = (t = s.value.find((r) => r[l.valueKey] === a.value)) == null ? void 0 : t[l.labelKey];
|
|
48
57
|
return !e || `${e}`.trim().length === 0 ? "--" : e;
|
|
49
58
|
});
|
|
50
|
-
|
|
59
|
+
C(
|
|
51
60
|
() => a,
|
|
52
61
|
(e) => {
|
|
53
62
|
g();
|
|
54
63
|
}
|
|
55
|
-
),
|
|
64
|
+
), C(
|
|
56
65
|
() => d.value,
|
|
57
66
|
(e) => {
|
|
58
67
|
g();
|
|
@@ -71,24 +80,25 @@ onChange: ${l.onChange}`);
|
|
|
71
80
|
};
|
|
72
81
|
return (e, t) => {
|
|
73
82
|
const r = V("el-option"), n = V("el-select");
|
|
74
|
-
return
|
|
83
|
+
return w.value ? (p(), K("span", {
|
|
75
84
|
key: 0,
|
|
76
85
|
style: A({ color: e.readTextColor })
|
|
77
|
-
},
|
|
86
|
+
}, M(D.value), 5)) : (p(), S(n, E({
|
|
78
87
|
key: 1,
|
|
79
88
|
modelValue: a.value,
|
|
80
89
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => a.value = o)
|
|
81
90
|
}, e.$attrs, {
|
|
82
91
|
onChange: B,
|
|
92
|
+
onClear: N,
|
|
83
93
|
multiple: e.multiple,
|
|
84
|
-
clearable:
|
|
94
|
+
clearable: k.value,
|
|
85
95
|
filterable: "",
|
|
86
96
|
"fallback-placements": ["bottom"],
|
|
87
|
-
loading: T(
|
|
97
|
+
loading: T(O),
|
|
88
98
|
placeholder: "",
|
|
89
99
|
style: { width: e.width }
|
|
90
100
|
}), {
|
|
91
|
-
loading:
|
|
101
|
+
loading: y(() => t[1] || (t[1] = [
|
|
92
102
|
u("svg", {
|
|
93
103
|
class: "circular",
|
|
94
104
|
viewBox: "0 0 20 20"
|
|
@@ -125,16 +135,16 @@ onChange: ${l.onChange}`);
|
|
|
125
135
|
])
|
|
126
136
|
], -1)
|
|
127
137
|
])),
|
|
128
|
-
default:
|
|
129
|
-
u("div",
|
|
130
|
-
(
|
|
138
|
+
default: y(() => [
|
|
139
|
+
u("div", L, [
|
|
140
|
+
(p(!0), K(j, null, I(s.value, (o) => (p(), S(r, {
|
|
131
141
|
key: o[e.valueKey],
|
|
132
142
|
label: o[e.labelKey],
|
|
133
143
|
value: o[e.valueKey],
|
|
134
144
|
disabled: o[e.disabledKey]
|
|
135
145
|
}, {
|
|
136
|
-
default:
|
|
137
|
-
|
|
146
|
+
default: y(() => [
|
|
147
|
+
P(M(o[e.labelKey]), 1)
|
|
138
148
|
]),
|
|
139
149
|
_: 2
|
|
140
150
|
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
@@ -146,5 +156,5 @@ onChange: ${l.onChange}`);
|
|
|
146
156
|
}
|
|
147
157
|
});
|
|
148
158
|
export {
|
|
149
|
-
|
|
159
|
+
G as default
|
|
150
160
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as it, computed as J, inject as U, ref as C, useTemplateRef as st, onMounted as ut, onActivated as ct, onBeforeUnmount as pt, readonly as gt, toRefs as dt, onUnmounted as ht, resolveComponent as T, resolveDirective as vt, openBlock as r, createElementBlock as g, normalizeClass as D, createVNode as y, withCtx as d, createElementVNode as k, toDisplayString as
|
|
2
|
-
import { $ as ft, h as F, j as Ct, i as kt, a as wt, I as M, b as W, C as St, _ as
|
|
3
|
-
import { ElTable as
|
|
1
|
+
import { defineComponent as it, computed as J, inject as U, ref as C, useTemplateRef as st, onMounted as ut, onActivated as ct, onBeforeUnmount as pt, readonly as gt, toRefs as dt, onUnmounted as ht, resolveComponent as T, resolveDirective as vt, openBlock as r, createElementBlock as g, normalizeClass as D, createVNode as y, withCtx as d, createElementVNode as k, toDisplayString as P, unref as h, createCommentVNode as m, createTextVNode as Q, withDirectives as X, createBlock as w, Fragment as _, renderList as we, normalizeStyle as Y, withModifiers as Se, vShow as Pe, mergeProps as mt, nextTick as yt } from "vue";
|
|
2
|
+
import { $ as ft, h as F, j as Ct, i as kt, a as wt, I as M, b as W, C as St, _ as Pt } from "./index-ql-DE2T2.js";
|
|
3
|
+
import { ElTable as bt, ElLoading as be, ElMessage as zt } from "element-plus";
|
|
4
4
|
const Bt = ["id"], Nt = { class: "custom-slot" }, Rt = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "poll-wrapper"
|
|
@@ -50,6 +50,7 @@ const Bt = ["id"], Nt = { class: "custom-slot" }, Rt = {
|
|
|
50
50
|
onPollChange: {},
|
|
51
51
|
showPollCheckbox: { type: Boolean },
|
|
52
52
|
cardStyle: { type: [Boolean, null, String, Object, Array] },
|
|
53
|
+
smallPagination: { type: Boolean },
|
|
53
54
|
name: {},
|
|
54
55
|
gridColumns: {},
|
|
55
56
|
heightDifference: {}
|
|
@@ -138,7 +139,7 @@ handleRowClick: ${o.rowClick}
|
|
|
138
139
|
}, ie = async () => {
|
|
139
140
|
if (i.value.pageNum = 1, !o.sizeChange)
|
|
140
141
|
return;
|
|
141
|
-
const e =
|
|
142
|
+
const e = be.service({
|
|
142
143
|
target: `#${o.name}`,
|
|
143
144
|
text: "Loading..."
|
|
144
145
|
});
|
|
@@ -152,7 +153,7 @@ handleRowClick: ${o.rowClick}
|
|
|
152
153
|
}, se = async () => {
|
|
153
154
|
if (!o.pageChange)
|
|
154
155
|
return;
|
|
155
|
-
const e =
|
|
156
|
+
const e = be.service({
|
|
156
157
|
target: `#${o.name}`,
|
|
157
158
|
text: "Loading..."
|
|
158
159
|
});
|
|
@@ -354,7 +355,7 @@ handleRowClick: ${o.rowClick}
|
|
|
354
355
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => G.value = n),
|
|
355
356
|
onChange: ot
|
|
356
357
|
}, null, 8, ["modelValue"]),
|
|
357
|
-
k("span", null,
|
|
358
|
+
k("span", null, P(h(ce).table.pollText), 1),
|
|
358
359
|
y(s, {
|
|
359
360
|
type: "number",
|
|
360
361
|
style: { width: "45px", height: "28px" },
|
|
@@ -362,13 +363,13 @@ handleRowClick: ${o.rowClick}
|
|
|
362
363
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => f.value = n),
|
|
363
364
|
onChange: at
|
|
364
365
|
}, null, 8, ["modelValue"]),
|
|
365
|
-
k("span", null,
|
|
366
|
+
k("span", null, P(h(ce).table.pollUnit), 1)
|
|
366
367
|
])) : m("", !0),
|
|
367
368
|
k("span", Tt, [
|
|
368
369
|
t[6] || (t[6] = Q("Showing ")),
|
|
369
|
-
k("span", _t,
|
|
370
|
+
k("span", _t, P(ee(p.value.length)), 1),
|
|
370
371
|
t[7] || (t[7] = Q(" of ")),
|
|
371
|
-
k("span", $t,
|
|
372
|
+
k("span", $t, P(ee(I.value)), 1),
|
|
372
373
|
t[8] || (t[8] = Q(" records"))
|
|
373
374
|
])
|
|
374
375
|
])
|
|
@@ -377,7 +378,7 @@ handleRowClick: ${o.rowClick}
|
|
|
377
378
|
}, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
|
|
378
379
|
], 2)) : m("", !0),
|
|
379
380
|
X(k("div", null, [
|
|
380
|
-
X((r(), w(h(
|
|
381
|
+
X((r(), w(h(bt), {
|
|
381
382
|
ref_key: "tableRef",
|
|
382
383
|
ref: N,
|
|
383
384
|
data: p.value,
|
|
@@ -422,7 +423,7 @@ handleRowClick: ${o.rowClick}
|
|
|
422
423
|
k("div", {
|
|
423
424
|
class: "text-ellipsis",
|
|
424
425
|
title: Z(n.label)
|
|
425
|
-
},
|
|
426
|
+
}, P(Z(n.label)), 9, Mt)
|
|
426
427
|
]),
|
|
427
428
|
default: d(({ row: u, $index: l }) => {
|
|
428
429
|
var A, $, Ce, ke;
|
|
@@ -431,15 +432,15 @@ handleRowClick: ${o.rowClick}
|
|
|
431
432
|
key: 0,
|
|
432
433
|
class: D(["text-ellipsis link-style", { "click-style": n.onClick }]),
|
|
433
434
|
title: R(n, u),
|
|
434
|
-
onClick: (
|
|
435
|
-
},
|
|
435
|
+
onClick: (b) => H(n, u, l, b)
|
|
436
|
+
}, P(R(n, u)), 11, xt)) : n.type === "iconText" ? (r(), g("div", Lt, [
|
|
436
437
|
n.iconPosition === "left" ? (r(), g(_, { key: 0 }, [
|
|
437
438
|
n.iconPopover && Array.isArray(K(n, u)) ? (r(), w(O, { key: 0 }, {
|
|
438
439
|
reference: d(() => {
|
|
439
|
-
var
|
|
440
|
+
var b, E;
|
|
440
441
|
return [
|
|
441
442
|
y(M, {
|
|
442
|
-
name: (
|
|
443
|
+
name: (b = B(n, u)) == null ? void 0 : b.name,
|
|
443
444
|
color: (E = B(n, u)) == null ? void 0 : E.color
|
|
444
445
|
}, null, 8, ["name", "color"])
|
|
445
446
|
];
|
|
@@ -459,15 +460,15 @@ handleRowClick: ${o.rowClick}
|
|
|
459
460
|
k("span", {
|
|
460
461
|
class: D(["text-ellipsis", { "click-style": n.onClick }]),
|
|
461
462
|
title: R(n, u),
|
|
462
|
-
onClick: (
|
|
463
|
-
},
|
|
463
|
+
onClick: (b) => H(n, u, l, b)
|
|
464
|
+
}, P(R(n, u)), 11, It),
|
|
464
465
|
n.iconPosition === "right" ? (r(), g(_, { key: 1 }, [
|
|
465
466
|
n.iconPopover && Array.isArray(K(n, u)) ? (r(), w(O, { key: 0 }, {
|
|
466
467
|
reference: d(() => {
|
|
467
|
-
var
|
|
468
|
+
var b, E;
|
|
468
469
|
return [
|
|
469
470
|
y(M, {
|
|
470
|
-
name: (
|
|
471
|
+
name: (b = B(n, u)) == null ? void 0 : b.name,
|
|
471
472
|
color: (E = B(n, u)) == null ? void 0 : E.color
|
|
472
473
|
}, null, 8, ["name", "color"])
|
|
473
474
|
];
|
|
@@ -493,7 +494,7 @@ handleRowClick: ${o.rowClick}
|
|
|
493
494
|
class: D({ "text-ellipsis": !n.noEllipsis }),
|
|
494
495
|
title: R(n, u),
|
|
495
496
|
style: Y(et(n, u))
|
|
496
|
-
},
|
|
497
|
+
}, P(R(n, u)), 15, At))
|
|
497
498
|
];
|
|
498
499
|
}),
|
|
499
500
|
_: 2
|
|
@@ -551,7 +552,7 @@ handleRowClick: ${o.rowClick}
|
|
|
551
552
|
l.buttonText ? (r(), g("span", {
|
|
552
553
|
key: 0,
|
|
553
554
|
style: Y({ color: l.buttonText.color, fontSize: "14px" })
|
|
554
|
-
},
|
|
555
|
+
}, P(h(F)(l.buttonText.text, {
|
|
555
556
|
$row: n,
|
|
556
557
|
$globalParams: h(L)()
|
|
557
558
|
})), 5)) : m("", !0)
|
|
@@ -598,7 +599,7 @@ handleRowClick: ${o.rowClick}
|
|
|
598
599
|
l.buttonText ? (r(), g("span", {
|
|
599
600
|
key: 0,
|
|
600
601
|
style: Y({ color: l.buttonText.color, fontSize: "14px" })
|
|
601
|
-
},
|
|
602
|
+
}, P(h(F)(l.buttonText.text, {
|
|
602
603
|
$row: n,
|
|
603
604
|
$globalParams: h(L)()
|
|
604
605
|
})), 5)) : m("", !0)
|
|
@@ -618,7 +619,7 @@ handleRowClick: ${o.rowClick}
|
|
|
618
619
|
[fe, q.value]
|
|
619
620
|
])
|
|
620
621
|
], 512), [
|
|
621
|
-
[
|
|
622
|
+
[Pe, x.value === "table"]
|
|
622
623
|
]),
|
|
623
624
|
X(y(St, mt({
|
|
624
625
|
ref_key: "cardListRef",
|
|
@@ -628,7 +629,7 @@ handleRowClick: ${o.rowClick}
|
|
|
628
629
|
getColText: R,
|
|
629
630
|
onCurrentChange: re
|
|
630
631
|
}), null, 16, ["data"]), [
|
|
631
|
-
[
|
|
632
|
+
[Pe, x.value === "card"],
|
|
632
633
|
[fe, q.value]
|
|
633
634
|
]),
|
|
634
635
|
e.paginationPosition !== "top" ? (r(), g("div", {
|
|
@@ -656,7 +657,7 @@ handleRowClick: ${o.rowClick}
|
|
|
656
657
|
], 10, Bt));
|
|
657
658
|
};
|
|
658
659
|
}
|
|
659
|
-
}), jt = /* @__PURE__ */
|
|
660
|
+
}), jt = /* @__PURE__ */ Pt(Ut, [["__scopeId", "data-v-2f310582"]]);
|
|
660
661
|
export {
|
|
661
662
|
jt as default
|
|
662
663
|
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { defineComponent as N, ref as z, computed as M, watch as _, onMounted as R, onUnmounted as W, resolveComponent as C, openBlock as o, createBlock as m, mergeProps as T, withCtx as d, createElementVNode as p, createElementBlock as u, createVNode as y, createCommentVNode as f, Fragment as A, renderList as S, toDisplayString as $, normalizeClass as D, unref as F } from "vue";
|
|
2
|
+
import { c as U, i as P, B as k, I as X, b as Y, _ as j } from "./index-ql-DE2T2.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const q = { class: "right-icon-wrapper" }, G = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "dynamic-icon-wrapper"
|
|
7
|
+
}, H = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "static-icon-wrapper"
|
|
10
|
+
}, J = { class: "tab-label-text" }, O = /* @__PURE__ */ N({
|
|
11
|
+
__name: "Tabs",
|
|
12
|
+
props: {
|
|
13
|
+
id: {},
|
|
14
|
+
children: {},
|
|
15
|
+
defaultKey: {},
|
|
16
|
+
tabChange: {},
|
|
17
|
+
onBeforeLeave: {},
|
|
18
|
+
styleType: { default: "normal" },
|
|
19
|
+
staticBtns: {},
|
|
20
|
+
dynamicBtns: {},
|
|
21
|
+
name: {}
|
|
22
|
+
},
|
|
23
|
+
setup(K, { expose: V }) {
|
|
24
|
+
const n = K, s = z(""), w = M(() => {
|
|
25
|
+
const e = n.children.findIndex((t) => t.name === s.value);
|
|
26
|
+
return e - 1 >= 0 ? e - 1 : null;
|
|
27
|
+
}), { ruleModule: h, pageMethodMap: b } = U();
|
|
28
|
+
function I(e) {
|
|
29
|
+
if (n.tabChange)
|
|
30
|
+
try {
|
|
31
|
+
h[n.tabChange](b, e);
|
|
32
|
+
} catch (t) {
|
|
33
|
+
console.error(t);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
async function E(e, t) {
|
|
37
|
+
if (n.onBeforeLeave)
|
|
38
|
+
try {
|
|
39
|
+
return await h[n.onBeforeLeave](b, e, t);
|
|
40
|
+
} catch (r) {
|
|
41
|
+
console.error(r);
|
|
42
|
+
}
|
|
43
|
+
return !0;
|
|
44
|
+
}
|
|
45
|
+
const L = (e) => {
|
|
46
|
+
if (n.id) {
|
|
47
|
+
const t = document.getElementById(n.id);
|
|
48
|
+
if (t) {
|
|
49
|
+
const r = t.getElementsByClassName("el-tabs__nav-scroll")[0], i = t.getElementsByClassName("el-tabs__nav")[0], c = i.style.transform.split("(")[1].split(")")[0].split("px")[0], B = r.offsetWidth - i.offsetWidth, g = 0;
|
|
50
|
+
let l = parseInt(c);
|
|
51
|
+
l = l - e.deltaY, l < B && (l = B), l > g && (l = g), i.style.transform = `translateX(${l}px)`;
|
|
52
|
+
}
|
|
53
|
+
e.preventDefault();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
_(
|
|
57
|
+
() => n.children,
|
|
58
|
+
() => {
|
|
59
|
+
n.children.forEach((e) => {
|
|
60
|
+
e.children || (e.children = []);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
), _(
|
|
64
|
+
() => n.defaultKey,
|
|
65
|
+
() => {
|
|
66
|
+
s.value = n.defaultKey;
|
|
67
|
+
}
|
|
68
|
+
), R(() => {
|
|
69
|
+
n.defaultKey && (s.value = n.defaultKey);
|
|
70
|
+
});
|
|
71
|
+
const v = {
|
|
72
|
+
changeActiveKey: (e) => {
|
|
73
|
+
s.value = e;
|
|
74
|
+
},
|
|
75
|
+
type: "formTabs"
|
|
76
|
+
};
|
|
77
|
+
if (n.name) {
|
|
78
|
+
const e = P(n.name, v);
|
|
79
|
+
W(() => {
|
|
80
|
+
e();
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return V(v), (e, t) => {
|
|
84
|
+
const r = C("el-tab-pane"), i = C("el-tabs");
|
|
85
|
+
return o(), m(i, T({
|
|
86
|
+
ref: "tabsRef",
|
|
87
|
+
id: e.id
|
|
88
|
+
}, e.$attrs, {
|
|
89
|
+
modelValue: s.value,
|
|
90
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => s.value = a),
|
|
91
|
+
onTabChange: I,
|
|
92
|
+
"before-leave": E,
|
|
93
|
+
addable: e.styleType === "btn",
|
|
94
|
+
class: {
|
|
95
|
+
"modal-type": e.styleType === "modal",
|
|
96
|
+
"btn-type": e.styleType === "btn",
|
|
97
|
+
"form-item-tabs": e.styleType === "normal"
|
|
98
|
+
}
|
|
99
|
+
}), {
|
|
100
|
+
"add-icon": d(() => [
|
|
101
|
+
p("div", q, [
|
|
102
|
+
e.dynamicBtns && e.dynamicBtns.length > 0 ? (o(), u("div", G, [
|
|
103
|
+
y(k, { btns: e.dynamicBtns }, null, 8, ["btns"])
|
|
104
|
+
])) : f("", !0),
|
|
105
|
+
e.staticBtns && e.staticBtns.length > 0 ? (o(), u("div", H, [
|
|
106
|
+
y(k, { btns: e.staticBtns }, null, 8, ["btns"])
|
|
107
|
+
])) : f("", !0)
|
|
108
|
+
])
|
|
109
|
+
]),
|
|
110
|
+
default: d(() => [
|
|
111
|
+
(o(!0), u(A, null, S(e.children, (a, c) => (o(), m(r, T({
|
|
112
|
+
key: a.name,
|
|
113
|
+
ref_for: !0
|
|
114
|
+
}, a), {
|
|
115
|
+
label: d(() => [
|
|
116
|
+
p("div", {
|
|
117
|
+
class: "tab-label",
|
|
118
|
+
style: { height: "100%" },
|
|
119
|
+
onWheel: L
|
|
120
|
+
}, [
|
|
121
|
+
e.styleType === "btn" && a.icon ? (o(), m(X, {
|
|
122
|
+
key: 0,
|
|
123
|
+
name: a.icon,
|
|
124
|
+
size: a.iconSize || "x-small"
|
|
125
|
+
}, null, 8, ["name", "size"])) : f("", !0),
|
|
126
|
+
p("span", J, $(a.label), 1),
|
|
127
|
+
c !== e.children.length - 1 ? (o(), u("span", {
|
|
128
|
+
key: 1,
|
|
129
|
+
class: D(["divider", {
|
|
130
|
+
"divider-hidden": s.value === a.name || w.value === c
|
|
131
|
+
}])
|
|
132
|
+
}, null, 2)) : f("", !0)
|
|
133
|
+
], 32)
|
|
134
|
+
]),
|
|
135
|
+
default: d(() => [
|
|
136
|
+
y(F(Y), {
|
|
137
|
+
list: a.children
|
|
138
|
+
}, null, 8, ["list"])
|
|
139
|
+
]),
|
|
140
|
+
_: 2
|
|
141
|
+
}, 1040))), 128))
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
}, 16, ["id", "modelValue", "addable", "class"]);
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
}), ne = /* @__PURE__ */ j(O, [["__scopeId", "data-v-76b66d0b"]]);
|
|
148
|
+
export {
|
|
149
|
+
ne as default
|
|
150
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, mergeModels as i, useModel as _, computed as v, resolveComponent as f, openBlock as a, createElementBlock as n, createElementVNode as y, toDisplayString as r, createBlock as V, mergeProps as k } from "vue";
|
|
2
|
-
import { u as x, _ as B } from "./index-
|
|
2
|
+
import { u as x, _ as B } from "./index-ql-DE2T2.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const M = {
|
|
5
5
|
key: 0,
|
|
@@ -31,7 +31,7 @@ const M = {
|
|
|
31
31
|
}), null, 16, ["modelValue"]));
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), E = /* @__PURE__ */ B(I, [["__scopeId", "data-v-5775c381"]]);
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
E as default
|
|
37
37
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as v, ref as C, onUnmounted as g, resolveComponent as x, openBlock as r, createElementBlock as t, normalizeStyle as i, createVNode as a, withCtx as S, withDirectives as
|
|
2
|
-
import { c as k, i as E, b as I, I as u, _ as j } from "./index-
|
|
1
|
+
import { defineComponent as v, ref as C, onUnmounted as g, resolveComponent as x, openBlock as r, createElementBlock as t, normalizeStyle as i, createVNode as a, withCtx as S, withDirectives as b, createElementVNode as _, normalizeClass as c, unref as B, createCommentVNode as d, vShow as D } from "vue";
|
|
2
|
+
import { c as k, i as E, b as I, I as u, _ as j } from "./index-ql-DE2T2.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const M = {
|
|
5
5
|
key: 0,
|
|
@@ -56,7 +56,7 @@ const M = {
|
|
|
56
56
|
}, [
|
|
57
57
|
a(f, null, {
|
|
58
58
|
default: S(() => [
|
|
59
|
-
_(
|
|
59
|
+
b(_("div", {
|
|
60
60
|
class: c({
|
|
61
61
|
normal: e.type === "normal",
|
|
62
62
|
onlytable: e.type === "onlytable",
|
|
@@ -94,7 +94,7 @@ const M = {
|
|
|
94
94
|
], 4);
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
}), O = /* @__PURE__ */ j(N, [["__scopeId", "data-v-
|
|
97
|
+
}), O = /* @__PURE__ */ j(N, [["__scopeId", "data-v-bd573b7f"]]);
|
|
98
98
|
export {
|
|
99
99
|
O as default
|
|
100
100
|
};
|