hlrender 0.0.1
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/_commonjsHelpers-e7ea1525.js +36 -0
- package/_plugin-vue_export-helper-dad06003.js +9 -0
- package/affix-widget-b6cdaf6f.js +35 -0
- package/anchor-link-widget-919ac0ee.js +5 -0
- package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
- package/anchor-widget-403fe70f.js +54 -0
- package/auto-complete-widget-597d8400.js +71 -0
- package/avatar-widget-c56add2d.js +35 -0
- package/backtop-widget-65d711e3.js +35 -0
- package/badge-widget-f6a08422.js +41 -0
- package/baseImp-70f1a9c5.js +11003 -0
- package/breadcrumb-widget-3791fbcf.js +76 -0
- package/button-widget-b539a793.js +45 -0
- package/cache-widget-89624589.js +50 -0
- package/card-widget-2890042f.js +109 -0
- package/carousel-widget-730618e4.js +72 -0
- package/cascader-widget-a364f226.js +94 -0
- package/chart-widget-d0b5993c.js +44282 -0
- package/checkbox-widget-5f87a8e5.js +76 -0
- package/collapse-widget-a654ac45.js +86 -0
- package/color-picker-widget-b5b274dd.js +53 -0
- package/cont-cell-widget-475412c6.js +8 -0
- package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-9aac0112.js +59 -0
- package/cont-widget-defa7dd6.js +42 -0
- package/content-wrapper-7ba06bbc.js +14 -0
- package/content-wrapper.vue_vue_type_script_setup_true_lang-56dfcc0b.js +37 -0
- package/date-picker-range-widget-e528dab6.js +69 -0
- package/date-picker-widget-a5d3e5ff.js +75 -0
- package/default-slot-widget-09d11567.js +22 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af9e9fc7.js +59 -0
- package/descriptions-widget-9711a62b.js +80 -0
- package/dialog-333d3421.js +124 -0
- package/dialog-widget-94d8ab5a.js +30 -0
- package/divider-widget-b835bbc3.js +35 -0
- package/drag-wrapper-227f198f.js +258 -0
- package/drawer-widget-3906d028.js +30 -0
- package/dropdown-widget-74696f3c.js +89 -0
- package/empty-widget-ba5e0039.js +61 -0
- package/enum-type-92806e9d.js +207 -0
- package/enum-type-be3a0b8b.js +2048 -0
- package/expression-63a787db.js +2181 -0
- package/feedback-widget-3140f73d.js +23 -0
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f8da09d0.js +82 -0
- package/field-base-5547436d.js +7 -0
- package/file-upload-widget-dcc0425c.js +95 -0
- package/form-item-wrapper-849d8a21.js +111 -0
- package/form-widget-1dcffd59.js +183 -0
- package/grid-col-widget-e6b1455d.js +8 -0
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ed554759.js +41 -0
- package/grid-widget-d7974890.js +43 -0
- package/html-text-widget-e13171fa.js +47 -0
- package/icon-e9532b43.js +119 -0
- package/iframe-widget-dee326a7.js +74 -0
- package/image-widget-d417c681.js +61 -0
- package/index-28e4bcfb.js +99 -0
- package/index-2d29f8d3.js +7233 -0
- package/index-ddd23411.js +4884 -0
- package/index-f54403db.js +65 -0
- package/index-fa19f5d9.js +10568 -0
- package/input-number-widget-548743d9.js +63 -0
- package/input-widget-81153a08.js +68 -0
- package/label-wrapper-13267254.js +12 -0
- package/label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js +80 -0
- package/link-widget-e2aeac9f.js +53 -0
- package/ltable-col-widget-ecfe9f02.js +8 -0
- package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6c231f2e.js +256 -0
- package/ltable-widget-d5d81ac2.js +69 -0
- package/menu-widget-101389ec.js +93 -0
- package/model-widget-84277d11.js +119 -0
- package/multirow-3ade8c6e.js +341 -0
- package/multirow-widget copy-efbb1e00.js +855 -0
- package/multirow-widget-a73fd2b8.js +691 -0
- package/package.json +13 -0
- package/pagination-widget-12edf5f4.js +78 -0
- package/picture-upload-widget-bcef9cc8.js +99 -0
- package/progress-widget-f515a118.js +49 -0
- package/propresult-e424ed73.js +22 -0
- package/radio-widget-78f9cab9.js +76 -0
- package/range-widget-904ed0d6.js +71 -0
- package/rate-widget-efdab26c.js +53 -0
- package/render.es.js +4434 -0
- package/render.style.css +11 -0
- package/render.umd.js +160496 -0
- package/result-widget-b1688641.js +64 -0
- package/rich-editor-widget-f1bb90c7.js +74 -0
- package/router-widget-920b11e4.js +51 -0
- package/select-widget-f3a43687.js +285 -0
- package/sfc-b5fb0bca.js +2568 -0
- package/share-field-9834aef6.js +688 -0
- package/share-file-329736c4.js +121 -0
- package/slider-widget-5146c0c3.js +59 -0
- package/slot-c6523e8c.js +17 -0
- package/static-text-widget-307cd047.js +48 -0
- package/steps-widget-70c08c51.js +88 -0
- package/subMenu-widget-c1a614ad.js +16 -0
- package/subMenu-widget.vue_vue_type_script_setup_true_lang-1896e25e.js +69 -0
- package/switch-widget-a103faaa.js +53 -0
- package/tab-pane-widget-e7c83114.js +8 -0
- package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-12fa9f12.js +35 -0
- package/table-col-widget-f177b82e.js +20 -0
- package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5a1b4f92.js +80 -0
- package/table-widget-500902fd.js +160 -0
- package/tabs-widget-5e612fc0.js +68 -0
- package/tag-widget-8b945443.js +35 -0
- package/template-9ade074e.js +251730 -0
- package/text-widget-0d93ae9a.js +35 -0
- package/textarea-widget-d2464e70.js +53 -0
- package/time-picker-range-widget-7d92f5f0.js +55 -0
- package/time-picker-widget-3e0cc2c5.js +54 -0
- package/time-select-widget-b0b17501.js +54 -0
- package/tmpl-widget-b2402ddc.js +89 -0
- package/tree-select-widget-13f054e9.js +91 -0
- package/tree-widget-8bee698c.js +87 -0
- package/uuid-b302db3f.js +192 -0
- package/vue3-sfc-loader-b70bdce4.js +34688 -0
- package/widget-base-4c2d6265.js +27 -0
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js +277 -0
- package/wrapper-widget-4d87e124.js +78 -0
package/icon-e9532b43.js
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { shallowRef as Q, ref as d, getCurrentInstance as b } from "vue";
|
|
2
|
+
var g;
|
|
3
|
+
const p = typeof window < "u", E = () => {
|
|
4
|
+
};
|
|
5
|
+
p && ((g = window == null ? void 0 : window.navigator) != null && g.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
6
|
+
function N(t, e = !1, n = "Timeout") {
|
|
7
|
+
return new Promise((o, a) => {
|
|
8
|
+
setTimeout(e ? () => a(n) : o, t);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function $(t) {
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
p && window.document;
|
|
15
|
+
p && window.navigator;
|
|
16
|
+
p && window.location;
|
|
17
|
+
function R(t, e, n) {
|
|
18
|
+
const {
|
|
19
|
+
immediate: o = !0,
|
|
20
|
+
delay: a = 0,
|
|
21
|
+
onError: u = E,
|
|
22
|
+
onSuccess: i = E,
|
|
23
|
+
resetOnExecute: v = !0,
|
|
24
|
+
shallow: c = !0,
|
|
25
|
+
throwError: f
|
|
26
|
+
} = n ?? {}, r = c ? Q(e) : d(e), w = d(!1), O = d(!1), l = d(void 0);
|
|
27
|
+
async function y(_ = 0, ...T) {
|
|
28
|
+
v && (r.value = e), l.value = void 0, w.value = !1, O.value = !0, _ > 0 && await N(_);
|
|
29
|
+
const P = typeof t == "function" ? t(...T) : t;
|
|
30
|
+
try {
|
|
31
|
+
const s = await P;
|
|
32
|
+
r.value = s, w.value = !0, i(s);
|
|
33
|
+
} catch (s) {
|
|
34
|
+
if (l.value = s, u(s), f)
|
|
35
|
+
throw l;
|
|
36
|
+
} finally {
|
|
37
|
+
O.value = !1;
|
|
38
|
+
}
|
|
39
|
+
return r.value;
|
|
40
|
+
}
|
|
41
|
+
return o && y(a), {
|
|
42
|
+
state: r,
|
|
43
|
+
isReady: w,
|
|
44
|
+
isLoading: O,
|
|
45
|
+
error: l,
|
|
46
|
+
execute: y
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
const m = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, I = "__vueuse_ssr_handlers__";
|
|
50
|
+
m[I] = m[I] || {};
|
|
51
|
+
m[I];
|
|
52
|
+
var h;
|
|
53
|
+
(function(t) {
|
|
54
|
+
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
55
|
+
})(h || (h = {}));
|
|
56
|
+
var j = Object.defineProperty, x = Object.getOwnPropertySymbols, A = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable, C = (t, e, n) => e in t ? j(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, L = (t, e) => {
|
|
57
|
+
for (var n in e || (e = {}))
|
|
58
|
+
A.call(e, n) && C(t, n, e[n]);
|
|
59
|
+
if (x)
|
|
60
|
+
for (var n of x(e))
|
|
61
|
+
B.call(e, n) && C(t, n, e[n]);
|
|
62
|
+
return t;
|
|
63
|
+
};
|
|
64
|
+
const F = {
|
|
65
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
66
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
67
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
68
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
69
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
70
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
71
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
72
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
73
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
74
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
75
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
76
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
77
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
78
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
79
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
80
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
81
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
82
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
83
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
84
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
85
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
86
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
87
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
88
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
89
|
+
};
|
|
90
|
+
L({
|
|
91
|
+
linear: $
|
|
92
|
+
}, F);
|
|
93
|
+
function H(t) {
|
|
94
|
+
var c, f, r;
|
|
95
|
+
const e = () => b(), n = t ?? e(), o = (r = (f = (c = n == null ? void 0 : n.appContext) == null ? void 0 : c.app) == null ? void 0 : f.config) == null ? void 0 : r.globalProperties, a = o == null ? void 0 : o.$message, u = o == null ? void 0 : o.$confirm, i = o == null ? void 0 : o.$prompt, v = n == null ? void 0 : n.proxy;
|
|
96
|
+
return {
|
|
97
|
+
getInstance: e,
|
|
98
|
+
instance: n,
|
|
99
|
+
proxy: v,
|
|
100
|
+
$message: a,
|
|
101
|
+
$confirm: u,
|
|
102
|
+
$prompt: i,
|
|
103
|
+
globalProperties: o
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
const S = (t, e) => {
|
|
107
|
+
const { state: n } = R(async () => {
|
|
108
|
+
const o = await import("./index-ddd23411.js");
|
|
109
|
+
var a = Object.entries(o).find(([u, i]) => u === t);
|
|
110
|
+
if (a)
|
|
111
|
+
return e != null && e.appContext.components[a[0]] || e == null || e.appContext.app.component(a[0], a[1]), a == null ? void 0 : a[1];
|
|
112
|
+
}, null);
|
|
113
|
+
return n;
|
|
114
|
+
};
|
|
115
|
+
export {
|
|
116
|
+
R as a,
|
|
117
|
+
S as r,
|
|
118
|
+
H as u
|
|
119
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as h, computed as E, ref as L, onMounted as Q, resolveDirective as B, openBlock as m, createBlock as F, mergeProps as u, unref as r, withCtx as I, withDirectives as c, createElementBlock as f, createCommentVNode as N, toHandlers as P, vShow as D } from "vue";
|
|
2
|
+
import { w as O } from "./template-9ade074e.js";
|
|
3
|
+
import { b as S } from "./share-field-9834aef6.js";
|
|
4
|
+
import { _ as U } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
5
|
+
import { I as V } from "./field-base-5547436d.js";
|
|
6
|
+
import { J as _ } from "./baseImp-70f1a9c5.js";
|
|
7
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
8
|
+
import "./enum-type-be3a0b8b.js";
|
|
9
|
+
import "./uuid-b302db3f.js";
|
|
10
|
+
import "./multirow-3ade8c6e.js";
|
|
11
|
+
import "./index-fa19f5d9.js";
|
|
12
|
+
import "./enum-type-92806e9d.js";
|
|
13
|
+
import "./slot-c6523e8c.js";
|
|
14
|
+
import "./icon-e9532b43.js";
|
|
15
|
+
import "./widget-base-4c2d6265.js";
|
|
16
|
+
import "./index-f54403db.js";
|
|
17
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
18
|
+
import "./dialog-333d3421.js";
|
|
19
|
+
import "element-plus";
|
|
20
|
+
const $ = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "full-width full-height nopadding nomargin"
|
|
23
|
+
}, q = ["src", "id"], x = h({ componentName: O.FieldWidget }), ne = /* @__PURE__ */ h({
|
|
24
|
+
...x,
|
|
25
|
+
__name: "iframe-widget",
|
|
26
|
+
props: { ...V },
|
|
27
|
+
setup(g, { expose: v }) {
|
|
28
|
+
const w = g, { exposed: y, fieldEditor: p, events: n, attrs: a, extendAttrs: d, fieldObj: k, fieldKey: b, fieldName: j } = S(w), C = E(() => {
|
|
29
|
+
var t, l;
|
|
30
|
+
const e = ((t = d == null ? void 0 : d.value) == null ? void 0 : t.withQuery) ? _.getLocationQueryParams() : {};
|
|
31
|
+
return _.buildUrl((l = a == null ? void 0 : a.value) == null ? void 0 : l.src, e);
|
|
32
|
+
}), s = L(!0);
|
|
33
|
+
return Q(() => {
|
|
34
|
+
var o;
|
|
35
|
+
(o = p.value) == null || o.addEventListener("load", function() {
|
|
36
|
+
var e, i;
|
|
37
|
+
s.value = !1, (i = (e = n == null ? void 0 : n.value) == null ? void 0 : e.onLoaded) == null || i.call(e);
|
|
38
|
+
});
|
|
39
|
+
}), v({
|
|
40
|
+
...y
|
|
41
|
+
}), (o, e) => {
|
|
42
|
+
var t;
|
|
43
|
+
const i = B("loading");
|
|
44
|
+
return m(), F(U, u(o.$props, {
|
|
45
|
+
"prop-options": { fieldObj: r(k) },
|
|
46
|
+
key: (t = o.widget) == null ? void 0 : t.id
|
|
47
|
+
}), {
|
|
48
|
+
default: I(({ data: l }) => [
|
|
49
|
+
s.value ? c((m(), f("div", $, null, 512)), [
|
|
50
|
+
[i, s.value]
|
|
51
|
+
]) : N("", !0),
|
|
52
|
+
c((m(), f("iframe", u({
|
|
53
|
+
ref_key: "fieldEditor",
|
|
54
|
+
ref: p,
|
|
55
|
+
key: r(b)
|
|
56
|
+
}, r(a), P(r(n), !0), {
|
|
57
|
+
src: r(C),
|
|
58
|
+
class: [l.injectClass, "full-width full-height nopadding nomargin hlIframe"],
|
|
59
|
+
frameborder: 0,
|
|
60
|
+
style: l.injectStyle,
|
|
61
|
+
id: r(j)
|
|
62
|
+
}), `\r
|
|
63
|
+
`, 16, q)), [
|
|
64
|
+
[D, !s.value]
|
|
65
|
+
])
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 16, ["prop-options"]);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
ne as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { defineComponent as c, computed as j, resolveComponent as k, openBlock as s, createBlock as m, mergeProps as l, unref as e, withCtx as d, toHandlers as b, createSlots as F, renderList as O, resolveDynamicComponent as B } from "vue";
|
|
2
|
+
import { w as E } from "./template-9ade074e.js";
|
|
3
|
+
import { I as L } from "./field-base-5547436d.js";
|
|
4
|
+
import { _ as N } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
5
|
+
import { b as P } from "./share-field-9834aef6.js";
|
|
6
|
+
import { g as $ } from "./slot-c6523e8c.js";
|
|
7
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
8
|
+
import "./enum-type-be3a0b8b.js";
|
|
9
|
+
import "./uuid-b302db3f.js";
|
|
10
|
+
import "./widget-base-4c2d6265.js";
|
|
11
|
+
import "./index-fa19f5d9.js";
|
|
12
|
+
import "./enum-type-92806e9d.js";
|
|
13
|
+
import "./baseImp-70f1a9c5.js";
|
|
14
|
+
import "./icon-e9532b43.js";
|
|
15
|
+
import "./dialog-333d3421.js";
|
|
16
|
+
import "element-plus";
|
|
17
|
+
import "./index-f54403db.js";
|
|
18
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
19
|
+
import "./multirow-3ade8c6e.js";
|
|
20
|
+
const A = c({ componentName: E.FieldWidget }), re = /* @__PURE__ */ c({
|
|
21
|
+
...A,
|
|
22
|
+
__name: "image-widget",
|
|
23
|
+
props: { ...L },
|
|
24
|
+
setup(f, { expose: u }) {
|
|
25
|
+
const g = f, { exposed: _, fieldEditor: v, fieldKey: w, attrs: h, events: y, slots: x, optionItems: i, activeOptionItemIndex: C, extendAttrs: n, fieldObj: I } = P(g), S = j(() => {
|
|
26
|
+
var o;
|
|
27
|
+
var t = (o = i == null ? void 0 : i.value) == null ? void 0 : o.map((p) => p.value);
|
|
28
|
+
return t;
|
|
29
|
+
});
|
|
30
|
+
return u({ ..._ }), (t, o) => {
|
|
31
|
+
const p = k("el-image");
|
|
32
|
+
return s(), m(N, l(t.$props, {
|
|
33
|
+
"prop-options": { fieldObj: e(I) }
|
|
34
|
+
}), {
|
|
35
|
+
default: d(({ data: a }) => [
|
|
36
|
+
(s(), m(p, l({
|
|
37
|
+
ref_key: "fieldEditor",
|
|
38
|
+
ref: v,
|
|
39
|
+
key: e(w)
|
|
40
|
+
}, e(h), {
|
|
41
|
+
class: a.injectClass,
|
|
42
|
+
style: { ...a.injectStyle, width: e(n).width, height: e(n).height },
|
|
43
|
+
"preview-src-list": e(S),
|
|
44
|
+
initialIndex: e(C)
|
|
45
|
+
}, b(e(y))), F({ _: 2 }, [
|
|
46
|
+
O(e($)(e(x), t.designState), (r) => ({
|
|
47
|
+
name: r == null ? void 0 : r.slotName,
|
|
48
|
+
fn: d(() => [
|
|
49
|
+
(s(), m(B(r.default)))
|
|
50
|
+
])
|
|
51
|
+
}))
|
|
52
|
+
]), 1040, ["class", "style", "preview-src-list", "initialIndex"]))
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 16, ["prop-options"]);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
re as default
|
|
61
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { defineComponent as z, ref as u, resolveComponent as w, resolveDirective as I, openBlock as l, createBlock as r, normalizeStyle as R, withCtx as i, createElementVNode as b, unref as t, createTextVNode as c, toDisplayString as f, createCommentVNode as m, withDirectives as S, createElementBlock as B } from "vue";
|
|
2
|
+
import { a as p } from "./enum-type-be3a0b8b.js";
|
|
3
|
+
import { a as _ } from "./enum-type-92806e9d.js";
|
|
4
|
+
import { I as D } from "./dialog-333d3421.js";
|
|
5
|
+
import { u as N } from "./uuid-b302db3f.js";
|
|
6
|
+
const O = { style: { width: "99%", height: "99%", margin: "0 auto" } }, P = ["src", "id"], $ = { class: "dialog-footer" }, j = /* @__PURE__ */ z({
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: { ...D },
|
|
9
|
+
emits: ["ok", "cancel", "close"],
|
|
10
|
+
setup(E, { emit: s }) {
|
|
11
|
+
const g = u(!0), a = u(), v = u(!0), C = () => {
|
|
12
|
+
v.value = !1;
|
|
13
|
+
};
|
|
14
|
+
return (e, o) => {
|
|
15
|
+
const d = w("el-button"), V = w("el-dialog"), T = I("loading");
|
|
16
|
+
return l(), r(V, {
|
|
17
|
+
modelValue: g.value,
|
|
18
|
+
"onUpdate:modelValue": o[3] || (o[3] = (n) => g.value = n),
|
|
19
|
+
class: "--hl-dialog1",
|
|
20
|
+
fullscreen: e.fullscreen,
|
|
21
|
+
title: e.title,
|
|
22
|
+
width: e.width,
|
|
23
|
+
"close-on-click-modal": !1,
|
|
24
|
+
"close-on-press-escape": !1,
|
|
25
|
+
"show-close": !0,
|
|
26
|
+
top: "15vh",
|
|
27
|
+
style: R({ height: e.height })
|
|
28
|
+
}, {
|
|
29
|
+
footer: i(() => {
|
|
30
|
+
var n, y, h;
|
|
31
|
+
return [
|
|
32
|
+
b("span", $, [
|
|
33
|
+
(n = e.dialogType) != null && n.includes(t(_).close) ? (l(), r(d, {
|
|
34
|
+
key: 0,
|
|
35
|
+
onClick: o[0] || (o[0] = (k) => {
|
|
36
|
+
s("close", {});
|
|
37
|
+
}),
|
|
38
|
+
size: "large"
|
|
39
|
+
}, {
|
|
40
|
+
default: i(() => [
|
|
41
|
+
c(f(t(p).i18nt("designer.hint.close")), 1)
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
})) : m("", !0),
|
|
45
|
+
(y = e.dialogType) != null && y.includes(t(_).cancel) ? (l(), r(d, {
|
|
46
|
+
key: 1,
|
|
47
|
+
onClick: o[1] || (o[1] = (k) => {
|
|
48
|
+
s("cancel", { iframeRef: a.value });
|
|
49
|
+
}),
|
|
50
|
+
size: "large"
|
|
51
|
+
}, {
|
|
52
|
+
default: i(() => [
|
|
53
|
+
c(f(t(p).i18nt("designer.hint.close")), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
})) : m("", !0),
|
|
57
|
+
(h = e.dialogType) != null && h.includes(t(_).save) ? (l(), r(d, {
|
|
58
|
+
key: 2,
|
|
59
|
+
type: "primary",
|
|
60
|
+
onClick: o[2] || (o[2] = (k) => {
|
|
61
|
+
s("ok", { iframeRef: a.value });
|
|
62
|
+
}),
|
|
63
|
+
size: "large"
|
|
64
|
+
}, {
|
|
65
|
+
default: i(() => [
|
|
66
|
+
c(f(t(p).i18nt("designer.hint.confirm")), 1)
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
})) : m("", !0)
|
|
70
|
+
])
|
|
71
|
+
];
|
|
72
|
+
}),
|
|
73
|
+
default: i(() => [
|
|
74
|
+
S((l(), B("div", O, [
|
|
75
|
+
b("iframe", {
|
|
76
|
+
frameborder: "0",
|
|
77
|
+
ref_key: "iframeRef",
|
|
78
|
+
ref: a,
|
|
79
|
+
style: { width: "100%", height: "100%" },
|
|
80
|
+
src: e.url,
|
|
81
|
+
onLoad: C,
|
|
82
|
+
id: t(N)()
|
|
83
|
+
}, null, 40, P)
|
|
84
|
+
])), [
|
|
85
|
+
[T, v.value]
|
|
86
|
+
])
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["modelValue", "fullscreen", "title", "width", "style"]);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
const q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
94
|
+
__proto__: null,
|
|
95
|
+
default: j
|
|
96
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
97
|
+
export {
|
|
98
|
+
q as _
|
|
99
|
+
};
|