yahee-components 0.0.94 → 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 +37 -32
- package/es/help-tag/style/index.css +4 -0
- package/es/style.css +4 -0
- package/lib/help-tag/style/index.css +4 -0
- package/lib/style.css +4 -0
- package/package.json +1 -1
- package/types/src/help-tag/help-tag.vue.d.ts +1 -0
- package/types/src/help-tag/index.d.ts +1 -0
- package/types/src/help-tag/props.d.ts +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent 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
|
-
import { InfoFilled as
|
|
4
|
-
import { ElPopover as
|
|
3
|
+
import { InfoFilled as k } from "@element-plus/icons-vue";
|
|
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";
|
|
8
|
-
const
|
|
8
|
+
const H = ["innerHTML"], b = /* @__PURE__ */ d({
|
|
9
9
|
__name: "help-tag",
|
|
10
10
|
props: {
|
|
11
11
|
tipsId: {
|
|
@@ -18,56 +18,61 @@ const x = { class: "yahee-help-tag" }, I = ["innerHTML"], B = /* @__PURE__ */ u(
|
|
|
18
18
|
required: !1
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
setup(c) {
|
|
22
|
+
const i = e(), f = e(null), t = e(null), l = e(null), p = e(!1), s = c;
|
|
23
|
+
h(() => {
|
|
24
|
+
l.value && (l.value.style.height = `${s.tipsContentSize.height}px`), t.value && typeof t.value.updatePopper == "function" && t.value.updatePopper();
|
|
25
25
|
});
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
const u = () => {
|
|
27
|
+
p.value = !0, _({ Id: s.tipsId }).then((n) => {
|
|
28
|
+
n && n.Content && (i.value = n.Content.Content);
|
|
29
29
|
}).catch(() => {
|
|
30
|
-
|
|
30
|
+
i.value = "加载失败,请重试";
|
|
31
31
|
}).finally(() => {
|
|
32
|
-
|
|
32
|
+
p.value = !1;
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
return (
|
|
36
|
-
|
|
35
|
+
return (n, I) => (m(), v("div", {
|
|
36
|
+
class: "yahee-help-tag",
|
|
37
|
+
ref_key: "yaheeHelpTag",
|
|
38
|
+
ref: f
|
|
39
|
+
}, [
|
|
40
|
+
r(o(w), {
|
|
37
41
|
ref_key: "popoverRef",
|
|
38
|
-
ref:
|
|
42
|
+
ref: t,
|
|
39
43
|
placement: "bottom",
|
|
40
|
-
width:
|
|
44
|
+
width: c.tipsContentSize.width,
|
|
45
|
+
"append-to": f.value,
|
|
41
46
|
trigger: "click"
|
|
42
47
|
}, {
|
|
43
|
-
reference:
|
|
44
|
-
|
|
48
|
+
reference: a(() => [
|
|
49
|
+
r(o(x), {
|
|
45
50
|
size: "18",
|
|
46
51
|
color: "#ccc",
|
|
47
|
-
onClick: C(
|
|
52
|
+
onClick: C(u, ["stop"]),
|
|
48
53
|
style: { cursor: "pointer" }
|
|
49
54
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
|
|
55
|
+
default: a(() => [
|
|
56
|
+
r(o(k))
|
|
52
57
|
]),
|
|
53
58
|
_: 1
|
|
54
59
|
})
|
|
55
60
|
]),
|
|
56
|
-
default:
|
|
57
|
-
|
|
61
|
+
default: a(() => [
|
|
62
|
+
g(y("div", {
|
|
63
|
+
class: "tips-content",
|
|
58
64
|
ref_key: "contentRef",
|
|
59
|
-
ref:
|
|
60
|
-
innerHTML:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
[i(z), a.value]
|
|
65
|
+
ref: l,
|
|
66
|
+
innerHTML: i.value
|
|
67
|
+
}, null, 8, H), [
|
|
68
|
+
[o(T), p.value]
|
|
64
69
|
])
|
|
65
70
|
]),
|
|
66
71
|
_: 1
|
|
67
|
-
}, 8, ["width"])
|
|
68
|
-
]));
|
|
72
|
+
}, 8, ["width", "append-to"])
|
|
73
|
+
], 512));
|
|
69
74
|
}
|
|
70
75
|
});
|
|
71
76
|
export {
|
|
72
|
-
|
|
77
|
+
b as default
|
|
73
78
|
};
|
package/es/style.css
CHANGED
package/lib/style.css
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export interface HelpTagProps {
|
|
5
5
|
/**
|
|
6
6
|
* 帮助信息查询ID <br>
|
|
7
|
-
* 帮助信息测试环境配置地址:<br>http://qas-newerp.yahee.com.cn:8088/PMS/
|
|
7
|
+
* 帮助信息测试环境配置地址:<br>http://qas-newerp.yahee.com.cn:8088/PMS/latest/Help/TagDefind <br>
|
|
8
8
|
* 帮助信息正式环境配置地址:<br>https://newerp.yaheecloud.com/PMS/Latest/Help/TagDefind
|
|
9
9
|
* @default ''
|
|
10
10
|
*/
|