hlrender 0.0.239 → 0.0.241
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/_image-4162224b.js +28 -0
- package/{_pdf-305e5a7a.js → _pdf-68d429e2.js} +14 -14
- package/{_txt-cecb5427.js → _txt-cae17b86.js} +12 -12
- package/_unsupport-b8307858.js +35 -0
- package/{_video-21c5b64e.js → _video-bc981b0b.js} +8 -8
- package/affix-widget-206f82ff.js +47 -0
- package/alert-widget-48ac2ae0.js +47 -0
- package/{anchor-link-widget-919ac0ee.js → anchor-link-widget-dae98704.js} +1 -1
- package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-c6ab731a.js +36 -0
- package/anchor-widget-2394a0ac.js +60 -0
- package/{auto-complete-widget-6f0de1bb.js → auto-complete-widget-b1949ba1.js} +30 -30
- package/avatar-widget-ea2f5842.js +41 -0
- package/backtop-widget-33a9c281.js +47 -0
- package/badge-widget-38519bd6.js +53 -0
- package/{barcode-widget-7fc44f8c.js → barcode-widget-f6e052a2.js} +14 -14
- package/baseImp-cf2a056f.js +12245 -0
- package/{breadcrumb-widget-b09a45d7.js → breadcrumb-widget-3b25f641.js} +24 -21
- package/button-widget-9f8ba534.js +57 -0
- package/cache-widget-5d7386cb.js +53 -0
- package/{card-widget-feb6e34a.js → card-widget-738fe0dc.js} +33 -33
- package/{carousel-widget-3ff30326.js → carousel-widget-4d37e1f3.js} +21 -21
- package/{cascader-widget-4fef75a8.js → cascader-widget-371d58f6.js} +59 -59
- package/{chart-widget-fbdce0db.js → chart-widget-5d31b504.js} +17 -17
- package/checkbox-widget-0072c102.js +113 -0
- package/collapse-widget-485a4451.js +94 -0
- package/color-bae04003.js +59 -0
- package/color-picker-widget-df648695.js +56 -0
- package/{cont-cell-widget-56a58b71.js → cont-cell-widget-293cee86.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-738afb13.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-08981f90.js} +17 -17
- package/{cont-widget-5de61a58.js → cont-widget-677d012d.js} +7 -7
- package/content-wrapper-44a5887d.js +16 -0
- package/content-wrapper.vue_vue_type_script_setup_true_lang-4ab88b8e.js +38 -0
- package/countdown-widget-8d5636b8.js +53 -0
- package/{date-picker-range-widget-9327cc4b.js → date-picker-range-widget-623b1c04.js} +25 -25
- package/{date-picker-widget-27335405.js → date-picker-widget-989230ea.js} +33 -33
- package/default-slot-widget-184375d4.js +26 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8444de52.js +84 -0
- package/{descriptions-widget-abf88edf.js → descriptions-widget-8a41c70b.js} +22 -22
- package/{dialog-bb4f1f51.js → dialog-8ecdabe5.js} +2 -2
- package/{dialog-widget-affeb26a.js → dialog-widget-fdf07199.js} +16 -16
- package/divider-widget-480eec10.js +47 -0
- package/drag-wrapper-8ba8d26a.js +256 -0
- package/{drawer-widget-1153b308.js → drawer-widget-f14cbeb1.js} +16 -16
- package/{dropdown-widget-07078c8b.js → dropdown-widget-5d0414ec.js} +25 -25
- package/empty-widget-35365e0e.js +47 -0
- package/{enum-type-d9039fa1.js → enum-type-05ccb088.js} +331 -108
- package/{enum-type-6aec5442.js → enum-type-35e3b2e0.js} +143 -109
- package/{expression-f3029af0.js → expression-a880b354.js} +13 -12
- package/feedback-widget-4a439150.js +26 -0
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-b04a1d28.js +90 -0
- package/{fieldobj-51ea9fd4.js → fieldobj-4d9ab4ce.js} +1 -1
- package/{file-upload-widget-3d529a72.js → file-upload-widget-407f3b6f.js} +107 -107
- package/form-item-wrapper-002adf08.js +86 -0
- package/{form-widget-c7aadc35.js → form-widget-7308fc3f.js} +28 -28
- package/{grid-col-widget-31f034df.js → grid-col-widget-a8dd7ebe.js} +1 -1
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-e76e6d58.js +41 -0
- package/{grid-widget-16efe87a.js → grid-widget-8e32f92f.js} +5 -5
- package/hcard-widget-c4671309.js +94 -0
- package/{html-text-widget-689e7370.js → html-text-widget-d40831f7.js} +15 -15
- package/icon-3ea488c1.js +177 -0
- package/icon-widget-6c27fd6b.js +62 -0
- package/iframe-widget-13ff4929.js +113 -0
- package/{image-widget-bb79778f.js → image-widget-ae7fcd72.js} +18 -18
- package/index-31e1760d.js +19 -0
- package/index-658d06a4.js +46 -0
- package/{index-def6ce54.js → index-67481ab5.js} +44 -44
- package/{index-ddd23411.js → index-6bcfdc22.js} +1668 -1678
- package/index-7d31ccfb.js +65 -0
- package/{index-752aa342.js → index-847ef399.js} +4821 -3681
- package/{input-number-widget-9b8da52e.js → input-number-widget-37c014bb.js} +19 -19
- package/input-tag-widget-bcc1bd3e.js +71 -0
- package/{input-widget-b68feb0b.js → input-widget-ebed702a.js} +25 -25
- package/{label-wrapper-70f516f3.js → label-wrapper-7e85c84b.js} +6 -6
- package/label-wrapper.vue_vue_type_style_index_0_lang-57a4c003.js +63 -0
- package/link-widget-ea2a7cc9.js +65 -0
- package/{ltable-col-widget-c05a0f75.js → ltable-col-widget-91f26266.js} +1 -1
- package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-bbe5ac06.js +278 -0
- package/{ltable-widget-0e14fcb3.js → ltable-widget-111c9922.js} +11 -11
- package/mention-widget-b66ac807.js +82 -0
- package/{menu-widget-92944b29.js → menu-widget-46659645.js} +40 -40
- package/model-widget-093857b9.js +155 -0
- package/{multirow-ef17557e.js → multirow-50d903a8.js} +7 -7
- package/multirow-widget-d550d2ee.js +723 -0
- package/package.json +1 -1
- package/{pagination-widget-ba41b179.js → pagination-widget-4998f804.js} +23 -23
- package/{picture-upload-widget-b3233664.js → picture-upload-widget-3102164b.js} +35 -35
- package/{progress-widget-bf490d7f.js → progress-widget-514e315d.js} +31 -31
- package/{qrcode-widget-8bdc470f.js → qrcode-widget-e331f58f.js} +18 -18
- package/radio-widget-df89345f.js +87 -0
- package/{range-widget-3de3d728.js → range-widget-b972e54c.js} +21 -21
- package/rate-widget-88301af3.js +56 -0
- package/render.es.js +1433 -1468
- package/render.style.css +1 -1
- package/render.umd.js +456 -454
- package/result-widget-623c24cf.js +67 -0
- package/rich-editor-widget-e8ab8b01.js +74 -0
- package/{router-widget-6e7a7727.js → router-widget-2daa2c82.js} +24 -24
- package/segmented-widget-caf0f51a.js +89 -0
- package/select-widget-469026c5.js +369 -0
- package/{sfc-bad92d5d.js → sfc-8b7e2487.js} +9 -9
- package/{sfcview-086204d9.js → sfcview-addac91a.js} +8 -8
- package/share-field-6fc223d3.js +812 -0
- package/{share-file-75ca566e.js → share-file-7432d2c5.js} +10 -10
- package/skeleton-widget-ff72bbaa.js +79 -0
- package/skeletonItem-widget-0a4f3d54.js +51 -0
- package/slider-widget-01359ef3.js +62 -0
- package/slot-1605ee49.js +329 -0
- package/space-widget-d8c7642f.js +103 -0
- package/splitter-widget-169878d5.js +96 -0
- package/{static-text-widget-612ba08c.js → static-text-widget-1dd47867.js} +15 -15
- package/statistic-widget-9b3c6dfa.js +47 -0
- package/{steps-widget-fc0e9312.js → steps-widget-b872e743.js} +30 -30
- package/{subMenu-widget-48ff5cef.js → subMenu-widget-1cb5e243.js} +9 -9
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-abf7e791.js → subMenu-widget.vue_vue_type_script_setup_true_lang-5c50e597.js} +17 -17
- package/switch-widget-45e34bfb.js +56 -0
- package/{tab-pane-widget-4993afd4.js → tab-pane-widget-2b27921e.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-7dac41b9.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-671795c3.js} +7 -7
- package/table-col-widget-13763429.js +22 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-c25508ef.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-b2343af4.js} +13 -13
- package/{table-widget-45308b11.js → table-widget-dd36a5c4.js} +95 -95
- package/tabs-widget-5616ead0.js +81 -0
- package/tag-widget-1a56a996.js +47 -0
- package/text-widget-75a360ea.js +47 -0
- package/{textarea-widget-56c9a88b.js → textarea-widget-c15e1c51.js} +20 -20
- package/time-picker-range-widget-96a2df74.js +81 -0
- package/time-picker-widget-15e10aba.js +64 -0
- package/{time-select-widget-213d9cfb.js → time-select-widget-a42a3207.js} +25 -25
- package/{tmpl-widget-d65666b0.js → tmpl-widget-929ad1e9.js} +34 -33
- package/tooltip-widget-57b89602.js +95 -0
- package/tour-widget-8376d229.js +148 -0
- package/transfer-widget-fb2462c7.js +81 -0
- package/tree-select-widget-bbb86849.js +149 -0
- package/tree-widget-3549ff5c.js +90 -0
- package/{uuid-b62f2c76.js → uuid-68f25733.js} +1 -1
- package/{verifycode-widget-e1513c4e.js → verifycode-widget-e7e45e49.js} +14 -14
- package/vertical-progress-widget-c44812e6.js +52 -0
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js +282 -0
- package/{wrapper-widget-595773d5.js → wrapper-widget-b06bb4ff.js} +10 -10
- package/_image-fab8c8e2.js +0 -28
- package/_unsupport-d50224e3.js +0 -35
- package/affix-widget-164ebcf1.js +0 -39
- package/alert-widget-ea994a6a.js +0 -39
- package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +0 -35
- package/anchor-widget-1556fb56.js +0 -57
- package/avatar-widget-34662b7b.js +0 -39
- package/backtop-widget-b04b2989.js +0 -39
- package/badge-widget-607a83ae.js +0 -45
- package/baseImp-5c466035.js +0 -11761
- package/button-widget-007795bc.js +0 -49
- package/cache-widget-66e15ef6.js +0 -53
- package/checkbox-widget-37286554.js +0 -115
- package/collapse-widget-4f728579.js +0 -91
- package/color-picker-widget-035a1437.js +0 -56
- package/content-wrapper-d0fd2c66.js +0 -16
- package/content-wrapper.vue_vue_type_script_setup_true_lang-528a43b4.js +0 -38
- package/default-slot-widget-4667aa3c.js +0 -26
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-1c3154df.js +0 -77
- package/divider-widget-d5aa4c7a.js +0 -39
- package/drag-wrapper-fd7ed8e5.js +0 -255
- package/empty-widget-17ff5dd3.js +0 -39
- package/feedback-widget-dd3c9912.js +0 -26
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-ae8fd77d.js +0 -82
- package/form-item-wrapper-3e85105e.js +0 -86
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4cbbbbd6.js +0 -41
- package/icon-a0e0cdb0.js +0 -119
- package/icon-widget-90609a93.js +0 -62
- package/iframe-widget-2d5c6840.js +0 -116
- package/index-56592f6b.js +0 -65
- package/index-ae1f26e5.js +0 -46
- package/label-wrapper.vue_vue_type_style_index_0_lang-ab1f665c.js +0 -63
- package/link-widget-97bdd33e.js +0 -57
- package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d5d6bb28.js +0 -278
- package/model-widget-f56225e4.js +0 -122
- package/multirow-widget-c2be3852.js +0 -723
- package/radio-widget-d4050344.js +0 -85
- package/rate-widget-f4cbbd7c.js +0 -56
- package/result-widget-b0610176.js +0 -67
- package/rich-editor-widget-cc2076b1.js +0 -74
- package/select-widget-b6ddbbf4.js +0 -346
- package/share-field-6ba09f55.js +0 -806
- package/slider-widget-9ce64cd4.js +0 -62
- package/slot-92796df0.js +0 -327
- package/switch-widget-163f9c41.js +0 -56
- package/table-col-widget-b7d259ad.js +0 -22
- package/tabs-widget-98776656.js +0 -81
- package/tag-widget-b93765a0.js +0 -39
- package/text-widget-8911c99b.js +0 -39
- package/time-picker-range-widget-4617e19a.js +0 -81
- package/time-picker-widget-9b6354f8.js +0 -64
- package/tree-select-widget-d9fb0b80.js +0 -147
- package/tree-widget-1d696deb.js +0 -90
- package/vertical-progress-widget-fa6b14ff.js +0 -52
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c068c9f3.js +0 -282
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { defineComponent as D, computed as a, resolveComponent as te, openBlock as s, createBlock as p, mergeProps as O, unref as o, withCtx as d, toHandlers as W, createSlots as A, resolveDynamicComponent as n, createCommentVNode as C } from "vue";
|
|
2
|
+
import { s as f, t as B } from "./enum-type-05ccb088.js";
|
|
3
|
+
import { I as le } from "./field-base-1acf3ada.js";
|
|
4
|
+
import { b as oe } from "./share-field-6fc223d3.js";
|
|
5
|
+
import re from "./form-item-wrapper-002adf08.js";
|
|
6
|
+
import { b as v, w as ae } from "./expression-a880b354.js";
|
|
7
|
+
import "./widget-base-8eece820.js";
|
|
8
|
+
import "./multirow-50d903a8.js";
|
|
9
|
+
import "./baseImp-cf2a056f.js";
|
|
10
|
+
import "./enum-type-35e3b2e0.js";
|
|
11
|
+
import "./icon-3ea488c1.js";
|
|
12
|
+
import "./dialog-8ecdabe5.js";
|
|
13
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
|
+
import "./uuid-68f25733.js";
|
|
15
|
+
import "element-plus";
|
|
16
|
+
import "./index-847ef399.js";
|
|
17
|
+
import "./slot-1605ee49.js";
|
|
18
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js";
|
|
19
|
+
import "./index-7d31ccfb.js";
|
|
20
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
+
import "./fieldobj-4d9ab4ce.js";
|
|
22
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-57a4c003.js";
|
|
23
|
+
import "./source-map-b04aec4a.js";
|
|
24
|
+
import "./esprima-e8d15055.js";
|
|
25
|
+
const se = D({ componentName: ae.FieldWidget }), Pe = /* @__PURE__ */ D({
|
|
26
|
+
...se,
|
|
27
|
+
__name: "tree-select-widget",
|
|
28
|
+
props: { ...le },
|
|
29
|
+
setup(T, { expose: U }) {
|
|
30
|
+
var S;
|
|
31
|
+
const H = T, { objFieldModel: $, fieldEditor: E, fieldKey: I, fieldModel: g, attrs: u, extendAttrs: i, events: j, exposed: q, activeOptionItem: K, optionItems: N, activeOptionItems: x, fieldObj: G, refreshOptionItems: J, setOptionItems: Q, getCheckedOptionItems: R, getCheckedOptionLabels: X, getCheckedOptionValues: Y, getCheckedOptionText: Z, getWidgetOption: h, filterOptionItems: ee } = oe(H), P = a(() => {
|
|
32
|
+
var t, m, r, c, l;
|
|
33
|
+
let e = {};
|
|
34
|
+
return f(e, v.label, (t = i.value) == null ? void 0 : t.labelProp, !0), f(e, v.children, (m = i.value) == null ? void 0 : m.childrenProp, !0), f(e, v.disabled, (r = i.value) == null ? void 0 : r.disabledProp, !0), f(e, v.isLeaf, (c = i.value) == null ? void 0 : c.isLeafProp, !0), f(e, v.class, (l = i.value) == null ? void 0 : l.classProp, !0), e;
|
|
35
|
+
}), V = (S = u == null ? void 0 : u.value) == null ? void 0 : S.nodeKey, z = a(() => {
|
|
36
|
+
var e;
|
|
37
|
+
return (e = x == null ? void 0 : x.value) == null ? void 0 : e.map((t) => String(t == null ? void 0 : t[V]));
|
|
38
|
+
}), F = a(() => {
|
|
39
|
+
var e;
|
|
40
|
+
return (e = K == null ? void 0 : K.value) == null ? void 0 : e[V];
|
|
41
|
+
}), w = a(() => {
|
|
42
|
+
var e;
|
|
43
|
+
return (e = ee((t) => !!(t != null && t.isopen))) == null ? void 0 : e.map((t) => t == null ? void 0 : t[V]);
|
|
44
|
+
}), L = a({
|
|
45
|
+
get: () => B(g.value, !1),
|
|
46
|
+
set: (e) => {
|
|
47
|
+
g.value = e;
|
|
48
|
+
}
|
|
49
|
+
}), M = a({
|
|
50
|
+
get: () => B($.value, !0),
|
|
51
|
+
set: (e) => {
|
|
52
|
+
g.value = e;
|
|
53
|
+
}
|
|
54
|
+
}), y = a(() => h("optionDefault")), k = a(() => h("empty")), _ = a(() => h("prefix"));
|
|
55
|
+
return U({
|
|
56
|
+
...q,
|
|
57
|
+
refreshOptionItems: J,
|
|
58
|
+
loadOptionItems: Q,
|
|
59
|
+
getCheckedItems: R,
|
|
60
|
+
getCheckedLabels: X,
|
|
61
|
+
getCheckedValues: Y,
|
|
62
|
+
getCheckedText: Z
|
|
63
|
+
}), (e, t) => {
|
|
64
|
+
const m = te("el-tree-select");
|
|
65
|
+
return s(), p(re, O(e.$props, {
|
|
66
|
+
"prop-options": { fieldObj: o(G) }
|
|
67
|
+
}), {
|
|
68
|
+
default: d(({ data: r }) => {
|
|
69
|
+
var c;
|
|
70
|
+
return [
|
|
71
|
+
(c = o(u)) != null && c.multiple ? (s(), p(m, O({
|
|
72
|
+
ref_key: "fieldEditor",
|
|
73
|
+
ref: E,
|
|
74
|
+
modelValue: M.value,
|
|
75
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => M.value = l),
|
|
76
|
+
key: o(I)
|
|
77
|
+
}, o(u), W(o(j)), {
|
|
78
|
+
class: r.injectClass,
|
|
79
|
+
style: r.injectStyle,
|
|
80
|
+
data: o(N),
|
|
81
|
+
props: P.value,
|
|
82
|
+
size: r.size,
|
|
83
|
+
defaultCheckedKeys: z.value,
|
|
84
|
+
defaultExpandedKeys: w.value,
|
|
85
|
+
currentNodeKey: F.value
|
|
86
|
+
}), A({
|
|
87
|
+
default: d(({ node: l, data: b }) => [
|
|
88
|
+
y.value ? (s(), p(n(y.value), {
|
|
89
|
+
key: 0,
|
|
90
|
+
item: { node: l, data: b }
|
|
91
|
+
}, null, 8, ["item"])) : C("", !0)
|
|
92
|
+
]),
|
|
93
|
+
prefix: d(() => [
|
|
94
|
+
_.value ? (s(), p(n(_.value), { key: 0 })) : C("", !0)
|
|
95
|
+
]),
|
|
96
|
+
_: 2
|
|
97
|
+
}, [
|
|
98
|
+
k.value ? {
|
|
99
|
+
name: "empty",
|
|
100
|
+
fn: d(() => [
|
|
101
|
+
(s(), p(n(k.value)))
|
|
102
|
+
]),
|
|
103
|
+
key: "0"
|
|
104
|
+
} : void 0
|
|
105
|
+
]), 1040, ["modelValue", "class", "style", "data", "props", "size", "defaultCheckedKeys", "defaultExpandedKeys", "currentNodeKey"])) : (s(), p(m, O({
|
|
106
|
+
ref_key: "fieldEditor",
|
|
107
|
+
ref: E,
|
|
108
|
+
modelValue: L.value,
|
|
109
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => L.value = l),
|
|
110
|
+
key: o(I)
|
|
111
|
+
}, o(u), W(o(j)), {
|
|
112
|
+
class: r.injectClass,
|
|
113
|
+
style: r.injectStyle,
|
|
114
|
+
data: o(N),
|
|
115
|
+
props: P.value,
|
|
116
|
+
size: r.size,
|
|
117
|
+
defaultCheckedKeys: z.value,
|
|
118
|
+
defaultExpandedKeys: w.value,
|
|
119
|
+
currentNodeKey: F.value
|
|
120
|
+
}), A({
|
|
121
|
+
default: d(({ node: l, data: b }) => [
|
|
122
|
+
y.value ? (s(), p(n(y.value), {
|
|
123
|
+
key: 0,
|
|
124
|
+
item: { node: l, data: b }
|
|
125
|
+
}, null, 8, ["item"])) : C("", !0)
|
|
126
|
+
]),
|
|
127
|
+
prefix: d(() => [
|
|
128
|
+
_.value ? (s(), p(n(_.value), { key: 0 })) : C("", !0)
|
|
129
|
+
]),
|
|
130
|
+
_: 2
|
|
131
|
+
}, [
|
|
132
|
+
k.value ? {
|
|
133
|
+
name: "empty",
|
|
134
|
+
fn: d(() => [
|
|
135
|
+
(s(), p(n(k.value)))
|
|
136
|
+
]),
|
|
137
|
+
key: "0"
|
|
138
|
+
} : void 0
|
|
139
|
+
]), 1040, ["modelValue", "class", "style", "data", "props", "size", "defaultCheckedKeys", "defaultExpandedKeys", "currentNodeKey"]))
|
|
140
|
+
];
|
|
141
|
+
}),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 16, ["prop-options"]);
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
export {
|
|
148
|
+
Pe as default
|
|
149
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { defineComponent as h, computed as l, resolveComponent as $, openBlock as m, createBlock as f, mergeProps as g, unref as p, withCtx as K, isRef as A, toHandlers as H, createSlots as M, resolveDynamicComponent as P } from "vue";
|
|
2
|
+
import { I as R } from "./field-base-1acf3ada.js";
|
|
3
|
+
import { b as U } from "./share-field-6fc223d3.js";
|
|
4
|
+
import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js";
|
|
5
|
+
import { b as a, w as G } from "./expression-a880b354.js";
|
|
6
|
+
import { s as n } from "./enum-type-05ccb088.js";
|
|
7
|
+
import "./widget-base-8eece820.js";
|
|
8
|
+
import "./multirow-50d903a8.js";
|
|
9
|
+
import "./baseImp-cf2a056f.js";
|
|
10
|
+
import "./enum-type-35e3b2e0.js";
|
|
11
|
+
import "./icon-3ea488c1.js";
|
|
12
|
+
import "./dialog-8ecdabe5.js";
|
|
13
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
|
+
import "./uuid-68f25733.js";
|
|
15
|
+
import "element-plus";
|
|
16
|
+
import "./index-847ef399.js";
|
|
17
|
+
import "./slot-1605ee49.js";
|
|
18
|
+
import "./index-7d31ccfb.js";
|
|
19
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
20
|
+
import "./fieldobj-4d9ab4ce.js";
|
|
21
|
+
import "./source-map-b04aec4a.js";
|
|
22
|
+
import "./esprima-e8d15055.js";
|
|
23
|
+
const J = h({ componentName: G.FieldWidget }), _e = /* @__PURE__ */ h({
|
|
24
|
+
...J,
|
|
25
|
+
__name: "tree-widget",
|
|
26
|
+
props: { ...R },
|
|
27
|
+
setup(V, { expose: E }) {
|
|
28
|
+
var C;
|
|
29
|
+
const j = V, { fieldEditor: w, fieldKey: N, fieldModel: c, attrs: d, extendAttrs: s, events: z, activeOptionItem: y, optionItems: F, fieldObj: S, getWidgetOption: k, filterOptionItems: B, exposed: D, activeOptionItems: v } = U(j), I = l(() => {
|
|
30
|
+
var o, i, t, r, u;
|
|
31
|
+
let e = {};
|
|
32
|
+
return n(e, a.label, (o = s.value) == null ? void 0 : o.labelProp, !0), n(e, a.children, (i = s.value) == null ? void 0 : i.childrenProp, !0), n(e, a.disabled, (t = s.value) == null ? void 0 : t.disabledProp, !0), n(e, a.isLeaf, (r = s.value) == null ? void 0 : r.isLeafProp, !0), n(e, a.class, (u = s.value) == null ? void 0 : u.classProp, !0), e;
|
|
33
|
+
}), _ = (C = d == null ? void 0 : d.value) == null ? void 0 : C.nodeKey, L = l(() => {
|
|
34
|
+
var e;
|
|
35
|
+
return (e = v == null ? void 0 : v.value) == null ? void 0 : e.map((o) => String(o == null ? void 0 : o[_]));
|
|
36
|
+
}), O = l(() => {
|
|
37
|
+
var e;
|
|
38
|
+
return (e = y == null ? void 0 : y.value) == null ? void 0 : e[_];
|
|
39
|
+
}), W = l(() => {
|
|
40
|
+
var e;
|
|
41
|
+
return (e = B((o) => !!(o != null && o.isopen))) == null ? void 0 : e.map((o) => o == null ? void 0 : o[_]);
|
|
42
|
+
}), b = l(() => k("optionDefault")), x = l(() => k("empty"));
|
|
43
|
+
return E({ ...D }), (e, o) => {
|
|
44
|
+
const i = $("el-tree");
|
|
45
|
+
return m(), f(q, g(e.$props, {
|
|
46
|
+
"prop-optiions": { fieldObj: p(S) }
|
|
47
|
+
}), {
|
|
48
|
+
default: K(({ data: t }) => [
|
|
49
|
+
(m(), f(i, g({
|
|
50
|
+
ref_key: "fieldEditor",
|
|
51
|
+
ref: w,
|
|
52
|
+
modelValue: p(c),
|
|
53
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => A(c) ? c.value = r : null),
|
|
54
|
+
key: p(N)
|
|
55
|
+
}, p(d), H(p(z)), {
|
|
56
|
+
class: t.injectClass,
|
|
57
|
+
style: t.injectStyle,
|
|
58
|
+
data: p(F),
|
|
59
|
+
props: I.value,
|
|
60
|
+
size: t.size,
|
|
61
|
+
defaultCheckedKeys: L.value,
|
|
62
|
+
defaultExpandedKeys: W.value,
|
|
63
|
+
currentNodeKey: O.value
|
|
64
|
+
}), M({ _: 2 }, [
|
|
65
|
+
x.value ? {
|
|
66
|
+
name: "empty",
|
|
67
|
+
fn: K(() => [
|
|
68
|
+
(m(), f(P(x.value)))
|
|
69
|
+
]),
|
|
70
|
+
key: "0"
|
|
71
|
+
} : void 0,
|
|
72
|
+
b.value ? {
|
|
73
|
+
name: "default",
|
|
74
|
+
fn: K(({ node: r, data: u }) => [
|
|
75
|
+
(m(), f(P(b.value), {
|
|
76
|
+
item: { node: r, data: u }
|
|
77
|
+
}, null, 8, ["item"]))
|
|
78
|
+
]),
|
|
79
|
+
key: "1"
|
|
80
|
+
} : void 0
|
|
81
|
+
]), 1040, ["modelValue", "class", "style", "data", "props", "size", "defaultCheckedKeys", "defaultExpandedKeys", "currentNodeKey"]))
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 16, ["prop-optiions"]);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
export {
|
|
89
|
+
_e as default
|
|
90
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as S } from "./enum-type-
|
|
1
|
+
import { a as S } from "./enum-type-05ccb088.js";
|
|
2
2
|
var w = /* @__PURE__ */ ((t) => (t.year = "year", t.month = "month", t.day = "day", t.hour = "hour", t.minute = "minute", t.second = "second", t.week = "week", t))(w || {});
|
|
3
3
|
function Y(t) {
|
|
4
4
|
return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as g, ref as v, onMounted as N, watch as k, openBlock as w, createElementBlock as S, createElementVNode as x, computed as C, nextTick as H, createBlock as P, mergeProps as b, unref as u, withCtx as W, createVNode as I } from "vue";
|
|
2
|
-
import { w as V } from "./expression-
|
|
2
|
+
import { w as V } from "./expression-a880b354.js";
|
|
3
3
|
import { I as z } from "./field-base-1acf3ada.js";
|
|
4
|
-
import { b as T } from "./share-field-
|
|
5
|
-
import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
6
|
-
import { R as E } from "./enum-type-
|
|
4
|
+
import { b as T } from "./share-field-6fc223d3.js";
|
|
5
|
+
import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js";
|
|
6
|
+
import { R as E } from "./enum-type-05ccb088.js";
|
|
7
7
|
import { _ as R } from "./_plugin-vue_export-helper-dad06003.js";
|
|
8
8
|
import "./source-map-b04aec4a.js";
|
|
9
|
-
import "./uuid-
|
|
9
|
+
import "./uuid-68f25733.js";
|
|
10
10
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
11
11
|
import "./esprima-e8d15055.js";
|
|
12
12
|
import "./widget-base-8eece820.js";
|
|
13
|
-
import "./multirow-
|
|
14
|
-
import "./baseImp-
|
|
15
|
-
import "./enum-type-
|
|
16
|
-
import "./icon-
|
|
17
|
-
import "./dialog-
|
|
13
|
+
import "./multirow-50d903a8.js";
|
|
14
|
+
import "./baseImp-cf2a056f.js";
|
|
15
|
+
import "./enum-type-35e3b2e0.js";
|
|
16
|
+
import "./icon-3ea488c1.js";
|
|
17
|
+
import "./dialog-8ecdabe5.js";
|
|
18
18
|
import "element-plus";
|
|
19
|
-
import "./index-
|
|
20
|
-
import "./slot-
|
|
21
|
-
import "./index-
|
|
22
|
-
import "./fieldobj-
|
|
19
|
+
import "./index-847ef399.js";
|
|
20
|
+
import "./slot-1605ee49.js";
|
|
21
|
+
import "./index-7d31ccfb.js";
|
|
22
|
+
import "./fieldobj-4d9ab4ce.js";
|
|
23
23
|
const F = { class: "s-canvas" }, L = ["width", "height"], $ = /* @__PURE__ */ g({
|
|
24
24
|
__name: "_index",
|
|
25
25
|
props: {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as g, computed as a, openBlock as c, createElementBlock as l, normalizeStyle as s, createElementVNode as n, renderSlot as p, createTextVNode as f, toDisplayString as _, createCommentVNode as m } from "vue";
|
|
2
|
+
import { _ as v } from "./_plugin-vue_export-helper-dad06003.js";
|
|
3
|
+
const h = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "progress-text"
|
|
6
|
+
}, y = /* @__PURE__ */ g({
|
|
7
|
+
__name: "vertical-progress-widget",
|
|
8
|
+
props: {
|
|
9
|
+
percentage: { default: 0 },
|
|
10
|
+
height: { default: "200px" },
|
|
11
|
+
width: { default: 16 },
|
|
12
|
+
showText: { type: Boolean, default: !0 },
|
|
13
|
+
color: {},
|
|
14
|
+
format: {}
|
|
15
|
+
},
|
|
16
|
+
setup(r) {
|
|
17
|
+
const e = r, i = a(() => ({
|
|
18
|
+
width: `${e.width}px`
|
|
19
|
+
})), d = a(() => {
|
|
20
|
+
var o;
|
|
21
|
+
var t = {
|
|
22
|
+
height: `${e.percentage}%`
|
|
23
|
+
};
|
|
24
|
+
return e.color != null && Object.assign(t, {
|
|
25
|
+
backgroundColor: (o = e.color) == null ? void 0 : o.call(e, e.percentage, null)
|
|
26
|
+
}), t;
|
|
27
|
+
}), u = a(() => e.format ? e.format(e.percentage) : `${e.percentage || 0}%`);
|
|
28
|
+
return (t, o) => (c(), l("div", {
|
|
29
|
+
class: "vertical-progress-wrapper",
|
|
30
|
+
style: s({ height: r.height })
|
|
31
|
+
}, [
|
|
32
|
+
n("div", {
|
|
33
|
+
class: "progress-track",
|
|
34
|
+
style: s(i.value)
|
|
35
|
+
}, [
|
|
36
|
+
n("div", {
|
|
37
|
+
class: "progress-bar",
|
|
38
|
+
style: s(d.value)
|
|
39
|
+
}, null, 4)
|
|
40
|
+
], 4),
|
|
41
|
+
r.showText ? (c(), l("div", h, [
|
|
42
|
+
p(t.$slots, "default", {}, () => [
|
|
43
|
+
f(_(u.value), 1)
|
|
44
|
+
], !0)
|
|
45
|
+
])) : m("", !0)
|
|
46
|
+
], 4));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const k = /* @__PURE__ */ v(y, [["__scopeId", "data-v-f939f453"]]);
|
|
50
|
+
export {
|
|
51
|
+
k as default
|
|
52
|
+
};
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { defineComponent as oe, resolveComponent as U, openBlock as o, createElementBlock as w, Fragment as j, createVNode as d, createCommentVNode as y, createBlock as W, createSlots as ne, withCtx as a, createElementVNode as z, renderList as ie, createTextVNode as C, toDisplayString as b, withModifiers as v, unref as l, renderSlot as S, computed as h, ref as se, resolveDynamicComponent as le, mergeProps as E, toHandlers as pe } from "vue";
|
|
2
|
+
import { e as g, c as ue, R as de } from "./enum-type-05ccb088.js";
|
|
3
|
+
import { I as me, a as ge } from "./widget-base-8eece820.js";
|
|
4
|
+
import { a as ae, i as fe, j as ve, k as we } from "./index-847ef399.js";
|
|
5
|
+
import { S as m } from "./index-7d31ccfb.js";
|
|
6
|
+
import { f as he } from "./baseImp-cf2a056f.js";
|
|
7
|
+
import { c as X, S as ye } from "./enum-type-35e3b2e0.js";
|
|
8
|
+
import { u as We } from "./fieldobj-4d9ab4ce.js";
|
|
9
|
+
import { b as N } from "./expression-a880b354.js";
|
|
10
|
+
const ce = { key: 0 }, ke = { class: "clWhite" }, Ce = { class: "clWhite" }, be = ["title"], Le = ["title"], $e = ["title"], Se = ["title"], Te = /* @__PURE__ */ oe({
|
|
11
|
+
__name: "drag-handler",
|
|
12
|
+
props: { ...me, parentTree: { type: Object, default: null }, hidden: { type: Boolean, default: !1 }, simple: { type: Boolean } },
|
|
13
|
+
setup(f) {
|
|
14
|
+
const r = f, { setSelected: J, findWidgetById: M, removeWidget: I, moveDownWidget: B, moveUpWidget: D, cloneWidget: F } = ae(r.designer), H = (t) => {
|
|
15
|
+
const s = t == null ? void 0 : t.id;
|
|
16
|
+
if (t.selectable === !1)
|
|
17
|
+
he.info(g.i18nt("designer.hint.currentNodeCannotBeSelected"));
|
|
18
|
+
else {
|
|
19
|
+
const u = M(s);
|
|
20
|
+
J(u);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return (t, s) => {
|
|
24
|
+
var L, $;
|
|
25
|
+
const u = U("el-dropdown-item"), q = U("el-dropdown-menu"), n = U("el-dropdown"), T = U("el-divider");
|
|
26
|
+
return o(), w(j, null, [
|
|
27
|
+
f.hidden === !0 ? (o(), w("i", ce, [
|
|
28
|
+
d(m, { name: "@el-hide" })
|
|
29
|
+
])) : y("", !0),
|
|
30
|
+
f.simple ? (o(), W(n, {
|
|
31
|
+
key: 1,
|
|
32
|
+
onCommand: H
|
|
33
|
+
}, ne({
|
|
34
|
+
default: a(() => [
|
|
35
|
+
z("span", ke, [
|
|
36
|
+
d(m, { name: "@el-arrow-down" })
|
|
37
|
+
])
|
|
38
|
+
]),
|
|
39
|
+
_: 2
|
|
40
|
+
}, [
|
|
41
|
+
((L = f.parentTree) == null ? void 0 : L.length) > 0 ? {
|
|
42
|
+
name: "dropdown",
|
|
43
|
+
fn: a(() => [
|
|
44
|
+
d(q, null, {
|
|
45
|
+
default: a(() => [
|
|
46
|
+
(o(!0), w(j, null, ie(f.parentTree, (i, c) => (o(), W(u, { command: i }, {
|
|
47
|
+
default: a(() => [
|
|
48
|
+
C(b(i == null ? void 0 : i.label), 1)
|
|
49
|
+
]),
|
|
50
|
+
_: 2
|
|
51
|
+
}, 1032, ["command"]))), 256)),
|
|
52
|
+
d(u, {
|
|
53
|
+
divided: "",
|
|
54
|
+
onClick: s[0] || (s[0] = v((i) => l(F)(t.widget, t.parentList), ["stop"]))
|
|
55
|
+
}, {
|
|
56
|
+
default: a(() => [
|
|
57
|
+
d(m, { name: "@el-clone" }),
|
|
58
|
+
C(b(l(g).i18nt("designer.hint.cloneWidget")), 1)
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
}),
|
|
62
|
+
d(u, {
|
|
63
|
+
onClick: s[1] || (s[1] = v((i) => l(I)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
64
|
+
}, {
|
|
65
|
+
default: a(() => [
|
|
66
|
+
d(m, { name: "@el-delete" }),
|
|
67
|
+
C(b(l(g).i18nt("designer.hint.remove")), 1)
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}),
|
|
71
|
+
t.parentList && t.parentList.length > 1 ? (o(), W(u, {
|
|
72
|
+
key: 0,
|
|
73
|
+
onClick: s[2] || (s[2] = v((i) => l(D)(t.parentList, t.widget), ["stop"]))
|
|
74
|
+
}, {
|
|
75
|
+
default: a(() => [
|
|
76
|
+
d(m, { name: "@el-move-up" }),
|
|
77
|
+
C(b(l(g).i18nt("designer.hint.moveUpWidget")), 1)
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
})) : y("", !0),
|
|
81
|
+
t.parentList && t.parentList.length > 1 ? (o(), W(u, {
|
|
82
|
+
key: 1,
|
|
83
|
+
onClick: s[3] || (s[3] = v((i) => l(B)(t.parentList, t.widget), ["stop"]))
|
|
84
|
+
}, {
|
|
85
|
+
default: a(() => [
|
|
86
|
+
d(m, { name: "@el-move-down" }),
|
|
87
|
+
C(b(l(g).i18nt("designer.hint.moveDownWidget")), 1)
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
})) : y("", !0),
|
|
91
|
+
t.$slots.default ? (o(), W(u, {
|
|
92
|
+
key: 2,
|
|
93
|
+
divied: ""
|
|
94
|
+
}, {
|
|
95
|
+
default: a(() => [
|
|
96
|
+
S(t.$slots, "default")
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
})) : y("", !0)
|
|
100
|
+
]),
|
|
101
|
+
_: 3
|
|
102
|
+
})
|
|
103
|
+
]),
|
|
104
|
+
key: "0"
|
|
105
|
+
} : void 0
|
|
106
|
+
]), 1024)) : (o(), w(j, { key: 2 }, [
|
|
107
|
+
d(n, { onCommand: H }, ne({
|
|
108
|
+
default: a(() => {
|
|
109
|
+
var i, c;
|
|
110
|
+
return [
|
|
111
|
+
z("span", Ce, [
|
|
112
|
+
C(b(l(g).i18n2t(
|
|
113
|
+
`designer.widgetLabel.${(i = t.widget) == null ? void 0 : i.type}`,
|
|
114
|
+
`extension.widgetLabel.${(c = t.widget) == null ? void 0 : c.type}`
|
|
115
|
+
)) + " ", 1),
|
|
116
|
+
d(m, {
|
|
117
|
+
name: "@el-arrow-down",
|
|
118
|
+
class: "el-icon--right"
|
|
119
|
+
})
|
|
120
|
+
])
|
|
121
|
+
];
|
|
122
|
+
}),
|
|
123
|
+
_: 2
|
|
124
|
+
}, [
|
|
125
|
+
(($ = f.parentTree) == null ? void 0 : $.length) > 0 ? {
|
|
126
|
+
name: "dropdown",
|
|
127
|
+
fn: a(() => [
|
|
128
|
+
d(q, null, {
|
|
129
|
+
default: a(() => [
|
|
130
|
+
(o(!0), w(j, null, ie(f.parentTree, (i, c) => (o(), W(u, { command: i }, {
|
|
131
|
+
default: a(() => [
|
|
132
|
+
C(b(i == null ? void 0 : i.label), 1)
|
|
133
|
+
]),
|
|
134
|
+
_: 2
|
|
135
|
+
}, 1032, ["command"]))), 256))
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
})
|
|
139
|
+
]),
|
|
140
|
+
key: "0"
|
|
141
|
+
} : void 0
|
|
142
|
+
]), 1024),
|
|
143
|
+
d(T, {
|
|
144
|
+
direction: "vertical",
|
|
145
|
+
"border-style": "dashed",
|
|
146
|
+
color: "white"
|
|
147
|
+
}),
|
|
148
|
+
S(t.$slots, "default"),
|
|
149
|
+
t.parentList && t.parentList.length > 1 ? (o(), w("i", {
|
|
150
|
+
key: 0,
|
|
151
|
+
title: l(g).i18nt("designer.hint.moveUpWidget"),
|
|
152
|
+
onClick: s[4] || (s[4] = v((i) => l(D)(t.parentList, t.widget), ["stop"]))
|
|
153
|
+
}, [
|
|
154
|
+
d(m, { name: "@el-move-up" })
|
|
155
|
+
], 8, be)) : y("", !0),
|
|
156
|
+
t.parentList && t.parentList.length > 1 ? (o(), w("i", {
|
|
157
|
+
key: 1,
|
|
158
|
+
title: l(g).i18nt("designer.hint.moveDownWidget"),
|
|
159
|
+
onClick: s[5] || (s[5] = v((i) => l(B)(t.parentList, t.widget), ["stop"]))
|
|
160
|
+
}, [
|
|
161
|
+
d(m, { name: "@el-move-down" })
|
|
162
|
+
], 8, Le)) : y("", !0),
|
|
163
|
+
z("i", {
|
|
164
|
+
title: l(g).i18nt("designer.hint.cloneWidget"),
|
|
165
|
+
onClick: s[6] || (s[6] = v((i) => l(F)(t.widget, t.parentList), ["stop"]))
|
|
166
|
+
}, [
|
|
167
|
+
d(m, { name: "@el-clone" })
|
|
168
|
+
], 8, $e),
|
|
169
|
+
z("i", {
|
|
170
|
+
title: l(g).i18nt("designer.hint.remove"),
|
|
171
|
+
onClick: s[7] || (s[7] = v((i) => l(I)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
172
|
+
}, [
|
|
173
|
+
d(m, { name: "@el-delete" })
|
|
174
|
+
], 8, Se)
|
|
175
|
+
], 64))
|
|
176
|
+
], 64);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
const Ve = /* @__PURE__ */ oe({
|
|
181
|
+
__name: "widget-wrapper",
|
|
182
|
+
props: { ...ge },
|
|
183
|
+
setup(f) {
|
|
184
|
+
var A;
|
|
185
|
+
const r = f, { selectWidget: J } = ae(r.designer), { widgetTree: M } = fe((A = r.designer) == null ? void 0 : A.widgetList, !0), { pathNodes: I, parentTree: B } = ve(M.value, r.widget), { size: D, displayLayout: F, labelAlign: H, labelWidth: t, formItemFlag: s, labelSuffix: u, labelHidden: q } = we(r, ue(I.value)), { getAttrProp: n } = We(r), T = h(() => n == null ? void 0 : n("hidden")), L = h(() => n == null ? void 0 : n("labelWidth")), $ = (e) => e && !["div", "span"].includes(e), i = h(() => {
|
|
186
|
+
var e;
|
|
187
|
+
return (e = r.widget) == null ? void 0 : e.id;
|
|
188
|
+
}), c = h(() => {
|
|
189
|
+
var e, p;
|
|
190
|
+
return (e = r.widget) != null && e.type ? [X.grid, X.gridCol, X.wrapper].includes((p = r.widget) == null ? void 0 : p.type) : !1;
|
|
191
|
+
}), R = h(() => {
|
|
192
|
+
const e = n == null ? void 0 : n(N.width), p = n == null ? void 0 : n(N.ctrlWidth), k = n == null ? void 0 : n(N.customClass), V = n == null ? void 0 : n(N.componentWrapperClass);
|
|
193
|
+
let O = {};
|
|
194
|
+
return L.value != ye.auto && L.value && (O.labelWidth = L.value), {
|
|
195
|
+
size: D.value,
|
|
196
|
+
labelAlign: H.value,
|
|
197
|
+
labelWidth: t.value,
|
|
198
|
+
// 隐藏的标签宽度仍旧保留,为占位
|
|
199
|
+
formItemFlag: s.value,
|
|
200
|
+
formItemAttr: O,
|
|
201
|
+
ctrlWidth: p,
|
|
202
|
+
displayStyle: F.value,
|
|
203
|
+
labelSuffix: u.value || "",
|
|
204
|
+
injectStyle: {},
|
|
205
|
+
//verticalAlign: verticalAlign.value, width: withLabel.value ? '100%' : ctrlWidth.value
|
|
206
|
+
/**
|
|
207
|
+
* 作用到底层组件
|
|
208
|
+
* 注:宽度全屏
|
|
209
|
+
* */
|
|
210
|
+
injectClass: [e ? "" : "full-width", de(k), i.value],
|
|
211
|
+
// filterDisplay.value ? displayStyle.value : ''
|
|
212
|
+
//1、当前组件包含插槽 2、作用到插槽中的每一个组件中
|
|
213
|
+
componentWrapperClass: de(V)
|
|
214
|
+
};
|
|
215
|
+
}), Y = h(() => [(n == null ? void 0 : n(N.width)) ? "" : "full-width"]), Z = h(() => {
|
|
216
|
+
var e, p, k;
|
|
217
|
+
return !!r.designer && ((e = r.widget) == null ? void 0 : e.id) === ((k = (p = r.designer) == null ? void 0 : p.selectedWidget) == null ? void 0 : k.id);
|
|
218
|
+
}), G = se(), K = se(), re = h(() => {
|
|
219
|
+
var e, p;
|
|
220
|
+
if (G.value && K.value && Z.value)
|
|
221
|
+
return ((e = G.value) == null ? void 0 : e.offsetWidth) > ((p = K.value) == null ? void 0 : p.offsetWidth);
|
|
222
|
+
});
|
|
223
|
+
return (e, p) => {
|
|
224
|
+
var k, V, O, P, _, x;
|
|
225
|
+
return e.designState ? (o(), W(le(e.componentName), E({
|
|
226
|
+
key: 0,
|
|
227
|
+
class: ["field-wrapper", [Z.value ? "selected" : "", " drag-handler", e.propOptions.class, e.showWrapperComponent ? Y.value : ""]],
|
|
228
|
+
style: e.propOptions.style,
|
|
229
|
+
onClick: p[0] || (p[0] = v((Q) => l(J)(e.widget, e.parentWidget, e.parentList), ["stop"])),
|
|
230
|
+
ref_key: "wrapperRef",
|
|
231
|
+
ref: K,
|
|
232
|
+
tabindex: 0
|
|
233
|
+
}, $(e.componentName) ? (V = (k = e.propOptions) == null ? void 0 : k.fieldObj) == null ? void 0 : V.attrs : {}), {
|
|
234
|
+
default: a(() => {
|
|
235
|
+
var Q, ee, te;
|
|
236
|
+
return [
|
|
237
|
+
S(e.$slots, "default", { data: R.value }),
|
|
238
|
+
((ee = (Q = e.designer) == null ? void 0 : Q.selectedWidget) == null ? void 0 : ee.id) === ((te = e.widget) == null ? void 0 : te.id) ? (o(), w("div", {
|
|
239
|
+
key: 0,
|
|
240
|
+
class: "action",
|
|
241
|
+
ref_key: "dragHandlerRef",
|
|
242
|
+
ref: G
|
|
243
|
+
}, [
|
|
244
|
+
d(Te, {
|
|
245
|
+
simple: re.value,
|
|
246
|
+
"design-state": e.designState,
|
|
247
|
+
designer: e.designer,
|
|
248
|
+
widget: e.widget,
|
|
249
|
+
"parent-widget": e.parentWidget,
|
|
250
|
+
"parent-list": e.parentList,
|
|
251
|
+
parentTree: l(B),
|
|
252
|
+
hidden: T.value
|
|
253
|
+
}, {
|
|
254
|
+
default: a(() => [
|
|
255
|
+
S(e.$slots, "drag")
|
|
256
|
+
]),
|
|
257
|
+
_: 3
|
|
258
|
+
}, 8, ["simple", "design-state", "designer", "widget", "parent-widget", "parent-list", "parentTree", "hidden"])
|
|
259
|
+
], 512)) : y("", !0)
|
|
260
|
+
];
|
|
261
|
+
}),
|
|
262
|
+
_: 3
|
|
263
|
+
}, 16, ["class", "style"])) : !T.value || c.value ? (o(), w(j, { key: 1 }, [
|
|
264
|
+
e.showWrapperComponent ? (o(), W(le(e.componentName), E({ key: 0 }, $(e.componentName) ? (P = (O = e.propOptions) == null ? void 0 : O.fieldObj) == null ? void 0 : P.attrs : {}, pe($(e.componentName) ? (x = (_ = e.propOptions) == null ? void 0 : _.fieldObj) == null ? void 0 : x.events : {}), {
|
|
265
|
+
class: [e.propOptions.class, Y.value, T.value && c.value ? "hlhidden" : ""],
|
|
266
|
+
style: { ...R.value.injectStyle, ...e.propOptions.style }
|
|
267
|
+
}), {
|
|
268
|
+
default: a(() => [
|
|
269
|
+
S(e.$slots, "default", E({ data: R.value }, e.$props))
|
|
270
|
+
]),
|
|
271
|
+
_: 3
|
|
272
|
+
}, 16, ["class", "style"])) : S(e.$slots, "default", E({
|
|
273
|
+
key: 1,
|
|
274
|
+
data: R.value
|
|
275
|
+
}, e.$props))
|
|
276
|
+
], 64)) : y("", !0);
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
export {
|
|
281
|
+
Ve as _
|
|
282
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as h, watch as y, defineComponent as W, resolveDirective as L, openBlock as b, createBlock as j, mergeProps as v, unref as s, withCtx as D, withDirectives as O, createElementBlock as P, normalizeClass as
|
|
1
|
+
import { ref as h, watch as y, defineComponent as W, resolveDirective as L, openBlock as b, createBlock as j, mergeProps as v, unref as s, withCtx as D, withDirectives as O, createElementBlock as P, normalizeClass as x, createVNode as z, createCommentVNode as S } from "vue";
|
|
2
2
|
import { I as R } from "./widget-base-8eece820.js";
|
|
3
|
-
import { D as k } from "./drag-wrapper-
|
|
4
|
-
import { _ as A } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
5
|
-
import { w as B } from "./expression-
|
|
6
|
-
import { W as C } from "./enum-type-
|
|
7
|
-
import { b as F, a as N } from "./share-field-
|
|
8
|
-
import { c as $ } from "./slot-
|
|
3
|
+
import { D as k } from "./drag-wrapper-8ba8d26a.js";
|
|
4
|
+
import { _ as A } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js";
|
|
5
|
+
import { w as B } from "./expression-a880b354.js";
|
|
6
|
+
import { W as C } from "./enum-type-35e3b2e0.js";
|
|
7
|
+
import { b as F, a as N } from "./share-field-6fc223d3.js";
|
|
8
|
+
import { c as $ } from "./slot-1605ee49.js";
|
|
9
9
|
function E(i) {
|
|
10
10
|
const n = h({}), { componentWrapperClass: p, customClass: a } = $({ widget: i.widget }), { exposed: t, attrs: d, extendAttrs: c, fieldKey: m, fieldObj: f } = F(i), { setAllRefList: r } = N(n.value), g = (o = !1) => {
|
|
11
11
|
r(C.setDisabled, { flag: o });
|
|
@@ -57,18 +57,18 @@ const H = ["element-loading-text"], I = W({ componentName: B.ContainerWidget }),
|
|
|
57
57
|
return [
|
|
58
58
|
r.designState || !((u = s(a)) != null && u.hidden) || !((o = s(a)) != null && o.lazy) ? O((b(), P("div", {
|
|
59
59
|
ref: "fieldEditor",
|
|
60
|
-
class:
|
|
60
|
+
class: x(l.injectClass),
|
|
61
61
|
key: s(m),
|
|
62
62
|
"element-loading-text": (e = s(t)) == null ? void 0 : e.loadingText
|
|
63
63
|
}, [
|
|
64
|
-
|
|
64
|
+
z(k, v(r.$props, {
|
|
65
65
|
dragClass: "dragSize padSize",
|
|
66
66
|
"component-class": l.componentWrapperClass,
|
|
67
67
|
refList: s(f)
|
|
68
68
|
}), null, 16, ["component-class", "refList"])
|
|
69
69
|
], 10, H)), [
|
|
70
70
|
[_, (w = s(t)) == null ? void 0 : w.showLoading]
|
|
71
|
-
]) :
|
|
71
|
+
]) : S("", !0)
|
|
72
72
|
];
|
|
73
73
|
}),
|
|
74
74
|
_: 1
|