yahee-components 0.0.95 → 0.0.96
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/es/help-tag/help-tag.vue.js +14 -16
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as d, ref as e, nextTick as h, createElementBlock as
|
|
1
|
+
import { defineComponent as d, ref as e, nextTick as h, createElementBlock as v, openBlock as m, createVNode as r, unref as o, withCtx as a, withDirectives as g, createElementVNode as y, withModifiers as C } from "vue";
|
|
2
2
|
import { GetHelpTag as _ } from "../packages/components/api/log/index.js";
|
|
3
3
|
import { InfoFilled as k } from "@element-plus/icons-vue";
|
|
4
|
-
import { ElPopover as
|
|
4
|
+
import { ElPopover as w, vLoading as T, ElIcon as x } from "element-plus";
|
|
5
5
|
import "element-plus/theme-chalk/src/base.scss";
|
|
6
6
|
import "element-plus/theme-chalk/src/popper.scss";
|
|
7
7
|
import "element-plus/theme-chalk/src/popover.scss";
|
|
@@ -24,22 +24,20 @@ const H = ["innerHTML"], b = /* @__PURE__ */ d({
|
|
|
24
24
|
l.value && (l.value.style.height = `${s.tipsContentSize.height}px`), t.value && typeof t.value.updatePopper == "function" && t.value.updatePopper();
|
|
25
25
|
});
|
|
26
26
|
const u = () => {
|
|
27
|
-
p.value = !0,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
35
|
-
}, 3e3);
|
|
27
|
+
p.value = !0, _({ Id: s.tipsId }).then((n) => {
|
|
28
|
+
n && n.Content && (i.value = n.Content.Content);
|
|
29
|
+
}).catch(() => {
|
|
30
|
+
i.value = "加载失败,请重试";
|
|
31
|
+
}).finally(() => {
|
|
32
|
+
p.value = !1;
|
|
33
|
+
});
|
|
36
34
|
};
|
|
37
|
-
return (
|
|
35
|
+
return (n, I) => (m(), v("div", {
|
|
38
36
|
class: "yahee-help-tag",
|
|
39
37
|
ref_key: "yaheeHelpTag",
|
|
40
38
|
ref: f
|
|
41
39
|
}, [
|
|
42
|
-
r(
|
|
40
|
+
r(o(w), {
|
|
43
41
|
ref_key: "popoverRef",
|
|
44
42
|
ref: t,
|
|
45
43
|
placement: "bottom",
|
|
@@ -48,14 +46,14 @@ const H = ["innerHTML"], b = /* @__PURE__ */ d({
|
|
|
48
46
|
trigger: "click"
|
|
49
47
|
}, {
|
|
50
48
|
reference: a(() => [
|
|
51
|
-
r(
|
|
49
|
+
r(o(x), {
|
|
52
50
|
size: "18",
|
|
53
51
|
color: "#ccc",
|
|
54
52
|
onClick: C(u, ["stop"]),
|
|
55
53
|
style: { cursor: "pointer" }
|
|
56
54
|
}, {
|
|
57
55
|
default: a(() => [
|
|
58
|
-
r(
|
|
56
|
+
r(o(k))
|
|
59
57
|
]),
|
|
60
58
|
_: 1
|
|
61
59
|
})
|
|
@@ -67,7 +65,7 @@ const H = ["innerHTML"], b = /* @__PURE__ */ d({
|
|
|
67
65
|
ref: l,
|
|
68
66
|
innerHTML: i.value
|
|
69
67
|
}, null, 8, H), [
|
|
70
|
-
[
|
|
68
|
+
[o(T), p.value]
|
|
71
69
|
])
|
|
72
70
|
]),
|
|
73
71
|
_: 1
|