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