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.
- package/dist/index.full.min.js +1116 -1115
- package/dist/style.css +36 -20
- package/es/IntervalSelection/src/sectionDate.vue.mjs +8 -8
- package/es/chat-embed/src/chat-addition-data.vue2.mjs +14 -11
- package/es/chat-embed/src/chat-ai-answer-tip.vue2.mjs +8 -8
- package/es/chat-embed/src/chat-bubble-footer.vue2.mjs +5 -5
- package/es/chat-embed/src/chat-sender.vue2.mjs +41 -41
- package/es/chat-embed/src/components/answer-auto-chart.vue2.mjs +1 -2
- package/es/chat-embed/src/components/answer-interaction-data.vue2.mjs +6 -7
- package/es/chat-embed/src/components/history-detail.vue2.mjs +18 -18
- package/es/chat-embed/src/header.vue2.mjs +16 -16
- package/es/chat-embed/src/index.vue2.mjs +161 -161
- package/es/chat-embed/src/recommendation-message.vue2.mjs +9 -6
- package/es/chat-embed/src/sidebar-item.vue2.mjs +65 -65
- package/es/chat-embed/src/voice/voice.vue.mjs +36 -35
- package/es/date-picker-range/index.vue2.mjs +39 -39
- package/es/department-tree-mobile/src/department-tree-app.vue.mjs +8 -7
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +54 -54
- package/es/department-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-tree-mobile/src/dept-result.vue.mjs +7 -6
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +5 -5
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs +10 -9
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +64 -64
- package/es/department-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/department-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/empty-state/index.vue.mjs +2 -2
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +1 -1
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +1 -1
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +12 -12
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +24 -24
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +17 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.mjs +12 -12
- package/es/fs-upload-new/src/fs-button-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-drag-upload.vue2.mjs +23 -23
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +34 -34
- package/es/fs-upload-new/src/fs-upload-new.vue.mjs +15 -15
- package/es/index.mjs +6 -7
- package/es/json-view/json-view-dialog.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +1 -1
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +5 -5
- package/es/row-form/index.vue2.mjs +31 -31
- package/es/row-form/operation.vue.mjs +13 -13
- package/es/secret-info/index.vue.mjs +1 -1
- package/es/src/components/Affix/index.vue2.mjs +26 -26
- package/es/src/components/Scrollbar/index.vue.mjs +22 -22
- package/es/src/utils/watermark.mjs +25 -35
- package/es/src/views/error-page/401.vue.mjs +8 -8
- package/es/src/views/error-page/404.vue.mjs +8 -8
- package/es/style.css +911 -895
- package/es/super-grid/src/columns-config.vue.mjs +1 -1
- package/es/super-grid/src/components/grid-radio-input.vue.mjs +5 -5
- package/es/super-grid/src/components/select-input.vue.mjs +55 -55
- package/es/super-grid/src/row-detail.vue.mjs +1 -1
- package/es/super-grid/src/search-form-advancedQuery.vue.mjs +1 -1
- package/es/super-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-grid/src/super-grid.vue.mjs +1 -1
- package/es/super-nine-grid/src/search-form-number.vue.mjs +4 -5
- package/es/super-nine-grid/src/search-form.vue.mjs +1 -1
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +1 -1
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs +8 -8
- package/es/workgroup-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs +8 -7
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.mjs +51 -51
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs +5 -5
- package/es/workgroup-user-tree-mobile/src/dept-path.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/dept-result.vue.mjs +4 -3
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.mjs +7 -6
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +65 -65
- package/es/year-range-picker/src/year-range-picker.vue.mjs +1 -1
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +6 -6
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +13 -10
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +8 -8
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +5 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +20 -20
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +1 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +5 -6
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +18 -18
- package/lib/chat-embed/src/header.vue2.cjs +17 -17
- package/lib/chat-embed/src/index.vue2.cjs +123 -123
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +7 -4
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +35 -35
- package/lib/chat-embed/src/voice/voice.vue.cjs +36 -35
- package/lib/date-picker-range/index.vue2.cjs +11 -11
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +7 -6
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +53 -53
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +7 -6
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +5 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +9 -8
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +61 -61
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/empty-state/index.vue.cjs +2 -2
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +1 -1
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +1 -1
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +12 -12
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +24 -24
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +17 -17
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +12 -12
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +23 -23
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +36 -36
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +15 -15
- package/lib/index.cjs +7 -7
- package/lib/json-view/json-view-dialog.vue.cjs +6 -6
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +1 -1
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +5 -5
- package/lib/row-form/index.vue2.cjs +31 -31
- package/lib/row-form/operation.vue.cjs +13 -13
- package/lib/secret-info/index.vue.cjs +1 -1
- package/lib/src/components/Affix/index.vue2.cjs +28 -28
- package/lib/src/components/Scrollbar/index.vue.cjs +22 -22
- package/lib/src/utils/watermark.cjs +21 -32
- package/lib/src/views/error-page/401.vue.cjs +7 -7
- package/lib/src/views/error-page/404.vue.cjs +4 -4
- package/lib/style.css +913 -897
- package/lib/super-grid/src/columns-config.vue.cjs +1 -1
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +5 -5
- package/lib/super-grid/src/components/select-input.vue.cjs +56 -56
- package/lib/super-grid/src/row-detail.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +1 -1
- package/lib/super-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-grid/src/super-grid.vue.cjs +1 -1
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +6 -6
- package/lib/super-nine-grid/src/search-form.vue.cjs +1 -1
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +1 -1
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +9 -8
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +48 -48
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +5 -5
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +6 -6
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +9 -8
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +63 -63
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +1 -1
- package/package.json +2 -2
- 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),
|
|
4
|
-
e3.contentRect.height && (
|
|
5
|
-
},
|
|
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 (!
|
|
7
|
+
if (!w.value)
|
|
8
8
|
return;
|
|
9
|
-
const e3 =
|
|
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
|
-
|
|
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 (!
|
|
16
|
+
if (!g.value)
|
|
17
17
|
return { isTop: t3, isBottom: o3 };
|
|
18
|
-
const n3 =
|
|
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
|
-
|
|
21
|
+
B.value = l2 ?? 0, R(n2 || i2 || false, e3);
|
|
22
22
|
}
|
|
23
23
|
} catch (e3) {
|
|
24
24
|
console.error(e3);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
26
|
+
}, R = (e3, t2) => {
|
|
27
27
|
var _a;
|
|
28
|
-
t2.height && (e3 ===
|
|
29
|
-
},
|
|
30
|
-
requestAnimationFrame(
|
|
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
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
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 && (
|
|
42
|
+
h.enableIntervalUpdate && (I.value = setInterval(z, h.enableIntervalTime));
|
|
43
43
|
const e3 = (() => {
|
|
44
|
-
if (h.autoDetectParentScroll &&
|
|
44
|
+
if (h.autoDetectParentScroll && w.value) {
|
|
45
45
|
const e4 = [];
|
|
46
|
-
let t2 =
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
69
|
+
z();
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
-
const
|
|
72
|
+
const F = a(() => {
|
|
73
73
|
var _a, _b;
|
|
74
|
-
return
|
|
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:
|
|
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 =
|
|
10
|
+
const w = e();
|
|
11
11
|
(_b = (_a = m) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "startListeningToResize");
|
|
12
|
-
const
|
|
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
|
-
},
|
|
19
|
-
const e2 = r(b,
|
|
20
|
-
return { ...{ ...
|
|
21
|
-
}),
|
|
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 <=
|
|
25
|
-
e2.scrollTop + e2.clientHeight + 1 >= e2.scrollHeight -
|
|
26
|
-
},
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
36
|
-
e2 && (e2.addEventListener("scroll",
|
|
37
|
-
}), i(() =>
|
|
38
|
-
|
|
39
|
-
}), i(() =>
|
|
40
|
-
setTimeout(
|
|
41
|
-
}), i(() =>
|
|
42
|
-
setTimeout(
|
|
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 =
|
|
45
|
+
return (_a2 = w.default) == null ? void 0 : _a2.call(w);
|
|
46
46
|
}, (e2, t2) => {
|
|
47
|
-
e2 !== t2 && setTimeout(
|
|
48
|
-
}, { deep: true }), (e2, t2) => (c(), d(u(p), r(
|
|
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
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
29
|
-
if (
|
|
10
|
+
let l = e();
|
|
11
|
+
if (l && "EMPTY_VALUE" !== l)
|
|
30
12
|
try {
|
|
31
|
-
|
|
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 ? (
|
|
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
|
|
42
|
-
|
|
43
|
-
e2 && e2.useRange && e2.useRange.indexOf("page") >= 0 &&
|
|
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
|
-
|
|
48
|
-
|
|
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
|
|
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
|
|
6
|
-
const
|
|
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
|
-
} } },
|
|
9
|
-
const
|
|
10
|
-
|
|
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
|
-
|
|
14
|
+
b as default
|
|
15
15
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { openBlock as s, createElementBlock as a, createElementVNode as t,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
return s(), a("div",
|
|
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
|
-
|
|
11
|
+
o as default
|
|
12
12
|
};
|