@dazhicheng/ui 1.5.229 → 1.5.231
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/dist/components/tt-form/src/components/ExpandableArrow.vue.d.ts +2 -2
- package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +29 -23
- package/dist/components/tt-form/src/index.vue2.js +32 -29
- package/dist/components/tt-table/src/Table.vue.js +471 -393
- package/dist/components/tt-table/src/components/TableAction.vue.js +134 -105
- package/dist/components/tt-table/src/components/TableToobalTools.vue.js +49 -44
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { propTypes as
|
|
3
|
-
import { useDesign as
|
|
1
|
+
import { defineComponent as oe, useAttrs as ne, ref as I, inject as M, computed as p, unref as r, toRaw as W, h as re, onMounted as ie, nextTick as le, createElementBlock as u, openBlock as l, normalizeClass as B, createVNode as T, createBlock as b, createCommentVNode as f, withCtx as m, Fragment as v, renderList as P, renderSlot as se, withDirectives as z, mergeProps as ae, normalizeStyle as D, toDisplayString as j, createElementVNode as de, withModifiers as ue, createSlots as pe, createTextVNode as ce } from "vue";
|
|
2
|
+
import { propTypes as y } from "../../../../packages/hooks/src/propTypes.js";
|
|
3
|
+
import { useDesign as fe } from "../../../../packages/hooks/src/useDesign.js";
|
|
4
4
|
import "axios";
|
|
5
|
-
import { ElDivider as
|
|
6
|
-
import { isBoolean as
|
|
7
|
-
import { generateTestId as
|
|
8
|
-
import { calcWordsWidth as
|
|
5
|
+
import { ElDivider as me, ElSpace as be, ElPopover as ve } from "element-plus";
|
|
6
|
+
import { isBoolean as ge, isFunction as ye, isArray as xe, isObject as he } from "../../../../packages/utils/src/is.js";
|
|
7
|
+
import { generateTestId as V, toKebabCase as O } from "../../../../packages/utils/src/testid-helper.js";
|
|
8
|
+
import { calcWordsWidth as we } from "../../../../packages/utils/src/tool.js";
|
|
9
9
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
10
10
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
11
11
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
12
12
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
13
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
14
14
|
import "lodash-es";
|
|
15
|
-
import { TtButton as
|
|
16
|
-
import { TtIcon as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { ROW_INDEX_KEY as
|
|
20
|
-
const
|
|
15
|
+
import { TtButton as A } from "../../../tt-button/index.js";
|
|
16
|
+
import { TtIcon as E } from "../../../tt-icon/index.js";
|
|
17
|
+
import K from "../../../../directives/disabled-tip/index.js";
|
|
18
|
+
import Ce from "../../../../assets/svg/action_more.svg.js";
|
|
19
|
+
import { ROW_INDEX_KEY as ke } from "./RowContext.js";
|
|
20
|
+
const Ie = { key: 1 }, Be = ["onClick"], Ue = /* @__PURE__ */ oe({
|
|
21
21
|
name: "TtTableAction",
|
|
22
22
|
__name: "TableAction",
|
|
23
23
|
props: {
|
|
@@ -39,194 +39,223 @@ const ve = { key: 1 }, be = ["onClick"], Pe = /* @__PURE__ */ q({
|
|
|
39
39
|
/** 是否分割线 */
|
|
40
40
|
// divider: propTypes.bool.def(true),
|
|
41
41
|
/** 是否清除冒泡 */
|
|
42
|
-
stopButtonPropagation:
|
|
42
|
+
stopButtonPropagation: y.bool.def(!1),
|
|
43
43
|
/** 显示buttton的个数 默认是2 */
|
|
44
|
-
showBtnNums:
|
|
44
|
+
showBtnNums: y.number.def(3),
|
|
45
45
|
/** 弹出框的宽度 */
|
|
46
|
-
popoverWidth:
|
|
46
|
+
popoverWidth: y.number.def(27),
|
|
47
47
|
/** 是否自动换行 */
|
|
48
|
-
wrap:
|
|
48
|
+
wrap: y.bool.def(!0)
|
|
49
49
|
},
|
|
50
|
-
setup(
|
|
51
|
-
const
|
|
50
|
+
setup(S) {
|
|
51
|
+
const i = S, x = ne(), { prefixCls: $ } = fe("table-action"), g = I(!1), L = M(
|
|
52
52
|
"tableIdContext",
|
|
53
|
-
|
|
54
|
-
),
|
|
55
|
-
if (
|
|
56
|
-
return
|
|
57
|
-
const t = r(
|
|
53
|
+
p(() => "")
|
|
54
|
+
), U = M(ke, void 0), q = p(() => {
|
|
55
|
+
if (i.rowIndex !== void 0 && i.rowIndex !== null)
|
|
56
|
+
return i.rowIndex;
|
|
57
|
+
const t = r(U);
|
|
58
58
|
if (t != null)
|
|
59
59
|
return t;
|
|
60
|
-
if (
|
|
61
|
-
return
|
|
62
|
-
if (
|
|
63
|
-
return
|
|
60
|
+
if (i.slotContext && i.slotContext.$rowIndex !== void 0)
|
|
61
|
+
return i.slotContext.$rowIndex;
|
|
62
|
+
if (x.$rowIndex !== void 0 && x.$rowIndex !== null)
|
|
63
|
+
return x.$rowIndex;
|
|
64
64
|
});
|
|
65
|
-
function
|
|
66
|
-
const o = r(
|
|
67
|
-
return e != null ?
|
|
65
|
+
function h(t) {
|
|
66
|
+
const o = r(L), e = q.value;
|
|
67
|
+
return e != null ? V(o, "action", `row${e}`, O(t)) : V(o, "action", O(t));
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function F(t) {
|
|
70
70
|
const o = t.ifShow;
|
|
71
71
|
let e = !0;
|
|
72
|
-
return
|
|
72
|
+
return ge(o) && (e = o), ye(o) && (e = o(t)), e;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
const t = document.getElementsByTagName("body")[0], o = window.getComputedStyle(t).fontFamily, e =
|
|
76
|
-
return
|
|
74
|
+
const G = p(() => (W(i.actions) || []).filter((t) => F(t)).slice(0, i.showBtnNums)), w = p(() => (W(i.actions) || []).filter((t) => F(t)).slice(i.showBtnNums)), H = p(() => r(w).length > 0), X = p(() => "left flex items-center"), Y = p(() => {
|
|
75
|
+
const t = document.getElementsByTagName("body")[0], o = window.getComputedStyle(t).fontFamily, e = w.value.map((s) => we(s.label, "12px", o) + 22), n = Math.max(...e);
|
|
76
|
+
return n > i.popoverWidth ? n : i.popoverWidth;
|
|
77
77
|
});
|
|
78
78
|
function N(t, o) {
|
|
79
79
|
const e = t;
|
|
80
|
-
return
|
|
80
|
+
return xe(e) && e.length > 0 ? e.some((n) => !!(n != null && n.condition)) : he(e) ? !!e.condition : !!o;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
if (!
|
|
84
|
-
t.composedPath().find((
|
|
85
|
-
var
|
|
86
|
-
return ((
|
|
82
|
+
function J(t) {
|
|
83
|
+
if (!i.stopButtonPropagation) return;
|
|
84
|
+
t.composedPath().find((n) => {
|
|
85
|
+
var s;
|
|
86
|
+
return ((s = n.tagName) == null ? void 0 : s.toUpperCase()) === "BUTTON";
|
|
87
87
|
}) && t.stopPropagation();
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const Q = re(me, {
|
|
90
90
|
direction: "vertical",
|
|
91
91
|
style: { fontSize: "12px", margin: "0 6px" }
|
|
92
92
|
});
|
|
93
|
-
function
|
|
94
|
-
|
|
93
|
+
function Z(t) {
|
|
94
|
+
g.value = !0, C.value = t.target && t.target.getBoundingClientRect();
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const C = I({
|
|
97
97
|
top: 0,
|
|
98
98
|
left: 0,
|
|
99
99
|
bottom: 0,
|
|
100
100
|
right: 0
|
|
101
|
-
})
|
|
101
|
+
});
|
|
102
|
+
function ee() {
|
|
103
|
+
const t = Array.from(document.querySelectorAll('[class*="table-action"]')), o = /* @__PURE__ */ new Map();
|
|
104
|
+
t.forEach((e) => {
|
|
105
|
+
const n = e.closest(".vxe-table");
|
|
106
|
+
if (!n) return;
|
|
107
|
+
const s = e.getBoundingClientRect(), a = Math.round(s.top), d = o.get(n) || /* @__PURE__ */ new Map(), c = d.get(a) || [];
|
|
108
|
+
c.push(e), d.set(a, c), o.set(n, d);
|
|
109
|
+
}), o.forEach((e) => {
|
|
110
|
+
e.forEach((n) => {
|
|
111
|
+
const s = n.sort((a, d) => {
|
|
112
|
+
const c = a.closest(".vxe-table"), k = d.closest(".vxe-table"), R = c != null && c.classList.contains("is--fixed-right") ? 1 : 0, _ = k != null && k.classList.contains("is--fixed-right") ? 1 : 0;
|
|
113
|
+
return R !== _ ? _ - R : d.getBoundingClientRect().left - a.getBoundingClientRect().left;
|
|
114
|
+
})[0];
|
|
115
|
+
n.forEach((a) => {
|
|
116
|
+
a.querySelectorAll("[data-table-action-button]").forEach((d) => {
|
|
117
|
+
a !== s && (d.style.visibility = "hidden"), d.tabIndex = a === s ? 0 : -1;
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
ie(() => {
|
|
124
|
+
le(() => {
|
|
125
|
+
window.setTimeout(ee, 80);
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
const te = I({
|
|
102
129
|
getBoundingClientRect() {
|
|
103
|
-
return
|
|
130
|
+
return C.value;
|
|
104
131
|
}
|
|
105
132
|
});
|
|
106
|
-
return (t, o) => (l(),
|
|
107
|
-
class:
|
|
108
|
-
|
|
133
|
+
return (t, o) => (l(), u("div", {
|
|
134
|
+
class: B([r($), X.value]),
|
|
135
|
+
tabindex: "-1",
|
|
136
|
+
onClick: J
|
|
109
137
|
}, [
|
|
110
|
-
|
|
138
|
+
T(r(be), {
|
|
111
139
|
size: 0,
|
|
112
|
-
spacer: r(
|
|
113
|
-
wrap:
|
|
140
|
+
spacer: r(Q),
|
|
141
|
+
wrap: S.wrap
|
|
114
142
|
}, {
|
|
115
|
-
default:
|
|
116
|
-
(l(!0),
|
|
117
|
-
key: `${
|
|
143
|
+
default: m(() => [
|
|
144
|
+
(l(!0), u(v, null, P(G.value, (e, n) => (l(), u(v, {
|
|
145
|
+
key: `${n}-${e.label}`
|
|
118
146
|
}, [
|
|
119
|
-
e.slot ?
|
|
147
|
+
e.slot ? se(t.$slots, e.slot, ae({
|
|
120
148
|
key: 0,
|
|
121
149
|
ref_for: !0
|
|
122
|
-
}, e)) :
|
|
150
|
+
}, e)) : z((l(), b(r(A), {
|
|
123
151
|
key: 1,
|
|
124
152
|
link: "",
|
|
125
153
|
type: e.type || "primary",
|
|
126
154
|
disabled: N(e.disabledTip, e.disabled),
|
|
127
|
-
style:
|
|
155
|
+
style: D({ color: e.color, visibility: e.isTextHide ? "hidden" : "visible" }),
|
|
128
156
|
loading: e.loading,
|
|
129
|
-
"data-index":
|
|
130
|
-
"data-
|
|
157
|
+
"data-index": n,
|
|
158
|
+
"data-table-action-button": "",
|
|
159
|
+
"data-testid": h(e.label || ""),
|
|
131
160
|
onClick: e.onClick
|
|
132
161
|
}, {
|
|
133
|
-
default:
|
|
134
|
-
e.iconFont ? (l(),
|
|
135
|
-
e.iconFont ? (l(),
|
|
162
|
+
default: m(() => [
|
|
163
|
+
e.iconFont ? (l(), u(v, { key: 0 }, [
|
|
164
|
+
e.iconFont ? (l(), b(r(E), {
|
|
136
165
|
key: 0,
|
|
137
166
|
"icon-font": e.iconFont,
|
|
138
|
-
class:
|
|
139
|
-
}, null, 8, ["icon-font", "class"])) :
|
|
140
|
-
], 64)) :
|
|
141
|
-
e.label ? (l(),
|
|
167
|
+
class: B({ "mr-1": !!e.label })
|
|
168
|
+
}, null, 8, ["icon-font", "class"])) : f("", !0)
|
|
169
|
+
], 64)) : f("", !0),
|
|
170
|
+
e.label ? (l(), u("span", Ie, j(e.label), 1)) : f("", !0)
|
|
142
171
|
]),
|
|
143
172
|
_: 2
|
|
144
173
|
}, 1032, ["type", "disabled", "style", "loading", "data-index", "data-testid", "onClick"])), [
|
|
145
|
-
[r(
|
|
174
|
+
[r(K), e.disabledTip]
|
|
146
175
|
])
|
|
147
176
|
], 64))), 128)),
|
|
148
|
-
|
|
177
|
+
H.value ? (l(), b(r(A), {
|
|
149
178
|
key: 0,
|
|
150
179
|
link: "",
|
|
151
180
|
type: "primary",
|
|
152
|
-
"data-testid":
|
|
181
|
+
"data-testid": h("more")
|
|
153
182
|
}, {
|
|
154
|
-
default:
|
|
155
|
-
|
|
156
|
-
onMouseover:
|
|
157
|
-
onMouseleave: o[0] || (o[0] = (e) =>
|
|
183
|
+
default: m(() => [
|
|
184
|
+
de("span", {
|
|
185
|
+
onMouseover: ue(Z, ["stop"]),
|
|
186
|
+
onMouseleave: o[0] || (o[0] = (e) => g.value = !1)
|
|
158
187
|
}, [
|
|
159
|
-
|
|
160
|
-
icon: r(
|
|
188
|
+
T(r(E), {
|
|
189
|
+
icon: r(Ce),
|
|
161
190
|
"is-custom-svg": "",
|
|
162
191
|
size: 14
|
|
163
192
|
}, null, 8, ["icon"])
|
|
164
193
|
], 32)
|
|
165
194
|
]),
|
|
166
195
|
_: 1
|
|
167
|
-
}, 8, ["data-testid"])) :
|
|
196
|
+
}, 8, ["data-testid"])) : f("", !0)
|
|
168
197
|
]),
|
|
169
198
|
_: 3
|
|
170
199
|
}, 8, ["spacer", "wrap"]),
|
|
171
|
-
|
|
200
|
+
C.value.left ? (l(), b(r(ve), {
|
|
172
201
|
key: 0,
|
|
173
|
-
visible:
|
|
174
|
-
"onUpdate:visible": o[1] || (o[1] = (e) =>
|
|
202
|
+
visible: g.value,
|
|
203
|
+
"onUpdate:visible": o[1] || (o[1] = (e) => g.value = e),
|
|
175
204
|
trigger: "hover",
|
|
176
205
|
placement: "bottom",
|
|
177
|
-
width:
|
|
206
|
+
width: Y.value,
|
|
178
207
|
offset: 8,
|
|
179
208
|
"hide-after": 0,
|
|
180
|
-
"virtual-ref":
|
|
209
|
+
"virtual-ref": te.value,
|
|
181
210
|
"virtual-triggering": "",
|
|
182
|
-
"popper-class": `${r(
|
|
211
|
+
"popper-class": `${r($)}-popover-class`,
|
|
183
212
|
"popper-style": {
|
|
184
213
|
padding: "6px 0px",
|
|
185
214
|
minWidth: "60px"
|
|
186
215
|
}
|
|
187
216
|
}, {
|
|
188
|
-
default:
|
|
189
|
-
(l(!0),
|
|
190
|
-
key: `${
|
|
217
|
+
default: m(() => [
|
|
218
|
+
(l(!0), u(v, null, P(w.value, (e, n) => (l(), u("div", {
|
|
219
|
+
key: `${n}-${e.label}`,
|
|
191
220
|
onClick: () => {
|
|
192
|
-
var
|
|
193
|
-
!e.disabled && ((
|
|
221
|
+
var s;
|
|
222
|
+
!e.disabled && ((s = e.onClick) == null || s.call(e));
|
|
194
223
|
}
|
|
195
224
|
}, [
|
|
196
|
-
|
|
225
|
+
z((l(), b(r(A), {
|
|
197
226
|
link: "",
|
|
198
227
|
disabled: N(e.disabledTip, e.disabled),
|
|
199
228
|
type: e.type || "primary",
|
|
200
|
-
style:
|
|
201
|
-
"data-testid":
|
|
202
|
-
},
|
|
203
|
-
default:
|
|
204
|
-
e.label ? (l(),
|
|
205
|
-
|
|
206
|
-
], 64)) :
|
|
229
|
+
style: D({ color: e.color }),
|
|
230
|
+
"data-testid": h(e.label || "")
|
|
231
|
+
}, pe({
|
|
232
|
+
default: m(() => [
|
|
233
|
+
e.label ? (l(), u(v, { key: 0 }, [
|
|
234
|
+
ce(j(e.label), 1)
|
|
235
|
+
], 64)) : f("", !0)
|
|
207
236
|
]),
|
|
208
237
|
_: 2
|
|
209
238
|
}, [
|
|
210
239
|
e.iconFont ? {
|
|
211
240
|
name: "icon",
|
|
212
|
-
fn:
|
|
213
|
-
|
|
241
|
+
fn: m(() => [
|
|
242
|
+
T(r(E), {
|
|
214
243
|
"icon-font": e.iconFont,
|
|
215
|
-
class:
|
|
244
|
+
class: B({ "mr-1": !!e.label })
|
|
216
245
|
}, null, 8, ["icon-font", "class"])
|
|
217
246
|
]),
|
|
218
247
|
key: "0"
|
|
219
248
|
} : void 0
|
|
220
249
|
]), 1032, ["disabled", "type", "style", "data-testid"])), [
|
|
221
|
-
[r(
|
|
250
|
+
[r(K), e.disabledTip]
|
|
222
251
|
])
|
|
223
|
-
], 8,
|
|
252
|
+
], 8, Be))), 128))
|
|
224
253
|
]),
|
|
225
254
|
_: 1
|
|
226
|
-
}, 8, ["visible", "width", "virtual-ref", "popper-class"])) :
|
|
255
|
+
}, 8, ["visible", "width", "virtual-ref", "popper-class"])) : f("", !0)
|
|
227
256
|
], 2));
|
|
228
257
|
}
|
|
229
258
|
});
|
|
230
259
|
export {
|
|
231
|
-
|
|
260
|
+
Ue as default
|
|
232
261
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TtIcon as
|
|
1
|
+
import { defineComponent as x, inject as E, computed as a, unref as o, ref as I, createElementBlock as s, openBlock as r, createBlock as f, createCommentVNode as d, withCtx as m, renderSlot as u, Fragment as b, renderList as B, createVNode as h } from "vue";
|
|
2
|
+
import { TtIcon as $ } from "../../../tt-icon/index.js";
|
|
3
|
+
import { TtButton as y } from "../../../tt-button/index.js";
|
|
3
4
|
import "axios";
|
|
4
|
-
import { ElSpace as
|
|
5
|
+
import { ElSpace as A, ElTooltip as z } from "element-plus";
|
|
5
6
|
import "dayjs";
|
|
6
|
-
import { generateTestId as
|
|
7
|
+
import { generateTestId as N } from "../../../../packages/utils/src/testid-helper.js";
|
|
7
8
|
import "xe-utils";
|
|
8
9
|
import "dayjs/plugin/utc";
|
|
9
10
|
import "dayjs/plugin/timezone";
|
|
@@ -13,80 +14,84 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
13
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
14
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
16
|
import "lodash-es";
|
|
16
|
-
import { toolProps as
|
|
17
|
-
import
|
|
17
|
+
import { toolProps as R } from "../toolProps.js";
|
|
18
|
+
import V from "../../../../assets/svg/RiRefreshLine.svg.js";
|
|
18
19
|
import j from "../../../../assets/svg/exportSvg.svg.js";
|
|
19
20
|
import F from "../../../../assets/svg/columnSet.svg.js";
|
|
20
|
-
const L = ["data-testid"],
|
|
21
|
+
const L = ["data-testid"], lt = /* @__PURE__ */ x({
|
|
21
22
|
__name: "TableToobalTools",
|
|
22
|
-
props:
|
|
23
|
+
props: R,
|
|
23
24
|
emits: ["on-refresh", "on-columns-setting", "on-export"],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
25
|
+
setup(k, { emit: g }) {
|
|
26
|
+
const n = k, l = g, v = E(
|
|
26
27
|
"tableIdContext",
|
|
27
|
-
|
|
28
|
-
),
|
|
29
|
-
function
|
|
30
|
-
|
|
28
|
+
a(() => "")
|
|
29
|
+
), C = a(() => N(o(v), "table-toolbar-tools")), p = I(/* @__PURE__ */ new Set());
|
|
30
|
+
function T(t, c) {
|
|
31
|
+
p.value.add(t), c();
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
33
|
+
function _(t) {
|
|
34
|
+
p.value.delete(t);
|
|
34
35
|
}
|
|
35
|
-
const S =
|
|
36
|
+
const S = a(() => [
|
|
36
37
|
{
|
|
37
38
|
label: "自定义导出",
|
|
38
39
|
icon: j,
|
|
39
|
-
handler: () =>
|
|
40
|
-
if:
|
|
40
|
+
handler: () => l("on-export"),
|
|
41
|
+
if: n.showExport
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
44
|
label: "刷新",
|
|
44
|
-
icon:
|
|
45
|
-
handler: () =>
|
|
46
|
-
if:
|
|
45
|
+
icon: V,
|
|
46
|
+
handler: () => l("on-refresh"),
|
|
47
|
+
if: n.showRefresh
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
50
|
label: "列设置",
|
|
50
51
|
icon: F,
|
|
51
|
-
handler: () =>
|
|
52
|
-
if:
|
|
52
|
+
handler: () => l("on-columns-setting"),
|
|
53
|
+
if: n.showSetColumn
|
|
53
54
|
}
|
|
54
55
|
]);
|
|
55
|
-
return (
|
|
56
|
-
|
|
56
|
+
return (t, c) => (r(), s("div", { "data-testid": C.value }, [
|
|
57
|
+
t.showSetting ? (r(), f(o(A), {
|
|
57
58
|
key: 0,
|
|
58
59
|
size: 12
|
|
59
60
|
}, {
|
|
60
|
-
default:
|
|
61
|
-
u(
|
|
62
|
-
(
|
|
63
|
-
|
|
61
|
+
default: m(() => [
|
|
62
|
+
u(t.$slots, "toolbar-left"),
|
|
63
|
+
(r(!0), s(b, null, B(S.value, (e, i) => (r(), s(b, { key: i }, [
|
|
64
|
+
e.if ? (r(), f(o(z), {
|
|
64
65
|
key: 0,
|
|
65
66
|
ref_for: !0,
|
|
66
67
|
ref: "tooltipRef",
|
|
67
68
|
class: "box-item",
|
|
68
69
|
effect: "dark",
|
|
69
|
-
content:
|
|
70
|
+
content: e.label,
|
|
70
71
|
placement: "top",
|
|
71
72
|
"show-after": 200
|
|
72
73
|
}, {
|
|
73
|
-
default:
|
|
74
|
-
|
|
74
|
+
default: m(() => [
|
|
75
|
+
h(o(y), {
|
|
75
76
|
class: "icon-table-btn",
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
"aria-label": e.label,
|
|
78
|
+
onClick: (w) => T(i, e.handler),
|
|
79
|
+
onAnimationend: (w) => _(i)
|
|
80
|
+
}, {
|
|
81
|
+
default: m(() => [
|
|
82
|
+
h(o($), {
|
|
83
|
+
icon: e.icon,
|
|
84
|
+
size: 14,
|
|
85
|
+
"is-custom-svg": ""
|
|
86
|
+
}, null, 8, ["icon"])
|
|
87
|
+
]),
|
|
88
|
+
_: 2
|
|
89
|
+
}, 1032, ["aria-label", "onClick", "onAnimationend"])
|
|
85
90
|
]),
|
|
86
91
|
_: 2
|
|
87
92
|
}, 1032, ["content"])) : d("", !0)
|
|
88
93
|
], 64))), 128)),
|
|
89
|
-
u(
|
|
94
|
+
u(t.$slots, "toolbar-right")
|
|
90
95
|
]),
|
|
91
96
|
_: 3
|
|
92
97
|
})) : d("", !0)
|
|
@@ -94,5 +99,5 @@ const L = ["data-testid"], P = ["onClick", "onAnimationend"], ie = /* @__PURE__
|
|
|
94
99
|
}
|
|
95
100
|
});
|
|
96
101
|
export {
|
|
97
|
-
|
|
102
|
+
lt as default
|
|
98
103
|
};
|