yahee-components 0.0.94-test → 0.0.94-test2
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 +21 -18
- package/es/help-tag/help-tag.vue2.js +22 -20
- 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,42 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import c from "./help-tag.vue2.js";
|
|
2
|
+
import { createElementBlock as i, openBlock as r, createVNode as o, withCtx as t, withDirectives as l, createElementVNode as a, withModifiers as s } from "vue";
|
|
3
|
+
import p from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const d = {
|
|
5
|
+
class: "yahee-help-tag",
|
|
6
|
+
ref: "yaheeHelpTag"
|
|
7
|
+
}, f = ["innerHTML"];
|
|
8
|
+
function _(m, h, n, e, g, w) {
|
|
9
|
+
return r(), i("div", d, [
|
|
10
|
+
o(e.ElPopover, {
|
|
8
11
|
ref: "popoverRef",
|
|
9
12
|
placement: "bottom",
|
|
10
13
|
width: n.tipsContentSize.width,
|
|
11
14
|
trigger: "click"
|
|
12
15
|
}, {
|
|
13
|
-
reference:
|
|
14
|
-
|
|
16
|
+
reference: t(() => [
|
|
17
|
+
o(e.ElIcon, {
|
|
15
18
|
size: "18",
|
|
16
19
|
color: "#ccc",
|
|
17
20
|
onClick: s(e.getTipsContent, ["stop"]),
|
|
18
21
|
style: { cursor: "pointer" }
|
|
19
22
|
}, {
|
|
20
|
-
default:
|
|
21
|
-
|
|
23
|
+
default: t(() => [
|
|
24
|
+
o(e.InfoFilled)
|
|
22
25
|
]),
|
|
23
26
|
_: 1
|
|
24
27
|
})
|
|
25
28
|
]),
|
|
26
|
-
default:
|
|
29
|
+
default: t(() => [
|
|
27
30
|
l(a("div", {
|
|
31
|
+
class: "tips-content",
|
|
28
32
|
ref: "contentRef",
|
|
29
|
-
innerHTML: e.tipsContent
|
|
30
|
-
|
|
31
|
-
}, null, 12, _), [
|
|
33
|
+
innerHTML: e.tipsContent
|
|
34
|
+
}, null, 8, f), [
|
|
32
35
|
[e.vLoading, e.loading]
|
|
33
36
|
])
|
|
34
37
|
]),
|
|
35
38
|
_: 1
|
|
36
39
|
}, 8, ["width"])
|
|
37
|
-
]);
|
|
40
|
+
], 512);
|
|
38
41
|
}
|
|
39
|
-
const
|
|
42
|
+
const E = /* @__PURE__ */ p(c, [["render", _], ["__file", "E:/project/common_componentsweb_new/common_componentsweb/packages/components/src/help-tag/help-tag.vue"]]);
|
|
40
43
|
export {
|
|
41
|
-
|
|
44
|
+
E as default
|
|
42
45
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as f, ref as
|
|
2
|
-
import { GetHelpTag as
|
|
3
|
-
import { InfoFilled as
|
|
4
|
-
import { vLoading as
|
|
1
|
+
import { defineComponent as f, ref as e, nextTick as c } from "vue";
|
|
2
|
+
import { GetHelpTag as d } from "../packages/components/api/log/index.js";
|
|
3
|
+
import { InfoFilled as g } from "@element-plus/icons-vue";
|
|
4
|
+
import { vLoading as m, ElIcon as v, ElPopover as h } 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";
|
|
@@ -20,28 +20,30 @@ const E = /* @__PURE__ */ f({
|
|
|
20
20
|
},
|
|
21
21
|
setup(a, { expose: u }) {
|
|
22
22
|
u();
|
|
23
|
-
const n =
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const n = e(), s = e(null), t = e(null), o = e(null), p = e(!1), i = a;
|
|
24
|
+
c(() => {
|
|
25
|
+
o.value && (o.value.style.height = `${i.tipsContentSize.height}px`), t.value && typeof t.value.updatePopper == "function" && t.value.updatePopper();
|
|
26
26
|
});
|
|
27
|
-
const
|
|
28
|
-
p.value = !0,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
const r = { tipsContent: n, yaheeHelpTag: s, popoverRef: t, contentRef: o, loading: p, props: i, getTipsContent: () => {
|
|
28
|
+
p.value = !0, setTimeout(() => {
|
|
29
|
+
d({ Id: i.tipsId }).then((l) => {
|
|
30
|
+
l && l.Content && (n.value = l.Content.Content);
|
|
31
|
+
}).catch(() => {
|
|
32
|
+
n.value = "加载失败,请重试";
|
|
33
|
+
}).finally(() => {
|
|
34
|
+
p.value = !1;
|
|
35
|
+
});
|
|
36
|
+
}, 3e3);
|
|
35
37
|
}, get InfoFilled() {
|
|
36
|
-
return
|
|
38
|
+
return g;
|
|
37
39
|
}, get ElPopover() {
|
|
38
|
-
return
|
|
40
|
+
return h;
|
|
39
41
|
}, get ElIcon() {
|
|
40
|
-
return g;
|
|
41
|
-
}, get vLoading() {
|
|
42
42
|
return v;
|
|
43
|
+
}, get vLoading() {
|
|
44
|
+
return m;
|
|
43
45
|
} };
|
|
44
|
-
return Object.defineProperty(
|
|
46
|
+
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
45
47
|
}
|
|
46
48
|
});
|
|
47
49
|
export {
|
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
|
*/
|