@das-fed/ui 6.4.0-dev.84 → 6.4.0-dev.85
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/ui",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.85",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@antv/x6-plugin-snapline": "^2.1.7",
|
|
27
27
|
"@antv/x6-plugin-transform": "^2.1.8",
|
|
28
28
|
"@antv/x6-vue-shape": "^2.1.2",
|
|
29
|
-
"@das-fed/cli": "6.4.0-dev.
|
|
29
|
+
"@das-fed/cli": "6.4.0-dev.85",
|
|
30
30
|
"@element-plus/icons-vue": "^2.3.1",
|
|
31
31
|
"@types/lodash": "^4.14.194",
|
|
32
32
|
"@types/lodash-es": "^4.17.9",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"vue-tsc": "^2.0.29"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@das-fed/ui": "6.4.0-dev.
|
|
60
|
-
"@das-fed/utils": "6.4.0-dev.
|
|
61
|
-
"@das-fed/web": "6.4.0-dev.
|
|
59
|
+
"@das-fed/ui": "6.4.0-dev.85",
|
|
60
|
+
"@das-fed/utils": "6.4.0-dev.85",
|
|
61
|
+
"@das-fed/web": "6.4.0-dev.85",
|
|
62
62
|
"@wangeditor/editor": "^5.1.23",
|
|
63
63
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
|
64
64
|
"@wangeditor/plugin-upload-attachment": "^1.1.0",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/tooltip/style.css';
|
|
2
|
-
import { defineComponent as S, useCssVars as E, ref as
|
|
3
|
-
import { setThemeRule as
|
|
4
|
-
import { setI18nRule as
|
|
5
|
-
import { withInstall as
|
|
6
|
-
import {
|
|
7
|
-
import { ElTooltip as
|
|
2
|
+
import { defineComponent as S, useCssVars as E, ref as m, computed as c, onMounted as N, onBeforeMount as L, openBlock as s, createBlock as V, unref as x, mergeProps as _, withCtx as u, createVNode as D, createElementVNode as P, normalizeClass as b, renderSlot as k, createElementBlock as p, Fragment as z, createTextVNode as I, toDisplayString as T, createCommentVNode as $, normalizeStyle as W, nextTick as q } from "vue";
|
|
3
|
+
import { setThemeRule as F } from "@das-fed/web/packages/theme/index";
|
|
4
|
+
import { setI18nRule as X, t as Y } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { withInstall as O } from "@das-fed/utils/with-install/index";
|
|
6
|
+
import { DasScrollbar as j } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
7
|
+
import { ElTooltip as A } from "element-plus";
|
|
8
8
|
import "element-plus/es/components/tooltip/style/css";
|
|
9
9
|
import "@das-fed/ui/packages/global/theme";
|
|
10
|
-
const
|
|
10
|
+
const G = ["innerHTML"], J = { key: 1 }, K = /* @__PURE__ */ S({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
13
13
|
selfPopperClass: { default: "" },
|
|
@@ -23,34 +23,34 @@ const A = ["innerHTML"], G = { key: 1 }, J = /* @__PURE__ */ S({
|
|
|
23
23
|
isMaxheight: { type: Boolean, default: !0 }
|
|
24
24
|
},
|
|
25
25
|
emits: ["show", "hide"],
|
|
26
|
-
setup(
|
|
26
|
+
setup(n, { expose: d, emit: i }) {
|
|
27
27
|
E((e) => ({
|
|
28
|
-
|
|
28
|
+
"4b1c8854": M.value
|
|
29
29
|
}));
|
|
30
|
-
const o =
|
|
31
|
-
|
|
30
|
+
const o = n, a = i, h = m(), w = m(!1), M = c(() => Number(o.row)), B = c(() => o.disabled ?? (o.text ? !w.value : !1)), g = c(() => o.content || o.text), H = (e) => {
|
|
31
|
+
w.value = e.target.scrollHeight > e.target.clientHeight;
|
|
32
32
|
}, R = (e) => {
|
|
33
33
|
a("show", e), window.addEventListener("wheel", f);
|
|
34
|
-
},
|
|
34
|
+
}, v = (e) => {
|
|
35
35
|
a("hide", e), window.removeEventListener("wheel", f);
|
|
36
36
|
}, f = (e) => {
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
39
|
-
const t =
|
|
37
|
+
const l = document.querySelector('[id^="el-popper-container"]');
|
|
38
|
+
if (!l) return;
|
|
39
|
+
const t = l.querySelector(".das-ui-tooltip-popper");
|
|
40
40
|
if (!t) return;
|
|
41
|
-
const
|
|
42
|
-
t &&
|
|
43
|
-
|
|
41
|
+
const y = e.clientX, C = e.clientY, r = t == null ? void 0 : t.getBoundingClientRect();
|
|
42
|
+
t && y >= r.left && y <= r.right && C >= r.top && C <= r.bottom || (t.style.display = "none", t.style.opacity = "0", q(() => {
|
|
43
|
+
v();
|
|
44
44
|
}));
|
|
45
45
|
};
|
|
46
|
-
return
|
|
47
|
-
}),
|
|
46
|
+
return N(() => {
|
|
47
|
+
}), L(() => {
|
|
48
48
|
window.removeEventListener("wheel", f);
|
|
49
49
|
}), d({
|
|
50
|
-
$tooltipRef:
|
|
51
|
-
}), (e,
|
|
50
|
+
$tooltipRef: h
|
|
51
|
+
}), (e, l) => (s(), V(x(A), _({
|
|
52
52
|
ref_key: "$tooltipRef",
|
|
53
|
-
ref:
|
|
53
|
+
ref: h,
|
|
54
54
|
class: "das-ui-tooltip",
|
|
55
55
|
disabled: B.value,
|
|
56
56
|
effect: e.effect,
|
|
@@ -59,53 +59,57 @@ const A = ["innerHTML"], G = { key: 1 }, J = /* @__PURE__ */ S({
|
|
|
59
59
|
"hide-after": 100,
|
|
60
60
|
"show-after": 100,
|
|
61
61
|
onShow: R,
|
|
62
|
-
onHide:
|
|
62
|
+
onHide: v
|
|
63
63
|
}, e.$attrs), {
|
|
64
|
-
content:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
v.value && !e.$slots.content ? (s(), l(
|
|
73
|
-
z,
|
|
74
|
-
{ key: 0 },
|
|
64
|
+
content: u(() => [
|
|
65
|
+
D(x(j), null, {
|
|
66
|
+
default: u(() => [
|
|
67
|
+
P(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
class: b({ "max-height": e.isMaxheight, "das-popper-content": !0 })
|
|
71
|
+
},
|
|
75
72
|
[
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
k(e.$slots, "content", {}, void 0, !0),
|
|
74
|
+
g.value && !e.$slots.content ? (s(), p(
|
|
75
|
+
z,
|
|
76
|
+
{ key: 0 },
|
|
77
|
+
[
|
|
78
|
+
I(
|
|
79
|
+
T(g.value),
|
|
80
|
+
1
|
|
81
|
+
/* TEXT */
|
|
82
|
+
)
|
|
83
|
+
],
|
|
84
|
+
64
|
|
85
|
+
/* STABLE_FRAGMENT */
|
|
86
|
+
)) : $("v-if", !0)
|
|
81
87
|
],
|
|
82
|
-
|
|
83
|
-
/*
|
|
84
|
-
)
|
|
85
|
-
],
|
|
86
|
-
|
|
87
|
-
/*
|
|
88
|
-
)
|
|
89
|
-
[C(O)]
|
|
90
|
-
])
|
|
88
|
+
2
|
|
89
|
+
/* CLASS */
|
|
90
|
+
)
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
/* FORWARDED */
|
|
94
|
+
})
|
|
91
95
|
]),
|
|
92
|
-
default:
|
|
96
|
+
default: u(() => [
|
|
93
97
|
k(e.$slots, "default", {}, () => [
|
|
94
|
-
e.text ? (s(),
|
|
98
|
+
e.text ? (s(), p(
|
|
95
99
|
"div",
|
|
96
100
|
{
|
|
97
101
|
key: 0,
|
|
98
|
-
onMouseenter:
|
|
102
|
+
onMouseenter: l[0] || (l[0] = (t) => H(t)),
|
|
99
103
|
class: b(`das-tooltip-text-wrap ${e.customClass}`),
|
|
100
|
-
style:
|
|
104
|
+
style: W({ width: o.textWidth })
|
|
101
105
|
},
|
|
102
106
|
[
|
|
103
|
-
e.textHtml ? (s(),
|
|
107
|
+
e.textHtml ? (s(), p("div", {
|
|
104
108
|
key: 0,
|
|
105
109
|
innerHTML: e.text
|
|
106
|
-
}, null, 8,
|
|
110
|
+
}, null, 8, G)) : (s(), p(
|
|
107
111
|
"div",
|
|
108
|
-
|
|
112
|
+
J,
|
|
109
113
|
T(e.text),
|
|
110
114
|
1
|
|
111
115
|
/* TEXT */
|
|
@@ -120,21 +124,21 @@ const A = ["innerHTML"], G = { key: 1 }, J = /* @__PURE__ */ S({
|
|
|
120
124
|
/* FORWARDED */
|
|
121
125
|
}, 16, ["disabled", "effect", "placement", "popper-class"]));
|
|
122
126
|
}
|
|
123
|
-
}),
|
|
124
|
-
const
|
|
127
|
+
}), Q = (n, d) => {
|
|
128
|
+
const i = n.__vccOpts || n;
|
|
125
129
|
for (const [o, a] of d)
|
|
126
|
-
|
|
127
|
-
return
|
|
128
|
-
},
|
|
130
|
+
i[o] = a;
|
|
131
|
+
return i;
|
|
132
|
+
}, U = /* @__PURE__ */ Q(K, [["__scopeId", "data-v-49a01a3a"]]), Z = {
|
|
129
133
|
"--das-ui-tooltip-font-normal": "#212121",
|
|
130
134
|
"--das-ui-tooltip-font-light": "#fff",
|
|
131
135
|
"--das-ui-tooltip-bgff-color": "#fff"
|
|
132
|
-
},
|
|
136
|
+
}, ee = { 文字提示: { "zh-CN": "文字提示", en: "Text Prompt", _appCode: "framework" } };
|
|
137
|
+
X(ee);
|
|
133
138
|
F(Z);
|
|
134
|
-
|
|
135
|
-
const ae = () => u(null), pe = Y(Q), de = { name: `Tooltip ${X("文字提示")}` };
|
|
139
|
+
const pe = () => m(null), de = O(U), fe = { name: `Tooltip ${Y("文字提示")}` };
|
|
136
140
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
141
|
+
de as DasTooltip,
|
|
142
|
+
pe as DasTooltipRef,
|
|
143
|
+
fe as default
|
|
140
144
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-tooltip-popper.el-popper{max-width:360px;box-shadow:0 4px 10px #0003;border:none;font-size:var(--das-ui-font-size-sm);padding:0;border-radius:unset}.das-ui-tooltip-popper.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-3px!important}.das-ui-tooltip-popper.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-3px!important}.das-ui-tooltip-popper.el-popper .das-popper-content{padding:7px 12px}.das-ui-tooltip-popper.el-popper .max-height{max-height:
|
|
1
|
+
.das-ui-tooltip-popper.el-popper{max-width:360px;box-shadow:0 4px 10px #0003;border:none;font-size:var(--das-ui-font-size-sm);padding:0;border-radius:unset}.das-ui-tooltip-popper.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-3px!important}.das-ui-tooltip-popper.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-3px!important}.das-ui-tooltip-popper.el-popper .das-popper-content{padding:7px 12px}.das-ui-tooltip-popper.el-popper .max-height{max-height:29px}.das-ui-tooltip-popper.el-popper.is-light{color:var(--das-ui-color-normal);background-color:var(--das-ui-tooltip-bgff-color)}.das-ui-tooltip-popper.el-popper.is-light:after{position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;content:"";background:var(--das-ui-tooltip-bgff-color);border-radius:2px}.das-ui-tooltip-popper.el-popper.is-light .el-popper__arrow:before{height:8px;width:8px;background-color:var(--das-ui-tooltip-bgff-color);border-color:var(--das-ui-tooltip-bgff-color);border-radius:0!important}.das-ui-tooltip-popper.el-popper.is-light[data-popper-placement^=top] .el-popper__arrow:before{box-shadow:3px 3px 5px #00000026}.das-ui-tooltip-popper.el-popper.is-light[data-popper-placement^=bottom] .el-popper__arrow:before{box-shadow:-2px -2px 5px #0000001a}.das-ui-tooltip-popper.el-popper.is-light[data-popper-placement^=left] .el-popper__arrow:before{box-shadow:3px 0 6px #0000001f,0 -2px 6px #cc95951f}.das-ui-tooltip-popper.el-popper.is-light[data-popper-placement^=right] .el-popper__arrow:before{box-shadow:0 3px 6px #0000001a,-2px 0 6px #0000001a}.das-tooltip-text-wrap[data-v-49a01a3a]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--4b1c8854)}
|
|
Binary file
|