hlrender 0.0.1 → 0.0.3
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/affix-widget-2a428176.js +37 -0
- package/alert-widget-6430c136.js +37 -0
- package/{anchor-widget-403fe70f.js → anchor-widget-2cc76d2f.js} +15 -14
- package/{auto-complete-widget-597d8400.js → auto-complete-widget-2d861165.js} +23 -22
- package/avatar-widget-6e963b38.js +37 -0
- package/backtop-widget-ddefd322.js +37 -0
- package/{badge-widget-f6a08422.js → badge-widget-8754dd54.js} +18 -16
- package/{baseImp-70f1a9c5.js → baseImp-75d44fdc.js} +1499 -1470
- package/{breadcrumb-widget-3791fbcf.js → breadcrumb-widget-d106ff2c.js} +26 -25
- package/{button-widget-b539a793.js → button-widget-86bc6ce1.js} +21 -19
- package/{cache-widget-89624589.js → cache-widget-91ccc78e.js} +17 -16
- package/{card-widget-2890042f.js → card-widget-94ead248.js} +26 -25
- package/{carousel-widget-730618e4.js → carousel-widget-594b9826.js} +19 -18
- package/{cascader-widget-a364f226.js → cascader-widget-48a13fa7.js} +17 -16
- package/{chart-widget-d0b5993c.js → chart-widget-849c2efa.js} +15 -14
- package/{checkbox-widget-5f87a8e5.js → checkbox-widget-a90c268c.js} +17 -16
- package/{collapse-widget-a654ac45.js → collapse-widget-64a373e5.js} +19 -18
- package/{color-picker-widget-b5b274dd.js → color-picker-widget-107dcfd6.js} +17 -16
- package/{cont-cell-widget-475412c6.js → cont-cell-widget-8b8c86bb.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-9aac0112.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-2555e38d.js} +5 -5
- package/{cont-widget-defa7dd6.js → cont-widget-712b983c.js} +4 -4
- package/content-wrapper-03fcad64.js +14 -0
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-56dfcc0b.js → content-wrapper.vue_vue_type_script_setup_true_lang-64b272e8.js} +10 -9
- package/{date-picker-range-widget-e528dab6.js → date-picker-range-widget-71c01fa8.js} +17 -16
- package/{date-picker-widget-a5d3e5ff.js → date-picker-widget-cf382ad7.js} +17 -16
- package/default-slot-widget-45214a89.js +24 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-88a89e04.js +76 -0
- package/{descriptions-widget-9711a62b.js → descriptions-widget-b0508f02.js} +24 -23
- package/{dialog-333d3421.js → dialog-9097cd3a.js} +2 -2
- package/{dialog-widget-94d8ab5a.js → dialog-widget-1d2aeb22.js} +17 -16
- package/{divider-widget-b835bbc3.js → divider-widget-8b4ff227.js} +18 -16
- package/drag-wrapper-d545a429.js +258 -0
- package/{drawer-widget-3906d028.js → drawer-widget-e5cae59b.js} +17 -16
- package/{dropdown-widget-74696f3c.js → dropdown-widget-90eba236.js} +16 -15
- package/empty-widget-700c46d3.js +37 -0
- package/{enum-type-92806e9d.js → enum-type-a02d0ddc.js} +48 -45
- package/{enum-type-be3a0b8b.js → enum-type-ad1f81ba.js} +90 -79
- package/{template-9ade074e.js → expression-402fef4a.js} +7875 -5691
- package/feedback-widget-1fab6992.js +24 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f8da09d0.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-8de0d422.js} +5 -5
- package/fieldobj-d49dbdc5.js +13 -0
- package/{file-upload-widget-dcc0425c.js → file-upload-widget-50e793e6.js} +21 -20
- package/form-item-wrapper-3770b8d2.js +97 -0
- package/form-widget-b30bdd88.js +183 -0
- package/{grid-col-widget-e6b1455d.js → grid-col-widget-44300d04.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ed554759.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-8a45aa77.js} +5 -5
- package/{grid-widget-d7974890.js → grid-widget-26142b27.js} +5 -5
- package/{html-text-widget-e13171fa.js → html-text-widget-4637806e.js} +16 -15
- package/{iframe-widget-dee326a7.js → iframe-widget-0c47dceb.js} +26 -25
- package/{image-widget-d417c681.js → image-widget-2b31b9ff.js} +19 -18
- package/{index-28e4bcfb.js → index-30f0db15.js} +4 -4
- package/{index-fa19f5d9.js → index-ce2e6477.js} +1088 -1022
- package/{index-f54403db.js → index-ed941348.js} +1 -1
- package/{input-number-widget-548743d9.js → input-number-widget-5863f4e9.js} +17 -16
- package/{input-widget-81153a08.js → input-widget-b5c42dc7.js} +18 -17
- package/{label-wrapper-13267254.js → label-wrapper-c2286145.js} +5 -4
- package/label-wrapper.vue_vue_type_style_index_0_lang-099c2073.js +63 -0
- package/{link-widget-e2aeac9f.js → link-widget-6d01d401.js} +22 -20
- package/{ltable-col-widget-ecfe9f02.js → ltable-col-widget-309b4007.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6c231f2e.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7d1646d6.js} +10 -10
- package/{ltable-widget-d5d81ac2.js → ltable-widget-00ae75e1.js} +5 -5
- package/{menu-widget-101389ec.js → menu-widget-d9ddb076.js} +16 -15
- package/{model-widget-84277d11.js → model-widget-73460f2d.js} +15 -14
- package/multirow-980395e2.js +228 -0
- package/{multirow-widget-a73fd2b8.js → multirow-widget-cbb353d8.js} +147 -146
- package/package.json +1 -1
- package/{pagination-widget-12edf5f4.js → pagination-widget-a4301a5f.js} +15 -14
- package/{picture-upload-widget-bcef9cc8.js → picture-upload-widget-6bfbb9c3.js} +18 -17
- package/progress-widget-092798ba.js +97 -0
- package/{propresult-e424ed73.js → propresult-8a0911d7.js} +1 -1
- package/{radio-widget-78f9cab9.js → radio-widget-c14c112b.js} +17 -16
- package/{range-widget-904ed0d6.js → range-widget-13be6e98.js} +18 -17
- package/{rate-widget-efdab26c.js → rate-widget-a568f58b.js} +17 -16
- package/render.es.js +556 -552
- package/render.style.css +1 -1
- package/render.umd.js +544 -544
- package/{result-widget-b1688641.js → result-widget-8cbdcffb.js} +16 -15
- package/{rich-editor-widget-f1bb90c7.js → rich-editor-widget-5347c0fb.js} +17 -16
- package/{router-widget-920b11e4.js → router-widget-f34afbc1.js} +15 -14
- package/{select-widget-f3a43687.js → select-widget-e0f4756d.js} +17 -16
- package/{sfc-b5fb0bca.js → sfc-3a8e0889.js} +84 -84
- package/{share-field-9834aef6.js → share-field-cbdc0f7d.js} +110 -109
- package/{share-file-329736c4.js → share-file-241e0fcc.js} +15 -15
- package/{slider-widget-5146c0c3.js → slider-widget-c131ecf9.js} +23 -22
- package/slot-252ff364.js +131 -0
- package/{static-text-widget-307cd047.js → static-text-widget-1e6c817e.js} +16 -15
- package/{steps-widget-70c08c51.js → steps-widget-93f66f08.js} +15 -14
- package/subMenu-widget-ad35946d.js +16 -0
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-1896e25e.js → subMenu-widget.vue_vue_type_script_setup_true_lang-80e2bb5f.js} +12 -12
- package/{switch-widget-a103faaa.js → switch-widget-dbb606e6.js} +17 -16
- package/{tab-pane-widget-e7c83114.js → tab-pane-widget-49c37d5c.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-12fa9f12.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-1dcb50c4.js} +5 -5
- package/table-col-widget-1ed14423.js +20 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5a1b4f92.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-e75630ba.js} +17 -17
- package/{table-widget-500902fd.js → table-widget-a839d5d5.js} +24 -23
- package/{tabs-widget-5e612fc0.js → tabs-widget-3dc76d5d.js} +9 -9
- package/tag-widget-b2eb79a2.js +37 -0
- package/{text-widget-0d93ae9a.js → text-widget-2b72d397.js} +18 -16
- package/{textarea-widget-d2464e70.js → textarea-widget-3a3db0f2.js} +17 -16
- package/{time-picker-range-widget-7d92f5f0.js → time-picker-range-widget-c0cfe97e.js} +17 -16
- package/{time-picker-widget-3e0cc2c5.js → time-picker-widget-c72def72.js} +17 -16
- package/{time-select-widget-b0b17501.js → time-select-widget-0ffcb167.js} +20 -19
- package/{tmpl-widget-b2402ddc.js → tmpl-widget-dd53b8b0.js} +29 -28
- package/{tree-select-widget-13f054e9.js → tree-select-widget-0d5b08bb.js} +17 -16
- package/{tree-widget-8bee698c.js → tree-widget-55f540c3.js} +26 -25
- package/{uuid-b302db3f.js → uuid-aedab58e.js} +1 -1
- package/vertical-progress-widget-fa6b14ff.js +52 -0
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c554fff1.js +273 -0
- package/{wrapper-widget-4d87e124.js → wrapper-widget-5a1496c5.js} +6 -6
- package/affix-widget-b6cdaf6f.js +0 -35
- package/avatar-widget-c56add2d.js +0 -35
- package/backtop-widget-65d711e3.js +0 -35
- package/content-wrapper-7ba06bbc.js +0 -14
- package/default-slot-widget-09d11567.js +0 -22
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af9e9fc7.js +0 -59
- package/drag-wrapper-227f198f.js +0 -258
- package/empty-widget-ba5e0039.js +0 -61
- package/expression-63a787db.js +0 -2181
- package/feedback-widget-3140f73d.js +0 -23
- package/form-item-wrapper-849d8a21.js +0 -111
- package/form-widget-1dcffd59.js +0 -183
- package/label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js +0 -80
- package/multirow-3ade8c6e.js +0 -341
- package/multirow-widget copy-efbb1e00.js +0 -855
- package/progress-widget-f515a118.js +0 -49
- package/slot-c6523e8c.js +0 -17
- package/subMenu-widget-c1a614ad.js +0 -16
- package/table-col-widget-f177b82e.js +0 -20
- package/tag-widget-8b945443.js +0 -35
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js +0 -277
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, ref as v, openBlock as O, createBlock as b, mergeProps as x, unref as j } from "vue";
|
|
2
|
-
import { I as F } from "./field-base-5547436d.js";
|
|
3
|
-
import { _ as k } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af9e9fc7.js";
|
|
4
|
-
import { w } from "./template-9ade074e.js";
|
|
5
|
-
import { b as A } from "./share-field-9834aef6.js";
|
|
6
|
-
import "./widget-base-4c2d6265.js";
|
|
7
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
8
|
-
import "./uuid-b302db3f.js";
|
|
9
|
-
import "./enum-type-be3a0b8b.js";
|
|
10
|
-
import "./index-fa19f5d9.js";
|
|
11
|
-
import "./enum-type-92806e9d.js";
|
|
12
|
-
import "./baseImp-70f1a9c5.js";
|
|
13
|
-
import "./icon-e9532b43.js";
|
|
14
|
-
import "./dialog-333d3421.js";
|
|
15
|
-
import "element-plus";
|
|
16
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
17
|
-
import "./index-f54403db.js";
|
|
18
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
19
|
-
import "./slot-c6523e8c.js";
|
|
20
|
-
import "./content-wrapper.vue_vue_type_script_setup_true_lang-56dfcc0b.js";
|
|
21
|
-
import "./multirow-3ade8c6e.js";
|
|
22
|
-
const B = a({ componentName: w.FieldWidget }), Q = /* @__PURE__ */ a({
|
|
23
|
-
...B,
|
|
24
|
-
__name: "progress-widget",
|
|
25
|
-
props: { ...F },
|
|
26
|
-
setup(c, { expose: l }) {
|
|
27
|
-
var s;
|
|
28
|
-
const u = c, { attrs: p, fieldObj: f, exposed: d, extendAttrs: i } = A(u), o = v((s = p.value) == null ? void 0 : s.percentage), _ = (e) => {
|
|
29
|
-
var r;
|
|
30
|
-
o.value = e, m(), e === 100 && setTimeout(() => {
|
|
31
|
-
var t, n;
|
|
32
|
-
(n = (t = i.value) == null ? void 0 : t.completed) == null || n.call(t);
|
|
33
|
-
}, (((r = i.value) == null ? void 0 : r.completeSec) || 0) * 1e3);
|
|
34
|
-
}, g = () => o.value, m = () => {
|
|
35
|
-
Object.assign(
|
|
36
|
-
p.value,
|
|
37
|
-
{
|
|
38
|
-
percentage: o.value
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
return m(), l({ ...d, getValue: g, setValue: _ }), (e, r) => (O(), b(k, x(e.$props, {
|
|
43
|
-
propOptions: { elementName: "el-progress", fieldObj: j(f) }
|
|
44
|
-
}), null, 16, ["propOptions"]));
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
export {
|
|
48
|
-
Q as default
|
|
49
|
-
};
|
package/slot-c6523e8c.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { m as f, d as u } from "./enum-type-be3a0b8b.js";
|
|
2
|
-
import { s as g } from "./template-9ade074e.js";
|
|
3
|
-
import { c as m } from "./uuid-b302db3f.js";
|
|
4
|
-
const w = (r, t = !0, i) => {
|
|
5
|
-
if (i != null && i === !1)
|
|
6
|
-
return [];
|
|
7
|
-
const a = d(r);
|
|
8
|
-
return t || (r == null ? void 0 : r.length) <= 0 ? a : a == null ? void 0 : a.filter((e) => {
|
|
9
|
-
var n;
|
|
10
|
-
return !!(e != null && e.widgetList) && ((n = e == null ? void 0 : e.widgetList) == null ? void 0 : n.length) > 0 || !!e.default || (e == null ? void 0 : e.slotName) === g.default;
|
|
11
|
-
});
|
|
12
|
-
}, L = (r, t) => r == null ? void 0 : r.find((i) => (i == null ? void 0 : i.slotName) === t), d = (r) => f(r) ? Array.isArray(r) ? r == null ? void 0 : r.map((t) => (u(t, { widgetList: [] }), m(t))) : (console.log("error slots", r), []) : [];
|
|
13
|
-
export {
|
|
14
|
-
L as a,
|
|
15
|
-
w as g,
|
|
16
|
-
d as i
|
|
17
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./subMenu-widget.vue_vue_type_script_setup_true_lang-1896e25e.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./index-f54403db.js";
|
|
4
|
-
import "./enum-type-be3a0b8b.js";
|
|
5
|
-
import "./icon-e9532b43.js";
|
|
6
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
7
|
-
import "./enum-type-92806e9d.js";
|
|
8
|
-
import "./baseImp-70f1a9c5.js";
|
|
9
|
-
import "./uuid-b302db3f.js";
|
|
10
|
-
import "./template-9ade074e.js";
|
|
11
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
12
|
-
import "./dialog-333d3421.js";
|
|
13
|
-
import "element-plus";
|
|
14
|
-
export {
|
|
15
|
-
o as default
|
|
16
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5a1b4f92.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./enum-type-be3a0b8b.js";
|
|
4
|
-
import "./icon-e9532b43.js";
|
|
5
|
-
import "./uuid-b302db3f.js";
|
|
6
|
-
import "./baseImp-70f1a9c5.js";
|
|
7
|
-
import "./enum-type-92806e9d.js";
|
|
8
|
-
import "./template-9ade074e.js";
|
|
9
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
10
|
-
import "./dialog-333d3421.js";
|
|
11
|
-
import "element-plus";
|
|
12
|
-
import "./drag-wrapper-227f198f.js";
|
|
13
|
-
import "./widget-base-4c2d6265.js";
|
|
14
|
-
import "./index-fa19f5d9.js";
|
|
15
|
-
import "./multirow-3ade8c6e.js";
|
|
16
|
-
import "./slot-c6523e8c.js";
|
|
17
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
18
|
-
export {
|
|
19
|
-
o as default
|
|
20
|
-
};
|
package/tag-widget-8b945443.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as s, createBlock as n, mergeProps as a, unref as f } from "vue";
|
|
2
|
-
import { I as l } from "./field-base-5547436d.js";
|
|
3
|
-
import { _ as c } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af9e9fc7.js";
|
|
4
|
-
import { w as d } from "./template-9ade074e.js";
|
|
5
|
-
import { b as _ } from "./share-field-9834aef6.js";
|
|
6
|
-
import "./widget-base-4c2d6265.js";
|
|
7
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
8
|
-
import "./uuid-b302db3f.js";
|
|
9
|
-
import "./enum-type-be3a0b8b.js";
|
|
10
|
-
import "./index-fa19f5d9.js";
|
|
11
|
-
import "./enum-type-92806e9d.js";
|
|
12
|
-
import "./baseImp-70f1a9c5.js";
|
|
13
|
-
import "./icon-e9532b43.js";
|
|
14
|
-
import "./dialog-333d3421.js";
|
|
15
|
-
import "element-plus";
|
|
16
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
17
|
-
import "./index-f54403db.js";
|
|
18
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
19
|
-
import "./slot-c6523e8c.js";
|
|
20
|
-
import "./content-wrapper.vue_vue_type_script_setup_true_lang-56dfcc0b.js";
|
|
21
|
-
import "./multirow-3ade8c6e.js";
|
|
22
|
-
const u = o({ componentName: d.FieldWidget }), D = /* @__PURE__ */ o({
|
|
23
|
-
...u,
|
|
24
|
-
__name: "tag-widget",
|
|
25
|
-
props: { ...l },
|
|
26
|
-
setup(r, { expose: t }) {
|
|
27
|
-
const p = r, { exposed: e, fieldObj: m } = _(p);
|
|
28
|
-
return t({ ...e }), (i, g) => (s(), n(c, a(i.$props, {
|
|
29
|
-
propOptions: { elementName: "el-tag", fieldObj: f(m) }
|
|
30
|
-
}), null, 16, ["propOptions"]));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
D as default
|
|
35
|
-
};
|
package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js
DELETED
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
import { defineComponent as pe, resolveComponent as z, openBlock as l, createElementBlock as h, Fragment as I, createVNode as d, createCommentVNode as k, createBlock as b, createSlots as oe, withCtx as a, createElementVNode as E, renderList as de, createTextVNode as L, toDisplayString as $, withModifiers as y, unref as n, renderSlot as S, computed as B, ref as re, resolveDynamicComponent as le, mergeProps as G } from "vue";
|
|
2
|
-
import { c as me } from "./uuid-b302db3f.js";
|
|
3
|
-
import { I as fe, a as we } from "./widget-base-4c2d6265.js";
|
|
4
|
-
import { a as m, o as ve, G as ae } from "./enum-type-be3a0b8b.js";
|
|
5
|
-
import { b as ge, i as ye, j as he, k as We, d as Ce } from "./index-fa19f5d9.js";
|
|
6
|
-
import { S as g } from "./index-f54403db.js";
|
|
7
|
-
import { x as ce } from "./baseImp-70f1a9c5.js";
|
|
8
|
-
import { d as q } from "./enum-type-92806e9d.js";
|
|
9
|
-
const ke = { key: 0 }, be = { class: "clWhite" }, Oe = { class: "clWhite" }, Le = ["title"], $e = ["title"], je = ["title"], Se = ["title"], Te = /* @__PURE__ */ pe({
|
|
10
|
-
__name: "drag-handler",
|
|
11
|
-
props: { ...fe, parentTree: { type: Object, default: null }, hidden: { type: Boolean, default: !1 }, simple: { type: Boolean } },
|
|
12
|
-
setup(f) {
|
|
13
|
-
const o = f, { setSelected: J, findWidgetById: K, removeWidget: D, moveDownWidget: F, moveUpWidget: R, cloneWidget: V } = ge(o.designer), H = (t) => {
|
|
14
|
-
const s = t == null ? void 0 : t.id;
|
|
15
|
-
if (t.selectable === !1)
|
|
16
|
-
ce.info(m.i18nt("designer.hint.currentNodeCannotBeSelected"));
|
|
17
|
-
else {
|
|
18
|
-
const p = K(s);
|
|
19
|
-
J(p);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
return (t, s) => {
|
|
23
|
-
var T, w;
|
|
24
|
-
const p = z("el-dropdown-item"), P = z("el-dropdown-menu"), j = z("el-dropdown"), U = z("el-divider");
|
|
25
|
-
return l(), h(I, null, [
|
|
26
|
-
f.hidden === !0 ? (l(), h("i", ke, [
|
|
27
|
-
d(g, { name: "@el-hide" })
|
|
28
|
-
])) : k("", !0),
|
|
29
|
-
f.simple ? (l(), b(j, {
|
|
30
|
-
key: 1,
|
|
31
|
-
onCommand: H
|
|
32
|
-
}, oe({
|
|
33
|
-
default: a(() => [
|
|
34
|
-
E("span", be, [
|
|
35
|
-
d(g, { name: "@el-arrow-down" })
|
|
36
|
-
])
|
|
37
|
-
]),
|
|
38
|
-
_: 2
|
|
39
|
-
}, [
|
|
40
|
-
((T = f.parentTree) == null ? void 0 : T.length) > 0 ? {
|
|
41
|
-
name: "dropdown",
|
|
42
|
-
fn: a(() => [
|
|
43
|
-
d(P, null, {
|
|
44
|
-
default: a(() => [
|
|
45
|
-
(l(!0), h(I, null, de(f.parentTree, (i, W) => (l(), b(p, { command: i }, {
|
|
46
|
-
default: a(() => [
|
|
47
|
-
L($(i == null ? void 0 : i.label), 1)
|
|
48
|
-
]),
|
|
49
|
-
_: 2
|
|
50
|
-
}, 1032, ["command"]))), 256)),
|
|
51
|
-
d(p, {
|
|
52
|
-
divided: "",
|
|
53
|
-
onClick: s[0] || (s[0] = y((i) => n(V)(t.widget, t.parentList), ["stop"]))
|
|
54
|
-
}, {
|
|
55
|
-
default: a(() => [
|
|
56
|
-
d(g, { name: "@el-clone" }),
|
|
57
|
-
L($(n(m).i18nt("designer.hint.cloneWidget")), 1)
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
}),
|
|
61
|
-
d(p, {
|
|
62
|
-
onClick: s[1] || (s[1] = y((i) => n(D)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
63
|
-
}, {
|
|
64
|
-
default: a(() => [
|
|
65
|
-
d(g, { name: "@el-delete" }),
|
|
66
|
-
L($(n(m).i18nt("designer.hint.remove")), 1)
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}),
|
|
70
|
-
t.parentList && t.parentList.length > 1 ? (l(), b(p, {
|
|
71
|
-
key: 0,
|
|
72
|
-
onClick: s[2] || (s[2] = y((i) => n(R)(t.parentList, t.widget), ["stop"]))
|
|
73
|
-
}, {
|
|
74
|
-
default: a(() => [
|
|
75
|
-
d(g, { name: "@el-move-up" }),
|
|
76
|
-
L($(n(m).i18nt("designer.hint.moveUpWidget")), 1)
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
})) : k("", !0),
|
|
80
|
-
t.parentList && t.parentList.length > 1 ? (l(), b(p, {
|
|
81
|
-
key: 1,
|
|
82
|
-
onClick: s[3] || (s[3] = y((i) => n(F)(t.parentList, t.widget), ["stop"]))
|
|
83
|
-
}, {
|
|
84
|
-
default: a(() => [
|
|
85
|
-
d(g, { name: "@el-move-down" }),
|
|
86
|
-
L($(n(m).i18nt("designer.hint.moveDownWidget")), 1)
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
})) : k("", !0),
|
|
90
|
-
t.$slots.default ? (l(), b(p, {
|
|
91
|
-
key: 2,
|
|
92
|
-
divied: ""
|
|
93
|
-
}, {
|
|
94
|
-
default: a(() => [
|
|
95
|
-
S(t.$slots, "default")
|
|
96
|
-
]),
|
|
97
|
-
_: 3
|
|
98
|
-
})) : k("", !0)
|
|
99
|
-
]),
|
|
100
|
-
_: 3
|
|
101
|
-
})
|
|
102
|
-
]),
|
|
103
|
-
key: "0"
|
|
104
|
-
} : void 0
|
|
105
|
-
]), 1024)) : (l(), h(I, { key: 2 }, [
|
|
106
|
-
d(j, { onCommand: H }, oe({
|
|
107
|
-
default: a(() => {
|
|
108
|
-
var i, W;
|
|
109
|
-
return [
|
|
110
|
-
E("span", Oe, [
|
|
111
|
-
L($(n(m).i18n2t(
|
|
112
|
-
`designer.widgetLabel.${(i = t.widget) == null ? void 0 : i.type}`,
|
|
113
|
-
`extension.widgetLabel.${(W = t.widget) == null ? void 0 : W.type}`
|
|
114
|
-
)) + " ", 1),
|
|
115
|
-
d(g, {
|
|
116
|
-
name: "@el-arrow-down",
|
|
117
|
-
class: "el-icon--right"
|
|
118
|
-
})
|
|
119
|
-
])
|
|
120
|
-
];
|
|
121
|
-
}),
|
|
122
|
-
_: 2
|
|
123
|
-
}, [
|
|
124
|
-
((w = f.parentTree) == null ? void 0 : w.length) > 0 ? {
|
|
125
|
-
name: "dropdown",
|
|
126
|
-
fn: a(() => [
|
|
127
|
-
d(P, null, {
|
|
128
|
-
default: a(() => [
|
|
129
|
-
(l(!0), h(I, null, de(f.parentTree, (i, W) => (l(), b(p, { command: i }, {
|
|
130
|
-
default: a(() => [
|
|
131
|
-
L($(i == null ? void 0 : i.label), 1)
|
|
132
|
-
]),
|
|
133
|
-
_: 2
|
|
134
|
-
}, 1032, ["command"]))), 256))
|
|
135
|
-
]),
|
|
136
|
-
_: 1
|
|
137
|
-
})
|
|
138
|
-
]),
|
|
139
|
-
key: "0"
|
|
140
|
-
} : void 0
|
|
141
|
-
]), 1024),
|
|
142
|
-
d(U, {
|
|
143
|
-
direction: "vertical",
|
|
144
|
-
"border-style": "dashed",
|
|
145
|
-
color: "white"
|
|
146
|
-
}),
|
|
147
|
-
S(t.$slots, "default"),
|
|
148
|
-
t.parentList && t.parentList.length > 1 ? (l(), h("i", {
|
|
149
|
-
key: 0,
|
|
150
|
-
title: n(m).i18nt("designer.hint.moveUpWidget"),
|
|
151
|
-
onClick: s[4] || (s[4] = y((i) => n(R)(t.parentList, t.widget), ["stop"]))
|
|
152
|
-
}, [
|
|
153
|
-
d(g, { name: "@el-move-up" })
|
|
154
|
-
], 8, Le)) : k("", !0),
|
|
155
|
-
t.parentList && t.parentList.length > 1 ? (l(), h("i", {
|
|
156
|
-
key: 1,
|
|
157
|
-
title: n(m).i18nt("designer.hint.moveDownWidget"),
|
|
158
|
-
onClick: s[5] || (s[5] = y((i) => n(F)(t.parentList, t.widget), ["stop"]))
|
|
159
|
-
}, [
|
|
160
|
-
d(g, { name: "@el-move-down" })
|
|
161
|
-
], 8, $e)) : k("", !0),
|
|
162
|
-
E("i", {
|
|
163
|
-
title: n(m).i18nt("designer.hint.cloneWidget"),
|
|
164
|
-
onClick: s[6] || (s[6] = y((i) => n(V)(t.widget, t.parentList), ["stop"]))
|
|
165
|
-
}, [
|
|
166
|
-
d(g, { name: "@el-clone" })
|
|
167
|
-
], 8, je),
|
|
168
|
-
E("i", {
|
|
169
|
-
title: n(m).i18nt("designer.hint.remove"),
|
|
170
|
-
onClick: s[7] || (s[7] = y((i) => n(D)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
171
|
-
}, [
|
|
172
|
-
d(g, { name: "@el-delete" })
|
|
173
|
-
], 8, Se)
|
|
174
|
-
], 64))
|
|
175
|
-
], 64);
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
const He = /* @__PURE__ */ pe({
|
|
180
|
-
__name: "widget-wrapper",
|
|
181
|
-
props: { ...we },
|
|
182
|
-
setup(f) {
|
|
183
|
-
var Q;
|
|
184
|
-
const o = f, { selectWidget: J } = ge(o.designer), { widgetTree: K } = ye((Q = o.designer) == null ? void 0 : Q.widgetList, !0), { pathNodes: D, parentTree: F } = he(K.value, o.widget), { size: R, displayLayout: V, labelAlign: H, labelWidth: t, formItemFlag: s, labelSuffix: p } = We(o, me(D.value)), { idClass: P } = Ce(o.widget), j = B(() => {
|
|
185
|
-
var u, O, C, c, v;
|
|
186
|
-
const e = (O = (u = o.propOptions) == null ? void 0 : u.fieldObj) == null ? void 0 : O.extendAttrs, r = (c = (C = o.propOptions) == null ? void 0 : C.fieldObj) == null ? void 0 : c.attrs;
|
|
187
|
-
return (v = ve(e)) != null && v.includes("hidden") ? e == null ? void 0 : e.hidden : r == null ? void 0 : r.hidden;
|
|
188
|
-
}), U = (e) => e && !["div", "span"].includes(e), T = B(() => {
|
|
189
|
-
var e, r;
|
|
190
|
-
return (e = o.widget) != null && e.type ? [q.grid, q.gridCol, q.wrapper].includes((r = o.widget) == null ? void 0 : r.type) : !1;
|
|
191
|
-
}), w = B(() => {
|
|
192
|
-
var C, c, v, N, A, X, Y, Z, _, x, ee, te, ne, ie, se;
|
|
193
|
-
const e = ((v = (c = (C = o.propOptions) == null ? void 0 : C.fieldObj) == null ? void 0 : c.extendAttrs) == null ? void 0 : v.width) || ((X = (A = (N = o.propOptions) == null ? void 0 : N.fieldObj) == null ? void 0 : A.attrs) == null ? void 0 : X.width), r = (_ = (Z = (Y = o.propOptions) == null ? void 0 : Y.fieldObj) == null ? void 0 : Z.extendAttrs) == null ? void 0 : _.ctrlWidth, u = (te = (ee = (x = o.propOptions) == null ? void 0 : x.fieldObj) == null ? void 0 : ee.extendAttrs) == null ? void 0 : te.customClass, O = (se = (ie = (ne = o.propOptions) == null ? void 0 : ne.fieldObj) == null ? void 0 : ie.extendAttrs) == null ? void 0 : se.componentWrapperClass;
|
|
194
|
-
return {
|
|
195
|
-
size: R.value,
|
|
196
|
-
labelAlign: H.value,
|
|
197
|
-
labelWidth: t.value,
|
|
198
|
-
//props.propOptions?.fieldObj?.extendAttrs?.labelHidden ? '0px' : 隐藏的标签宽度仍旧保留,为占位
|
|
199
|
-
formItemFlag: s.value,
|
|
200
|
-
ctrlWidth: r,
|
|
201
|
-
displayStyle: V.value,
|
|
202
|
-
labelSuffix: p.value || "",
|
|
203
|
-
injectStyle: {},
|
|
204
|
-
//verticalAlign: verticalAlign.value, width: withLabel.value ? '100%' : ctrlWidth.value
|
|
205
|
-
//注:宽度全屏
|
|
206
|
-
injectClass: [ae(u), e ? "" : "full-width", P],
|
|
207
|
-
// filterDisplay.value ? displayStyle.value : ''
|
|
208
|
-
componentWrapperClass: ae(O)
|
|
209
|
-
};
|
|
210
|
-
}), i = B(() => {
|
|
211
|
-
var e, r, u;
|
|
212
|
-
return !!o.designer && ((e = o.widget) == null ? void 0 : e.id) === ((u = (r = o.designer) == null ? void 0 : r.selectedWidget) == null ? void 0 : u.id);
|
|
213
|
-
}), W = re(), M = re(), ue = B(() => {
|
|
214
|
-
var e, r;
|
|
215
|
-
if (W.value && M.value && i.value)
|
|
216
|
-
return ((e = W.value) == null ? void 0 : e.offsetWidth) > ((r = M.value) == null ? void 0 : r.offsetWidth);
|
|
217
|
-
});
|
|
218
|
-
return (e, r) => {
|
|
219
|
-
var u, O, C, c;
|
|
220
|
-
return e.designState ? (l(), b(le(e.componentName), G({
|
|
221
|
-
key: 0,
|
|
222
|
-
class: ["field-wrapper", [n(i) ? "selected" : "", " drag-handler", e.propOptions.class, e.showWrapperComponent ? n(w).injectClass : null]],
|
|
223
|
-
style: e.propOptions.style,
|
|
224
|
-
onClick: r[0] || (r[0] = y((v) => n(J)(e.widget, e.parentWidget, e.parentList), ["stop"])),
|
|
225
|
-
ref_key: "wrapperRef",
|
|
226
|
-
ref: M,
|
|
227
|
-
tabindex: 0
|
|
228
|
-
}, U(e.componentName) ? (O = (u = e.propOptions) == null ? void 0 : u.fieldObj) == null ? void 0 : O.attrs : {}), {
|
|
229
|
-
default: a(() => {
|
|
230
|
-
var v, N, A;
|
|
231
|
-
return [
|
|
232
|
-
S(e.$slots, "default", { data: n(w) }),
|
|
233
|
-
((N = (v = e.designer) == null ? void 0 : v.selectedWidget) == null ? void 0 : N.id) === ((A = e.widget) == null ? void 0 : A.id) ? (l(), h("div", {
|
|
234
|
-
key: 0,
|
|
235
|
-
class: "action",
|
|
236
|
-
ref_key: "dragHandlerRef",
|
|
237
|
-
ref: W
|
|
238
|
-
}, [
|
|
239
|
-
d(Te, {
|
|
240
|
-
simple: n(ue),
|
|
241
|
-
"design-state": e.designState,
|
|
242
|
-
designer: e.designer,
|
|
243
|
-
widget: e.widget,
|
|
244
|
-
"parent-widget": e.parentWidget,
|
|
245
|
-
"parent-list": e.parentList,
|
|
246
|
-
parentTree: n(F),
|
|
247
|
-
hidden: n(j)
|
|
248
|
-
}, {
|
|
249
|
-
default: a(() => [
|
|
250
|
-
S(e.$slots, "drag")
|
|
251
|
-
]),
|
|
252
|
-
_: 3
|
|
253
|
-
}, 8, ["simple", "design-state", "designer", "widget", "parent-widget", "parent-list", "parentTree", "hidden"])
|
|
254
|
-
], 512)) : k("", !0)
|
|
255
|
-
];
|
|
256
|
-
}),
|
|
257
|
-
_: 3
|
|
258
|
-
}, 16, ["class", "style"])) : !n(j) || n(T) ? (l(), h(I, { key: 1 }, [
|
|
259
|
-
e.showWrapperComponent ? (l(), b(le(e.componentName), G({ key: 0 }, U(e.componentName) ? (c = (C = e.propOptions) == null ? void 0 : C.fieldObj) == null ? void 0 : c.attrs : {}, {
|
|
260
|
-
class: ["_id_BycomponentName", [...n(w).injectClass, e.propOptions.class, n(j) && n(T) ? "hlhidden" : ""]],
|
|
261
|
-
style: { ...n(w).injectStyle, ...e.propOptions.style }
|
|
262
|
-
}), {
|
|
263
|
-
default: a(() => [
|
|
264
|
-
S(e.$slots, "default", G({ data: n(w) }, e.$props))
|
|
265
|
-
]),
|
|
266
|
-
_: 3
|
|
267
|
-
}, 16, ["class", "style"])) : S(e.$slots, "default", G({
|
|
268
|
-
key: 1,
|
|
269
|
-
data: n(w)
|
|
270
|
-
}, e.$props))
|
|
271
|
-
], 64)) : k("", !0);
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
export {
|
|
276
|
-
He as _
|
|
277
|
-
};
|