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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { reactive as ge, ref as _, computed as B } from "vue";
|
|
2
|
-
import { f as z, e as m, d as fe, c as we, t as be, G as b, i as A } from "./enum-type-
|
|
3
|
-
import { b as De } from "./share-field-
|
|
4
|
-
import { f as s } from "./expression-
|
|
5
|
-
import { $ as Ee, f as p, H as xe } from "./baseImp-
|
|
6
|
-
import { g as ye } from "./uuid-
|
|
7
|
-
import {
|
|
2
|
+
import { f as z, e as m, d as fe, c as we, t as be, G as b, i as A } from "./enum-type-05ccb088.js";
|
|
3
|
+
import { b as De } from "./share-field-6fc223d3.js";
|
|
4
|
+
import { f as s } from "./expression-a880b354.js";
|
|
5
|
+
import { $ as Ee, f as p, H as xe } from "./baseImp-cf2a056f.js";
|
|
6
|
+
import { g as ye } from "./uuid-68f25733.js";
|
|
7
|
+
import { au as D } from "./enum-type-35e3b2e0.js";
|
|
8
8
|
function Te(I) {
|
|
9
9
|
const T = (e) => {
|
|
10
10
|
var r = [e];
|
|
@@ -38,10 +38,10 @@ function Te(I) {
|
|
|
38
38
|
T(n), E(t);
|
|
39
39
|
}, E = (e) => {
|
|
40
40
|
L(v()), Q(v(), e);
|
|
41
|
-
}, j = (e) => {
|
|
42
|
-
const r = (i == null ? void 0 : i.findIndex((t) => (t == null ? void 0 : t.uid) === e)) || 0;
|
|
43
|
-
r >= 0 && (i.splice(r, 1), $(r));
|
|
44
41
|
}, $ = (e) => {
|
|
42
|
+
const r = (i == null ? void 0 : i.findIndex((t) => (t == null ? void 0 : t.uid) === e)) || 0;
|
|
43
|
+
r >= 0 && (i.splice(r, 1), j(r));
|
|
44
|
+
}, j = (e) => {
|
|
45
45
|
let r = b(v());
|
|
46
46
|
k(e), E(r);
|
|
47
47
|
}, { fieldEditor: c, fieldKey: N, fieldModel: P, getValue: v, setValue: f, field: G, attrs: U, extendAttrs: d, events: J, slots: K, exposed: q, syncUpdateFormModel: L, emitFieldDataChange: Q, existEvent: u, handleEvent: a, rules: W, fieldObj: X } = De({ ...I, extInitFieldModel: O, exResetField: H }), x = _({ key: "" }), y = _(), Y = B(() => {
|
|
@@ -128,7 +128,7 @@ function Te(I) {
|
|
|
128
128
|
C(e, i), (l = (o = c.value) == null ? void 0 : o.handleRemove) == null || l.call(o, e);
|
|
129
129
|
});
|
|
130
130
|
}, C = (e, r) => {
|
|
131
|
-
|
|
131
|
+
$(e == null ? void 0 : e.uid), a(s.onRemove, { uploadFile: e, uploadFiles: r });
|
|
132
132
|
}, me = (e) => {
|
|
133
133
|
var n;
|
|
134
134
|
var r = w(e);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent as $, computed as l, openBlock as p, createBlock as d, normalizeProps as B, mergeProps as m, withCtx as I, createVNode as v, unref as t, createElementVNode as S, toDisplayString as V, resolveDynamicComponent as E, createCommentVNode as N } from "vue";
|
|
2
|
+
import { i as _, e as s } from "./enum-type-05ccb088.js";
|
|
3
|
+
import { _ as K } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8444de52.js";
|
|
4
|
+
import { I as W } from "./field-base-1acf3ada.js";
|
|
5
|
+
import { b as T } from "./share-field-6fc223d3.js";
|
|
6
|
+
import { w as q } from "./expression-a880b354.js";
|
|
7
|
+
import { D as O } from "./drag-wrapper-8ba8d26a.js";
|
|
8
|
+
import { g as G, d as k } from "./slot-1605ee49.js";
|
|
9
|
+
import { _ as H } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js";
|
|
10
|
+
import { t as J } from "./index-31e1760d.js";
|
|
11
|
+
import "./content-wrapper.vue_vue_type_script_setup_true_lang-4ab88b8e.js";
|
|
12
|
+
import "./baseImp-cf2a056f.js";
|
|
13
|
+
import "./enum-type-35e3b2e0.js";
|
|
14
|
+
import "./icon-3ea488c1.js";
|
|
15
|
+
import "./dialog-8ecdabe5.js";
|
|
16
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
17
|
+
import "./uuid-68f25733.js";
|
|
18
|
+
import "element-plus";
|
|
19
|
+
import "./fieldobj-4d9ab4ce.js";
|
|
20
|
+
import "./widget-base-8eece820.js";
|
|
21
|
+
import "./multirow-50d903a8.js";
|
|
22
|
+
import "./index-847ef399.js";
|
|
23
|
+
import "./source-map-b04aec4a.js";
|
|
24
|
+
import "./esprima-e8d15055.js";
|
|
25
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
26
|
+
import "./index-7d31ccfb.js";
|
|
27
|
+
const L = $({ componentName: q.FieldWidget }), he = /* @__PURE__ */ $({
|
|
28
|
+
...L,
|
|
29
|
+
__name: "skeleton-widget",
|
|
30
|
+
props: { ...W },
|
|
31
|
+
setup(A, { expose: j }) {
|
|
32
|
+
const h = A, { exposed: C, fieldEditor: w, extendAttrs: r, fieldKey: D, slots: u, attrs: F, events: z } = T(h), y = l(() => G(u.value, h.designState)), g = l(() => k(y.value, "default")), b = l(() => k(y.value, "template")), P = l(() => {
|
|
33
|
+
var f, c, i, o, a, n;
|
|
34
|
+
var e = {};
|
|
35
|
+
return _((f = r.value) == null ? void 0 : f.leading) || Object.assign(e, { leading: (c = r.value) == null ? void 0 : c.leading }), _((i = r.value) == null ? void 0 : i.trailing) || Object.assign(e, { trailing: (o = r.value) == null ? void 0 : o.trailing }), _((a = r.value) == null ? void 0 : a.initVal) || Object.assign(e, { initVal: (n = r.value) == null ? void 0 : n.initVal }), e;
|
|
36
|
+
}), x = l(() => ({
|
|
37
|
+
...F.value,
|
|
38
|
+
throttle: P.value
|
|
39
|
+
}));
|
|
40
|
+
return j({
|
|
41
|
+
...C,
|
|
42
|
+
fieldEditor: () => {
|
|
43
|
+
var e;
|
|
44
|
+
return (e = w.value) == null ? void 0 : e.getFieldEditor();
|
|
45
|
+
}
|
|
46
|
+
}), (e, f) => e.designState ? (p(), d(H, B(m({ key: 0 }, e.$props)), {
|
|
47
|
+
default: I(({ data: c }) => {
|
|
48
|
+
var i, o, a, n;
|
|
49
|
+
return [
|
|
50
|
+
v(J, {
|
|
51
|
+
content: t(s).i18nt("designer.hint.designTip")
|
|
52
|
+
}, null, 8, ["content"]),
|
|
53
|
+
S("h3", null, V(t(s).i18nt("designer.setting.skeleton_default")), 1),
|
|
54
|
+
(i = g.value) != null && i.default ? (p(), d(E((o = g.value) == null ? void 0 : o.default), { key: 0 })) : N("", !0),
|
|
55
|
+
v(O, m(e.$props, {
|
|
56
|
+
widget: g.value,
|
|
57
|
+
"drag-class": "dragSize1",
|
|
58
|
+
"drag-tip": t(s).i18nt("designer.hint.draggableArea1")
|
|
59
|
+
}), null, 16, ["widget", "drag-tip"]),
|
|
60
|
+
S("h3", null, V(t(s).i18nt("designer.setting.skeleton_template")), 1),
|
|
61
|
+
(a = b.value) != null && a.default ? (p(), d(E((n = b.value) == null ? void 0 : n.default), { key: 1 })) : N("", !0),
|
|
62
|
+
v(O, m(e.$props, {
|
|
63
|
+
widget: t(k)(t(u), "template"),
|
|
64
|
+
"drag-class": "dragSize1",
|
|
65
|
+
"drag-tip": t(s).i18nt("designer.hint.draggableArea1")
|
|
66
|
+
}), null, 16, ["widget", "drag-tip"])
|
|
67
|
+
];
|
|
68
|
+
}),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 16)) : (p(), d(K, m({ key: 1 }, e.$props, {
|
|
71
|
+
ref_key: "fieldEditor",
|
|
72
|
+
ref: w,
|
|
73
|
+
propOptions: { elementName: "el-skeleton", fieldObj: { fieldKey: t(D), attrs: x.value, events: t(z), slots: t(u), extendAttrs: t(r) } }
|
|
74
|
+
}), null, 16, ["propOptions"]));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
he as default
|
|
79
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as p, resolveComponent as k, openBlock as t, createBlock as r, mergeProps as i, unref as e, withCtx as g } from "vue";
|
|
2
|
+
import { I as h } from "./field-base-1acf3ada.js";
|
|
3
|
+
import { _ as w } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js";
|
|
4
|
+
import { b as x } from "./share-field-6fc223d3.js";
|
|
5
|
+
import { w as C } from "./expression-a880b354.js";
|
|
6
|
+
import "./widget-base-8eece820.js";
|
|
7
|
+
import "./enum-type-05ccb088.js";
|
|
8
|
+
import "./index-847ef399.js";
|
|
9
|
+
import "./uuid-68f25733.js";
|
|
10
|
+
import "./enum-type-35e3b2e0.js";
|
|
11
|
+
import "./baseImp-cf2a056f.js";
|
|
12
|
+
import "./icon-3ea488c1.js";
|
|
13
|
+
import "./dialog-8ecdabe5.js";
|
|
14
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
+
import "element-plus";
|
|
16
|
+
import "./index-7d31ccfb.js";
|
|
17
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
18
|
+
import "./fieldobj-4d9ab4ce.js";
|
|
19
|
+
import "./multirow-50d903a8.js";
|
|
20
|
+
import "./slot-1605ee49.js";
|
|
21
|
+
import "./source-map-b04aec4a.js";
|
|
22
|
+
import "./esprima-e8d15055.js";
|
|
23
|
+
const b = p({ componentName: C.FieldWidget }), Q = /* @__PURE__ */ p({
|
|
24
|
+
...b,
|
|
25
|
+
__name: "skeletonItem-widget",
|
|
26
|
+
props: { ...h },
|
|
27
|
+
setup(m, { expose: s }) {
|
|
28
|
+
const l = m, { exposed: n, fieldEditor: f, fieldKey: c, attrs: _, fieldObj: d } = x(l);
|
|
29
|
+
return s({ ...n }), (a, j) => {
|
|
30
|
+
const u = k("el-skeleton-item");
|
|
31
|
+
return t(), r(w, i(a.$props, {
|
|
32
|
+
"prop-options": { fieldObj: e(d) }
|
|
33
|
+
}), {
|
|
34
|
+
default: g(({ data: o }) => [
|
|
35
|
+
(t(), r(u, i({
|
|
36
|
+
ref_key: "fieldEditor",
|
|
37
|
+
ref: f,
|
|
38
|
+
class: "full-width full-height",
|
|
39
|
+
key: e(c)
|
|
40
|
+
}, e(_), {
|
|
41
|
+
class: [...o == null ? void 0 : o.injectClass]
|
|
42
|
+
}), null, 16, ["class"]))
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 16, ["prop-options"]);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
Q as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as d, computed as k, resolveComponent as w, openBlock as s, createBlock as m, mergeProps as n, unref as e, withCtx as C, toHandlers as F, createTextVNode as b, toDisplayString as z } from "vue";
|
|
2
|
+
import { b as I } from "./share-field-6fc223d3.js";
|
|
3
|
+
import { I as B } from "./field-base-1acf3ada.js";
|
|
4
|
+
import E from "./form-item-wrapper-002adf08.js";
|
|
5
|
+
import { w as N } from "./expression-a880b354.js";
|
|
6
|
+
import { t as a } from "./enum-type-05ccb088.js";
|
|
7
|
+
import "./multirow-50d903a8.js";
|
|
8
|
+
import "./baseImp-cf2a056f.js";
|
|
9
|
+
import "./enum-type-35e3b2e0.js";
|
|
10
|
+
import "./icon-3ea488c1.js";
|
|
11
|
+
import "./dialog-8ecdabe5.js";
|
|
12
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
13
|
+
import "./uuid-68f25733.js";
|
|
14
|
+
import "element-plus";
|
|
15
|
+
import "./index-847ef399.js";
|
|
16
|
+
import "./slot-1605ee49.js";
|
|
17
|
+
import "./widget-base-8eece820.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 P = d({ componentName: N.FieldWidget }), ie = /* @__PURE__ */ d({
|
|
26
|
+
...P,
|
|
27
|
+
__name: "slider-widget",
|
|
28
|
+
props: { ...B },
|
|
29
|
+
setup(u, { expose: f }) {
|
|
30
|
+
const c = u, { fieldEditor: _, fieldModel: o, fieldKey: v, rules: g, attrs: r, events: y, exposed: O, fieldObj: x } = I(c), p = k({
|
|
31
|
+
get: () => a(o.value, r.value.range),
|
|
32
|
+
set: (t) => {
|
|
33
|
+
o.value = a(t, r.value.range);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
return f({ ...O }), (t, l) => {
|
|
37
|
+
const V = w("el-slider");
|
|
38
|
+
return s(), m(E, n(t.$props, {
|
|
39
|
+
propOptions: { fieldObj: e(x), rules: e(g) }
|
|
40
|
+
}), {
|
|
41
|
+
default: C(({ data: i }) => [
|
|
42
|
+
(s(), m(V, n({
|
|
43
|
+
ref_key: "fieldEditor",
|
|
44
|
+
ref: _,
|
|
45
|
+
modelValue: p.value,
|
|
46
|
+
"onUpdate:modelValue": l[0] || (l[0] = (j) => p.value = j),
|
|
47
|
+
key: e(v)
|
|
48
|
+
}, e(r), F(e(y)), {
|
|
49
|
+
size: i.size,
|
|
50
|
+
class: i.injectClass,
|
|
51
|
+
style: i.injectStyle
|
|
52
|
+
}), null, 16, ["modelValue", "size", "class", "style"])),
|
|
53
|
+
b(" " + z(e(o)), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 16, ["propOptions"]);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
ie as default
|
|
62
|
+
};
|
package/slot-1605ee49.js
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
var _ = Object.defineProperty;
|
|
2
|
+
var O = (e, t, o) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var T = (e, t, o) => (O(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
4
|
+
import { inject as H, provide as R, computed as f } from "vue";
|
|
5
|
+
import { d as m, b as h, r as V, s as B } from "./expression-a880b354.js";
|
|
6
|
+
import { B as G } from "./baseImp-cf2a056f.js";
|
|
7
|
+
import { c as E, i as q, m as N, j as F, o as x } from "./enum-type-05ccb088.js";
|
|
8
|
+
class W {
|
|
9
|
+
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* 当前表单引用库
|
|
12
|
+
* 假设表单组件位于表单form中,则该引用注册入库
|
|
13
|
+
*/
|
|
14
|
+
T(this, "formRefList", {});
|
|
15
|
+
/**
|
|
16
|
+
* 全局引用库
|
|
17
|
+
*/
|
|
18
|
+
T(this, "globalRefList", {});
|
|
19
|
+
/**
|
|
20
|
+
* 全局数据对象
|
|
21
|
+
*/
|
|
22
|
+
T(this, "globalDataModel", {});
|
|
23
|
+
/**
|
|
24
|
+
* 当前表单名称
|
|
25
|
+
*/
|
|
26
|
+
T(this, "globalFormName", "");
|
|
27
|
+
/**
|
|
28
|
+
* 全局页面名称
|
|
29
|
+
*/
|
|
30
|
+
// globalPageName?: string = "";
|
|
31
|
+
/**
|
|
32
|
+
* 用于类似template组件的数据绑定传递
|
|
33
|
+
*/
|
|
34
|
+
T(this, "rowScope", {});
|
|
35
|
+
/**
|
|
36
|
+
* 渲染器调用者传入的配置参数,如接口地址、密钥等
|
|
37
|
+
*/
|
|
38
|
+
T(this, "globalConfig", {});
|
|
39
|
+
}
|
|
40
|
+
static globalInject() {
|
|
41
|
+
const t = new W();
|
|
42
|
+
return t.formRefList = H(m.refList, {}), t.globalRefList = H(m.allRefList, {}), t.globalDataModel = H(m.globalModel, {}), t.rowScope = H(m.rowScope, {}), t.globalFormName = H(m.globalForm, ""), t.globalConfig = H(m.globalConfig, {}), t;
|
|
43
|
+
}
|
|
44
|
+
static globalProvide(t) {
|
|
45
|
+
if ((t == null ? void 0 : t.globalDataModel) !== void 0) {
|
|
46
|
+
const o = (t == null ? void 0 : t.globalDataModel) || {};
|
|
47
|
+
R(m.globalModel, o);
|
|
48
|
+
}
|
|
49
|
+
if ((t == null ? void 0 : t.rowScope) !== void 0) {
|
|
50
|
+
const o = (t == null ? void 0 : t.rowScope) || {};
|
|
51
|
+
R(m.rowScope, o);
|
|
52
|
+
}
|
|
53
|
+
if ((t == null ? void 0 : t.globalRefList) !== void 0) {
|
|
54
|
+
const o = (t == null ? void 0 : t.globalRefList) || {};
|
|
55
|
+
R(m.allRefList, o);
|
|
56
|
+
}
|
|
57
|
+
if ((t == null ? void 0 : t.formRefList) !== void 0) {
|
|
58
|
+
const o = (t == null ? void 0 : t.formRefList) || {};
|
|
59
|
+
R(m.refList, o);
|
|
60
|
+
}
|
|
61
|
+
if ((t == null ? void 0 : t.globalFormName) !== void 0) {
|
|
62
|
+
const o = (t == null ? void 0 : t.globalFormName) || "";
|
|
63
|
+
R(m.globalForm, o);
|
|
64
|
+
}
|
|
65
|
+
if ((t == null ? void 0 : t.globalConfig) !== void 0) {
|
|
66
|
+
const o = (t == null ? void 0 : t.globalConfig) || "";
|
|
67
|
+
R(m.globalConfig, o);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function ot(e) {
|
|
72
|
+
const t = (c, A = !1) => G.getOptions(e == null ? void 0 : e.widget, c, A, !(e != null && e.designState)), o = f(() => t(h.ctrlWidth) || "auto"), s = f(() => t(h.ctrlHeight) || "auto"), l = f(() => t(h.displayLayout)), a = f(() => {
|
|
73
|
+
var c = t(h.customClass);
|
|
74
|
+
return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
|
|
75
|
+
}), i = f(() => {
|
|
76
|
+
var c = t(h.componentWrapperClass);
|
|
77
|
+
return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
|
|
78
|
+
}), b = f(() => t(h.css)), n = f(() => {
|
|
79
|
+
var c = t(h.componentRootClass);
|
|
80
|
+
return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
|
|
81
|
+
}), r = f(() => {
|
|
82
|
+
var c, A;
|
|
83
|
+
return (A = E((c = t(h.required, !0)) == null ? void 0 : c.options)) == null ? void 0 : A.enable;
|
|
84
|
+
}), u = f(() => t(h.hidden)), y = f(() => t(h.labelTooltip)), w = f(() => t(h.labelIconClass)), d = f(() => t(h.labelIconPosition)), g = f(() => t(h.labelHidden)), p = f(() => t(h.label)), L = f(() => t(h.labelWidth)), C = f(() => t(h.labelAlign));
|
|
85
|
+
return {
|
|
86
|
+
//size,
|
|
87
|
+
attrs: f(() => ({
|
|
88
|
+
required: r.value,
|
|
89
|
+
label: p.value,
|
|
90
|
+
labelHidden: g.value,
|
|
91
|
+
labelAlign: C.value,
|
|
92
|
+
labelIconClass: w.value,
|
|
93
|
+
labelIconPosition: d.value,
|
|
94
|
+
labelTooltip: y.value,
|
|
95
|
+
labelWidth: L.value,
|
|
96
|
+
ctrlWidth: o.value
|
|
97
|
+
})),
|
|
98
|
+
labelAlign: C,
|
|
99
|
+
labelHidden: g,
|
|
100
|
+
labelIconClass: w,
|
|
101
|
+
labelIconPosition: d,
|
|
102
|
+
labelTooltip: y,
|
|
103
|
+
labelWidth: L,
|
|
104
|
+
label: p,
|
|
105
|
+
displayLayout: l,
|
|
106
|
+
hidden: u,
|
|
107
|
+
// required,
|
|
108
|
+
ctrlWidth: o,
|
|
109
|
+
ctrlHeight: s,
|
|
110
|
+
customClass: a,
|
|
111
|
+
componentWrapperClass: i,
|
|
112
|
+
componentRootClass: n,
|
|
113
|
+
css: b
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
const $ = (e = "") => new Promise((t) => {
|
|
117
|
+
import("./index-3aaf8638.js").then((o) => {
|
|
118
|
+
const s = o.parse(e, {
|
|
119
|
+
positions: !0,
|
|
120
|
+
parseValue: !1
|
|
121
|
+
}), l = [];
|
|
122
|
+
o.walk(s, {
|
|
123
|
+
visit: "Rule",
|
|
124
|
+
enter(a) {
|
|
125
|
+
const i = o.generate(a.prelude), b = {};
|
|
126
|
+
o.walk(a, {
|
|
127
|
+
visit: "Declaration",
|
|
128
|
+
enter(n) {
|
|
129
|
+
n.property && (b[n.property] = o.generate(n.value));
|
|
130
|
+
}
|
|
131
|
+
}), l.push({ selector: i, declarations: b });
|
|
132
|
+
}
|
|
133
|
+
}), t(l);
|
|
134
|
+
});
|
|
135
|
+
}), D = (e) => new Promise((t) => {
|
|
136
|
+
import("./index-3aaf8638.js").then((o) => {
|
|
137
|
+
const s = z(e), l = o.parse(s, { context: "stylesheet" });
|
|
138
|
+
t(o.generate(l));
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
function z(e) {
|
|
142
|
+
return e.map((o) => {
|
|
143
|
+
var l, a, i;
|
|
144
|
+
const s = (i = (a = (l = Object.entries(o.declarations)) == null ? void 0 : l.filter(([b, n]) => !q(n) && n !== "")) == null ? void 0 : a.sort(([b], [n]) => b > n ? 1 : -1)) == null ? void 0 : i.map(([b, n]) => `${b}: ${n};`);
|
|
145
|
+
return `${o.selector} { ${s.join(" ")} }`;
|
|
146
|
+
}).join(`
|
|
147
|
+
`);
|
|
148
|
+
}
|
|
149
|
+
const J = () => new Promise((e) => {
|
|
150
|
+
import("./acorn-a3705767.js").then((t) => {
|
|
151
|
+
e(t);
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
function Q(e) {
|
|
155
|
+
return new Promise((t) => {
|
|
156
|
+
J().then((o) => {
|
|
157
|
+
var s = U(o, e);
|
|
158
|
+
t(s);
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
function U(e, t) {
|
|
163
|
+
var a, i, b;
|
|
164
|
+
const o = e.parse(t, {
|
|
165
|
+
ecmaVersion: "latest",
|
|
166
|
+
sourceType: "script",
|
|
167
|
+
ranges: !0
|
|
168
|
+
// ←←← 必须启用,才能 slice 源码
|
|
169
|
+
}), s = [], l = [];
|
|
170
|
+
for (const n of o.body) {
|
|
171
|
+
if (n.type === "FunctionDeclaration" && ((a = n.id) != null && a.name) && n.range) {
|
|
172
|
+
const r = n.id.name, u = t.slice(n.range[0], n.range[1]);
|
|
173
|
+
s.push({ name: r, text: u });
|
|
174
|
+
}
|
|
175
|
+
if (n.type === "ClassDeclaration" && ((i = n.id) != null && i.name) && n.range) {
|
|
176
|
+
const r = n.id.name, u = t.slice(n.range[0], n.range[1]);
|
|
177
|
+
l.push({ name: r, text: u });
|
|
178
|
+
}
|
|
179
|
+
if (n.type === "VariableDeclaration") {
|
|
180
|
+
for (const r of n.declarations)
|
|
181
|
+
if (((b = r.id) == null ? void 0 : b.type) === "Identifier" && r.init && r.init.range && (r.init.type === "FunctionExpression" || r.init.type === "ArrowFunctionExpression")) {
|
|
182
|
+
const u = r.id.name, y = t.slice(r.range[0], r.range[1]);
|
|
183
|
+
s.push({ name: u, text: y });
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return { functions: s, classes: l };
|
|
188
|
+
}
|
|
189
|
+
const X = () => {
|
|
190
|
+
const e = "v_form_global_css", t = (n = "", r = e) => {
|
|
191
|
+
var u = l(n, r);
|
|
192
|
+
s(u);
|
|
193
|
+
}, o = (n = "", r = "", u = e) => {
|
|
194
|
+
if (!n)
|
|
195
|
+
return;
|
|
196
|
+
let y = document.getElementsByTagName("head")[0];
|
|
197
|
+
if (y)
|
|
198
|
+
try {
|
|
199
|
+
var w = l(r, u);
|
|
200
|
+
s(u), s(w);
|
|
201
|
+
let d = document.createElement("style");
|
|
202
|
+
if (!d)
|
|
203
|
+
return;
|
|
204
|
+
d.type = "text/css", d.id = w;
|
|
205
|
+
try {
|
|
206
|
+
d.appendChild(document.createTextNode(n.toString()));
|
|
207
|
+
} catch {
|
|
208
|
+
d.innerHTML = n.toString();
|
|
209
|
+
}
|
|
210
|
+
y.appendChild(d);
|
|
211
|
+
} catch (d) {
|
|
212
|
+
N.error("insert css to head fail", d);
|
|
213
|
+
}
|
|
214
|
+
}, s = (n) => {
|
|
215
|
+
let r = document.getElementById(n);
|
|
216
|
+
try {
|
|
217
|
+
r && r.parentNode && r.parentNode.removeChild(r);
|
|
218
|
+
} catch (u) {
|
|
219
|
+
console.log(u, r);
|
|
220
|
+
}
|
|
221
|
+
}, l = (n, r) => n ? r + "-" + n : r, a = "v_form_global_functions";
|
|
222
|
+
return {
|
|
223
|
+
insertCustomCssToHead: o,
|
|
224
|
+
insertGlobalFunctionsToHtml: (n, r = "") => new Promise((u) => {
|
|
225
|
+
if (!n) {
|
|
226
|
+
u(!0);
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
try {
|
|
230
|
+
Q(n).then((y) => {
|
|
231
|
+
var w, d;
|
|
232
|
+
(w = y.functions) == null || w.forEach((g) => {
|
|
233
|
+
let p;
|
|
234
|
+
const L = g == null ? void 0 : g.text, C = g == null ? void 0 : g.name;
|
|
235
|
+
try {
|
|
236
|
+
p = new Function(`return ${L}`)();
|
|
237
|
+
} catch (S) {
|
|
238
|
+
N.error(`Failed to compile function "${C}":`, S);
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
window[C] = p;
|
|
242
|
+
}), (d = y.classes) == null || d.forEach((g) => {
|
|
243
|
+
const p = g == null ? void 0 : g.text, L = g == null ? void 0 : g.name;
|
|
244
|
+
let C;
|
|
245
|
+
try {
|
|
246
|
+
C = new Function(`return ${p}`)();
|
|
247
|
+
} catch (S) {
|
|
248
|
+
N.error(`Failed to compile class "${L}":`, S);
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
window[L] = C;
|
|
252
|
+
}), u(!0);
|
|
253
|
+
});
|
|
254
|
+
} catch (y) {
|
|
255
|
+
N.error("insert js to head fail", y), u(!0);
|
|
256
|
+
}
|
|
257
|
+
}),
|
|
258
|
+
removeGlobalFunctionsToHtml: (n, r = a) => {
|
|
259
|
+
var u = l(n, r);
|
|
260
|
+
s(u);
|
|
261
|
+
},
|
|
262
|
+
removeCustomCssToHead: t
|
|
263
|
+
};
|
|
264
|
+
}, K = [
|
|
265
|
+
"width",
|
|
266
|
+
"height",
|
|
267
|
+
"display",
|
|
268
|
+
"margin",
|
|
269
|
+
"margin-left",
|
|
270
|
+
"margin-right",
|
|
271
|
+
"margin-top",
|
|
272
|
+
"margin-bottom"
|
|
273
|
+
], Y = (e, t, o) => {
|
|
274
|
+
const s = {};
|
|
275
|
+
return t.forEach((l) => {
|
|
276
|
+
var a = e[l];
|
|
277
|
+
F(a) || (s[l] = o ? o(l, a) : a);
|
|
278
|
+
}), s;
|
|
279
|
+
}, Z = (e, t, o) => {
|
|
280
|
+
var l;
|
|
281
|
+
const s = {};
|
|
282
|
+
return (l = x(e)) == null || l.forEach((a) => {
|
|
283
|
+
var i = e[a];
|
|
284
|
+
t != null && t.includes(a) || (s[a] = o ? o(a, i) : i);
|
|
285
|
+
}), s;
|
|
286
|
+
}, M = (e, t) => ["width", "height", "display"].includes(e) ? F(t) || t == "auto" ? t : `${t} !important` : t, et = (e) => new Promise((t) => {
|
|
287
|
+
$(e).then((o) => {
|
|
288
|
+
var s = o == null ? void 0 : o.map((l) => ({ selector: l.selector, declarations: Y(l.declarations, K, M) }));
|
|
289
|
+
D(s).then((l) => {
|
|
290
|
+
t(l);
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
}), nt = (e) => new Promise((t) => {
|
|
294
|
+
$(e).then((o) => {
|
|
295
|
+
var s = o == null ? void 0 : o.map((l) => ({ selector: l.selector, declarations: Z(l.declarations, K, M) }));
|
|
296
|
+
D(s).then((l) => {
|
|
297
|
+
t(l);
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
}), lt = (e, t) => {
|
|
301
|
+
if (!t || !e)
|
|
302
|
+
return;
|
|
303
|
+
const o = V(e, ":root", `.${t}`), { insertCustomCssToHead: s } = X();
|
|
304
|
+
s(o, void 0, t);
|
|
305
|
+
}, st = (e, t = !0, o, s) => {
|
|
306
|
+
if (o != null && o === !1)
|
|
307
|
+
return [];
|
|
308
|
+
const l = k(e);
|
|
309
|
+
if (t || (e == null ? void 0 : e.length) <= 0)
|
|
310
|
+
return l;
|
|
311
|
+
var a = l == null ? void 0 : l.filter(
|
|
312
|
+
(i) => {
|
|
313
|
+
var b, n, r;
|
|
314
|
+
return s != null && (s == null ? void 0 : s(i)) || s == null && (!!i.default && (!(i != null && i.options) || ((b = i == null ? void 0 : i.options) == null ? void 0 : b.enable) == null || ((n = i == null ? void 0 : i.options) == null ? void 0 : n.enable) === !0) || !!(i != null && i.widgetList) && ((r = i == null ? void 0 : i.widgetList) == null ? void 0 : r.length) > 0 || (i == null ? void 0 : i.slotName) === B.default);
|
|
315
|
+
}
|
|
316
|
+
);
|
|
317
|
+
return a;
|
|
318
|
+
}, it = (e, t) => e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.slotName) === t), k = (e) => E(e);
|
|
319
|
+
export {
|
|
320
|
+
W as F,
|
|
321
|
+
lt as a,
|
|
322
|
+
nt as b,
|
|
323
|
+
ot as c,
|
|
324
|
+
it as d,
|
|
325
|
+
st as g,
|
|
326
|
+
k as i,
|
|
327
|
+
et as p,
|
|
328
|
+
X as u
|
|
329
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { defineComponent as y, computed as a, resolveComponent as B, openBlock as s, createBlock as i, normalizeProps as f, mergeProps as p, withCtx as l, toHandlers as L, unref as m, createElementBlock as P, Fragment as j, renderList as I, resolveDynamicComponent as N, createVNode as w } from "vue";
|
|
2
|
+
import { I as V } from "./field-base-1acf3ada.js";
|
|
3
|
+
import { w as H } from "./expression-a880b354.js";
|
|
4
|
+
import { b as J } from "./share-field-6fc223d3.js";
|
|
5
|
+
import { a8 as c, s as K } from "./enum-type-35e3b2e0.js";
|
|
6
|
+
import { C as W, D as b, u as q } from "./drag-wrapper-8ba8d26a.js";
|
|
7
|
+
import { d as G } from "./slot-1605ee49.js";
|
|
8
|
+
import { f as M, e as O } from "./enum-type-05ccb088.js";
|
|
9
|
+
import { _ as v } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js";
|
|
10
|
+
import { t as Q } from "./index-31e1760d.js";
|
|
11
|
+
import "./widget-base-8eece820.js";
|
|
12
|
+
import "./source-map-b04aec4a.js";
|
|
13
|
+
import "./uuid-68f25733.js";
|
|
14
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
+
import "./esprima-e8d15055.js";
|
|
16
|
+
import "./multirow-50d903a8.js";
|
|
17
|
+
import "./baseImp-cf2a056f.js";
|
|
18
|
+
import "./icon-3ea488c1.js";
|
|
19
|
+
import "./dialog-8ecdabe5.js";
|
|
20
|
+
import "element-plus";
|
|
21
|
+
import "./index-847ef399.js";
|
|
22
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
+
import "./index-7d31ccfb.js";
|
|
24
|
+
import "./fieldobj-4d9ab4ce.js";
|
|
25
|
+
const R = y({ componentName: H.FieldWidget }), _e = /* @__PURE__ */ y({
|
|
26
|
+
...R,
|
|
27
|
+
__name: "space-widget",
|
|
28
|
+
props: { ...V },
|
|
29
|
+
setup(_, { expose: z }) {
|
|
30
|
+
const C = _, { exposed: S, attrs: k, extendAttrs: o, events: T, slots: h, fieldEditor: A, fieldKey: D } = J(C), { components: E } = q(), F = a(() => {
|
|
31
|
+
var u, n, t, r;
|
|
32
|
+
switch ((u = o.value) == null ? void 0 : u.sizeType) {
|
|
33
|
+
case c.size:
|
|
34
|
+
return (n = o.value) == null ? void 0 : n.size1;
|
|
35
|
+
case c.number:
|
|
36
|
+
return (t = o.value) == null ? void 0 : t.size2;
|
|
37
|
+
case c.numberArray:
|
|
38
|
+
return M((r = o.value) == null ? void 0 : r.size3);
|
|
39
|
+
}
|
|
40
|
+
return K.small;
|
|
41
|
+
}), $ = a(() => ({
|
|
42
|
+
...k.value,
|
|
43
|
+
size: F.value
|
|
44
|
+
})), g = a(() => G(h.value, "default")), d = a(() => {
|
|
45
|
+
var e;
|
|
46
|
+
return (e = g.value) == null ? void 0 : e.widgetList;
|
|
47
|
+
});
|
|
48
|
+
return z({ ...S }), (e, u) => {
|
|
49
|
+
const n = B("el-space");
|
|
50
|
+
return e.designState ? (s(), i(v, f(p({ key: 1 }, e.$props)), {
|
|
51
|
+
default: l(({ data: t }) => [
|
|
52
|
+
w(Q, {
|
|
53
|
+
content: m(O).i18nt("designer.hint.designTip")
|
|
54
|
+
}, null, 8, ["content"]),
|
|
55
|
+
w(b, p(e.$props, {
|
|
56
|
+
widget: g.value,
|
|
57
|
+
"drag-class": "dragSize1",
|
|
58
|
+
"component-class": t.componentWrapperClass
|
|
59
|
+
}), null, 16, ["widget", "component-class"])
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
}, 16)) : (s(), i(v, f(p({ key: 0 }, e.$props)), {
|
|
63
|
+
default: l(({ data: t }) => [
|
|
64
|
+
(s(), i(n, p({
|
|
65
|
+
ref_key: "fieldEditor",
|
|
66
|
+
ref: A
|
|
67
|
+
}, $.value, L(m(T)), {
|
|
68
|
+
key: m(D),
|
|
69
|
+
class: t.injectClass,
|
|
70
|
+
style: t.injectStyle
|
|
71
|
+
}), {
|
|
72
|
+
default: l(() => [
|
|
73
|
+
(s(!0), P(j, null, I(d.value, (r) => (s(), i(W, {
|
|
74
|
+
key: r.id,
|
|
75
|
+
widget: r,
|
|
76
|
+
designer: e.designer,
|
|
77
|
+
"design-state": e.designState,
|
|
78
|
+
"parent-list": d.value,
|
|
79
|
+
"parent-widget": e.widget
|
|
80
|
+
}, {
|
|
81
|
+
default: l(() => [
|
|
82
|
+
(s(), i(N(m(E)(r)), {
|
|
83
|
+
designer: e.designer,
|
|
84
|
+
widget: r,
|
|
85
|
+
"design-state": e.designState,
|
|
86
|
+
"parent-list": d.value,
|
|
87
|
+
"parent-widget": e.widget
|
|
88
|
+
}, null, 8, ["designer", "widget", "design-state", "parent-list", "parent-widget"]))
|
|
89
|
+
]),
|
|
90
|
+
_: 2
|
|
91
|
+
}, 1032, ["widget", "designer", "design-state", "parent-list", "parent-widget"]))), 128))
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 16, ["class", "style"]))
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 16));
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
export {
|
|
102
|
+
_e as default
|
|
103
|
+
};
|