@dazhicheng/ui 1.6.32 → 1.6.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const e = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Remix Icon by Remix Design - https://github.com/Remix-Design/RemixIcon/blob/master/License --><path fill="#888888" d="M1 14.5a6.5 6.5 0 0 1 3.064-5.519a8.001 8.001 0 0 1 15.872 0a6.5 6.5 0 0 1-2.936 12L7 21c-3.356-.274-6-3.078-6-6.5m15.848 4.487a4.5 4.5 0 0 0 2.03-8.309l-.807-.503l-.12-.942a6.001 6.001 0 0 0-11.903 0l-.12.942l-.805.503a4.5 4.5 0 0 0 2.029 8.309l.173.013h9.35zM13 12h3l-4 5l-4-5h3V8h2z"/></svg>
|
|
2
|
+
`;
|
|
3
|
+
export {
|
|
4
|
+
e as default
|
|
5
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="45" height="40" viewBox="0 0 45 40"><defs><clipPath id="master_svg0_253_199718"><rect x="0" y="2" width="45" height="36" rx="0"/></clipPath></defs><g><rect x="0" y="0" width="45" height="40" rx="0" fill="#000000" fill-opacity="0" style="mix-blend-mode:passthrough"/><g clip-path="url(#master_svg0_253_199718)"><g transform="matrix(1,0,0,-1,0,73.046875)"><path d="M10.125,36.5234375Q5.8359375,36.6640625,2.953125,39.4765625Q0.140625,42.359375,0,46.6484375Q0.0703125,50.0234375,1.8984375,52.5546875Q3.7265625,55.0859375,6.75,56.2109375Q6.75,56.4921875,6.75,56.7734375Q6.890625,61.5546875,10.054688,64.7187495Q13.21875,67.8828125,18,68.0234375Q21.164062,67.9531255,23.695312,66.4765625Q26.226562,64.9296875,27.773438,62.3984375Q29.390625,63.5234375,31.5,63.5234375Q34.382812,63.4531255,36.28125,61.5546875Q38.179688,59.6562495,38.25,56.7734375Q38.25,55.5078125,37.828125,54.3124995Q40.921875,53.6796875,42.960938,51.2187495Q44.929688,48.8281255,45,45.5234375Q44.929688,41.7265625,42.398438,39.125Q39.796875,36.59375,36,36.5234375L10.125,36.5234375ZM15.679688,51.7812495Q14.695312,50.5859375,15.679688,49.3906255Q16.875,48.4062495,18.070312,49.3906255L20.8125,52.1328125L20.8125,42.7109375Q20.953125,41.1640625,22.5,41.0234375Q24.046875,41.1640625,24.1875,42.7109375L24.1875,52.1328125L26.929688,49.3906255Q28.125,48.4062495,29.320312,49.3906255Q30.304688,50.5859375,29.320312,51.7812495L23.695312,57.4062495Q22.5,58.3906255,21.304688,57.4062495L15.679688,51.7812495Z" fill="#9CA3AF" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></g></svg>';
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
t as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as E, inject as I, computed as a, unref as e, ref as x, createElementBlock as s, openBlock as n, createBlock as d, createCommentVNode as f, withCtx as m, renderSlot as u, Fragment as b, renderList as B, createVNode as h } from "vue";
|
|
2
2
|
import { TtIcon as $ } from "../../../tt-icon/index.js";
|
|
3
3
|
import { TtButton as y } from "../../../tt-button/index.js";
|
|
4
4
|
import "axios";
|
|
@@ -17,24 +17,24 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pa
|
|
|
17
17
|
import "lodash-es";
|
|
18
18
|
import { toolProps as V } from "../toolProps.js";
|
|
19
19
|
import j from "../../../../assets/svg/RiRefreshLine.svg.js";
|
|
20
|
-
import F from "../../../../assets/svg/
|
|
20
|
+
import F from "../../../../assets/svg/download.svg.js";
|
|
21
21
|
import L from "../../../../assets/svg/columnSet.svg.js";
|
|
22
|
-
const P = ["data-testid"],
|
|
22
|
+
const P = ["data-testid"], io = /* @__PURE__ */ E({
|
|
23
23
|
__name: "TableToolbarTools",
|
|
24
24
|
props: V,
|
|
25
25
|
emits: ["on-refresh", "on-columns-setting", "on-export"],
|
|
26
26
|
setup(k, { emit: g }) {
|
|
27
|
-
const r = k, l = g, v =
|
|
27
|
+
const r = k, l = g, v = I(
|
|
28
28
|
"tableIdContext",
|
|
29
29
|
a(() => "")
|
|
30
|
-
), C = a(() => N(e(v), "table-toolbar-tools")),
|
|
31
|
-
function T(
|
|
32
|
-
|
|
30
|
+
), C = a(() => N(e(v), "table-toolbar-tools")), c = x(/* @__PURE__ */ new Set());
|
|
31
|
+
function T(o, p) {
|
|
32
|
+
c.value.add(o), p();
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
34
|
+
function w(o) {
|
|
35
|
+
c.value.delete(o);
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const S = a(() => [
|
|
38
38
|
{
|
|
39
39
|
label: "自定义导出",
|
|
40
40
|
icon: F,
|
|
@@ -54,32 +54,32 @@ const P = ["data-testid"], it = /* @__PURE__ */ x({
|
|
|
54
54
|
if: r.showSetColumn
|
|
55
55
|
}
|
|
56
56
|
]);
|
|
57
|
-
return (
|
|
58
|
-
|
|
57
|
+
return (o, p) => (n(), s("div", { "data-testid": C.value }, [
|
|
58
|
+
o.showSetting ? (n(), d(e(A), {
|
|
59
59
|
key: 0,
|
|
60
60
|
size: 12
|
|
61
61
|
}, {
|
|
62
62
|
default: m(() => [
|
|
63
|
-
u(
|
|
64
|
-
(n(!0), s(b, null, B(
|
|
65
|
-
|
|
63
|
+
u(o.$slots, "toolbar-left"),
|
|
64
|
+
(n(!0), s(b, null, B(S.value, (t, i) => (n(), s(b, { key: i }, [
|
|
65
|
+
t.if ? (n(), d(e(z), {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "box-item",
|
|
68
68
|
effect: "dark",
|
|
69
|
-
content:
|
|
69
|
+
content: t.label,
|
|
70
70
|
placement: "top",
|
|
71
71
|
"show-after": 200
|
|
72
72
|
}, {
|
|
73
73
|
default: m(() => [
|
|
74
74
|
h(e(y), {
|
|
75
75
|
class: "icon-table-btn",
|
|
76
|
-
"aria-label":
|
|
77
|
-
onClick: (
|
|
78
|
-
onAnimationend: (
|
|
76
|
+
"aria-label": t.label,
|
|
77
|
+
onClick: (_) => T(i, t.handler),
|
|
78
|
+
onAnimationend: (_) => w(i)
|
|
79
79
|
}, {
|
|
80
80
|
default: m(() => [
|
|
81
81
|
h(e($), {
|
|
82
|
-
icon:
|
|
82
|
+
icon: t.icon,
|
|
83
83
|
size: 16,
|
|
84
84
|
"is-custom-svg": ""
|
|
85
85
|
}, null, 8, ["icon"])
|
|
@@ -90,7 +90,7 @@ const P = ["data-testid"], it = /* @__PURE__ */ x({
|
|
|
90
90
|
_: 2
|
|
91
91
|
}, 1032, ["content"])) : f("", !0)
|
|
92
92
|
], 64))), 128)),
|
|
93
|
-
u(
|
|
93
|
+
u(o.$slots, "toolbar-right")
|
|
94
94
|
]),
|
|
95
95
|
_: 3
|
|
96
96
|
})) : f("", !0)
|
|
@@ -98,5 +98,5 @@ const P = ["data-testid"], it = /* @__PURE__ */ x({
|
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
export {
|
|
101
|
-
|
|
101
|
+
io as default
|
|
102
102
|
};
|