hlrender 0.0.113 → 0.0.115
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-a1ef6f23.js → _pdf-8de6f4c9.js} +2 -2
- package/{_txt-f58d1661.js → _txt-b4d1870d.js} +2 -2
- package/{affix-widget-e27ce439.js → affix-widget-9ae6e212.js} +2 -2
- package/{alert-widget-29acce89.js → alert-widget-2aa1d72c.js} +2 -2
- package/{auto-complete-widget-c7f628b7.js → auto-complete-widget-ae03bf9e.js} +1 -1
- package/{avatar-widget-39b78620.js → avatar-widget-11fdcef6.js} +2 -2
- package/{backtop-widget-6e57d8fe.js → backtop-widget-5a6c9032.js} +2 -2
- package/{badge-widget-4a787881.js → badge-widget-30cf7f28.js} +2 -2
- package/{button-widget-8f366155.js → button-widget-aa961245.js} +2 -2
- package/{card-widget-ec661a5f.js → card-widget-cd88253d.js} +1 -1
- package/{cont-cell-widget-378f10f7.js → cont-cell-widget-8ae06ec3.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-c695e4be.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-f4a1e0e8.js} +1 -1
- package/{cont-widget-a0291a33.js → cont-widget-970c6ea4.js} +1 -1
- package/{default-slot-widget-72fb2f79.js → default-slot-widget-b9cc78cc.js} +2 -2
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-e76a3814.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8764a711.js} +1 -1
- package/{descriptions-widget-7b9b580b.js → descriptions-widget-28bb0c5a.js} +1 -1
- package/{dialog-widget-c90c6b38.js → dialog-widget-98d61b2e.js} +2 -2
- package/{divider-widget-f6f5ecc8.js → divider-widget-6b8e1284.js} +2 -2
- package/{drag-wrapper-7bf27317.js → drag-wrapper-a6c1a7d6.js} +1 -1
- package/{drawer-widget-da22a491.js → drawer-widget-aa9ca980.js} +2 -2
- package/{dropdown-widget-5982a879.js → dropdown-widget-cfe756a0.js} +1 -1
- package/{empty-widget-ddd257ba.js → empty-widget-a166c71b.js} +2 -2
- package/{feedback-widget-cd3cb686.js → feedback-widget-50c55f47.js} +2 -2
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-8cb27f35.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-217c5495.js} +1 -1
- package/{file-upload-widget-8f10ef4f.js → file-upload-widget-aa3e5e11.js} +3 -3
- package/form-widget-96845b9d.js +225 -0
- package/{grid-col-widget-a5f247a8.js → grid-col-widget-793d0fac.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-d09d7c02.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-e400d3b0.js} +1 -1
- package/{grid-widget-9da08670.js → grid-widget-bd412333.js} +1 -1
- package/{input-widget-1ca33ac3.js → input-widget-80e4e5df.js} +1 -1
- package/{link-widget-21b6802b.js → link-widget-c2385346.js} +2 -2
- package/{ltable-col-widget-d2fab2cd.js → ltable-col-widget-10ddd757.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-a7fbd112.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-3b62249c.js} +1 -1
- package/{ltable-widget-3e8e6b43.js → ltable-widget-ddd8a70d.js} +1 -1
- package/{multirow-widget-45a8d25d.js → multirow-widget-af15a355.js} +1 -1
- package/package.json +3 -4
- package/{progress-widget-813b4777.js → progress-widget-f6eec54c.js} +1 -1
- package/{range-widget-a7a2cc17.js → range-widget-6bbd6078.js} +1 -1
- package/render.es.js +16 -16
- package/render.umd.js +187 -187
- package/{result-widget-6cd7f701.js → result-widget-1ca8b82d.js} +1 -1
- package/sfcview-ea192b97.js +68 -0
- package/{tab-pane-widget-c7c74425.js → tab-pane-widget-3602577c.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-93bd278a.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-e9632c6e.js} +1 -1
- package/{table-col-widget-562dd755.js → table-col-widget-40e21668.js} +2 -2
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-04ad1322.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-295952ab.js} +1 -1
- package/{table-widget-529fcb42.js → table-widget-9ccbd481.js} +2 -2
- package/{tabs-widget-0e3cf725.js → tabs-widget-ca214bdf.js} +1 -1
- package/{tag-widget-a12b391e.js → tag-widget-d4c8c9b3.js} +2 -2
- package/{text-widget-f03bb615.js → text-widget-f6c2ac42.js} +2 -2
- package/{tmpl-widget-d83bbdec.js → tmpl-widget-306ef647.js} +1 -1
- package/{wrapper-widget-a48784d7.js → wrapper-widget-f7c854c1.js} +1 -1
- package/form-widget-07c36b9c.js +0 -224
- package/sfcview-d775814d.js +0 -64
|
@@ -4,7 +4,7 @@ import { I as B } from "./field-base-5547436d.js";
|
|
|
4
4
|
import { _ as E } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-efde8c90.js";
|
|
5
5
|
import { b as I } from "./share-field-27676b90.js";
|
|
6
6
|
import { w as O } from "./expression-490b4335.js";
|
|
7
|
-
import { D as P } from "./drag-wrapper-
|
|
7
|
+
import { D as P } from "./drag-wrapper-a6c1a7d6.js";
|
|
8
8
|
import { g as W } from "./slot-f8eef9e1.js";
|
|
9
9
|
import "./widget-base-4c2d6265.js";
|
|
10
10
|
import "./index-a7d766e7.js";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { D as I, B as l } from "./baseImp-26b9c04a.js";
|
|
2
|
+
import { c as s } from "./enum-type-bb2bfafa.js";
|
|
3
|
+
import { f as $, n as k, o as E } from "./index-a7d766e7.js";
|
|
4
|
+
import { l as O } from "./expression-490b4335.js";
|
|
5
|
+
import "./enum-type-4a798b1a.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
import "./icon-a0e0cdb0.js";
|
|
8
|
+
import "./dialog-c4706078.js";
|
|
9
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
10
|
+
import "./uuid-4999945f.js";
|
|
11
|
+
import "element-plus";
|
|
12
|
+
import "./source-map-b04aec4a.js";
|
|
13
|
+
import "./esprima-e8d15055.js";
|
|
14
|
+
const H = (y, m) => {
|
|
15
|
+
const h = (r, n) => {
|
|
16
|
+
const e = [], i = (o) => !!o.dynamicItemFlag;
|
|
17
|
+
k(r, e, !1, i);
|
|
18
|
+
var a = e == null ? void 0 : e.filter((o) => o == null ? void 0 : o.formItemFlag);
|
|
19
|
+
return a == null || a.forEach((o) => {
|
|
20
|
+
if (!(o != null && o.dynamicItemFlag))
|
|
21
|
+
n.push({ widget: b(o) });
|
|
22
|
+
else {
|
|
23
|
+
const _ = [];
|
|
24
|
+
E(o, _, !1, i);
|
|
25
|
+
const f = [];
|
|
26
|
+
h(_, f), n.push({ widget: b(o), children: f });
|
|
27
|
+
}
|
|
28
|
+
}), n;
|
|
29
|
+
}, p = (r) => l.getOptions(r, "name"), x = () => {
|
|
30
|
+
const r = [];
|
|
31
|
+
var n = m ? $(y, (e) => p(e) === (m == null ? void 0 : m.fName) || (e == null ? void 0 : e.type) == (m == null ? void 0 : m.wdt), !1) : y;
|
|
32
|
+
return h(n, r);
|
|
33
|
+
}, b = (r) => {
|
|
34
|
+
var F;
|
|
35
|
+
const n = {}, e = (t, c) => {
|
|
36
|
+
n[t] = c;
|
|
37
|
+
}, i = (t) => {
|
|
38
|
+
const c = l.getOptions(t, "content"), u = l.getOptions(t, "label"), g = l.getOptions(t, "name");
|
|
39
|
+
return u || c || g;
|
|
40
|
+
}, a = (t) => ({ label: i(t), key: p(t), type: "text" }), o = (t) => {
|
|
41
|
+
let c = l.getOptions(t, "textName"), u = l.getOptions(t, "multiple");
|
|
42
|
+
const g = c || `${p(t)}${O.optionText}`;
|
|
43
|
+
return { label: i(t), key: `${g}`, type: "option", options: { multiple: u } };
|
|
44
|
+
}, _ = (t) => {
|
|
45
|
+
let c = l.getOptions(t, "textName"), u = l.getOptions(t, "multiple");
|
|
46
|
+
const g = c || `${p(t)}${O.optionText}`;
|
|
47
|
+
return { label: i(t), key: `${g}`, type: "cascader", options: { multiple: u } };
|
|
48
|
+
}, f = (t) => ({ label: i(t), key: p(t), type: "multirow" });
|
|
49
|
+
return (() => {
|
|
50
|
+
I(s).forEach((t) => {
|
|
51
|
+
e(t.label, a);
|
|
52
|
+
}), [
|
|
53
|
+
s.select,
|
|
54
|
+
s.radio,
|
|
55
|
+
s.checkbox,
|
|
56
|
+
s.autoComplete
|
|
57
|
+
].forEach((t) => {
|
|
58
|
+
e(t, o);
|
|
59
|
+
}), e(s.multirow, f), e(s.cascader, _);
|
|
60
|
+
})(), (F = n[r.type]) == null ? void 0 : F.call(n, r);
|
|
61
|
+
};
|
|
62
|
+
return {
|
|
63
|
+
filterFieldItems: x
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
H as useGenFieldItemList
|
|
68
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-
|
|
1
|
+
import { _ as e } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-e9632c6e.js";
|
|
2
2
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
default: e
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as s, openBlock as l, createBlock as f, mergeProps as r, unref as e, withCtx as g, createVNode as _ } from "vue";
|
|
2
2
|
import { w as u } from "./expression-490b4335.js";
|
|
3
3
|
import { I as w } from "./widget-base-4c2d6265.js";
|
|
4
|
-
import { D as C } from "./drag-wrapper-
|
|
4
|
+
import { D as C } from "./drag-wrapper-a6c1a7d6.js";
|
|
5
5
|
import { _ as b } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-efde8c90.js";
|
|
6
6
|
import { c as W } from "./slot-f8eef9e1.js";
|
|
7
7
|
import { b as h } from "./share-field-27676b90.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-
|
|
1
|
+
import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-295952ab.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "./enum-type-4a798b1a.js";
|
|
4
4
|
import "./baseImp-26b9c04a.js";
|
|
@@ -11,7 +11,7 @@ import "./esprima-e8d15055.js";
|
|
|
11
11
|
import "./icon-a0e0cdb0.js";
|
|
12
12
|
import "./dialog-c4706078.js";
|
|
13
13
|
import "element-plus";
|
|
14
|
-
import "./drag-wrapper-
|
|
14
|
+
import "./drag-wrapper-a6c1a7d6.js";
|
|
15
15
|
import "./widget-base-4c2d6265.js";
|
|
16
16
|
import "./index-a7d766e7.js";
|
|
17
17
|
import "./slot-f8eef9e1.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as E, resolveComponent as G, openBlock as i, createBlock as a, normalizeProps as I, guardReactiveProps as N, unref as e, withCtx as v, resolveDynamicComponent as A, createCommentVNode as s, createElementBlock as F, Fragment as L, renderList as V } from "vue";
|
|
2
2
|
import { c as O, e as j } from "./enum-type-4a798b1a.js";
|
|
3
3
|
import { b as q, g as H } from "./baseImp-26b9c04a.js";
|
|
4
|
-
import { D as W } from "./drag-wrapper-
|
|
4
|
+
import { D as W } from "./drag-wrapper-a6c1a7d6.js";
|
|
5
5
|
import { a as g } from "./slot-f8eef9e1.js";
|
|
6
6
|
import { b as J } from "./multirow-35c0f8c0.js";
|
|
7
7
|
import { g as K } from "./uuid-4999945f.js";
|
|
@@ -3,7 +3,7 @@ import { I as Se } from "./field-base-5547436d.js";
|
|
|
3
3
|
import { _ as Pe } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-efde8c90.js";
|
|
4
4
|
import { b as Oe } from "./share-field-27676b90.js";
|
|
5
5
|
import { w as ze, g as Ne } from "./expression-490b4335.js";
|
|
6
|
-
import { _ as Re } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-
|
|
6
|
+
import { _ as Re } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-295952ab.js";
|
|
7
7
|
import { x as Ce, e as U, g as x, a as je, f as ke, t as Fe, o as Ie } from "./enum-type-4a798b1a.js";
|
|
8
8
|
import { F as De } from "./slot-f8eef9e1.js";
|
|
9
9
|
import { c as Te, p as G } from "./multirow-35c0f8c0.js";
|
|
@@ -21,7 +21,7 @@ import "./_plugin-vue_export-helper-dad06003.js";
|
|
|
21
21
|
import "./fieldobj-a9f1231d.js";
|
|
22
22
|
import "./source-map-b04aec4a.js";
|
|
23
23
|
import "./esprima-e8d15055.js";
|
|
24
|
-
import "./drag-wrapper-
|
|
24
|
+
import "./drag-wrapper-a6c1a7d6.js";
|
|
25
25
|
const Ee = { key: 1 }, Me = H({ componentName: ze.FieldWidget }), lt = /* @__PURE__ */ H({
|
|
26
26
|
...Me,
|
|
27
27
|
__name: "table-widget",
|
|
@@ -4,7 +4,7 @@ import { g as X, w as Y } from "./expression-490b4335.js";
|
|
|
4
4
|
import { I as Z } from "./widget-base-4c2d6265.js";
|
|
5
5
|
import { b as ee } from "./share-field-27676b90.js";
|
|
6
6
|
import { _ as te } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-efde8c90.js";
|
|
7
|
-
import { _ as ae } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-
|
|
7
|
+
import { _ as ae } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-e9632c6e.js";
|
|
8
8
|
import { u as oe } from "./index-a7d766e7.js";
|
|
9
9
|
import { B as T } from "./baseImp-26b9c04a.js";
|
|
10
10
|
const se = y({ componentName: Y.ContainerWidget }), ne = /* @__PURE__ */ y({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as s, createBlock as n, mergeProps as a, unref as f } from "vue";
|
|
2
2
|
import { I as l } from "./field-base-5547436d.js";
|
|
3
|
-
import { _ as c } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-
|
|
3
|
+
import { _ as c } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8764a711.js";
|
|
4
4
|
import { w as d } from "./expression-490b4335.js";
|
|
5
5
|
import { b as _ } from "./share-field-27676b90.js";
|
|
6
6
|
import "./widget-base-4c2d6265.js";
|
|
@@ -19,7 +19,7 @@ import "./_plugin-vue_export-helper-dad06003.js";
|
|
|
19
19
|
import "./fieldobj-a9f1231d.js";
|
|
20
20
|
import "./slot-f8eef9e1.js";
|
|
21
21
|
import "./content-wrapper.vue_vue_type_script_setup_true_lang-2b440b0c.js";
|
|
22
|
-
import "./drag-wrapper-
|
|
22
|
+
import "./drag-wrapper-a6c1a7d6.js";
|
|
23
23
|
import "./source-map-b04aec4a.js";
|
|
24
24
|
import "./esprima-e8d15055.js";
|
|
25
25
|
import "./multirow-35c0f8c0.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as s, createBlock as n, mergeProps as a, unref as f } from "vue";
|
|
2
2
|
import { I as l } from "./field-base-5547436d.js";
|
|
3
|
-
import { _ as c } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-
|
|
3
|
+
import { _ as c } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8764a711.js";
|
|
4
4
|
import { w as d } from "./expression-490b4335.js";
|
|
5
5
|
import { b as _ } from "./share-field-27676b90.js";
|
|
6
6
|
import "./widget-base-4c2d6265.js";
|
|
@@ -19,7 +19,7 @@ import "./_plugin-vue_export-helper-dad06003.js";
|
|
|
19
19
|
import "./fieldobj-a9f1231d.js";
|
|
20
20
|
import "./slot-f8eef9e1.js";
|
|
21
21
|
import "./content-wrapper.vue_vue_type_script_setup_true_lang-2b440b0c.js";
|
|
22
|
-
import "./drag-wrapper-
|
|
22
|
+
import "./drag-wrapper-a6c1a7d6.js";
|
|
23
23
|
import "./source-map-b04aec4a.js";
|
|
24
24
|
import "./esprima-e8d15055.js";
|
|
25
25
|
import "./multirow-35c0f8c0.js";
|
|
@@ -3,7 +3,7 @@ import { e as E, t as J, f as q } from "./enum-type-4a798b1a.js";
|
|
|
3
3
|
import { I as G } from "./widget-base-4c2d6265.js";
|
|
4
4
|
import { b as H } from "./share-field-27676b90.js";
|
|
5
5
|
import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-efde8c90.js";
|
|
6
|
-
import { D as v } from "./drag-wrapper-
|
|
6
|
+
import { D as v } from "./drag-wrapper-a6c1a7d6.js";
|
|
7
7
|
import { i as Q, a as U } from "./slot-f8eef9e1.js";
|
|
8
8
|
import { c as X } from "./multirow-35c0f8c0.js";
|
|
9
9
|
import { g as Y } from "./expression-490b4335.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as y, watch as L, defineComponent as h, resolveDirective as j, openBlock as b, createBlock as D, mergeProps as W, unref as s, withCtx as O, withDirectives as P, createElementBlock as x, normalizeClass as z, createVNode as R, createCommentVNode as S } from "vue";
|
|
2
2
|
import { I as k } from "./widget-base-4c2d6265.js";
|
|
3
|
-
import { D as A } from "./drag-wrapper-
|
|
3
|
+
import { D as A } from "./drag-wrapper-a6c1a7d6.js";
|
|
4
4
|
import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-efde8c90.js";
|
|
5
5
|
import { w as F } from "./expression-490b4335.js";
|
|
6
6
|
import { W as v } from "./enum-type-bb2bfafa.js";
|
package/form-widget-07c36b9c.js
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { ref as te, reactive as q, onMounted as de, nextTick as Le, defineComponent as re, resolveComponent as We, resolveDirective as Ne, openBlock as oe, createBlock as ae, mergeProps as z, unref as p, withCtx as ne, withDirectives as Oe, toHandlers as je, createVNode as xe } from "vue";
|
|
2
|
-
import { I as Ee } from "./widget-base-4c2d6265.js";
|
|
3
|
-
import { D as Se } from "./drag-wrapper-7bf27317.js";
|
|
4
|
-
import { _ as ye } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-efde8c90.js";
|
|
5
|
-
import { w as K, b as le, g as M, f as L, k as Me } from "./expression-490b4335.js";
|
|
6
|
-
import { u as ke } from "./icon-a0e0cdb0.js";
|
|
7
|
-
import { u as Ae, a as Pe } from "./multirow-35c0f8c0.js";
|
|
8
|
-
import { b as Re, M as $e, e as Ie, d as ie, N as Be, z as He, g as Te } from "./enum-type-4a798b1a.js";
|
|
9
|
-
import { $ as qe, B as ze } from "./baseImp-26b9c04a.js";
|
|
10
|
-
import { f as Ke } from "./index-a7d766e7.js";
|
|
11
|
-
import { b as Ue, a as Ge, u as Je } from "./share-field-27676b90.js";
|
|
12
|
-
import { W as Qe } from "./enum-type-bb2bfafa.js";
|
|
13
|
-
import { F as Xe } from "./slot-f8eef9e1.js";
|
|
14
|
-
import { _ as Ye } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
-
function Ze(r) {
|
|
16
|
-
const O = r.widget, f = r.designer, C = f == null ? void 0 : f.pageConfig, b = r == null ? void 0 : r.widgetList, j = te({}), k = {}, { fieldModel: A, fieldName: P, fieldEditor: u, attrs: x, events: h, hasFieldOptions: E, exposed: F, fieldObj: S, watchOption: g, propResultOpt: w, extendAttrs: D } = Ue(r), { off$: W, on$: V, emit$: y, broadcast: N } = Pe();
|
|
17
|
-
var { instance: U } = ke();
|
|
18
|
-
const { setAllRefList: se } = Ge(j.value), G = { designState: r == null ? void 0 : r.designState, pageConfig: C, globalConfig: w == null ? void 0 : w.globalConfig }, { formModel: R, setData: ce, getData: $, clearData: J } = Ae(b, { ...G }), { handleFunc: I } = Je({ options: C }, G), B = q({}), fe = () => {
|
|
19
|
-
W(L.fieldChange), V(L.fieldChange, (e) => {
|
|
20
|
-
he(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), F == null || F.setValue(R), pe(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue);
|
|
21
|
-
});
|
|
22
|
-
}, ue = () => {
|
|
23
|
-
W(L.fieldValidation), V(L.fieldValidation, (e) => {
|
|
24
|
-
var t;
|
|
25
|
-
(t = u.value) == null || t.validateField(e == null ? void 0 : e.propName);
|
|
26
|
-
});
|
|
27
|
-
}, me = () => {
|
|
28
|
-
W(L.fieldRuleChange), V(L.fieldRuleChange, (e) => {
|
|
29
|
-
var o;
|
|
30
|
-
var t = (o = e == null ? void 0 : e.rules) == null ? void 0 : o.map((a) => ({
|
|
31
|
-
required: a.required,
|
|
32
|
-
message: a.message,
|
|
33
|
-
trigger: a.trigger,
|
|
34
|
-
validator: a.validator
|
|
35
|
-
}));
|
|
36
|
-
Object.assign(B, { [e == null ? void 0 : e.fieldName]: t }), x.value.rules = B;
|
|
37
|
-
});
|
|
38
|
-
}, H = te(!1), T = q({});
|
|
39
|
-
let Q = q({});
|
|
40
|
-
const ve = (e) => {
|
|
41
|
-
ie(Q, e);
|
|
42
|
-
}, pe = (e, t, o) => {
|
|
43
|
-
H.value = !0, e && ie(T, { [e]: { oldValue: o, newValue: t } });
|
|
44
|
-
}, ge = () => {
|
|
45
|
-
H.value = !1, $e(T);
|
|
46
|
-
}, he = (e, t, o) => {
|
|
47
|
-
I(h.value.formDataChange, { field: { fieldName: e, newValue: t, oldValue: o }, formModel: R });
|
|
48
|
-
}, _e = () => {
|
|
49
|
-
I(h.value.formCreated);
|
|
50
|
-
}, Ce = () => {
|
|
51
|
-
I(h.value.formMounted);
|
|
52
|
-
}, be = () => {
|
|
53
|
-
me(), fe(), ue(), _e();
|
|
54
|
-
}, Fe = (e) => {
|
|
55
|
-
var t;
|
|
56
|
-
(t = u.value) == null || t.clearValidate(e);
|
|
57
|
-
}, we = () => {
|
|
58
|
-
se(Qe.resetField), Le(() => {
|
|
59
|
-
Fe();
|
|
60
|
-
});
|
|
61
|
-
}, X = (e, t) => {
|
|
62
|
-
let o = [];
|
|
63
|
-
for (let s in e) {
|
|
64
|
-
var a = e[s], d = a == null ? void 0 : a.filter((i) => (i == null ? void 0 : i.force) === t);
|
|
65
|
-
d == null || d.forEach((i) => {
|
|
66
|
-
var n;
|
|
67
|
-
const c = (n = i == null ? void 0 : i.rule) == null ? void 0 : n.label;
|
|
68
|
-
i.message && o.push(Me(c ? "【" + c + "】" : "", i.message, ":"));
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
return Be(o);
|
|
72
|
-
}, De = (e, t) => {
|
|
73
|
-
var o = {};
|
|
74
|
-
return Ke(t, (a) => {
|
|
75
|
-
var d = ze.getName(a), s = He(e, d);
|
|
76
|
-
return s && (o[d] = e[d]), s;
|
|
77
|
-
}, !1), o;
|
|
78
|
-
}, Ve = (e = !0) => {
|
|
79
|
-
var d, s, i;
|
|
80
|
-
let t = $(), o = function() {
|
|
81
|
-
}, a = new Promise(function(c, n) {
|
|
82
|
-
o = function(m, l) {
|
|
83
|
-
(l ? n : c)({ data: m, isSuccess: !l, message: l });
|
|
84
|
-
};
|
|
85
|
-
});
|
|
86
|
-
return !((d = u.value) != null && d.validate) || !e ? (o(t), a) : ((i = (s = u.value) == null ? void 0 : s.validate) == null || i.call(s, (c, n) => {
|
|
87
|
-
if (c)
|
|
88
|
-
o(t);
|
|
89
|
-
else {
|
|
90
|
-
var m = X(n, !0);
|
|
91
|
-
if (m && m.length > 0) {
|
|
92
|
-
o(t, m);
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
var l = X(n, !1);
|
|
96
|
-
if (l && l.length > 0) {
|
|
97
|
-
l.push(Ie.i18nt("designer.hint.continue")), qe.multiple(l).then((v) => {
|
|
98
|
-
o(t);
|
|
99
|
-
});
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}), a);
|
|
104
|
-
}, Y = (e, t = !0) => {
|
|
105
|
-
if (O) {
|
|
106
|
-
var o = De(e, [O]);
|
|
107
|
-
ce(o, t), N(K.ContainerWidget, le.setFormData, e, U), N(K.FieldWidget, le.setFormData, e, U);
|
|
108
|
-
}
|
|
109
|
-
}, Z = (e) => new Promise((t, o) => {
|
|
110
|
-
const a = (n, m) => {
|
|
111
|
-
var v, _, ee;
|
|
112
|
-
let l = (v = D.value) != null && v.formDataLoaded ? (ee = (_ = D.value) == null ? void 0 : _.formDataLoaded) == null ? void 0 : ee.call(_, $(), n) : n;
|
|
113
|
-
Te(l) ? Y(l, !m) : l = {}, ve(l), t(l);
|
|
114
|
-
}, d = () => {
|
|
115
|
-
g(e, M.newDataSource, void 0, (n, m) => {
|
|
116
|
-
a(n, !0);
|
|
117
|
-
});
|
|
118
|
-
}, s = () => {
|
|
119
|
-
g(e, M.editDataSource, void 0, (n, m) => {
|
|
120
|
-
var v, _;
|
|
121
|
-
if (((_ = (v = D.value) == null ? void 0 : v.needFormAdd) == null ? void 0 : _.call(v, n)) && c) {
|
|
122
|
-
d();
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
a(n, !1);
|
|
126
|
-
});
|
|
127
|
-
}, i = E(M.editDataSource), c = E(M.newDataSource);
|
|
128
|
-
i ? s() : c && d();
|
|
129
|
-
});
|
|
130
|
-
return be(), de(() => {
|
|
131
|
-
Re(), Ce();
|
|
132
|
-
}), {
|
|
133
|
-
widgetRefList: j,
|
|
134
|
-
allWidgetRefList: k,
|
|
135
|
-
fieldEditor: u,
|
|
136
|
-
formModel: R,
|
|
137
|
-
pageConfig: C,
|
|
138
|
-
widgetList: b,
|
|
139
|
-
fieldModel: A,
|
|
140
|
-
fieldName: P,
|
|
141
|
-
attrs: x,
|
|
142
|
-
extendAttrs: D,
|
|
143
|
-
events: h,
|
|
144
|
-
rules: B,
|
|
145
|
-
loadData: Z,
|
|
146
|
-
clearData: J,
|
|
147
|
-
exposed: {
|
|
148
|
-
...F,
|
|
149
|
-
setValue: Y,
|
|
150
|
-
getValue: Ve,
|
|
151
|
-
resetField: we,
|
|
152
|
-
clearData: J,
|
|
153
|
-
loadData: Z,
|
|
154
|
-
getData: $,
|
|
155
|
-
clearChangeRecord: ge,
|
|
156
|
-
formChangeCache: T,
|
|
157
|
-
formBeforeChangeCache: Q,
|
|
158
|
-
formChangeFlag: H,
|
|
159
|
-
emit$: y
|
|
160
|
-
},
|
|
161
|
-
fieldObj: S
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
const et = re({ componentName: K.ContainerWidget }), tt = /* @__PURE__ */ re({
|
|
165
|
-
...et,
|
|
166
|
-
__name: "form-widget",
|
|
167
|
-
props: { ...Ee },
|
|
168
|
-
setup(r, { expose: O }) {
|
|
169
|
-
var S;
|
|
170
|
-
const f = r, { exposed: C, formModel: b, fieldEditor: j, attrs: k, events: A, widgetRefList: P, extendAttrs: u, fieldName: x, fieldObj: h, loadData: E } = Ze({ ...f, widgetList: (S = f == null ? void 0 : f.widget) == null ? void 0 : S.widgetList }), F = x.value;
|
|
171
|
-
return Xe.globalProvide({
|
|
172
|
-
globalFormName: F,
|
|
173
|
-
globalDataModel: b
|
|
174
|
-
}), de(() => {
|
|
175
|
-
var g;
|
|
176
|
-
(g = u.value) != null && g.loadDataWhenInit && !f.designState && E(!0).then((w) => {
|
|
177
|
-
}).catch((w) => {
|
|
178
|
-
}).finally(() => {
|
|
179
|
-
C.clearChangeRecord();
|
|
180
|
-
});
|
|
181
|
-
}), O({ ...C }), (g, w) => {
|
|
182
|
-
const D = We("el-form"), W = Ne("loading");
|
|
183
|
-
return oe(), ae(ye, z(g.$props, {
|
|
184
|
-
"prop-options": { fieldObj: p(h) }
|
|
185
|
-
}), {
|
|
186
|
-
default: ne(({ data: V }) => {
|
|
187
|
-
var y, N;
|
|
188
|
-
return [
|
|
189
|
-
Oe((oe(), ae(D, z({
|
|
190
|
-
ref_key: "fieldEditor",
|
|
191
|
-
ref: j,
|
|
192
|
-
model: p(b)
|
|
193
|
-
}, p(k), je(p(A)), {
|
|
194
|
-
class: V.injectClass,
|
|
195
|
-
key: (y = p(h)) == null ? void 0 : y.fieldKey,
|
|
196
|
-
"element-loading-text": p(u).loadingText
|
|
197
|
-
}), {
|
|
198
|
-
default: ne(() => [
|
|
199
|
-
xe(Se, z(g.$props, {
|
|
200
|
-
dragClass: "formDrag",
|
|
201
|
-
model: p(b),
|
|
202
|
-
provideModel: !0,
|
|
203
|
-
"component-class": V.componentWrapperClass,
|
|
204
|
-
refList: p(P)
|
|
205
|
-
}), null, 16, ["model", "component-class", "refList"])
|
|
206
|
-
]),
|
|
207
|
-
_: 2
|
|
208
|
-
}, 1040, ["model", "class", "element-loading-text"])), [
|
|
209
|
-
[W, (N = p(u)) == null ? void 0 : N.showLoading]
|
|
210
|
-
])
|
|
211
|
-
];
|
|
212
|
-
}),
|
|
213
|
-
_: 1
|
|
214
|
-
}, 16, ["prop-options"]);
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
const ot = /* @__PURE__ */ Ye(tt, [["__scopeId", "data-v-b0372f7b"]]), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
219
|
-
__proto__: null,
|
|
220
|
-
default: ot
|
|
221
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
222
|
-
export {
|
|
223
|
-
ht as _
|
|
224
|
-
};
|
package/sfcview-d775814d.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { D as O, B as a } from "./baseImp-26b9c04a.js";
|
|
2
|
-
import { c, d as k } from "./enum-type-bb2bfafa.js";
|
|
3
|
-
import { f as x, n as C, o as E } from "./index-a7d766e7.js";
|
|
4
|
-
import { l as T } from "./expression-490b4335.js";
|
|
5
|
-
import "./enum-type-4a798b1a.js";
|
|
6
|
-
import "vue";
|
|
7
|
-
import "./icon-a0e0cdb0.js";
|
|
8
|
-
import "./dialog-c4706078.js";
|
|
9
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
10
|
-
import "./uuid-4999945f.js";
|
|
11
|
-
import "element-plus";
|
|
12
|
-
import "./source-map-b04aec4a.js";
|
|
13
|
-
import "./esprima-e8d15055.js";
|
|
14
|
-
const J = (f, i) => {
|
|
15
|
-
const y = (o, r) => {
|
|
16
|
-
const n = [], m = (e) => !!e.dynamicItemFlag || e.category === k.container && b(e);
|
|
17
|
-
C(o, n, !1, m);
|
|
18
|
-
var l = n == null ? void 0 : n.filter((e) => e == null ? void 0 : e.formItemFlag);
|
|
19
|
-
return l == null || l.forEach((e) => {
|
|
20
|
-
if (!(e != null && e.dynamicItemFlag))
|
|
21
|
-
r.push({ widget: h(e) });
|
|
22
|
-
else {
|
|
23
|
-
const p = [];
|
|
24
|
-
E(e, p, !1, m);
|
|
25
|
-
const u = [];
|
|
26
|
-
y(p, u), r.push({ widget: h(e), children: u });
|
|
27
|
-
}
|
|
28
|
-
}), r;
|
|
29
|
-
}, b = (o) => a.getOptions(o, "hidden"), s = (o) => a.getOptions(o, "name"), F = () => {
|
|
30
|
-
const o = [];
|
|
31
|
-
var r = i ? x(f, (n) => s(n) === (i == null ? void 0 : i.fName) || (n == null ? void 0 : n.type) == (i == null ? void 0 : i.wdt), !1) : f;
|
|
32
|
-
return y(r, o);
|
|
33
|
-
}, h = (o) => {
|
|
34
|
-
var d;
|
|
35
|
-
const r = {}, n = (t, g) => {
|
|
36
|
-
r[t] = g;
|
|
37
|
-
}, m = (t) => {
|
|
38
|
-
const g = a.getOptions(t, "content"), _ = a.getOptions(t, "label"), I = a.getOptions(t, "name");
|
|
39
|
-
return _ || g || I;
|
|
40
|
-
}, l = (t) => ({ label: m(t), key: s(t), type: "text" }), e = (t) => {
|
|
41
|
-
const _ = a.getOptions(t, "textName") || `${s(t)}${T.optionText}`;
|
|
42
|
-
return { label: m(t), key: `${_}`, type: "option" };
|
|
43
|
-
}, p = (t) => ({ label: m(t), key: s(t), type: "multirow" });
|
|
44
|
-
return (() => {
|
|
45
|
-
O(c).forEach((t) => {
|
|
46
|
-
n(t.label, l);
|
|
47
|
-
}), [
|
|
48
|
-
c.select,
|
|
49
|
-
c.radio,
|
|
50
|
-
c.checkbox,
|
|
51
|
-
c.cascader,
|
|
52
|
-
c.autoComplete
|
|
53
|
-
].forEach((t) => {
|
|
54
|
-
n(t, e);
|
|
55
|
-
}), n(c.multirow, p);
|
|
56
|
-
})(), (d = r[o.type]) == null ? void 0 : d.call(r, o);
|
|
57
|
-
};
|
|
58
|
-
return {
|
|
59
|
-
filterFieldItems: F
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
J as useGenFieldItemList
|
|
64
|
-
};
|