agilebuilder-ui 1.1.65-tmp25 → 1.1.65-tmp27

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.
Files changed (138) hide show
  1. package/dist/index.full.min.js +1116 -1115
  2. package/dist/style.css +36 -20
  3. package/es/IntervalSelection/src/sectionDate.vue.mjs +8 -8
  4. package/es/chat-embed/src/chat-addition-data.vue2.mjs +14 -11
  5. package/es/chat-embed/src/chat-ai-answer-tip.vue2.mjs +8 -8
  6. package/es/chat-embed/src/chat-bubble-footer.vue2.mjs +5 -5
  7. package/es/chat-embed/src/chat-sender.vue2.mjs +41 -41
  8. package/es/chat-embed/src/components/answer-auto-chart.vue2.mjs +1 -2
  9. package/es/chat-embed/src/components/answer-interaction-data.vue2.mjs +6 -7
  10. package/es/chat-embed/src/components/history-detail.vue2.mjs +18 -18
  11. package/es/chat-embed/src/header.vue2.mjs +16 -16
  12. package/es/chat-embed/src/index.vue2.mjs +161 -161
  13. package/es/chat-embed/src/recommendation-message.vue2.mjs +9 -6
  14. package/es/chat-embed/src/sidebar-item.vue2.mjs +65 -65
  15. package/es/chat-embed/src/voice/voice.vue.mjs +36 -35
  16. package/es/date-picker-range/index.vue2.mjs +39 -39
  17. package/es/department-tree-mobile/src/department-tree-app.vue.mjs +8 -7
  18. package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +54 -54
  19. package/es/department-tree-mobile/src/dept-path.vue.mjs +7 -6
  20. package/es/department-tree-mobile/src/dept-result.vue.mjs +7 -6
  21. package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +5 -5
  22. package/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs +10 -9
  23. package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +64 -64
  24. package/es/department-user-tree-mobile/src/dept-path.vue.mjs +7 -6
  25. package/es/department-user-tree-mobile/src/dept-result.vue.mjs +4 -3
  26. package/es/empty-state/index.vue.mjs +2 -2
  27. package/es/fs-upload/src/fs-upload-multi.vue.mjs +1 -1
  28. package/es/fs-upload-list/src/fs-upload-list.vue.mjs +1 -1
  29. package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +12 -12
  30. package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +24 -24
  31. package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +17 -17
  32. package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.mjs +12 -12
  33. package/es/fs-upload-new/src/fs-button-upload.vue2.mjs +23 -23
  34. package/es/fs-upload-new/src/fs-drag-upload.vue2.mjs +23 -23
  35. package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +34 -34
  36. package/es/fs-upload-new/src/fs-upload-new.vue.mjs +15 -15
  37. package/es/index.mjs +6 -7
  38. package/es/json-view/json-view-dialog.vue.mjs +5 -5
  39. package/es/multipart-upload/src/multipart-upload-form.vue.mjs +1 -1
  40. package/es/multipart-upload/src/multipart-upload-list.vue.mjs +5 -5
  41. package/es/row-form/index.vue2.mjs +31 -31
  42. package/es/row-form/operation.vue.mjs +13 -13
  43. package/es/secret-info/index.vue.mjs +1 -1
  44. package/es/src/components/Affix/index.vue2.mjs +26 -26
  45. package/es/src/components/Scrollbar/index.vue.mjs +22 -22
  46. package/es/src/utils/watermark.mjs +25 -35
  47. package/es/src/views/error-page/401.vue.mjs +8 -8
  48. package/es/src/views/error-page/404.vue.mjs +8 -8
  49. package/es/style.css +911 -895
  50. package/es/super-grid/src/columns-config.vue.mjs +1 -1
  51. package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
  52. package/es/super-grid/src/components/select-input.vue.mjs +55 -55
  53. package/es/super-grid/src/row-detail.vue.mjs +1 -1
  54. package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
  55. package/es/super-grid/src/search-form-number.vue.mjs +4 -5
  56. package/es/super-grid/src/super-grid.vue.mjs +1 -1
  57. package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
  58. package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
  59. package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
  60. package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
  61. package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
  62. package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
  63. package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
  64. package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
  65. package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
  66. package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
  67. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
  68. package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
  69. package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
  70. package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
  71. package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
  72. package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
  73. package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
  74. package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
  75. package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
  76. package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
  77. package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
  78. package/lib/chat-embed/src/header.vue2.cjs +17 -17
  79. package/lib/chat-embed/src/index.vue2.cjs +123 -123
  80. package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
  81. package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
  82. package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
  83. package/lib/date-picker-range/index.vue2.cjs +11 -11
  84. package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
  85. package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
  86. package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
  87. package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
  88. package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
  89. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
  90. package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
  91. package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  92. package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  93. package/lib/empty-state/index.vue.cjs +2 -2
  94. package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
  95. package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
  96. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
  97. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
  98. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
  99. package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
  100. package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
  101. package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
  102. package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
  103. package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
  104. package/lib/index.cjs +7 -7
  105. package/lib/json-view/json-view-dialog.vue.cjs +6 -6
  106. package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
  107. package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
  108. package/lib/row-form/index.vue2.cjs +31 -31
  109. package/lib/row-form/operation.vue.cjs +13 -13
  110. package/lib/secret-info/index.vue.cjs +1 -1
  111. package/lib/src/components/Affix/index.vue2.cjs +28 -28
  112. package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
  113. package/lib/src/utils/watermark.cjs +21 -32
  114. package/lib/src/views/error-page/401.vue.cjs +7 -7
  115. package/lib/src/views/error-page/404.vue.cjs +4 -4
  116. package/lib/style.css +913 -897
  117. package/lib/super-grid/src/columns-config.vue.cjs +1 -1
  118. package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
  119. package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
  120. package/lib/super-grid/src/row-detail.vue.cjs +1 -1
  121. package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
  122. package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
  123. package/lib/super-grid/src/super-grid.vue.cjs +1 -1
  124. package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
  125. package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
  126. package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
  127. package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
  128. package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
  129. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
  130. package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
  131. package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
  132. package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
  133. package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
  134. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
  135. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
  136. package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
  137. package/package.json +2 -2
  138. package/src/utils/watermark.js +1 -1
@@ -1,49 +1,49 @@
1
1
  import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, watchEffect as l, computed as a, resolveDirective as r, openBlock as s, createElementBlock as u, normalizeStyle as f, withDirectives as c, normalizeClass as d, renderSlot as v } from "vue";
2
2
  const p = e({ __name: "index", props: { offset: { type: Number, default: 0 }, position: { type: String, default: "top", validator: (e2) => ["top", "bottom"].includes(e2) }, target: { type: [String, HTMLElement], default: () => window }, autoDetectParentScroll: { type: Boolean, default: true }, stickyInScrollContainer: { type: Boolean, default: true }, zIndex: { type: Number, default: 100 }, enableIntervalUpdate: { type: Boolean, default: true }, enableIntervalTime: { type: Number, default: 2e3 } }, emits: ["change"], setup(e2, { emit: p2 }) {
3
- const h = e2, m = t(null), g = t(null), w = t(false), y = t({}), x = t([]), b = t(window), T = t(0), B = t(null), I = (e3) => {
4
- e3.contentRect.height && (y.value.height = e3.contentRect.height);
5
- }, E = () => {
3
+ const h = e2, m = p2, g = t(null), w = t(null), y = t(false), x = t({}), b = t([]), T = t(window), B = t(0), I = t(null), E = (e3) => {
4
+ e3.contentRect.height && (x.value.height = e3.contentRect.height);
5
+ }, S = () => {
6
6
  try {
7
- if (!g.value)
7
+ if (!w.value)
8
8
  return;
9
- const e3 = g.value.getBoundingClientRect(), t2 = b.value;
9
+ const e3 = w.value.getBoundingClientRect(), t2 = T.value;
10
10
  if (t2 === window) {
11
11
  const t3 = "top" === h.position ? e3.top <= h.offset : e3.bottom >= window.innerHeight - h.offset;
12
- T.value = 0, S(t3, e3);
12
+ B.value = 0, R(t3, e3);
13
13
  } else if (h.stickyInScrollContainer) {
14
14
  const o2 = t2.getBoundingClientRect(), { isFixTop: n2, isFixBottom: i2, containerOffset: l2 } = ((e4) => {
15
15
  const t3 = ["top"].includes(h.position), o3 = ["bottom"].includes(h.position);
16
- if (!m.value)
16
+ if (!g.value)
17
17
  return { isTop: t3, isBottom: o3 };
18
- const n3 = m.value.getBoundingClientRect(), i3 = n3.top - e4.top, l3 = n3.left - e4.left, a2 = e4.height - n3.height - i3, r2 = e4.top, s2 = window.innerHeight - e4.bottom;
18
+ const n3 = g.value.getBoundingClientRect(), i3 = n3.top - e4.top, l3 = n3.left - e4.left, a2 = e4.height - n3.height - i3, r2 = e4.top, s2 = window.innerHeight - e4.bottom;
19
19
  return { isTop: t3, isBottom: o3, containerTop: r2, containerBottom: s2, containerOffset: t3 ? r2 : o3 ? s2 : 0, offsetTop: i3, offsetLeft: l3, offsetBottom: a2, isFixTop: t3 && i3 <= 0, isFixBottom: o3 && a2 <= 0 };
20
20
  })(o2);
21
- T.value = l2 ?? 0, S(n2 || i2 || false, e3);
21
+ B.value = l2 ?? 0, R(n2 || i2 || false, e3);
22
22
  }
23
23
  } catch (e3) {
24
24
  console.error(e3);
25
25
  }
26
- }, S = (e3, t2) => {
26
+ }, R = (e3, t2) => {
27
27
  var _a;
28
- t2.height && (e3 === w.value && ((_a = y.value) == null ? void 0 : _a.height) === `${t2.height}px` || (w.value = e3, p2("change", e3), y.value = e3 ? { width: "100%", height: `${t2.height}px` } : {}));
29
- }, R = () => {
30
- requestAnimationFrame(E);
28
+ t2.height && (e3 === y.value && ((_a = x.value) == null ? void 0 : _a.height) === `${t2.height}px` || (y.value = e3, m("change", e3), x.value = e3 ? { width: "100%", height: `${t2.height}px` } : {}));
29
+ }, z = () => {
30
+ requestAnimationFrame(S);
31
31
  };
32
- let z;
33
- const C = () => {
34
- w.value = false, clearTimeout(z), z = window.setTimeout(() => {
35
- E();
32
+ let C;
33
+ const L = () => {
34
+ y.value = false, clearTimeout(C), C = window.setTimeout(() => {
35
+ S();
36
36
  }, 100);
37
37
  };
38
38
  o(() => {
39
39
  setTimeout(() => {
40
40
  n(() => {
41
41
  try {
42
- h.enableIntervalUpdate && (B.value = setInterval(R, h.enableIntervalTime));
42
+ h.enableIntervalUpdate && (I.value = setInterval(z, h.enableIntervalTime));
43
43
  const e3 = (() => {
44
- if (h.autoDetectParentScroll && g.value) {
44
+ if (h.autoDetectParentScroll && w.value) {
45
45
  const e4 = [];
46
- let t2 = g.value.parentElement;
46
+ let t2 = w.value.parentElement;
47
47
  for (; t2 && t2 !== document.body; ) {
48
48
  const { overflowY: o2 } = window.getComputedStyle(t2);
49
49
  /(auto|scroll)/.test(o2) && e4.push(t2), t2 = t2.parentElement;
@@ -56,26 +56,26 @@ const p = e({ __name: "index", props: { offset: { type: Number, default: 0 }, po
56
56
  }
57
57
  return [window];
58
58
  })();
59
- x.value = e3, b.value = e3[0], x.value.forEach((e4) => e4.addEventListener("scroll", R)), window.addEventListener("resize", C), E();
59
+ b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
60
60
  } catch (e3) {
61
61
  console.error(e3);
62
62
  }
63
63
  });
64
64
  }, 100);
65
65
  }), i(() => {
66
- b.value && x.value.forEach((e3) => e3.removeEventListener("scroll", R)), window.removeEventListener("resize", C), clearTimeout(z), B.value && clearInterval(B.value);
66
+ T.value && b.value.forEach((e3) => e3.removeEventListener("scroll", z)), window.removeEventListener("resize", L), clearTimeout(C), I.value && clearInterval(I.value);
67
67
  }), l(() => {
68
68
  n(() => {
69
- R();
69
+ z();
70
70
  });
71
71
  });
72
- const L = a(() => {
72
+ const F = a(() => {
73
73
  var _a, _b;
74
- return w.value && ((_a = g.value) == null ? void 0 : _a.offsetWidth) ? { position: "fixed", width: `${(_b = g.value) == null ? void 0 : _b.offsetWidth}px`, zIndex: h.zIndex, [h.position]: `${h.offset + T.value}px` } : { position: "relative" };
74
+ return y.value && ((_a = w.value) == null ? void 0 : _a.offsetWidth) ? { position: "fixed", width: `${(_b = w.value) == null ? void 0 : _b.offsetWidth}px`, zIndex: h.zIndex, [h.position]: `${h.offset + B.value}px` } : { position: "relative" };
75
75
  });
76
76
  return (e3, t2) => {
77
77
  const o2 = r("resize");
78
- return s(), u("div", { ref_key: "affixMainRef", ref: m, class: "yx-affix", style: f({ height: w.value ? y.value.height : void 0 }) }, [c((s(), u("div", { ref_key: "affixRef", ref: g, style: f(L.value), class: d([{ "is-fixed": w.value, "is-top": "top" === h.position, "is-bottom": "bottom" === h.position }, "yx-affix-content"]) }, [v(e3.$slots, "default", {}, void 0, true)], 6)), [[o2, I]])], 4);
78
+ return s(), u("div", { ref_key: "affixMainRef", ref: g, class: "yx-affix", style: f({ height: y.value ? x.value.height : void 0 }) }, [c((s(), u("div", { ref_key: "affixRef", ref: w, style: f(F.value), class: d([{ "is-fixed": y.value, "is-top": "top" === h.position, "is-bottom": "bottom" === h.position }, "yx-affix-content"]) }, [v(e3.$slots, "default", {}, void 0, true)], 6)), [[o2, E]])], 4);
79
79
  };
80
80
  } });
81
81
  export {
@@ -7,45 +7,45 @@ const g = v({ __name: "index", props: { showScrollShadow: { type: Boolean, defau
7
7
  } }, setHeight: { type: [Function, void 0], default: () => {
8
8
  } } }, emits: ["scrollToTop", "scrollToBottom"], setup(v2, { emit: g2 }) {
9
9
  var _a, _b;
10
- const w = v2, f = e();
10
+ const w = e();
11
11
  (_b = (_a = m) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "startListeningToResize");
12
- const H = t(null), T = t(void 0), _ = o(() => ({ windowWidth: m.getters.windowWidth, windowHeight: m.getters.windowHeight, isMobileResize: m.getters.isMobileResize })), b = l({ always: false }), { attrs: x } = s(), y = (e2) => {
12
+ const f = t(null), H = t(void 0), T = g2, _ = o(() => ({ windowWidth: m.getters.windowWidth, windowHeight: m.getters.windowHeight, isMobileResize: m.getters.isMobileResize })), b = l({ always: false }), x = v2, { attrs: y } = s(), S = (e2) => {
13
13
  try {
14
14
  return e2 == null ? void 0 : e2(_.value);
15
15
  } catch (e3) {
16
16
  console.error(e3);
17
17
  }
18
- }, S = o(() => {
19
- const e2 = r(b, x);
20
- return { ...{ ...w.setMaxHeight ? { maxHeight: y(w.setMaxHeight) } : {}, ...w.setHeight ? { height: y(w.setHeight) } : {} }, ...e2 };
21
- }), $ = (e2) => {
18
+ }, $ = o(() => {
19
+ const e2 = r(b, y);
20
+ return { ...{ ...x.setMaxHeight ? { maxHeight: S(x.setMaxHeight) } : {}, ...x.setHeight ? { height: S(x.setHeight) } : {} }, ...e2 };
21
+ }), L = (e2) => {
22
22
  if (!e2)
23
23
  return;
24
- const t2 = e2.scrollTop <= w.triggerDistance;
25
- e2.scrollTop + e2.clientHeight + 1 >= e2.scrollHeight - w.triggerDistance ? (!["at-bottom"].includes(T.value) && g2("scrollToBottom"), T.value = "at-bottom") : t2 ? (!["at-top"].includes(T.value) && g2("scrollToTop"), T.value = "at-top") : T.value = void 0;
26
- }, L = () => {
24
+ const t2 = e2.scrollTop <= x.triggerDistance;
25
+ e2.scrollTop + e2.clientHeight + 1 >= e2.scrollHeight - x.triggerDistance ? (!["at-bottom"].includes(H.value) && T("scrollToBottom"), H.value = "at-bottom") : t2 ? (!["at-top"].includes(H.value) && T("scrollToTop"), H.value = "at-top") : H.value = void 0;
26
+ }, M = () => {
27
27
  var _a2;
28
- const e2 = (_a2 = H.value) == null ? void 0 : _a2.$el.querySelector(".el-scrollbar__wrap");
28
+ const e2 = (_a2 = f.value) == null ? void 0 : _a2.$el.querySelector(".el-scrollbar__wrap");
29
29
  if (e2) {
30
30
  const t2 = 0 === e2.scrollTop, o2 = e2.scrollTop + e2.clientHeight === e2.scrollHeight;
31
- w.showScrollShadow ? (t2 ? H.value.$el.classList.remove("scroll-top-shadow") : H.value.$el.classList.add("scroll-top-shadow"), o2 ? H.value.$el.classList.remove("scroll-bottom-shadow") : H.value.$el.classList.add("scroll-bottom-shadow")) : H.value.$el.classList.remove("scroll-top-shadow", "scroll-bottom-shadow"), $(e2);
31
+ x.showScrollShadow ? (t2 ? f.value.$el.classList.remove("scroll-top-shadow") : f.value.$el.classList.add("scroll-top-shadow"), o2 ? f.value.$el.classList.remove("scroll-bottom-shadow") : f.value.$el.classList.add("scroll-bottom-shadow")) : f.value.$el.classList.remove("scroll-top-shadow", "scroll-bottom-shadow"), L(e2);
32
32
  }
33
33
  };
34
34
  return a(() => {
35
- const e2 = H.value.$el.querySelector(".el-scrollbar__wrap");
36
- e2 && (e2.addEventListener("scroll", L), L(), $(e2));
37
- }), i(() => w.showScrollShadow, () => {
38
- L();
39
- }), i(() => S == null ? void 0 : S.maxHeight, () => {
40
- setTimeout(L, 500);
41
- }), i(() => S == null ? void 0 : S.height, () => {
42
- setTimeout(L, 500);
35
+ const e2 = f.value.$el.querySelector(".el-scrollbar__wrap");
36
+ e2 && (e2.addEventListener("scroll", M), M(), L(e2));
37
+ }), i(() => x.showScrollShadow, () => {
38
+ M();
39
+ }), i(() => $ == null ? void 0 : $.maxHeight, () => {
40
+ setTimeout(M, 500);
41
+ }), i(() => $ == null ? void 0 : $.height, () => {
42
+ setTimeout(M, 500);
43
43
  }), i(() => {
44
44
  var _a2;
45
- return (_a2 = f.default) == null ? void 0 : _a2.call(f);
45
+ return (_a2 = w.default) == null ? void 0 : _a2.call(w);
46
46
  }, (e2, t2) => {
47
- e2 !== t2 && setTimeout(L, 500);
48
- }, { deep: true }), (e2, t2) => (c(), d(u(p), r(S.value, { class: { "is-dispatch": w.dispatch }, ref_key: "scrollbarRef", ref: H }), { default: n(() => [h(e2.$slots, "default", {}, void 0, true)]), _: 3 }, 16, ["class"]));
47
+ e2 !== t2 && setTimeout(M, 500);
48
+ }, { deep: true }), (e2, t2) => (c(), d(u(p), r($.value, { class: { "is-dispatch": x.dispatch }, ref_key: "scrollbarRef", ref: f }), { default: n(() => [h(e2.$slots, "default", {}, void 0, true)]), _: 3 }, 16, ["class"]));
49
49
  } }, [["__scopeId", "data-v-dba8fdf8"]]);
50
50
  export {
51
51
  g as default
@@ -1,50 +1,40 @@
1
1
  import { getWatermark as e, cacheWatermark as t } from "./watermark-cache.mjs";
2
- import { formatDate as o } from "./common-util.mjs";
3
- const n = (e2, t2, o2) => {
4
- let n2 = "1.23452384164.123412415";
5
- (o2 && (n2 = o2), null !== document.getElementById(n2)) && (document.getElementById("pdfDom") ? document.getElementById("pdfDom").removeChild(document.getElementById(n2)) : document.body.removeChild(document.getElementById(n2)));
6
- const l2 = document.createElement("canvas");
7
- l2.width = t2 && t2.width && "" !== t2.width ? t2.width : "400", l2.height = t2 && t2.height && "" !== t2.height ? t2.height : "200";
8
- const d2 = l2.getContext("2d");
9
- d2.rotate(20 * Math.PI / 160), d2.font = t2 && t2.font && "" !== t2.font ? t2.font : "17px Vedana", d2.fillStyle = t2 && t2.color && "" !== t2.color ? t2.color : "rgba(200, 200, 200, 0.40)", d2.textAlign = "left", d2.textBaseline = "Middle", d2.fillText(e2, 60, 40);
10
- const r2 = document.createElement("div");
11
- (r2.id = n2, r2.style.pointerEvents = "none", r2.style.top = "10px", r2.style.left = "0px", r2.style.position = "fixed", r2.style.zIndex = "10000", r2.style.width = "100%", r2.style.height = "100%", r2.style.background = "url(" + l2.toDataURL("image/png") + ") left top repeat", document.getElementById("pdfDom")) ? document.getElementById("pdfDom").appendChild(r2) : document.body.appendChild(r2);
12
- return n2;
13
- };
14
- function l(e2, t2, l2, d2) {
15
- var r2 = /* @__PURE__ */ new Date();
16
- r2 = o(r2, "yyyy-MM-dd"), setTimeout(() => {
17
- var o2 = e2 && "" !== e2 ? e2 : l2 ? l2.name + " " + r2 : r2;
18
- let i = n(o2, t2, d2);
19
- setInterval(() => {
20
- null === document.getElementById(i) && (i = n(o2, t2, d2));
21
- }, 500), window.onresize = () => {
22
- n(o2, t2, d2);
23
- };
24
- });
25
- }
26
- function d() {
2
+ import "vue";
3
+ import "js-cookie";
4
+ import "uuid";
5
+ import "axios";
6
+ import "js-base64";
7
+ import "./request.mjs";
8
+ function o() {
27
9
  return new Promise((o2, n2) => {
28
- let l2 = e();
29
- if (l2 && "EMPTY_VALUE" !== l2)
10
+ let l = e();
11
+ if (l && "EMPTY_VALUE" !== l)
30
12
  try {
31
- l2 = JSON.parse(l2), l2.font = l2.fontStyle, l2.color = l2.fontColor, o2(l2);
13
+ l = JSON.parse(l), l.font = l.fontStyle, l.color = l.fontColor, o2(l);
32
14
  } catch (e2) {
33
15
  console.error("watermark content error.", e2), o2();
34
16
  }
35
17
  else
36
18
  window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/watermark").then((e2) => {
37
- e2 ? (l2 = e2, t(JSON.stringify(l2)), l2.font = l2.fontStyle, l2.color = l2.fontColor, o2(l2)) : (t("EMPTY_VALUE"), o2());
19
+ e2 ? (l = e2, t(JSON.stringify(l)), l.font = l.fontStyle, l.color = l.fontColor, o2(l)) : (t("EMPTY_VALUE"), o2());
38
20
  });
39
21
  });
40
22
  }
41
- function r() {
42
- d().then((e2) => {
43
- e2 && e2.useRange && e2.useRange.indexOf("page") >= 0 && n(e2.content, e2);
23
+ function n() {
24
+ o().then((e2) => {
25
+ e2 && e2.useRange && e2.useRange.indexOf("page") >= 0 && ((e3, t2, o2) => {
26
+ let n2 = "1.23452384164.123412415";
27
+ o2 && (n2 = o2), null !== document.getElementById(n2) && (document.getElementById("pdfDom") ? document.getElementById("pdfDom").removeChild(document.getElementById(n2)) : document.body.removeChild(document.getElementById(n2)));
28
+ const l = document.createElement("canvas");
29
+ l.width = t2 && t2.width && "" !== t2.width ? t2.width : "400", l.height = t2 && t2.height && "" !== t2.height ? t2.height : "200";
30
+ const i = l.getContext("2d");
31
+ i.rotate(20 * Math.PI / 160), i.font = t2 && t2.font && "" !== t2.font ? t2.font : "17px Vedana", i.fillStyle = t2 && t2.color && "" !== t2.color ? t2.color : "rgba(200, 200, 200, 0.40)", i.textAlign = "left", i.textBaseline = "Middle", i.fillText(e3, 60, 40);
32
+ const r = document.createElement("div");
33
+ r.id = n2, r.style.pointerEvents = "none", r.style.top = "10px", r.style.left = "0px", r.style.position = "fixed", r.style.zIndex = "10000", r.style.width = "100%", r.style.height = "100%", r.style.background = "url(" + l.toDataURL("image/png") + ") left top repeat", document.getElementById("pdfDom") ? document.getElementById("pdfDom").appendChild(r) : document.body.appendChild(r);
34
+ })(e2.content, e2);
44
35
  });
45
36
  }
46
37
  export {
47
- d as getWatermarkSetting,
48
- l as showWatermark,
49
- r as showWatermarkNew
38
+ o as getWatermarkSetting,
39
+ n as showWatermarkNew
50
40
  };
@@ -1,15 +1,15 @@
1
1
  import { ArrowLeft as e } from "@element-plus/icons-vue";
2
2
  import l from "../../assets/401/401.gif.mjs";
3
- import { resolveComponent as a, openBlock as t, createElementBlock as o, createVNode as i, withCtx as r, createTextVNode as s, createElementVNode as n, withModifiers as u, pushScopeId as c, popScopeId as d } from "vue";
3
+ import { resolveComponent as a, openBlock as t, createElementBlock as o, createVNode as i, withCtx as r, createTextVNode as s, createElementVNode as n, withModifiers as u } from "vue";
4
4
  import "./401.vue2.mjs";
5
- import p from "../../../_virtual/_plugin-vue_export-helper.mjs";
6
- const m = { data: () => ({ errGif: l + "?" + +/* @__PURE__ */ new Date(), ewizardClap: "https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646", dialogVisible: false, ElIconArrowLeft: e }), name: "Page401", methods: { back() {
5
+ import c from "../../../_virtual/_plugin-vue_export-helper.mjs";
6
+ const d = { class: "errPage-container" }, p = { class: "list-unstyled" }, m = { class: "link-type" }, f = ["src"], h = ["src"];
7
+ const b = c({ data: () => ({ errGif: l + "?" + +/* @__PURE__ */ new Date(), ewizardClap: "https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646", dialogVisible: false, ElIconArrowLeft: e }), name: "Page401", methods: { back() {
7
8
  this.$route.query.noGoBack ? this.$router.push({ path: "/dashboard" }) : this.$router.go(-1);
8
- } } }, f = (e2) => (c("data-v-6bef0241"), e2 = e2(), d(), e2), h = { class: "errPage-container" }, b = f(() => n("h1", { class: "text-jumbo text-ginormous" }, "Oops!", -1)), g = f(() => n("a", { href: "https://zh.airbnb.com/", target: "_blank" }, " airbnb ", -1)), w = f(() => n("h2", null, "你没有权限去该页面", -1)), _ = f(() => n("h6", null, "如有不满请联系你领导", -1)), k = { class: "list-unstyled" }, v = f(() => n("li", null, "或者你可以去:", -1)), V = { class: "link-type" }, C = f(() => n("li", { class: "link-type" }, [n("a", { href: "https://www.taobao.com/" }, " 随便看看 ")], -1)), j = ["src"], x = ["src"];
9
- const y = p(m, [["render", function(e2, l2, c2, d2, p2, m2) {
10
- const f2 = a("el-button"), y2 = a("router-link"), G = a("el-col"), z = a("el-row"), I = a("el-dialog");
11
- return t(), o("div", h, [i(f2, { icon: p2.ElIconArrowLeft, class: "pan-back-btn", onClick: m2.back }, { default: r(() => [s(" 返回 ")]), _: 1 }, 8, ["icon", "onClick"]), i(z, null, { default: r(() => [i(G, { span: 12 }, { default: r(() => [b, s(" gif来源"), g, s(" 页面 "), w, _, n("ul", k, [v, n("li", V, [i(y2, { to: "/dashboard" }, { default: r(() => [s(" 回首页 ")]), _: 1 })]), C, n("li", null, [n("a", { href: "#", onClick: l2[0] || (l2[0] = u((e3) => p2.dialogVisible = true, ["prevent"])) }, " 点我看图 ")])])]), _: 1 }), i(G, { span: 12 }, { default: r(() => [n("img", { src: p2.errGif, width: "313", height: "428", alt: "Girl has dropped her ice cream." }, null, 8, j)]), _: 1 })]), _: 1 }), i(I, { modelValue: p2.dialogVisible, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => p2.dialogVisible = e3), title: "随便看" }, { default: r(() => [n("img", { src: p2.ewizardClap, class: "pan-img" }, null, 8, x)]), _: 1 }, 8, ["modelValue"])]);
9
+ } } }, [["render", function(e2, l2, c2, b2, g, w) {
10
+ const _ = a("el-button"), k = a("router-link"), v = a("el-col"), V = a("el-row"), C = a("el-dialog");
11
+ return t(), o("div", d, [i(_, { icon: g.ElIconArrowLeft, class: "pan-back-btn", onClick: w.back }, { default: r(() => [...l2[2] || (l2[2] = [s(" 返回 ", -1)])]), _: 1 }, 8, ["icon", "onClick"]), i(V, null, { default: r(() => [i(v, { span: 12 }, { default: r(() => [l2[6] || (l2[6] = n("h1", { class: "text-jumbo text-ginormous" }, "Oops!", -1)), l2[7] || (l2[7] = s(" gif来源", -1)), l2[8] || (l2[8] = n("a", { href: "https://zh.airbnb.com/", target: "_blank" }, " airbnb ", -1)), l2[9] || (l2[9] = s(" 页面 ", -1)), l2[10] || (l2[10] = n("h2", null, "你没有权限去该页面", -1)), l2[11] || (l2[11] = n("h6", null, "如有不满请联系你领导", -1)), n("ul", p, [l2[4] || (l2[4] = n("li", null, "或者你可以去:", -1)), n("li", m, [i(k, { to: "/dashboard" }, { default: r(() => [...l2[3] || (l2[3] = [s(" 回首页 ", -1)])]), _: 1 })]), l2[5] || (l2[5] = n("li", { class: "link-type" }, [n("a", { href: "https://www.taobao.com/" }, " 随便看看 ")], -1)), n("li", null, [n("a", { href: "#", onClick: l2[0] || (l2[0] = u((e3) => g.dialogVisible = true, ["prevent"])) }, " 点我看图 ")])])]), _: 1 }), i(v, { span: 12 }, { default: r(() => [n("img", { src: g.errGif, width: "313", height: "428", alt: "Girl has dropped her ice cream." }, null, 8, f)]), _: 1 })]), _: 1 }), i(C, { modelValue: g.dialogVisible, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => g.dialogVisible = e3), title: "随便看" }, { default: r(() => [n("img", { src: g.ewizardClap, class: "pan-img" }, null, 8, h)]), _: 1 }, 8, ["modelValue"])]);
12
12
  }], ["__scopeId", "data-v-6bef0241"]]);
13
13
  export {
14
- y as default
14
+ b as default
15
15
  };
@@ -1,12 +1,12 @@
1
- import { openBlock as s, createElementBlock as a, createElementVNode as t, toDisplayString as i, createStaticVNode as c, pushScopeId as l, popScopeId as e } from "vue";
2
- import d from "../../assets/404/404.png.mjs";
3
- import r from "../../assets/404/404-cloud.png.mjs";
1
+ import { openBlock as s, createElementBlock as a, createElementVNode as t, createStaticVNode as i, toDisplayString as c } from "vue";
2
+ import l from "../../assets/404/404.png.mjs";
3
+ import e from "../../assets/404/404-cloud.png.mjs";
4
4
  import "./404.vue2.mjs";
5
- import f from "../../../_virtual/_plugin-vue_export-helper.mjs";
6
- const m = { name: "Page404", computed: { message: () => "页面不存在" } }, p = (s2) => (l("data-v-4f824f28"), s2 = s2(), e(), s2), o = { class: "wscn-http404-container" }, v = { class: "wscn-http404" }, n = c('<div class="pic-404" data-v-4f824f28><img class="pic-404__parent" src="' + d + '" alt="404" data-v-4f824f28><img class="pic-404__child left" src="' + r + '" alt="404" data-v-4f824f28><img class="pic-404__child mid" src="' + r + '" alt="404" data-v-4f824f28><img class="pic-404__child right" src="' + r + '" alt="404" data-v-4f824f28></div>', 1), _ = { class: "bullshit" }, u = { class: "bullshit__headline" }, g = p(() => t("div", { class: "bullshit__info" }, "请检查您输入的网址是否正确", -1));
7
- const h = f(m, [["render", function(c2, l2, e2, d2, r2, f2) {
8
- return s(), a("div", o, [t("div", v, [n, t("div", _, [t("div", u, i(f2.message), 1), g])])]);
5
+ import r from "../../../_virtual/_plugin-vue_export-helper.mjs";
6
+ const d = { class: "wscn-http404-container" }, m = { class: "wscn-http404" }, p = { class: "bullshit" }, f = { class: "bullshit__headline" };
7
+ const o = r({ name: "Page404", computed: { message: () => "页面不存在" } }, [["render", function(r2, o2, n, v, _, u) {
8
+ return s(), a("div", d, [t("div", m, [o2[1] || (o2[1] = i('<div class="pic-404" data-v-4f824f28><img class="pic-404__parent" src="' + l + '" alt="404" data-v-4f824f28><img class="pic-404__child left" src="' + e + '" alt="404" data-v-4f824f28><img class="pic-404__child mid" src="' + e + '" alt="404" data-v-4f824f28><img class="pic-404__child right" src="' + e + '" alt="404" data-v-4f824f28></div>', 1)), t("div", p, [t("div", f, c(u.message), 1), o2[0] || (o2[0] = t("div", { class: "bullshit__info" }, "请检查您输入的网址是否正确", -1))])])]);
9
9
  }], ["__scopeId", "data-v-4f824f28"]]);
10
10
  export {
11
- h as default
11
+ o as default
12
12
  };