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.
@@ -1,42 +1,45 @@
1
- import i from "./help-tag.vue2.js";
2
- import { createElementBlock as c, openBlock as r, createVNode as t, withCtx as o, withDirectives as l, createElementVNode as a, normalizeStyle as d, withModifiers as s } from "vue";
3
- import f from "../_virtual/_plugin-vue_export-helper.js";
4
- const m = { class: "yahee-help-tag" }, _ = ["innerHTML"];
5
- function h(p, g, n, e, w, v) {
6
- return r(), c("div", m, [
7
- t(e.ElPopover, {
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: o(() => [
14
- t(e.ElIcon, {
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: o(() => [
21
- t(e.InfoFilled)
23
+ default: t(() => [
24
+ o(e.InfoFilled)
22
25
  ]),
23
26
  _: 1
24
27
  })
25
28
  ]),
26
- default: o(() => [
29
+ default: t(() => [
27
30
  l(a("div", {
31
+ class: "tips-content",
28
32
  ref: "contentRef",
29
- innerHTML: e.tipsContent,
30
- style: d({ height: n.tipsContentSize.height, overflowY: "hidden" })
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 x = /* @__PURE__ */ f(i, [["render", h], ["__file", "E:/project/common_componentsweb_new/common_componentsweb/packages/components/src/help-tag/help-tag.vue"]]);
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
- x as default
44
+ E as default
42
45
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as f, ref as o, nextTick as s } from "vue";
2
- import { GetHelpTag as c } from "../packages/components/api/log/index.js";
3
- import { InfoFilled as d } from "@element-plus/icons-vue";
4
- import { vLoading as v, ElIcon as g, ElPopover as m } from "element-plus";
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 = o(), e = o(null), t = o(null), p = o(!1), r = a;
24
- s(() => {
25
- t.value && (t.value.style.height = `${r.tipsContentSize.height}px`, t.value.style.overflowY = "auto"), e.value && typeof e.value.updatePopper == "function" && e.value.updatePopper();
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 i = { tipsContent: n, popoverRef: e, contentRef: t, loading: p, props: r, getTipsContent: () => {
28
- p.value = !0, c({ Id: r.tipsId }).then((l) => {
29
- l && l.Content && (n.value = l.Content.Content);
30
- }).catch(() => {
31
- n.value = "加载失败,请重试";
32
- }).finally(() => {
33
- p.value = !1;
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 d;
38
+ return g;
37
39
  }, get ElPopover() {
38
- return m;
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(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
46
+ return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
45
47
  }
46
48
  });
47
49
  export {
@@ -1,4 +1,8 @@
1
1
  .yahee-help-tag {
2
2
  display: flex;
3
3
  align-items: center;
4
+ }
5
+ .yahee-help-tag .tips-content {
6
+ overflow: auto;
7
+ text-align: left;
4
8
  }
package/es/style.css CHANGED
@@ -552,6 +552,10 @@
552
552
  display: flex;
553
553
  align-items: center;
554
554
  }
555
+ .yahee-help-tag .tips-content {
556
+ overflow: auto;
557
+ text-align: left;
558
+ }
555
559
 
556
560
  :root {
557
561
  --el-color-primary: #3366cc;
@@ -1,4 +1,8 @@
1
1
  .yahee-help-tag {
2
2
  display: flex;
3
3
  align-items: center;
4
+ }
5
+ .yahee-help-tag .tips-content {
6
+ overflow: auto;
7
+ text-align: left;
4
8
  }
package/lib/style.css CHANGED
@@ -552,6 +552,10 @@
552
552
  display: flex;
553
553
  align-items: center;
554
554
  }
555
+ .yahee-help-tag .tips-content {
556
+ overflow: auto;
557
+ text-align: left;
558
+ }
555
559
 
556
560
  :root {
557
561
  --el-color-primary: #3366cc;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.94-test",
4
+ "version": "0.0.94-test2",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -40,6 +40,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
40
40
  height: number;
41
41
  };
42
42
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
43
+ yaheeHelpTag: HTMLDivElement;
43
44
  popoverRef: {
44
45
  $: ComponentInternalInstance;
45
46
  $data: {};
@@ -41,6 +41,7 @@ export declare const YaheeHelpTag: SFCWithInstall<DefineComponent<ExtractPropTyp
41
41
  height: number;
42
42
  };
43
43
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
44
+ yaheeHelpTag: HTMLDivElement;
44
45
  popoverRef: {
45
46
  $: ComponentInternalInstance;
46
47
  $data: {};
@@ -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/Latest/Help/TagDefind <br>
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
  */