hlrender 0.0.274 → 0.0.275
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/{_pdf-8d5e34b5.js → _pdf-9300deb1.js} +6 -6
- package/{_txt-da8c0242.js → _txt-980f8fe5.js} +6 -6
- package/{_unsupport-4bd686fc.js → _unsupport-1b097ae2.js} +1 -1
- package/{affix-widget-de503399.js → affix-widget-3d9d3ab4.js} +16 -16
- package/{alert-widget-a94e8d13.js → alert-widget-a7df34cd.js} +16 -16
- package/{anchor-widget-aa3e5a25.js → anchor-widget-04d9e748.js} +20 -20
- package/auto-complete-widget-7fdb981a.js +75 -0
- package/{avatar-widget-46e2f319.js → avatar-widget-055c78ce.js} +18 -18
- package/{backtop-widget-dc25c3e7.js → backtop-widget-92937e86.js} +19 -19
- package/{badge-widget-1fa57cc7.js → badge-widget-1f5e7de4.js} +16 -16
- package/{barcode-widget-14de599a.js → barcode-widget-231a8df0.js} +13 -13
- package/{baseImp-5623aa34.js → baseImp-59f32ed8.js} +2909 -2905
- package/{breadcrumb-widget-fa089dad.js → breadcrumb-widget-87f4990a.js} +19 -19
- package/{button-widget-17187ff3.js → button-widget-b60683fd.js} +16 -16
- package/{cache-widget-04eae6d3.js → cache-widget-e87f1b12.js} +23 -23
- package/{card-widget-f99ca705.js → card-widget-397b114d.js} +43 -43
- package/{carousel-widget-cfec54e0.js → carousel-widget-1f45fb6f.js} +19 -19
- package/{cascader-widget-84933fdb.js → cascader-widget-aa8de234.js} +21 -21
- package/chart-widget-1515bc55.js +89 -0
- package/{checkbox-widget-738f4a97.js → checkbox-widget-fad2b786.js} +15 -15
- package/{collapse-widget-35e01ed1.js → collapse-widget-61a38835.js} +27 -27
- package/{color-picker-widget-7d941f46.js → color-picker-widget-fbdaccd2.js} +21 -21
- package/{cont-cell-widget-a1f0b533.js → cont-cell-widget-eb40d148.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-7c3a2cbc.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-eb5196fd.js} +9 -9
- package/{cont-widget-a71849e6.js → cont-widget-7d6df43f.js} +5 -5
- package/{content-wrapper-9f23d943.js → content-wrapper-3d003ed0.js} +7 -7
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-8e168bee.js → content-wrapper.vue_vue_type_script_setup_true_lang-a50f99a8.js} +3 -3
- package/{countdown-widget-c0759a3b.js → countdown-widget-699a4d4f.js} +21 -21
- package/{date-picker-range-widget-2820d7f7.js → date-picker-range-widget-3b175549.js} +20 -20
- package/date-picker-widget-10ddbefb.js +114 -0
- package/default-slot-widget-94f14120.js +27 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-a2a01c7e.js +84 -0
- package/{descriptions-widget-20efe494.js → descriptions-widget-0f8df31f.js} +25 -25
- package/{dialog-ba291209.js → dialog-003d60d4.js} +2 -2
- package/{dialog-widget-d96acf62.js → dialog-widget-4341f34e.js} +15 -15
- package/{divider-widget-1f077300.js → divider-widget-21683346.js} +19 -19
- package/{drag-wrapper-679371ab.js → drag-wrapper-de2e2fbe.js} +6 -6
- package/{drawer-widget-13a8f6b1.js → drawer-widget-42a61e46.js} +15 -15
- package/{dropdown-widget-8d4917ca.js → dropdown-widget-18eb8f5b.js} +14 -14
- package/{empty-widget-9673a73f.js → empty-widget-500c1eb7.js} +16 -16
- package/{enum-type-b4b3fb1d.js → enum-type-6ac4c4d4.js} +18 -18
- package/{enum-type-5026a107.js → enum-type-e5e6ba33.js} +1 -1
- package/{expression-b400fa10.js → expression-22698064.js} +64 -64
- package/feedback-widget-0206c486.js +27 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-9bad4d57.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-c5ed0f4e.js} +32 -32
- package/{fieldobj-6b2e9257.js → fieldobj-7311a036.js} +1 -1
- package/{file-upload-widget-f20c09a8.js → file-upload-widget-152afe9d.js} +47 -47
- package/{form-item-wrapper-3a57150a.js → form-item-wrapper-a15a3788.js} +11 -11
- package/form-widget-11b08925.js +264 -0
- package/{grid-col-widget-4622e9f5.js → grid-col-widget-a7135e3b.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-d1d7c6bd.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-3e46c8e3.js} +9 -9
- package/{grid-widget-1b3e097d.js → grid-widget-37783953.js} +5 -5
- package/{hcard-widget-5d5251d3.js → hcard-widget-251f924f.js} +14 -14
- package/{html-text-widget-d4f3ae82.js → html-text-widget-3398f3f3.js} +18 -18
- package/{icon-widget-a96cbb5e.js → icon-widget-c40670f3.js} +23 -23
- package/{iframe-widget-d7684bbc.js → iframe-widget-95725850.js} +20 -20
- package/image-widget-4dccb3cb.js +65 -0
- package/{index-52c672dc.js → index-170931d8.js} +1 -1
- package/{index-37371bcf.js → index-50ac6b9c.js} +5 -5
- package/{index-3d32030d.js → index-6b1b38bd.js} +4 -4
- package/{input-number-widget-57e0f68b.js → input-number-widget-35e2b7c8.js} +18 -18
- package/{input-widget-59816b45.js → input-tag-widget-e94c22a9.js} +28 -28
- package/input-widget-7707f453.js +72 -0
- package/{label-wrapper-946d4f6e.js → label-wrapper-005f6858.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-466417fc.js → label-wrapper.vue_vue_type_style_index_0_lang-f6d14143.js} +3 -3
- package/{link-widget-941ece03.js → link-widget-b2175e6a.js} +24 -24
- package/{ltable-col-widget-7f17d280.js → ltable-col-widget-f615cad7.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-119939e4.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-bddd15f2.js} +9 -9
- package/{ltable-widget-3cdd8a61.js → ltable-widget-d31e15a1.js} +10 -10
- package/mention-widget-96100894.js +83 -0
- package/{menu-widget-55d05c5f.js → menu-widget-148fd4ea.js} +40 -40
- package/{model-widget-be9873f7.js → model-widget-6a052edf.js} +13 -13
- package/multirow-9ca4ca37.js +230 -0
- package/{multirow-widget-a61e1ffd.js → multirow-widget-fa96667f.js} +15 -15
- package/package.json +1 -1
- package/{pagination-widget-4be188b9.js → pagination-widget-66e2f0a2.js} +30 -30
- package/{picture-upload-widget-3eb230e0.js → picture-upload-widget-075e05c1.js} +16 -16
- package/{progress-widget-e27a8e91.js → progress-widget-333d7a0a.js} +14 -14
- package/{qrcode-widget-37523a4c.js → qrcode-widget-045e0c9a.js} +13 -13
- package/{radio-widget-986e2923.js → radio-widget-fe12d4c8.js} +15 -15
- package/{range-widget-10d5d497.js → range-widget-fc86ae7e.js} +24 -24
- package/{rate-widget-bd208223.js → rate-widget-d778af5d.js} +18 -18
- package/render.es.js +63 -63
- package/render.style.css +1 -1
- package/render.umd.js +260 -260
- package/{result-widget-60806d6f.js → result-widget-46f08a0a.js} +25 -25
- package/{rich-editor-widget-c1c52421.js → rich-editor-widget-5b1f66ab.js} +25 -25
- package/{router-widget-854967fe.js → router-widget-8f1aad9c.js} +16 -16
- package/{segmented-widget-33e17632.js → segmented-widget-2a0b784f.js} +13 -13
- package/{select-widget-9ecbf69d.js → select-widget-5468d1da.js} +17 -17
- package/{sfc-4d02d18b.js → sfc-617b09f7.js} +8 -8
- package/{sfcview-621b67b1.js → sfcview-8b8843f7.js} +7 -7
- package/share-field-3a9e6bb1.js +853 -0
- package/{share-file-0caf64d9.js → share-file-d70f8343.js} +13 -13
- package/{skeleton-widget-397d4aa8.js → skeleton-widget-5387eed4.js} +30 -30
- package/{skeletonItem-widget-4415418e.js → skeletonItem-widget-ecdd9a97.js} +16 -16
- package/{slider-widget-798901d6.js → slider-widget-1f440f9c.js} +20 -20
- package/{slot-a71ceeef.js → slot-6351573b.js} +3 -3
- package/{space-widget-a897626a.js → space-widget-9d18ca7c.js} +23 -23
- package/{splitter-widget-e4d1b106.js → splitter-widget-98a807ad.js} +19 -19
- package/{static-text-widget-a612b773.js → static-text-widget-21ac4878.js} +18 -18
- package/{statistic-widget-fcdf41f0.js → statistic-widget-db1a0147.js} +16 -16
- package/{steps-widget-7038a62e.js → steps-widget-9f35d784.js} +22 -22
- package/{subMenu-widget-511c493e.js → subMenu-widget-851a139d.js} +8 -8
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-b6ece2d4.js → subMenu-widget.vue_vue_type_script_setup_true_lang-4590af73.js} +3 -3
- package/{switch-widget-7323a13a.js → switch-widget-5a370968.js} +17 -17
- package/{tab-pane-widget-37dc9032.js → tab-pane-widget-a7bd2ceb.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-3c44a364.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-7699e876.js} +7 -7
- package/table-col-widget-09f03c57.js +23 -0
- package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-13c6965a.js +114 -0
- package/table-widget-4d183bab.js +353 -0
- package/{tabs-widget-1a2ab1c1.js → tabs-widget-5a65c0d7.js} +7 -7
- package/{tag-widget-ebcbc798.js → tag-widget-1579b309.js} +16 -16
- package/{text-widget-22e821bd.js → text-widget-4638bd8d.js} +16 -16
- package/{textarea-widget-d8eec61e.js → textarea-widget-bf728b3e.js} +19 -19
- package/{time-picker-range-widget-af737a6a.js → time-picker-range-widget-e6623bbc.js} +19 -19
- package/{time-picker-widget-41ebf6e5.js → time-picker-widget-7e096da7.js} +21 -21
- package/{time-select-widget-ba53e6e3.js → time-select-widget-5ad455af.js} +20 -20
- package/{timeline-widget-7f90cdf6.js → timeline-widget-e9682df9.js} +45 -45
- package/{tmpl-widget-183c4813.js → tmpl-widget-6e0ba669.js} +21 -21
- package/{tooltip-widget-8f13dd75.js → tooltip-widget-c955b957.js} +34 -34
- package/{tour-widget-8ca44412.js → tour-widget-2f93943e.js} +19 -19
- package/transfer-widget-ae894a04.js +82 -0
- package/{tree-select-widget-8e9323b2.js → tree-select-widget-7ba9d526.js} +23 -23
- package/{tree-widget-63524b1b.js → tree-widget-d501b9d5.js} +20 -20
- package/{uuid-b91bcccf.js → uuid-432548c7.js} +1 -1
- package/{verifycode-widget-c5f5c8c5.js → verifycode-widget-99e9067a.js} +13 -13
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-190ebd92.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e3509187.js} +7 -7
- package/{wrapper-widget-12efeb35.js → wrapper-widget-9e9c2a52.js} +6 -6
- package/auto-complete-widget-294a2011.js +0 -75
- package/chart-widget-714596d3.js +0 -88
- package/date-picker-widget-dee26f46.js +0 -114
- package/default-slot-widget-8e0486f0.js +0 -27
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-b164b82a.js +0 -84
- package/feedback-widget-33473d38.js +0 -27
- package/form-widget-fb293aee.js +0 -246
- package/image-widget-d0508443.js +0 -65
- package/input-tag-widget-9d042cc0.js +0 -72
- package/mention-widget-f3bc7382.js +0 -83
- package/multirow-9fb6b652.js +0 -230
- package/share-field-ecce5234.js +0 -839
- package/table-col-widget-35a1c0e8.js +0 -23
- package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-eb3e958c.js +0 -114
- package/table-widget-f38be8ae.js +0 -352
- package/transfer-widget-272bc2e9.js +0 -82
package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-b164b82a.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, ref as B, computed as D, openBlock as m, createBlock as f, normalizeProps as v, guardReactiveProps as W, withCtx as c, resolveDynamicComponent as u, mergeProps as g, toHandlers as I, createSlots as H, renderList as N, unref as S, createElementBlock as K, Fragment as L, renderSlot as R, createVNode as w, createCommentVNode as O } from "vue";
|
|
2
|
-
import { e as U, k as q } from "./enum-type-b4b3fb1d.js";
|
|
3
|
-
import { I as G } from "./field-base-1acf3ada.js";
|
|
4
|
-
import { _ as J } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-190ebd92.js";
|
|
5
|
-
import { s as C, w as M } from "./expression-b400fa10.js";
|
|
6
|
-
import { g as P } from "./slot-a71ceeef.js";
|
|
7
|
-
import { _ as Q } from "./content-wrapper.vue_vue_type_script_setup_true_lang-8e168bee.js";
|
|
8
|
-
import { u as T } from "./fieldobj-6b2e9257.js";
|
|
9
|
-
import { D as X } from "./drag-wrapper-679371ab.js";
|
|
10
|
-
const Y = h({ componentName: M.FieldWidget }), se = /* @__PURE__ */ h({
|
|
11
|
-
...Y,
|
|
12
|
-
__name: "default-slot-widget",
|
|
13
|
-
props: { ...G },
|
|
14
|
-
setup(z, { expose: F }) {
|
|
15
|
-
const r = z, { getAttrProp: $ } = T(r), b = B(), y = D(() => $("content")), A = () => {
|
|
16
|
-
var o, a, s, i, d;
|
|
17
|
-
const t = (s = (a = (o = r == null ? void 0 : r.propOptions) == null ? void 0 : o.fieldObj) == null ? void 0 : a.extendAttrs) == null ? void 0 : s.slotable;
|
|
18
|
-
var l = P((d = (i = r.propOptions) == null ? void 0 : i.fieldObj) == null ? void 0 : d.slots, r.designState, !t), n = l == null ? void 0 : l.filter((p) => !!p.default || (p == null ? void 0 : p.slotName) !== C.default || !q(y.value));
|
|
19
|
-
return n;
|
|
20
|
-
}, E = () => {
|
|
21
|
-
var n, o, a, s, i;
|
|
22
|
-
const t = (a = (o = (n = r == null ? void 0 : r.propOptions) == null ? void 0 : n.fieldObj) == null ? void 0 : o.extendAttrs) == null ? void 0 : a.slotable;
|
|
23
|
-
var l = P((i = (s = r.propOptions) == null ? void 0 : s.fieldObj) == null ? void 0 : i.slots, r.designState, !!t);
|
|
24
|
-
return l;
|
|
25
|
-
};
|
|
26
|
-
return F({
|
|
27
|
-
getFieldEditor: () => {
|
|
28
|
-
var t;
|
|
29
|
-
return (t = b.value) == null ? void 0 : t.ref;
|
|
30
|
-
}
|
|
31
|
-
}), (t, l) => (m(), f(J, v(W(t.$props)), {
|
|
32
|
-
default: c(({ data: n }) => {
|
|
33
|
-
var o, a, s, i, d, p, j;
|
|
34
|
-
return [
|
|
35
|
-
(m(), f(u((o = t.propOptions) == null ? void 0 : o.elementName), g({
|
|
36
|
-
key: (s = (a = t.propOptions) == null ? void 0 : a.fieldObj) == null ? void 0 : s.fieldKey
|
|
37
|
-
}, (d = (i = t.propOptions) == null ? void 0 : i.fieldObj) == null ? void 0 : d.attrs, I((j = (p = t.propOptions) == null ? void 0 : p.fieldObj) == null ? void 0 : j.events), {
|
|
38
|
-
size: n.size,
|
|
39
|
-
class: n.injectClass,
|
|
40
|
-
style: n.injectStyle,
|
|
41
|
-
ref_key: "fieldEditor",
|
|
42
|
-
ref: b
|
|
43
|
-
}), H({ _: 2 }, [
|
|
44
|
-
N(A(), (e) => ({
|
|
45
|
-
name: e == null ? void 0 : e.slotName,
|
|
46
|
-
fn: c((V) => {
|
|
47
|
-
var k;
|
|
48
|
-
return [
|
|
49
|
-
(e == null ? void 0 : e.slotName) === S(C).default ? (m(), K(L, { key: 0 }, [
|
|
50
|
-
e.default ? (m(), f(u(e.default), v(g({ key: 0 }, V)), null, 16)) : ((k = t.propOptions) == null ? void 0 : k.showContent) != !1 ? R(t.$slots, "contentSlot", {
|
|
51
|
-
key: 1,
|
|
52
|
-
data: {}
|
|
53
|
-
}, () => [
|
|
54
|
-
w(Q, {
|
|
55
|
-
tohtml: !1,
|
|
56
|
-
allProps: { content: y.value }
|
|
57
|
-
}, null, 8, ["allProps"])
|
|
58
|
-
]) : O("", !0)
|
|
59
|
-
], 64)) : O("", !0)
|
|
60
|
-
];
|
|
61
|
-
})
|
|
62
|
-
})),
|
|
63
|
-
N(E(), (e) => ({
|
|
64
|
-
name: e.slotName,
|
|
65
|
-
fn: c(() => [
|
|
66
|
-
e != null && e.default ? (m(), f(u(e == null ? void 0 : e.default), { key: 0 })) : O("", !0),
|
|
67
|
-
w(X, g(t.$props, {
|
|
68
|
-
widget: e,
|
|
69
|
-
"drag-class": "dragSize1",
|
|
70
|
-
"component-class": n.componentWrapperClass,
|
|
71
|
-
"drag-tip": S(U).i18nt("designer.hint.draggableArea1")
|
|
72
|
-
}), null, 16, ["widget", "component-class", "drag-tip"])
|
|
73
|
-
])
|
|
74
|
-
}))
|
|
75
|
-
]), 1040, ["size", "class", "style"]))
|
|
76
|
-
];
|
|
77
|
-
}),
|
|
78
|
-
_: 3
|
|
79
|
-
}, 16));
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
export {
|
|
83
|
-
se as _
|
|
84
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-9bad4d57.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./widget-base-8eece820.js";
|
|
4
|
-
import "./drag-wrapper-679371ab.js";
|
|
5
|
-
import "./enum-type-b4b3fb1d.js";
|
|
6
|
-
import "./baseImp-5623aa34.js";
|
|
7
|
-
import "./enum-type-5026a107.js";
|
|
8
|
-
import "./expression-b400fa10.js";
|
|
9
|
-
import "./source-map-b04aec4a.js";
|
|
10
|
-
import "./uuid-b91bcccf.js";
|
|
11
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
12
|
-
import "./esprima-e8d15055.js";
|
|
13
|
-
import "./icon-1fc5d00d.js";
|
|
14
|
-
import "axios";
|
|
15
|
-
import "./dialog-ba291209.js";
|
|
16
|
-
import "element-plus";
|
|
17
|
-
import "./index-37371bcf.js";
|
|
18
|
-
import "./slot-a71ceeef.js";
|
|
19
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
20
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-190ebd92.js";
|
|
21
|
-
import "./index-52c672dc.js";
|
|
22
|
-
import "./fieldobj-6b2e9257.js";
|
|
23
|
-
import "./share-field-ecce5234.js";
|
|
24
|
-
import "./multirow-9fb6b652.js";
|
|
25
|
-
export {
|
|
26
|
-
o as default
|
|
27
|
-
};
|
package/form-widget-fb293aee.js
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { ref as Q, reactive as U, onMounted as ue, nextTick as Ee, defineComponent as me, computed as ae, resolveComponent as Ne, resolveDirective as je, openBlock as ie, createBlock as le, mergeProps as G, unref as g, withCtx as de, withDirectives as ye, toHandlers as Me, withModifiers as Re, createVNode as Ae } from "vue";
|
|
2
|
-
import { I as Pe } from "./widget-base-8eece820.js";
|
|
3
|
-
import { D as $e } from "./drag-wrapper-679371ab.js";
|
|
4
|
-
import { _ as ke } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-190ebd92.js";
|
|
5
|
-
import { w as X, a as re, b as $, f as L, i as Ie } from "./expression-b400fa10.js";
|
|
6
|
-
import { u as Be } from "./icon-1fc5d00d.js";
|
|
7
|
-
import { u as He, a as qe } from "./multirow-9fb6b652.js";
|
|
8
|
-
import { b as Te, H as J, M as se, e as pe, d as ce, N as fe, O as ze, A as Ke, g as Ue } from "./enum-type-b4b3fb1d.js";
|
|
9
|
-
import { $ as Ge, B as Je } from "./baseImp-5623aa34.js";
|
|
10
|
-
import { f as Qe } from "./index-37371bcf.js";
|
|
11
|
-
import { b as Xe, a as Ye, u as Ze } from "./share-field-ecce5234.js";
|
|
12
|
-
import { W as et } from "./enum-type-5026a107.js";
|
|
13
|
-
import { F as tt } from "./slot-a71ceeef.js";
|
|
14
|
-
import { _ as ot } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
-
function nt(s) {
|
|
16
|
-
const O = s.widget, h = s.designer, C = h == null ? void 0 : h.pageConfig, b = s == null ? void 0 : s.widgetList, x = Q({}), E = {}, { fieldModel: k, fieldName: I, fieldEditor: c, attrs: N, events: _, hasFieldOptions: j, exposed: w, fieldObj: B, watchOption: F, propResultOpt: V, extendAttrs: D } = Xe(s), { off$: a, on$: m, emit$: H, broadcast: y } = qe();
|
|
17
|
-
var { instance: S } = Be();
|
|
18
|
-
const { setAllRefList: M } = Ye(x.value), W = { designState: s == null ? void 0 : s.designState, pageConfig: C, globalConfig: V == null ? void 0 : V.globalConfig }, { formModel: R, setData: ve, getData: A, clearData: Y } = He(b, { ...W }), { handleFunc: q } = Ze({ options: C }, W), T = U({}), ge = () => {
|
|
19
|
-
a(L.fieldChange), m(L.fieldChange, (e) => {
|
|
20
|
-
Fe(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), w == null || w.setValue(R), be(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue);
|
|
21
|
-
});
|
|
22
|
-
}, he = () => {
|
|
23
|
-
a(L.fieldValidation), m(L.fieldValidation, (e) => {
|
|
24
|
-
var t;
|
|
25
|
-
(t = c.value) == null || t.validateField(e == null ? void 0 : e.propName);
|
|
26
|
-
});
|
|
27
|
-
}, _e = () => {
|
|
28
|
-
a(L.fieldRuleChange), m(L.fieldRuleChange, (e) => {
|
|
29
|
-
var o;
|
|
30
|
-
var t = (o = e == null ? void 0 : e.rules) == null ? void 0 : o.map((n) => ({
|
|
31
|
-
required: n.required,
|
|
32
|
-
message: n.message,
|
|
33
|
-
trigger: n.trigger,
|
|
34
|
-
validator: n.validator
|
|
35
|
-
}));
|
|
36
|
-
Object.assign(T, { [e == null ? void 0 : e.fieldName]: t }), N.value.rules = T;
|
|
37
|
-
});
|
|
38
|
-
}, z = Q(!1), K = U({}), P = U({}), Z = (e) => {
|
|
39
|
-
se(P), ce(P, e);
|
|
40
|
-
}, Ce = () => ({
|
|
41
|
-
change_info: J(K),
|
|
42
|
-
before_info: J(P),
|
|
43
|
-
after_info: J(R),
|
|
44
|
-
flag: z.value
|
|
45
|
-
}), be = (e, t, o) => {
|
|
46
|
-
var n = P[e];
|
|
47
|
-
fe(t, o) || fe(t, n) || (z.value = !0, e && ce(K, { [e]: { oldValue: n, newValue: t, beforeValue: o } }));
|
|
48
|
-
}, we = () => {
|
|
49
|
-
z.value = !1, se(K), Z(A());
|
|
50
|
-
}, Fe = (e, t, o) => {
|
|
51
|
-
q(_.value.formDataChange, { field: { fieldName: e, newValue: t, oldValue: o }, formModel: R });
|
|
52
|
-
}, De = () => {
|
|
53
|
-
q(_.value.formCreated);
|
|
54
|
-
}, Le = () => {
|
|
55
|
-
q(_.value.formMounted);
|
|
56
|
-
}, Ve = () => {
|
|
57
|
-
_e(), ge(), he(), De();
|
|
58
|
-
}, Se = (e) => {
|
|
59
|
-
var t;
|
|
60
|
-
(t = c.value) == null || t.clearValidate(e);
|
|
61
|
-
}, We = () => {
|
|
62
|
-
M(et.resetField), Ee(() => {
|
|
63
|
-
Se();
|
|
64
|
-
});
|
|
65
|
-
}, ee = (e, t) => {
|
|
66
|
-
let o = [];
|
|
67
|
-
for (let f in e) {
|
|
68
|
-
var n = e[f], l = n == null ? void 0 : n.filter((d) => (d == null ? void 0 : d.force) === t);
|
|
69
|
-
l == null || l.forEach((d) => {
|
|
70
|
-
var i;
|
|
71
|
-
const p = (i = d == null ? void 0 : d.rule) == null ? void 0 : i.label;
|
|
72
|
-
d.message && o.push(Ie(p ? "【" + p + "】" : "", d.message, ":"));
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
return ze(o);
|
|
76
|
-
}, Oe = (e, t) => {
|
|
77
|
-
var o = {};
|
|
78
|
-
return Qe(t, (n) => {
|
|
79
|
-
var l = Je.getName(n), f = Ke(e, l);
|
|
80
|
-
return f && (o[l] = e[l]), f;
|
|
81
|
-
}, !1), o;
|
|
82
|
-
}, xe = (e = !0) => {
|
|
83
|
-
var l, f, d;
|
|
84
|
-
let t = A(), o = function() {
|
|
85
|
-
}, n = new Promise(function(p, i) {
|
|
86
|
-
o = function(u, r) {
|
|
87
|
-
(r ? i : p)({ data: u, isSuccess: !r, message: r });
|
|
88
|
-
};
|
|
89
|
-
});
|
|
90
|
-
return !((l = c.value) != null && l.validate) || !e ? (o(t), n) : ((d = (f = c.value) == null ? void 0 : f.validate) == null || d.call(f, (p, i) => {
|
|
91
|
-
if (p)
|
|
92
|
-
o(t);
|
|
93
|
-
else {
|
|
94
|
-
var u = ee(i, !0);
|
|
95
|
-
if (u && u.length > 0) {
|
|
96
|
-
o(t, u);
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
var r = ee(i, !1);
|
|
100
|
-
if (r && r.length > 0) {
|
|
101
|
-
r.push(pe.i18nt("designer.hint.continue")), Ge.multiple(r).then((v) => {
|
|
102
|
-
o(t);
|
|
103
|
-
});
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}), n);
|
|
108
|
-
}, te = (e, t = !0) => {
|
|
109
|
-
if (!O)
|
|
110
|
-
return;
|
|
111
|
-
var o = Oe(e, [O]);
|
|
112
|
-
ve(o, t);
|
|
113
|
-
const n = ["refList", "widgetRefList"];
|
|
114
|
-
y(X.ContainerWidget, re.setFormData, e, S, n), y(X.FieldWidget, re.setFormData, e, S, n);
|
|
115
|
-
}, oe = (e) => new Promise((t, o) => {
|
|
116
|
-
const n = (i, u) => {
|
|
117
|
-
var ne;
|
|
118
|
-
const r = (ne = D.value) == null ? void 0 : ne.formDataLoaded;
|
|
119
|
-
let v = r ? r == null ? void 0 : r(A(), i) : i;
|
|
120
|
-
Ue(v) ? te(v, !u) : v = {}, Z(v), t(v);
|
|
121
|
-
}, l = () => {
|
|
122
|
-
F($.newDataSource).then((i) => {
|
|
123
|
-
n(i, !0);
|
|
124
|
-
});
|
|
125
|
-
}, f = () => {
|
|
126
|
-
F($.editDataSource).then((i) => {
|
|
127
|
-
var v;
|
|
128
|
-
const u = (v = D.value) == null ? void 0 : v.needFormAdd;
|
|
129
|
-
if ((u == null ? void 0 : u(i)) && p) {
|
|
130
|
-
l();
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
n(i, !1);
|
|
134
|
-
});
|
|
135
|
-
}, d = j($.editDataSource), p = j($.newDataSource);
|
|
136
|
-
d ? f() : p && l();
|
|
137
|
-
});
|
|
138
|
-
return Ve(), ue(() => {
|
|
139
|
-
Te(), Le();
|
|
140
|
-
}), {
|
|
141
|
-
widgetRefList: x,
|
|
142
|
-
allWidgetRefList: E,
|
|
143
|
-
fieldEditor: c,
|
|
144
|
-
formModel: R,
|
|
145
|
-
pageConfig: C,
|
|
146
|
-
widgetList: b,
|
|
147
|
-
fieldModel: k,
|
|
148
|
-
fieldName: I,
|
|
149
|
-
attrs: N,
|
|
150
|
-
extendAttrs: D,
|
|
151
|
-
events: _,
|
|
152
|
-
rules: T,
|
|
153
|
-
loadData: oe,
|
|
154
|
-
clearData: Y,
|
|
155
|
-
exposed: {
|
|
156
|
-
...w,
|
|
157
|
-
setValue: te,
|
|
158
|
-
getValue: xe,
|
|
159
|
-
resetField: We,
|
|
160
|
-
clearData: Y,
|
|
161
|
-
loadData: oe,
|
|
162
|
-
getData: A,
|
|
163
|
-
//修改痕迹
|
|
164
|
-
clearChangeRecord: we,
|
|
165
|
-
getChangeRecord: Ce,
|
|
166
|
-
emit$: H
|
|
167
|
-
},
|
|
168
|
-
fieldObj: B
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
const at = me({ componentName: X.ContainerWidget }), it = /* @__PURE__ */ me({
|
|
172
|
-
...at,
|
|
173
|
-
__name: "form-widget",
|
|
174
|
-
props: { ...Pe },
|
|
175
|
-
setup(s, { expose: O }) {
|
|
176
|
-
var D;
|
|
177
|
-
const h = s, { exposed: C, formModel: b, fieldEditor: x, attrs: E, events: k, widgetRefList: I, extendAttrs: c, fieldName: N, fieldObj: _, loadData: j } = nt({ ...h, widgetList: (D = h == null ? void 0 : h.widget) == null ? void 0 : D.widgetList }), w = N.value, B = ae(() => {
|
|
178
|
-
var a, m;
|
|
179
|
-
return {
|
|
180
|
-
disabled: (a = E.value) == null ? void 0 : a.disabled,
|
|
181
|
-
readonly: (m = c.value) == null ? void 0 : m.readonly
|
|
182
|
-
};
|
|
183
|
-
}), F = Q(!1), V = ae(() => {
|
|
184
|
-
var a;
|
|
185
|
-
return F.value || ((a = c.value) == null ? void 0 : a.showLoading);
|
|
186
|
-
});
|
|
187
|
-
return tt.globalProvide({
|
|
188
|
-
globalFormName: w,
|
|
189
|
-
globalDataModel: b,
|
|
190
|
-
globalFormOptions: B
|
|
191
|
-
}), ue(() => {
|
|
192
|
-
var a;
|
|
193
|
-
(a = c.value) != null && a.loadDataWhenInit && !h.designState && (F.value = !0, j(!0).catch((m) => {
|
|
194
|
-
}).finally(() => {
|
|
195
|
-
F.value = !1, C.clearChangeRecord();
|
|
196
|
-
}));
|
|
197
|
-
}), O({ ...C }), (a, m) => {
|
|
198
|
-
const H = Ne("el-form"), y = je("loading");
|
|
199
|
-
return ie(), le(ke, G(a.$props, {
|
|
200
|
-
"prop-options": { fieldObj: g(_) }
|
|
201
|
-
}), {
|
|
202
|
-
default: de(({ data: S }) => {
|
|
203
|
-
var M;
|
|
204
|
-
return [
|
|
205
|
-
ye((ie(), le(H, G({
|
|
206
|
-
ref_key: "fieldEditor",
|
|
207
|
-
ref: x,
|
|
208
|
-
model: g(b)
|
|
209
|
-
}, g(E), Me(g(k)), {
|
|
210
|
-
class: S.injectClass,
|
|
211
|
-
key: (M = g(_)) == null ? void 0 : M.fieldKey,
|
|
212
|
-
"element-loading-text": g(c).loadingText || g(pe).i18nt("designer.hint.dataLoading"),
|
|
213
|
-
onSubmit: m[0] || (m[0] = Re(() => {
|
|
214
|
-
}, ["prevent"]))
|
|
215
|
-
}), {
|
|
216
|
-
default: de(() => {
|
|
217
|
-
var W;
|
|
218
|
-
return [
|
|
219
|
-
Ae($e, G(a.$props, {
|
|
220
|
-
dragClass: "formDrag padSize",
|
|
221
|
-
model: g(b),
|
|
222
|
-
provideModel: !0,
|
|
223
|
-
"component-class": S.componentWrapperClass,
|
|
224
|
-
refList: g(I),
|
|
225
|
-
"show-suspense": (W = g(c)) == null ? void 0 : W.showSuspense
|
|
226
|
-
}), null, 16, ["model", "component-class", "refList", "show-suspense"])
|
|
227
|
-
];
|
|
228
|
-
}),
|
|
229
|
-
_: 2
|
|
230
|
-
}, 1040, ["model", "class", "element-loading-text"])), [
|
|
231
|
-
[y, V.value]
|
|
232
|
-
])
|
|
233
|
-
];
|
|
234
|
-
}),
|
|
235
|
-
_: 1
|
|
236
|
-
}, 16, ["prop-options"]);
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
const lt = /* @__PURE__ */ ot(it, [["__scopeId", "data-v-2649eac0"]]), wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
241
|
-
__proto__: null,
|
|
242
|
-
default: lt
|
|
243
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
244
|
-
export {
|
|
245
|
-
wt as _
|
|
246
|
-
};
|
package/image-widget-d0508443.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, computed as j, resolveComponent as k, openBlock as m, createBlock as s, mergeProps as l, unref as e, withCtx as d, toHandlers as b, createSlots as F, renderList as O, resolveDynamicComponent as B } from "vue";
|
|
2
|
-
import { w as E } from "./expression-b400fa10.js";
|
|
3
|
-
import { I as L } from "./field-base-1acf3ada.js";
|
|
4
|
-
import { _ as N } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-190ebd92.js";
|
|
5
|
-
import { b as P } from "./share-field-ecce5234.js";
|
|
6
|
-
import { g as $ } from "./slot-a71ceeef.js";
|
|
7
|
-
import "./source-map-b04aec4a.js";
|
|
8
|
-
import "./enum-type-b4b3fb1d.js";
|
|
9
|
-
import "./uuid-b91bcccf.js";
|
|
10
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
11
|
-
import "./esprima-e8d15055.js";
|
|
12
|
-
import "./widget-base-8eece820.js";
|
|
13
|
-
import "./index-37371bcf.js";
|
|
14
|
-
import "./enum-type-5026a107.js";
|
|
15
|
-
import "./baseImp-5623aa34.js";
|
|
16
|
-
import "./icon-1fc5d00d.js";
|
|
17
|
-
import "axios";
|
|
18
|
-
import "./dialog-ba291209.js";
|
|
19
|
-
import "element-plus";
|
|
20
|
-
import "./index-52c672dc.js";
|
|
21
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
22
|
-
import "./fieldobj-6b2e9257.js";
|
|
23
|
-
import "./multirow-9fb6b652.js";
|
|
24
|
-
const A = c({ componentName: E.FieldWidget }), me = /* @__PURE__ */ c({
|
|
25
|
-
...A,
|
|
26
|
-
__name: "image-widget",
|
|
27
|
-
props: { ...L },
|
|
28
|
-
setup(f, { expose: u }) {
|
|
29
|
-
const g = f, { exposed: _, fieldEditor: v, fieldKey: w, attrs: h, events: x, slots: y, optionItems: i, activeOptionItemIndex: C, extendAttrs: n, fieldObj: I } = P(g), S = j(() => {
|
|
30
|
-
var o;
|
|
31
|
-
var t = (o = i == null ? void 0 : i.value) == null ? void 0 : o.map((p) => p.value);
|
|
32
|
-
return t;
|
|
33
|
-
});
|
|
34
|
-
return u({ ..._ }), (t, o) => {
|
|
35
|
-
const p = k("el-image");
|
|
36
|
-
return m(), s(N, l(t.$props, {
|
|
37
|
-
"prop-options": { fieldObj: e(I) }
|
|
38
|
-
}), {
|
|
39
|
-
default: d(({ data: a }) => [
|
|
40
|
-
(m(), s(p, l({
|
|
41
|
-
ref_key: "fieldEditor",
|
|
42
|
-
ref: v,
|
|
43
|
-
key: e(w)
|
|
44
|
-
}, e(h), {
|
|
45
|
-
class: a.injectClass,
|
|
46
|
-
style: { ...a.injectStyle, width: e(n).width, height: e(n).height },
|
|
47
|
-
"preview-src-list": S.value,
|
|
48
|
-
initialIndex: e(C)
|
|
49
|
-
}, b(e(x))), F({ _: 2 }, [
|
|
50
|
-
O(e($)(e(y), t.designState), (r) => ({
|
|
51
|
-
name: r == null ? void 0 : r.slotName,
|
|
52
|
-
fn: d(() => [
|
|
53
|
-
(m(), s(B(r.default)))
|
|
54
|
-
])
|
|
55
|
-
}))
|
|
56
|
-
]), 1040, ["class", "style", "preview-src-list", "initialIndex"]))
|
|
57
|
-
]),
|
|
58
|
-
_: 1
|
|
59
|
-
}, 16, ["prop-options"]);
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
export {
|
|
64
|
-
me as default
|
|
65
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, resolveComponent as O, openBlock as t, createBlock as i, mergeProps as n, unref as r, withCtx as s, isRef as S, toHandlers as x, createSlots as z, renderList as D, resolveDynamicComponent as I, createCommentVNode as l } from "vue";
|
|
2
|
-
import { e as W } from "./enum-type-b4b3fb1d.js";
|
|
3
|
-
import { I as A } from "./field-base-1acf3ada.js";
|
|
4
|
-
import { b as B } from "./share-field-ecce5234.js";
|
|
5
|
-
import { g as E } from "./slot-a71ceeef.js";
|
|
6
|
-
import L from "./form-item-wrapper-3a57150a.js";
|
|
7
|
-
import { w as P } from "./expression-b400fa10.js";
|
|
8
|
-
import { D as T } from "./drag-wrapper-679371ab.js";
|
|
9
|
-
import "./widget-base-8eece820.js";
|
|
10
|
-
import "./multirow-9fb6b652.js";
|
|
11
|
-
import "./baseImp-5623aa34.js";
|
|
12
|
-
import "./enum-type-5026a107.js";
|
|
13
|
-
import "./icon-1fc5d00d.js";
|
|
14
|
-
import "axios";
|
|
15
|
-
import "./dialog-ba291209.js";
|
|
16
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
17
|
-
import "./uuid-b91bcccf.js";
|
|
18
|
-
import "element-plus";
|
|
19
|
-
import "./index-37371bcf.js";
|
|
20
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-190ebd92.js";
|
|
21
|
-
import "./index-52c672dc.js";
|
|
22
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
-
import "./fieldobj-6b2e9257.js";
|
|
24
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-466417fc.js";
|
|
25
|
-
import "./source-map-b04aec4a.js";
|
|
26
|
-
import "./esprima-e8d15055.js";
|
|
27
|
-
const $ = f({ componentName: P.FieldWidget }), ue = /* @__PURE__ */ f({
|
|
28
|
-
...$,
|
|
29
|
-
__name: "input-tag-widget",
|
|
30
|
-
props: { ...A },
|
|
31
|
-
setup(u, { expose: g }) {
|
|
32
|
-
const c = u, { fieldName: h, fieldEditor: y, fieldKey: w, fieldModel: o, rules: k, slots: C, attrs: b, extendAttrs: V, events: j, exposed: v, fieldObj: F } = B(c);
|
|
33
|
-
return g({ ...v }), (p, a) => {
|
|
34
|
-
const N = O("el-input-tag");
|
|
35
|
-
return t(), i(L, n(p.$props, {
|
|
36
|
-
propOptions: { fieldObj: r(F), rules: r(k) }
|
|
37
|
-
}), {
|
|
38
|
-
default: s(({ data: m }) => {
|
|
39
|
-
var d;
|
|
40
|
-
return [
|
|
41
|
-
(t(), i(N, n({
|
|
42
|
-
ref_key: "fieldEditor",
|
|
43
|
-
ref: y,
|
|
44
|
-
modelValue: r(o),
|
|
45
|
-
"onUpdate:modelValue": a[0] || (a[0] = (e) => S(o) ? o.value = e : null)
|
|
46
|
-
}, r(b), x(r(j)), {
|
|
47
|
-
class: m.injectClass,
|
|
48
|
-
key: r(w),
|
|
49
|
-
style: m.injectStyle,
|
|
50
|
-
size: m.size
|
|
51
|
-
}), z({ _: 2 }, [
|
|
52
|
-
D(r(E)(r(C), p.designState, (d = r(V)) == null ? void 0 : d.slotable), (e) => ({
|
|
53
|
-
name: e == null ? void 0 : e.slotName,
|
|
54
|
-
fn: s(() => [
|
|
55
|
-
e != null && e.default ? (t(), i(I(e == null ? void 0 : e.default), { key: 0 })) : l("", !0),
|
|
56
|
-
e != null && e.widgetList ? (t(), i(T, n({ key: 1 }, p.$props, {
|
|
57
|
-
widget: e,
|
|
58
|
-
dragTip: r(W).i18nt("designer.hint.draggableArea1")
|
|
59
|
-
}), null, 16, ["widget", "dragTip"])) : l("", !0)
|
|
60
|
-
])
|
|
61
|
-
}))
|
|
62
|
-
]), 1040, ["modelValue", "class", "style", "size"]))
|
|
63
|
-
];
|
|
64
|
-
}),
|
|
65
|
-
_: 1
|
|
66
|
-
}, 16, ["propOptions"]);
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
export {
|
|
71
|
-
ue as default
|
|
72
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, computed as S, resolveComponent as x, openBlock as m, createBlock as n, mergeProps as d, unref as r, withCtx as u, isRef as z, toHandlers as A, createSlots as D, renderList as W, resolveDynamicComponent as B, createCommentVNode as f } from "vue";
|
|
2
|
-
import { e as E } from "./enum-type-b4b3fb1d.js";
|
|
3
|
-
import { I as L } from "./field-base-1acf3ada.js";
|
|
4
|
-
import { b as P } from "./share-field-ecce5234.js";
|
|
5
|
-
import { g as T } from "./slot-a71ceeef.js";
|
|
6
|
-
import $ from "./form-item-wrapper-3a57150a.js";
|
|
7
|
-
import { w as h } from "./expression-b400fa10.js";
|
|
8
|
-
import { D as H } from "./drag-wrapper-679371ab.js";
|
|
9
|
-
import "./widget-base-8eece820.js";
|
|
10
|
-
import "./multirow-9fb6b652.js";
|
|
11
|
-
import "./baseImp-5623aa34.js";
|
|
12
|
-
import "./enum-type-5026a107.js";
|
|
13
|
-
import "./icon-1fc5d00d.js";
|
|
14
|
-
import "axios";
|
|
15
|
-
import "./dialog-ba291209.js";
|
|
16
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
17
|
-
import "./uuid-b91bcccf.js";
|
|
18
|
-
import "element-plus";
|
|
19
|
-
import "./index-37371bcf.js";
|
|
20
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-190ebd92.js";
|
|
21
|
-
import "./index-52c672dc.js";
|
|
22
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
-
import "./fieldobj-6b2e9257.js";
|
|
24
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-466417fc.js";
|
|
25
|
-
import "./source-map-b04aec4a.js";
|
|
26
|
-
import "./esprima-e8d15055.js";
|
|
27
|
-
const K = c({ componentName: h.FieldWidget }), ve = /* @__PURE__ */ c({
|
|
28
|
-
...K,
|
|
29
|
-
__name: "mention-widget",
|
|
30
|
-
props: { ...L },
|
|
31
|
-
setup(g, { expose: v }) {
|
|
32
|
-
const b = g, { fieldName: M, fieldEditor: y, fieldKey: w, fieldModel: a, rules: k, slots: C, attrs: V, extendAttrs: i, events: j, exposed: F, fieldObj: I, optionItems: N } = P(b), O = S(() => {
|
|
33
|
-
var o, t, p;
|
|
34
|
-
return {
|
|
35
|
-
...V.value,
|
|
36
|
-
props: {
|
|
37
|
-
label: (o = i.value) == null ? void 0 : o.props_label,
|
|
38
|
-
value: (t = i.value) == null ? void 0 : t.props_value,
|
|
39
|
-
disabled: (p = i.value) == null ? void 0 : p.props_disabled
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
});
|
|
43
|
-
return v({ ...F }), (o, t) => {
|
|
44
|
-
const p = x("el-mention");
|
|
45
|
-
return m(), n($, d(o.$props, {
|
|
46
|
-
propOptions: { fieldObj: r(I), rules: r(k) }
|
|
47
|
-
}), {
|
|
48
|
-
default: u(({ data: s }) => {
|
|
49
|
-
var l;
|
|
50
|
-
return [
|
|
51
|
-
(m(), n(p, d({
|
|
52
|
-
ref_key: "fieldEditor",
|
|
53
|
-
ref: y,
|
|
54
|
-
modelValue: r(a),
|
|
55
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => z(a) ? a.value = e : null)
|
|
56
|
-
}, O.value, A(r(j)), {
|
|
57
|
-
class: s.injectClass,
|
|
58
|
-
key: r(w),
|
|
59
|
-
style: s.injectStyle,
|
|
60
|
-
size: s.size,
|
|
61
|
-
options: r(N)
|
|
62
|
-
}), D({ _: 2 }, [
|
|
63
|
-
W(r(T)(r(C), o.designState, (l = r(i)) == null ? void 0 : l.slotable), (e) => ({
|
|
64
|
-
name: e == null ? void 0 : e.slotName,
|
|
65
|
-
fn: u(() => [
|
|
66
|
-
e != null && e.default ? (m(), n(B(e == null ? void 0 : e.default), { key: 0 })) : f("", !0),
|
|
67
|
-
e != null && e.widgetList ? (m(), n(H, d({ key: 1 }, o.$props, {
|
|
68
|
-
widget: e,
|
|
69
|
-
dragTip: r(E).i18nt("designer.hint.draggableArea1")
|
|
70
|
-
}), null, 16, ["widget", "dragTip"])) : f("", !0)
|
|
71
|
-
])
|
|
72
|
-
}))
|
|
73
|
-
]), 1040, ["modelValue", "class", "style", "size", "options"]))
|
|
74
|
-
];
|
|
75
|
-
}),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 16, ["propOptions"]);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
export {
|
|
82
|
-
ve as default
|
|
83
|
-
};
|