hlrender 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{affix-widget-f4d6fd2a.js → affix-widget-80ba06f0.js} +3 -3
- package/{alert-widget-00c14a4e.js → alert-widget-7fe68df9.js} +3 -3
- package/{anchor-widget-9d405b66.js → anchor-widget-deee0b93.js} +1 -1
- package/{auto-complete-widget-263ced95.js → auto-complete-widget-c99fa78a.js} +2 -2
- package/{avatar-widget-a5d34c72.js → avatar-widget-24dcea3e.js} +3 -3
- package/{backtop-widget-9dd13047.js → backtop-widget-b15a43e8.js} +3 -3
- package/{badge-widget-ea6022e6.js → badge-widget-dacdfdc4.js} +3 -3
- package/{breadcrumb-widget-c2f49e29.js → breadcrumb-widget-0222c490.js} +1 -1
- package/{button-widget-14d0c228.js → button-widget-b6b94d0a.js} +3 -3
- package/{cache-widget-aace515c.js → cache-widget-4b5528dd.js} +1 -1
- package/{card-widget-bef4728b.js → card-widget-40ca1bdf.js} +2 -2
- package/{carousel-widget-f2b4f7cb.js → carousel-widget-f549a5e9.js} +1 -1
- package/{cascader-widget-2441bacf.js → cascader-widget-9f49cb23.js} +1 -1
- package/{chart-widget-799c3fa4.js → chart-widget-d1f8c1d6.js} +1 -1
- package/{checkbox-widget-e705b3b9.js → checkbox-widget-0f7da446.js} +1 -1
- package/{collapse-widget-3874e052.js → collapse-widget-98385470.js} +1 -1
- package/{color-picker-widget-bac54afe.js → color-picker-widget-c4de7fbb.js} +1 -1
- package/{cont-cell-widget-e3cb248e.js → cont-cell-widget-483d886e.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-c916a733.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-38a8f244.js} +2 -2
- package/{cont-widget-0ad193a6.js → cont-widget-b12fb226.js} +2 -2
- package/{date-picker-range-widget-50982d1f.js → date-picker-range-widget-06538b47.js} +1 -1
- package/{date-picker-widget-f05b5093.js → date-picker-widget-b45fae2f.js} +1 -1
- package/{default-slot-widget-13a89bf1.js → default-slot-widget-f578b1ce.js} +2 -2
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-d09dedb4.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-102173ae.js} +1 -1
- package/{descriptions-widget-3caacd00.js → descriptions-widget-26dc5fa7.js} +2 -2
- package/{dialog-widget-3047a1e4.js → dialog-widget-030f60a4.js} +3 -3
- package/{divider-widget-7ac44b08.js → divider-widget-2e46d844.js} +3 -3
- package/{drag-wrapper-aba3d54b.js → drag-wrapper-486fd2d3.js} +1 -1
- package/{drawer-widget-3e674b19.js → drawer-widget-09f1c7e5.js} +3 -3
- package/{dropdown-widget-3bca86f8.js → dropdown-widget-68608cad.js} +2 -2
- package/{empty-widget-48444a5d.js → empty-widget-a18e1536.js} +3 -3
- package/{feedback-widget-193decf5.js → feedback-widget-6aee57ef.js} +3 -3
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-6bf4f3dc.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-2918b2de.js} +2 -2
- package/{file-upload-widget-a4ee281d.js → file-upload-widget-7452efb2.js} +2 -2
- package/form-widget-b1928b3e.js +227 -0
- package/{grid-col-widget-4dcefe9c.js → grid-col-widget-682d378b.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-d3c88a4c.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4344a1dc.js} +2 -2
- package/{grid-widget-dff506c0.js → grid-widget-71e69518.js} +2 -2
- package/{html-text-widget-3a970bb7.js → html-text-widget-a082fae9.js} +1 -1
- package/{iframe-widget-409f6000.js → iframe-widget-6b57ef9f.js} +1 -1
- package/{image-widget-d23e19d6.js → image-widget-fa6a383c.js} +1 -1
- package/{input-number-widget-f447b9e0.js → input-number-widget-8d09fea2.js} +1 -1
- package/{input-widget-04a9f3bf.js → input-widget-89036d51.js} +2 -2
- package/{link-widget-4fabb14d.js → link-widget-c6f81921.js} +3 -3
- package/{ltable-col-widget-b1e7bfdb.js → ltable-col-widget-bfc8ea7f.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-c73aac05.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-3ba1c5e7.js} +2 -2
- package/{ltable-widget-50afcbf0.js → ltable-widget-24160dec.js} +2 -2
- package/{menu-widget-995ab17d.js → menu-widget-4cfd4f11.js} +1 -1
- package/{model-widget-ec48c397.js → model-widget-adad1ddc.js} +1 -1
- package/{multirow-widget-b3544ec3.js → multirow-widget-b9c939d7.js} +2 -2
- package/package.json +1 -1
- package/{pagination-widget-0333511c.js → pagination-widget-e2e224ff.js} +1 -1
- package/{picture-upload-widget-4dd6a7ee.js → picture-upload-widget-505834c7.js} +2 -2
- package/{progress-widget-c8c6175e.js → progress-widget-225c8a72.js} +2 -2
- package/{radio-widget-61e6d27f.js → radio-widget-a5cbfc89.js} +1 -1
- package/{range-widget-7c92f7ea.js → range-widget-356977a4.js} +2 -2
- package/{rate-widget-54c3ecd8.js → rate-widget-808d54be.js} +1 -1
- package/render.es.js +16 -16
- package/render.style.css +1 -1
- package/render.umd.js +56 -56
- package/{result-widget-3e33f7c9.js → result-widget-b5457124.js} +2 -2
- package/{rich-editor-widget-ca1de1cc.js → rich-editor-widget-f12e857a.js} +1 -1
- package/{router-widget-1a30406d.js → router-widget-4ba09d1e.js} +1 -1
- package/{select-widget-becfd584.js → select-widget-2280d767.js} +63 -63
- package/{share-field-d6c200e2.js → share-field-f03ca4cb.js} +99 -99
- package/{share-file-0b65fc89.js → share-file-49fb3d46.js} +1 -1
- package/{slider-widget-cae6ae7e.js → slider-widget-6cb977bc.js} +1 -1
- package/{static-text-widget-598579fe.js → static-text-widget-528b6f0c.js} +1 -1
- package/{steps-widget-89d19dee.js → steps-widget-92249ec8.js} +1 -1
- package/{switch-widget-b8e8738f.js → switch-widget-7aaf3b9e.js} +1 -1
- package/{tab-pane-widget-e330e6b0.js → tab-pane-widget-7c065830.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-42a16113.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-5d3b731d.js} +2 -2
- package/{table-col-widget-603ab0b2.js → table-col-widget-a0a22239.js} +2 -2
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-6131e355.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-a9ad8ce5.js} +1 -1
- package/{table-widget-6ae22ef2.js → table-widget-649c299c.js} +3 -3
- package/{tabs-widget-c7c5d4c8.js → tabs-widget-84159362.js} +2 -2
- package/{tag-widget-1d3983e7.js → tag-widget-150fcd43.js} +3 -3
- package/{text-widget-51be3b37.js → text-widget-53efaa71.js} +3 -3
- package/{textarea-widget-b58979bb.js → textarea-widget-978b1f38.js} +1 -1
- package/{time-picker-range-widget-3be19978.js → time-picker-range-widget-bc732c4f.js} +1 -1
- package/{time-picker-widget-30525aa9.js → time-picker-widget-2eec3aae.js} +1 -1
- package/{time-select-widget-9ed30f1d.js → time-select-widget-f000baaf.js} +1 -1
- package/{tmpl-widget-dcfb7905.js → tmpl-widget-87a94499.js} +2 -2
- package/{tree-select-widget-b03bcc18.js → tree-select-widget-1088cf6a.js} +1 -1
- package/{tree-widget-f08c7939.js → tree-widget-7832da6c.js} +1 -1
- package/{wrapper-widget-93de398f.js → wrapper-widget-7a2038a5.js} +2 -2
- package/form-widget-20bbdbe3.js +0 -228
|
@@ -1,8 +1,8 @@
|
|
|
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-102173ae.js";
|
|
4
4
|
import { w as d } from "./expression-d0d5b99e.js";
|
|
5
|
-
import { b as _ } from "./share-field-
|
|
5
|
+
import { b as _ } from "./share-field-f03ca4cb.js";
|
|
6
6
|
import "./widget-base-4c2d6265.js";
|
|
7
7
|
import "./enum-type-6c2444c7.js";
|
|
8
8
|
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e1bfd7e2.js";
|
|
@@ -19,7 +19,7 @@ import "./_plugin-vue_export-helper-dad06003.js";
|
|
|
19
19
|
import "./fieldobj-3d0327a8.js";
|
|
20
20
|
import "./slot-179831f9.js";
|
|
21
21
|
import "./content-wrapper.vue_vue_type_script_setup_true_lang-82696e29.js";
|
|
22
|
-
import "./drag-wrapper-
|
|
22
|
+
import "./drag-wrapper-486fd2d3.js";
|
|
23
23
|
import "./multirow-649f6cf5.js";
|
|
24
24
|
const u = o({ componentName: d.FieldWidget }), G = /* @__PURE__ */ o({
|
|
25
25
|
...u,
|
|
@@ -1,8 +1,8 @@
|
|
|
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-102173ae.js";
|
|
4
4
|
import { w as d } from "./expression-d0d5b99e.js";
|
|
5
|
-
import { b as _ } from "./share-field-
|
|
5
|
+
import { b as _ } from "./share-field-f03ca4cb.js";
|
|
6
6
|
import "./widget-base-4c2d6265.js";
|
|
7
7
|
import "./enum-type-6c2444c7.js";
|
|
8
8
|
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e1bfd7e2.js";
|
|
@@ -19,7 +19,7 @@ import "./_plugin-vue_export-helper-dad06003.js";
|
|
|
19
19
|
import "./fieldobj-3d0327a8.js";
|
|
20
20
|
import "./slot-179831f9.js";
|
|
21
21
|
import "./content-wrapper.vue_vue_type_script_setup_true_lang-82696e29.js";
|
|
22
|
-
import "./drag-wrapper-
|
|
22
|
+
import "./drag-wrapper-486fd2d3.js";
|
|
23
23
|
import "./multirow-649f6cf5.js";
|
|
24
24
|
const u = o({ componentName: d.FieldWidget }), G = /* @__PURE__ */ o({
|
|
25
25
|
...u,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as w, openBlock as p, createBlock as i, mergeProps as m, unref as e, withCtx as C, isRef as F, toHandlers as O } from "vue";
|
|
2
|
-
import { b as V } from "./share-field-
|
|
2
|
+
import { b as V } from "./share-field-f03ca4cb.js";
|
|
3
3
|
import { I as b } from "./field-base-5547436d.js";
|
|
4
4
|
import v from "./form-item-wrapper-dbfb7a11.js";
|
|
5
5
|
import { w as I } from "./expression-d0d5b99e.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as n, resolveComponent as F, openBlock as l, createBlock as p, mergeProps as m, unref as e, withCtx as b, isRef as w, toHandlers as C } from "vue";
|
|
2
2
|
import { a as s } from "./enum-type-6c2444c7.js";
|
|
3
3
|
import { I as O } from "./field-base-5547436d.js";
|
|
4
|
-
import { b as V } from "./share-field-
|
|
4
|
+
import { b as V } from "./share-field-f03ca4cb.js";
|
|
5
5
|
import v from "./form-item-wrapper-dbfb7a11.js";
|
|
6
6
|
import { w as x } from "./expression-d0d5b99e.js";
|
|
7
7
|
import "./widget-base-4c2d6265.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, resolveComponent as w, openBlock as p, createBlock as l, mergeProps as m, unref as e, withCtx as C, isRef as F, toHandlers as O } from "vue";
|
|
2
2
|
import { a as V } from "./enum-type-6c2444c7.js";
|
|
3
|
-
import { b } from "./share-field-
|
|
3
|
+
import { b } from "./share-field-f03ca4cb.js";
|
|
4
4
|
import { I as v } from "./field-base-5547436d.js";
|
|
5
5
|
import x from "./form-item-wrapper-dbfb7a11.js";
|
|
6
6
|
import { w as z } from "./expression-d0d5b99e.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, resolveComponent as w, openBlock as p, createBlock as l, mergeProps as m, unref as e, withCtx as C, isRef as F, toHandlers as O } from "vue";
|
|
2
2
|
import { a as V } from "./enum-type-6c2444c7.js";
|
|
3
|
-
import { b } from "./share-field-
|
|
3
|
+
import { b } from "./share-field-f03ca4cb.js";
|
|
4
4
|
import { I as v } from "./field-base-5547436d.js";
|
|
5
5
|
import x from "./form-item-wrapper-dbfb7a11.js";
|
|
6
6
|
import { w as z } from "./expression-d0d5b99e.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as F, computed as I, ref as j, onMounted as L, resolveDirective as M, openBlock as a, createBlock as d, mergeProps as u, unref as o, withCtx as P, createElementBlock as n, Fragment as c, withDirectives as R, renderList as T, createTextVNode as z, toDisplayString as A } from "vue";
|
|
2
2
|
import { a as E, f as J } from "./enum-type-6c2444c7.js";
|
|
3
3
|
import { I as q } from "./widget-base-4c2d6265.js";
|
|
4
|
-
import { b as G } from "./share-field-
|
|
4
|
+
import { b as G } from "./share-field-f03ca4cb.js";
|
|
5
5
|
import { _ as H } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e1bfd7e2.js";
|
|
6
|
-
import { D as v } from "./drag-wrapper-
|
|
6
|
+
import { D as v } from "./drag-wrapper-486fd2d3.js";
|
|
7
7
|
import { i as K, a as Q } from "./slot-179831f9.js";
|
|
8
8
|
import { c as U } from "./multirow-649f6cf5.js";
|
|
9
9
|
import { g as X } from "./expression-d0d5b99e.js";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as T, computed as s, resolveComponent as ee, openBlock
|
|
|
2
2
|
import { s as f } from "./enum-type-6c2444c7.js";
|
|
3
3
|
import { t as D } from "./uuid-85303a38.js";
|
|
4
4
|
import { I as te } from "./field-base-5547436d.js";
|
|
5
|
-
import { b as oe } from "./share-field-
|
|
5
|
+
import { b as oe } from "./share-field-f03ca4cb.js";
|
|
6
6
|
import re from "./form-item-wrapper-dbfb7a11.js";
|
|
7
7
|
import { g as y, w as le } from "./expression-d0d5b99e.js";
|
|
8
8
|
import "./widget-base-4c2d6265.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as s, resolveComponent as $, openBlock as m, createBlock as f, mergeProps as x, unref as t, withCtx as K, isRef as A, toHandlers as H, createSlots as M, resolveDynamicComponent as P } from "vue";
|
|
2
2
|
import { I as R } from "./field-base-5547436d.js";
|
|
3
|
-
import { b as U } from "./share-field-
|
|
3
|
+
import { b as U } from "./share-field-f03ca4cb.js";
|
|
4
4
|
import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e1bfd7e2.js";
|
|
5
5
|
import { g as n, w as G } from "./expression-d0d5b99e.js";
|
|
6
6
|
import { s as a } from "./enum-type-6c2444c7.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as h, onMounted as j, watch as v, defineComponent as W, openBlock as b, createBlock as L, mergeProps as C, unref as n, withCtx as O, createElementBlock as R, normalizeClass as P, createVNode as q } from "vue";
|
|
2
2
|
import { I as D } from "./widget-base-4c2d6265.js";
|
|
3
|
-
import { D as y } from "./drag-wrapper-
|
|
3
|
+
import { D as y } from "./drag-wrapper-486fd2d3.js";
|
|
4
4
|
import { _ as z } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e1bfd7e2.js";
|
|
5
5
|
import { w as B } from "./expression-d0d5b99e.js";
|
|
6
6
|
import { W as g } from "./enum-type-f19f3faf.js";
|
|
7
|
-
import { b as F, a as S } from "./share-field-
|
|
7
|
+
import { b as F, a as S } from "./share-field-f03ca4cb.js";
|
|
8
8
|
import { c as $ } from "./slot-179831f9.js";
|
|
9
9
|
function E(a) {
|
|
10
10
|
const d = h({}), { componentWrapperClass: l, customClass: c } = $({ widget: a.widget }), { exposed: s, attrs: p, fieldKey: f, fieldObj: m } = F(a), { setAllRefList: o } = S(d.value), r = (e = !1) => {
|
package/form-widget-20bbdbe3.js
DELETED
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { ref as z, reactive as Z, onMounted as le, nextTick as De, defineComponent as ie, resolveComponent as be, resolveDirective as Ve, openBlock as ee, createBlock as te, mergeProps as q, unref as p, withCtx as oe, createTextVNode as We, toDisplayString as Le, withDirectives as je, toHandlers as Ne, createVNode as Ee } from "vue";
|
|
2
|
-
import { I as Oe } from "./widget-base-4c2d6265.js";
|
|
3
|
-
import { D as Pe } from "./drag-wrapper-aba3d54b.js";
|
|
4
|
-
import { _ as Se } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e1bfd7e2.js";
|
|
5
|
-
import { w as K, b as ae, g as x, f as b, j as ye } from "./expression-d0d5b99e.js";
|
|
6
|
-
import { u as xe } from "./icon-e9532b43.js";
|
|
7
|
-
import { u as Ae, a as Me } from "./multirow-649f6cf5.js";
|
|
8
|
-
import { i as Re, D as $e, a as ke, d as Ie, E as Be, w as He } from "./enum-type-6c2444c7.js";
|
|
9
|
-
import { $ as Te, P as ne, B as qe } from "./baseImp-f65fae6f.js";
|
|
10
|
-
import { f as ze } from "./index-27bcb81c.js";
|
|
11
|
-
import { b as Ke, a as Ue, u as Ge } from "./share-field-d6c200e2.js";
|
|
12
|
-
import { W as Je } from "./enum-type-f19f3faf.js";
|
|
13
|
-
import { F as Qe } from "./slot-179831f9.js";
|
|
14
|
-
import { _ as Xe } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
-
function Ye(s) {
|
|
16
|
-
const E = s.widget, m = s.designer, F = m == null ? void 0 : m.pageConfig, g = s == null ? void 0 : s.widgetList, O = z({}), A = {}, { fieldModel: M, fieldName: R, fieldEditor: _, attrs: P, events: h, getFieldOptions: S, exposed: w, fieldObj: D, watchOption: V, propResultOpt: v, extendAttrs: C } = Ke(s), { off$: W, on$: L, emit$: y, broadcast: j } = Me();
|
|
17
|
-
var { instance: U } = xe();
|
|
18
|
-
const { setAllRefList: de } = Ue(O.value), G = { designState: s == null ? void 0 : s.designState, pageConfig: F, globalConfig: v == null ? void 0 : v.globalConfig }, { formModel: $, setData: re, getData: k, clearData: J } = Ae(g, { ...G }), { handleFunc: I } = Ge({ options: F }, G), B = Z({}), se = () => {
|
|
19
|
-
W(b.fieldChange), L(b.fieldChange, (e) => {
|
|
20
|
-
ve(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), w == null || w.setValue($), ue(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue);
|
|
21
|
-
});
|
|
22
|
-
}, ce = () => {
|
|
23
|
-
W(b.fieldValidation), L(b.fieldValidation, (e) => {
|
|
24
|
-
var t;
|
|
25
|
-
(t = _.value) == null || t.validateField(e == null ? void 0 : e.propName);
|
|
26
|
-
});
|
|
27
|
-
}, fe = () => {
|
|
28
|
-
W(b.fieldRuleChange), L(b.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 }), P.value.rules = B;
|
|
37
|
-
});
|
|
38
|
-
}, H = z(!1), T = Z({}), ue = (e, t, o) => {
|
|
39
|
-
H.value = !0, e && Ie(T, { [e]: { oldValue: o, newValue: t } });
|
|
40
|
-
}, me = () => {
|
|
41
|
-
H.value = !1, $e(T);
|
|
42
|
-
}, ve = (e, t, o) => {
|
|
43
|
-
I(h.value.formDataChange, { field: { fieldName: e, newValue: t, oldValue: o }, formModel: $ });
|
|
44
|
-
}, pe = () => {
|
|
45
|
-
I(h.value.formCreated);
|
|
46
|
-
}, ge = () => {
|
|
47
|
-
I(h.value.formMounted);
|
|
48
|
-
}, _e = () => {
|
|
49
|
-
fe(), se(), ce(), pe();
|
|
50
|
-
}, he = (e) => {
|
|
51
|
-
var t;
|
|
52
|
-
(t = _.value) == null || t.clearValidate(e);
|
|
53
|
-
}, Ce = () => {
|
|
54
|
-
de(Je.resetField), De(() => {
|
|
55
|
-
he();
|
|
56
|
-
});
|
|
57
|
-
}, Q = (e, t) => {
|
|
58
|
-
let o = [];
|
|
59
|
-
for (let c in e) {
|
|
60
|
-
var a = e[c], i = a == null ? void 0 : a.filter((l) => (l == null ? void 0 : l.force) === t);
|
|
61
|
-
i == null || i.forEach((l) => {
|
|
62
|
-
var n;
|
|
63
|
-
const d = (n = l == null ? void 0 : l.rule) == null ? void 0 : n.label;
|
|
64
|
-
l.message && o.push(ye(d ? "【" + d + "】" : "", l.message, ":"));
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
return Be(o);
|
|
68
|
-
}, Fe = (e, t) => {
|
|
69
|
-
var o = {};
|
|
70
|
-
return ze(t, (a) => {
|
|
71
|
-
var i = qe.getName(a), c = He(e, i);
|
|
72
|
-
return c && (o[i] = e[i]), c;
|
|
73
|
-
}, !1), o;
|
|
74
|
-
}, we = (e = !0) => {
|
|
75
|
-
var i, c, l;
|
|
76
|
-
let t = k();
|
|
77
|
-
if (!e)
|
|
78
|
-
return new Promise((d, n) => {
|
|
79
|
-
d(t);
|
|
80
|
-
});
|
|
81
|
-
let o = function() {
|
|
82
|
-
}, a = new Promise(function(d, n) {
|
|
83
|
-
o = function(f, r) {
|
|
84
|
-
(r ? n : d)({ data: f, isSuccess: !r, message: r });
|
|
85
|
-
};
|
|
86
|
-
});
|
|
87
|
-
return (i = _.value) != null && i.validate ? ((l = (c = _.value) == null ? void 0 : c.validate) == null || l.call(c, (d, n) => {
|
|
88
|
-
if (d)
|
|
89
|
-
o(t);
|
|
90
|
-
else {
|
|
91
|
-
var f = Q(n, !0);
|
|
92
|
-
if (f && f.length > 0) {
|
|
93
|
-
o(t, f);
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
var r = Q(n, !1);
|
|
97
|
-
if (r && r.length > 0) {
|
|
98
|
-
r.push(ke.i18nt("designer.hint.continue")), Te.multiple(r).then((u) => {
|
|
99
|
-
o(t);
|
|
100
|
-
});
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}), a) : (o(t), a);
|
|
105
|
-
}, X = (e) => {
|
|
106
|
-
if (E) {
|
|
107
|
-
var t = Fe(e, [E]);
|
|
108
|
-
re(t), j(K.ContainerWidget, ae.setFormData, e, U), j(K.FieldWidget, ae.setFormData, e, U);
|
|
109
|
-
}
|
|
110
|
-
}, Y = (e) => new Promise((t, o) => {
|
|
111
|
-
const a = (n) => {
|
|
112
|
-
var r, u, N;
|
|
113
|
-
const f = (r = C.value) != null && r.formDataLoaded ? (N = (u = C.value) == null ? void 0 : u.formDataLoaded) == null ? void 0 : N.call(u, k(), n) : n;
|
|
114
|
-
f ? (X(f), t(f)) : t({});
|
|
115
|
-
}, i = () => {
|
|
116
|
-
V(e, x.newDataSource, void 0, (n, f) => {
|
|
117
|
-
a(n);
|
|
118
|
-
});
|
|
119
|
-
}, c = () => {
|
|
120
|
-
V(e, x.editDataSource, void 0, (n, f) => {
|
|
121
|
-
var u, N;
|
|
122
|
-
if (((N = (u = C.value) == null ? void 0 : u.needFormAdd) == null ? void 0 : N.call(u, n)) && d) {
|
|
123
|
-
i();
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
a(n);
|
|
127
|
-
});
|
|
128
|
-
}, l = ne.getValue(S(x.editDataSource, !0)) !== null, d = ne.getValue(S(x.newDataSource, !0)) !== null;
|
|
129
|
-
l ? c() : d && i();
|
|
130
|
-
});
|
|
131
|
-
return _e(), le(() => {
|
|
132
|
-
Re(), ge();
|
|
133
|
-
}), {
|
|
134
|
-
widgetRefList: O,
|
|
135
|
-
allWidgetRefList: A,
|
|
136
|
-
fieldEditor: _,
|
|
137
|
-
formModel: $,
|
|
138
|
-
pageConfig: F,
|
|
139
|
-
widgetList: g,
|
|
140
|
-
fieldModel: M,
|
|
141
|
-
fieldName: R,
|
|
142
|
-
attrs: P,
|
|
143
|
-
extendAttrs: C,
|
|
144
|
-
events: h,
|
|
145
|
-
rules: B,
|
|
146
|
-
loadData: Y,
|
|
147
|
-
clearData: J,
|
|
148
|
-
exposed: {
|
|
149
|
-
...w,
|
|
150
|
-
setValue: X,
|
|
151
|
-
getValue: we,
|
|
152
|
-
resetField: Ce,
|
|
153
|
-
clearData: J,
|
|
154
|
-
loadData: Y,
|
|
155
|
-
getData: k,
|
|
156
|
-
clearChangeRecord: me,
|
|
157
|
-
formChangeCache: T,
|
|
158
|
-
formChangeFlag: H,
|
|
159
|
-
emit$: y
|
|
160
|
-
},
|
|
161
|
-
fieldObj: D
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
const Ze = ie({ componentName: K.ContainerWidget }), et = /* @__PURE__ */ ie({
|
|
165
|
-
...Ze,
|
|
166
|
-
__name: "form-widget",
|
|
167
|
-
props: { ...Oe },
|
|
168
|
-
setup(s, { expose: E }) {
|
|
169
|
-
var V;
|
|
170
|
-
const m = s, { exposed: F, formModel: g, fieldEditor: O, attrs: A, events: M, widgetRefList: R, extendAttrs: _, fieldName: P, fieldObj: h, loadData: S } = Ye({ ...m, widgetList: (V = m == null ? void 0 : m.widget) == null ? void 0 : V.widgetList }), w = P.value;
|
|
171
|
-
Qe.globalProvide({
|
|
172
|
-
globalFormName: w,
|
|
173
|
-
globalDataModel: g
|
|
174
|
-
});
|
|
175
|
-
const D = z(!1);
|
|
176
|
-
return le(() => {
|
|
177
|
-
var v;
|
|
178
|
-
(v = _.value) != null && v.loadDataWhenInit && !m.designState && (D.value = !0, S(!0).then((C) => {
|
|
179
|
-
D.value = !1;
|
|
180
|
-
}).catch((C) => {
|
|
181
|
-
D.value = !1;
|
|
182
|
-
}).finally(() => {
|
|
183
|
-
F.clearChangeRecord();
|
|
184
|
-
}));
|
|
185
|
-
}), E({ ...F }), (v, C) => {
|
|
186
|
-
const W = be("el-form"), L = Ve("loading");
|
|
187
|
-
return ee(), te(Se, q(v.$props, {
|
|
188
|
-
"prop-options": { fieldObj: p(h) }
|
|
189
|
-
}), {
|
|
190
|
-
default: oe(({ data: y }) => {
|
|
191
|
-
var j;
|
|
192
|
-
return [
|
|
193
|
-
We(" form:" + Le(p(g)) + " ", 1),
|
|
194
|
-
je((ee(), te(W, q({
|
|
195
|
-
ref_key: "fieldEditor",
|
|
196
|
-
ref: O,
|
|
197
|
-
model: p(g)
|
|
198
|
-
}, p(A), Ne(p(M)), {
|
|
199
|
-
class: y.injectClass,
|
|
200
|
-
key: (j = p(h)) == null ? void 0 : j.fieldKey
|
|
201
|
-
}), {
|
|
202
|
-
default: oe(() => [
|
|
203
|
-
Ee(Pe, q(v.$props, {
|
|
204
|
-
dragClass: "formDrag",
|
|
205
|
-
model: p(g),
|
|
206
|
-
provideModel: !0,
|
|
207
|
-
"component-class": y.componentWrapperClass,
|
|
208
|
-
refList: p(R)
|
|
209
|
-
}), null, 16, ["model", "component-class", "refList"])
|
|
210
|
-
]),
|
|
211
|
-
_: 2
|
|
212
|
-
}, 1040, ["model", "class"])), [
|
|
213
|
-
[L, D.value]
|
|
214
|
-
])
|
|
215
|
-
];
|
|
216
|
-
}),
|
|
217
|
-
_: 1
|
|
218
|
-
}, 16, ["prop-options"]);
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
const tt = /* @__PURE__ */ Xe(et, [["__scopeId", "data-v-100a556f"]]), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
223
|
-
__proto__: null,
|
|
224
|
-
default: tt
|
|
225
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
226
|
-
export {
|
|
227
|
-
gt as _
|
|
228
|
-
};
|