hldesigner 0.0.201 → 0.0.203
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-8f74c4da.js → affix-widget-5b31aef3.js} +5 -5
- package/{alert-widget-b546bb2d.js → alert-widget-023ad236.js} +5 -5
- package/{anchor-widget-d2151802.js → anchor-widget-4cb83acd.js} +3 -3
- package/{auto-complete-widget-fddd4a84.js → auto-complete-widget-a40381f8.js} +4 -4
- package/{avatar-widget-8d43c65e.js → avatar-widget-32b58d84.js} +5 -5
- package/{backtop-widget-f759f979.js → backtop-widget-e9867933.js} +5 -5
- package/{badge-widget-7d808827.js → badge-widget-1f3ce07a.js} +5 -5
- package/{barcode-widget-15cffe12.js → barcode-widget-ef49bf1a.js} +3 -3
- package/{breadcrumb-widget-38b90fa5.js → breadcrumb-widget-02835287.js} +3 -3
- package/{button-widget-891afd62.js → button-widget-21c3a1d5.js} +5 -5
- package/{cache-widget-0a2e057f.js → cache-widget-4104da94.js} +3 -3
- package/{card-widget-2cec5977.js → card-widget-94540bcb.js} +4 -4
- package/{carousel-widget-02bb450a.js → carousel-widget-4c42a9b5.js} +3 -3
- package/{cascader-widget-86b28875.js → cascader-widget-3b351e93.js} +3 -3
- package/{chart-widget-c1628eda.js → chart-widget-fea7b4eb.js} +3 -3
- package/{checkbox-widget-10b26d14.js → checkbox-widget-703a8743.js} +3 -3
- package/{collapse-widget-0553b7dd.js → collapse-widget-82c9f052.js} +3 -3
- package/{color-picker-widget-a567e0ef.js → color-picker-widget-366c7b6a.js} +3 -3
- package/{common-editor-eec61891.js → common-editor-7fbb76d2.js} +2 -2
- package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-5288de3c.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-1f8ca7a0.js} +1 -1
- package/{configItem-fd6e3d70.js → configItem-9beab327.js} +23 -22
- package/{cont-cell-widget-5ad09292.js → cont-cell-widget-a6d7799b.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-de602061.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-792388b7.js} +3 -3
- package/{cont-widget-c43c8c8d.js → cont-widget-978dce4e.js} +3 -3
- package/{css-editor-28f83b2f.js → css-editor-2f6dbde3.js} +1 -1
- package/{customClass-editor-eada8588.js → customClass-editor-df52cc90.js} +2 -2
- package/{date-picker-range-widget-f96a61eb.js → date-picker-range-widget-181f33cb.js} +3 -3
- package/{date-picker-widget-0434db7a.js → date-picker-widget-a5bd4bf3.js} +3 -3
- package/{default-slot-widget-f03e4504.js → default-slot-widget-56a353d7.js} +3 -3
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-31178565.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8b0fcd83.js} +2 -2
- package/{descriptions-widget-09a2118d.js → descriptions-widget-ba2c798d.js} +4 -4
- package/designer.es.js +21 -20
- package/designer.style.css +1 -1
- package/designer.umd.js +771 -771
- package/{dialog-widget-09aa1dc0.js → dialog-widget-c9f8b45b.js} +5 -5
- package/{divider-widget-f3d54684.js → divider-widget-e2cd731e.js} +5 -5
- package/{drag-wrapper-f692accc.js → drag-wrapper-be4fc6c6.js} +2 -2
- package/{drawer-widget-b05b4bec.js → drawer-widget-c15da4c7.js} +5 -5
- package/{dropdown-widget-272149d0.js → dropdown-widget-42a47ad3.js} +4 -4
- package/{editor-wrapper-de61651b.js → editor-wrapper-8027ed75.js} +76 -76
- package/{empty-widget-51623b09.js → empty-widget-6ac74681.js} +5 -5
- package/{feedback-widget-e19e0b32.js → feedback-widget-56db531b.js} +5 -5
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-af234c23.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-cf9de69d.js} +3 -3
- package/{field-editor-579806aa.js → field-editor-ab704a01.js} +1 -1
- package/{file-upload-widget-bcf491db.js → file-upload-widget-2b05d62c.js} +5 -5
- package/form-widget-35b12f17.js +232 -0
- package/{grid-col-widget-185cbdc3.js → grid-col-widget-6cad3503.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ebfc0847.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-082d895b.js} +3 -3
- package/{grid-widget-07bd720f.js → grid-widget-075a1abe.js} +3 -3
- package/{html-text-widget-a60ef211.js → html-text-widget-0c89effe.js} +3 -3
- package/{icon-widget-5429e06c.js → icon-widget-efa0dbb7.js} +3 -3
- package/{iframe-widget-348a6ae0.js → iframe-widget-d293f152.js} +3 -3
- package/{image-editor-f2e05b21.js → image-editor-0b28e384.js} +1 -1
- package/{image-widget-4a96afc4.js → image-widget-bc9c59ac.js} +3 -3
- package/{index-b13ffbde.js → index-1844520a.js} +124 -123
- package/{index-46b0b760.js → index-30fe2727.js} +4 -4
- package/{index-1fdce917.js → index-4121f492.js} +8 -8
- package/{index-0ac18795.js → index-57266e1d.js} +4 -4
- package/index-57de1e93.js +200 -0
- package/{index-bea889ff.js → index-9d594e77.js} +24 -23
- package/{index-5b1b6b83.js → index-ad62fe68.js} +24 -23
- package/{index-8135dac5.js → index-df1e4d1c.js} +2 -2
- package/index-f02a72ab.js +287 -0
- package/{input-number-widget-04f45a41.js → input-number-widget-8c11c9f1.js} +3 -3
- package/{input-widget-a1da041a.js → input-widget-c493df61.js} +4 -4
- package/{install-designer-4a8d1f63.js → install-designer-2b98bf6a.js} +893 -876
- package/{link-widget-598b5b22.js → link-widget-aeb07c45.js} +5 -5
- package/{ltable-col-widget-522f017c.js → ltable-col-widget-7b73596b.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-75605fb3.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-76360bb0.js} +3 -3
- package/{ltable-widget-b11dfaa7.js → ltable-widget-2748c11d.js} +3 -3
- package/{menu-widget-ea24d6e2.js → menu-widget-f030ec3f.js} +3 -3
- package/{model-widget-73c504eb.js → model-widget-324ee8d8.js} +3 -3
- package/{multirow-ffe06a40.js → multirow-60333a37.js} +1 -1
- package/{multirow-widget-b104dc82.js → multirow-widget-b9f113dc.js} +4 -4
- package/{name-editor-c57fa584.js → name-editor-9e584829.js} +1 -1
- package/package.json +1 -1
- package/{pagination-widget-8d597e68.js → pagination-widget-5fc3a123.js} +3 -3
- package/{picture-upload-widget-1d0f1051.js → picture-upload-widget-074d5dfa.js} +4 -4
- package/{progress-widget-41ffc2ef.js → progress-widget-ab7645f4.js} +4 -4
- package/{qrcode-widget-40333423.js → qrcode-widget-d3332db8.js} +3 -3
- package/{radio-widget-0a9ebe4a.js → radio-widget-30fbcfa8.js} +3 -3
- package/{range-widget-3ada2203.js → range-widget-501ac45f.js} +4 -4
- package/{rate-widget-f8b8f99d.js → rate-widget-0efc5a30.js} +3 -3
- package/{reg-editor.vue_vue_type_script_setup_true_lang-6de98aaf.js → reg-editor.vue_vue_type_script_setup_true_lang-303c53c7.js} +1 -1
- package/{result-widget-e0ac9f82.js → result-widget-c7ba3598.js} +4 -4
- package/{rich-editor-widget-b2dd6bb6.js → rich-editor-widget-68065124.js} +3 -3
- package/{router-widget-7f3ec909.js → router-widget-87f54e9c.js} +3 -3
- package/{select-widget-921473b5.js → select-widget-b603a045.js} +3 -3
- package/{sfc-e33575d5.js → sfc-c084412d.js} +1 -1
- package/{share-field-6a803d24.js → share-field-081900cb.js} +195 -194
- package/{share-file-8cdff0b8.js → share-file-a4a4269a.js} +1 -1
- package/{size-editor-12dd102a.js → size-editor-60515ca3.js} +1 -1
- package/{slider-widget-9bd9ec61.js → slider-widget-0e5c6ea8.js} +3 -3
- package/slot-ad34bf62.js +292 -0
- package/{static-text-widget-cf98a7e0.js → static-text-widget-e96741ad.js} +3 -3
- package/{steps-widget-fbec5e05.js → steps-widget-f4f7a59d.js} +3 -3
- package/{switch-widget-6bd7f590.js → switch-widget-be4a4f29.js} +3 -3
- package/{tab-pane-widget-ef6607e2.js → tab-pane-widget-f257d01a.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-c7731dcc.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-7102e80f.js} +3 -3
- package/{table-col-widget-31391bb9.js → table-col-widget-44257f41.js} +4 -4
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-366f4dd0.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-fda5176e.js} +3 -3
- package/{table-widget-276ea624.js → table-widget-6e69243d.js} +5 -5
- package/{tabs-widget-bdd20f4b.js → tabs-widget-3789cc71.js} +2 -2
- package/{tag-widget-b1508f54.js → tag-widget-30ed85f5.js} +5 -5
- package/{target-code-2d47464a.js → target-code-c9b01d8e.js} +1 -1
- package/{target-datasource-ea1f2325.js → target-datasource-358d46d3.js} +24 -23
- package/{target-link-829883f9.js → target-link-63b8c8b7.js} +24 -23
- package/{target-saveForm-ae97864c.js → target-saveForm-32d63f35.js} +24 -23
- package/{text-widget-d3392b18.js → text-widget-9d91dbb9.js} +5 -5
- package/{textarea-widget-58adc5b4.js → textarea-widget-abc44051.js} +3 -3
- package/{time-picker-range-widget-3a423b2a.js → time-picker-range-widget-1daba17f.js} +3 -3
- package/{time-picker-widget-c5d3ead1.js → time-picker-widget-0e493b7e.js} +3 -3
- package/{time-select-widget-1f9f7948.js → time-select-widget-52b79d07.js} +3 -3
- package/{tmpl-widget-514adf7f.js → tmpl-widget-87950870.js} +4 -4
- package/{tree-select-widget-64066e90.js → tree-select-widget-90e24dbc.js} +3 -3
- package/{tree-widget-fe2e8d91.js → tree-widget-27d9f388.js} +3 -3
- package/{value-editor-7ec22a07.js → value-editor-1c0315d8.js} +1 -1
- package/{verifycode-widget-a14df363.js → verifycode-widget-5df2dcdc.js} +3 -3
- package/{wrapper-widget-e8084058.js → wrapper-widget-a70d939f.js} +3 -3
- package/default-config-ff144435.js +0 -158
- package/form-widget-1636499a.js +0 -231
- package/index-4c7a5574.js +0 -159
- package/index-c5184e79.js +0 -171
- package/slot-7f311368.js +0 -289
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as s, createBlock as n, mergeProps as a, unref as c } from "vue";
|
|
2
2
|
import { I as f } from "./field-base-5547436d.js";
|
|
3
|
-
import { _ as l } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-
|
|
3
|
+
import { _ as l } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8b0fcd83.js";
|
|
4
4
|
import { w as d } from "./expression-cf83c895.js";
|
|
5
|
-
import { c as _ } from "./share-field-
|
|
5
|
+
import { c as _ } from "./share-field-081900cb.js";
|
|
6
6
|
import "./widget-base-4c2d6265.js";
|
|
7
7
|
import "./enum-type-339a584b.js";
|
|
8
8
|
import "./obj-469b8636.js";
|
|
@@ -20,14 +20,14 @@ import "./index-f328b549.js";
|
|
|
20
20
|
import "./index-6d72c605.js";
|
|
21
21
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
22
22
|
import "./fieldobj-fe7d8eae.js";
|
|
23
|
-
import "./slot-
|
|
23
|
+
import "./slot-ad34bf62.js";
|
|
24
24
|
import "./index-9bf39185.js";
|
|
25
25
|
import "./content-wrapper.vue_vue_type_script_setup_true_lang-ef54a554.js";
|
|
26
|
-
import "./drag-wrapper-
|
|
26
|
+
import "./drag-wrapper-be4fc6c6.js";
|
|
27
27
|
import "./source-map-b04aec4a.js";
|
|
28
28
|
import "./esprima-e8d15055.js";
|
|
29
29
|
import "./emitter-22bcad26.js";
|
|
30
|
-
import "./multirow-
|
|
30
|
+
import "./multirow-60333a37.js";
|
|
31
31
|
const u = o({ componentName: d.FieldWidget }), R = /* @__PURE__ */ o({
|
|
32
32
|
...u,
|
|
33
33
|
__name: "empty-widget",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as o } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-
|
|
1
|
+
import { _ as o } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-cf9de69d.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "./widget-base-4c2d6265.js";
|
|
4
|
-
import "./drag-wrapper-
|
|
4
|
+
import "./drag-wrapper-be4fc6c6.js";
|
|
5
5
|
import "./obj-469b8636.js";
|
|
6
6
|
import "./enum-type-339a584b.js";
|
|
7
7
|
import "./baseImp-d6a218bb.js";
|
|
@@ -17,15 +17,15 @@ import "element-plus";
|
|
|
17
17
|
import "./index-2cc63818.js";
|
|
18
18
|
import "./optionItem-94e8e557.js";
|
|
19
19
|
import "./index-f328b549.js";
|
|
20
|
-
import "./slot-
|
|
20
|
+
import "./slot-ad34bf62.js";
|
|
21
21
|
import "./index-9bf39185.js";
|
|
22
22
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
23
|
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7ea2dd77.js";
|
|
24
24
|
import "./index-6d72c605.js";
|
|
25
25
|
import "./fieldobj-fe7d8eae.js";
|
|
26
|
-
import "./share-field-
|
|
26
|
+
import "./share-field-081900cb.js";
|
|
27
27
|
import "./emitter-22bcad26.js";
|
|
28
|
-
import "./multirow-
|
|
28
|
+
import "./multirow-60333a37.js";
|
|
29
29
|
export {
|
|
30
30
|
o as default
|
|
31
31
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as O, ref as F, inject as I, openBlock as a, createBlock as n, mergeProps as p, unref as r, withCtx as C, createElementBlock as i, Fragment as m, renderList as V, resolveDynamicComponent as u, createCommentVNode as g, createVNode as f, isRef as P, toHandlers as R, createSlots as E, createTextVNode as H, toDisplayString as K } from "vue";
|
|
2
2
|
import { I as M } from "./widget-base-4c2d6265.js";
|
|
3
|
-
import { D as o } from "./drag-wrapper-
|
|
3
|
+
import { D as o } from "./drag-wrapper-be4fc6c6.js";
|
|
4
4
|
import { _ as T } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7ea2dd77.js";
|
|
5
5
|
import { d as U, w as q } from "./expression-cf83c895.js";
|
|
6
|
-
import { c as A } from "./share-field-
|
|
7
|
-
import { g as v } from "./slot-
|
|
6
|
+
import { c as A } from "./share-field-081900cb.js";
|
|
7
|
+
import { g as v } from "./slot-ad34bf62.js";
|
|
8
8
|
const G = O({ componentName: q.ContainerWidget }), ee = /* @__PURE__ */ O({
|
|
9
9
|
...G,
|
|
10
10
|
__name: "feedback-widget",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as P, inject as y, computed as E, resolveComponent as a, openBlock as r, createBlock as l, normalizeProps as F, guardReactiveProps as b, withCtx as s, createVNode as k, mergeProps as C, unref as p, isRef as d, createElementBlock as I, Fragment as B, renderList as L } from "vue";
|
|
2
2
|
import { I as w } from "./property-base-847bea01.js";
|
|
3
|
-
import { E as j, O as x } from "./editor-wrapper-
|
|
3
|
+
import { E as j, O as x } from "./editor-wrapper-8027ed75.js";
|
|
4
4
|
import { d as N } from "./expression-cf83c895.js";
|
|
5
5
|
import { u as O } from "./share-editor-2b290a2a.js";
|
|
6
6
|
import { d as R, e as U } from "./obj-469b8636.js";
|
|
@@ -2,17 +2,17 @@ import { defineComponent as B, shallowRef as ue, onMounted as me, openBlock as l
|
|
|
2
2
|
import { a as p } from "./enum-type-339a584b.js";
|
|
3
3
|
import { u as ge } from "./uuid-d9f857bf.js";
|
|
4
4
|
import { I as ke } from "./field-base-5547436d.js";
|
|
5
|
-
import { u as ve } from "./share-file-
|
|
5
|
+
import { u as ve } from "./share-file-a4a4269a.js";
|
|
6
6
|
import { f as b, w as fe } from "./expression-cf83c895.js";
|
|
7
7
|
import we from "./form-item-wrapper-f8359511.js";
|
|
8
|
-
import { g as Ce } from "./slot-
|
|
9
|
-
import { D as be } from "./drag-wrapper-
|
|
8
|
+
import { g as Ce } from "./slot-ad34bf62.js";
|
|
9
|
+
import { D as be } from "./drag-wrapper-be4fc6c6.js";
|
|
10
10
|
import { UploadFilled as De, Plus as $e, Document as Te, Download as te, CircleCheck as le, Close as oe } from "./index-ddd23411.js";
|
|
11
11
|
import { w as ae } from "./enum-type-50a08ddf.js";
|
|
12
12
|
import { _ as xe } from "./_plugin-vue_export-helper-dad06003.js";
|
|
13
13
|
import "./obj-469b8636.js";
|
|
14
14
|
import "./widget-base-4c2d6265.js";
|
|
15
|
-
import "./share-field-
|
|
15
|
+
import "./share-field-081900cb.js";
|
|
16
16
|
import "./emitter-22bcad26.js";
|
|
17
17
|
import "./icon-6342f929.js";
|
|
18
18
|
import "./baseImp-d6a218bb.js";
|
|
@@ -22,7 +22,7 @@ import "element-plus";
|
|
|
22
22
|
import "./index-2cc63818.js";
|
|
23
23
|
import "./optionItem-94e8e557.js";
|
|
24
24
|
import "./index-f328b549.js";
|
|
25
|
-
import "./multirow-
|
|
25
|
+
import "./multirow-60333a37.js";
|
|
26
26
|
import "./source-map-b04aec4a.js";
|
|
27
27
|
import "./esprima-e8d15055.js";
|
|
28
28
|
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7ea2dd77.js";
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { ref as oe, reactive as z, onMounted as fe, nextTick as je, defineComponent as ce, resolveComponent as xe, resolveDirective as Oe, openBlock as ne, createBlock as ae, mergeProps as K, unref as c, withCtx as ie, createTextVNode as Se, toDisplayString as Ee, withDirectives as ye, toHandlers as Re, withModifiers as Me, createVNode as Ae } from "vue";
|
|
2
|
+
import { I as Pe } from "./widget-base-4c2d6265.js";
|
|
3
|
+
import { D as $e } from "./drag-wrapper-be4fc6c6.js";
|
|
4
|
+
import { _ as ke } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7ea2dd77.js";
|
|
5
|
+
import { w as U, a as le, b as M, f as L, c as Ie } from "./expression-cf83c895.js";
|
|
6
|
+
import { u as Be } from "./icon-6342f929.js";
|
|
7
|
+
import { u as Te } from "./emitter-22bcad26.js";
|
|
8
|
+
import { i as He, a as qe } from "./enum-type-339a584b.js";
|
|
9
|
+
import { $ as ze, B as Ke } from "./baseImp-d6a218bb.js";
|
|
10
|
+
import { f as Ue } from "./index-2cc63818.js";
|
|
11
|
+
import { c as Ge, a as Je, u as Qe } from "./share-field-081900cb.js";
|
|
12
|
+
import { W as Xe } from "./enum-type-50a08ddf.js";
|
|
13
|
+
import { u as Ye } from "./multirow-60333a37.js";
|
|
14
|
+
import { e as de, f as re, d as se, g as Ze, h as et, j as tt } from "./obj-469b8636.js";
|
|
15
|
+
import { F as ot } from "./slot-ad34bf62.js";
|
|
16
|
+
import { _ as nt } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
+
function at(r) {
|
|
18
|
+
const j = r.widget, m = r.designer, b = m == null ? void 0 : m.pageConfig, _ = r == null ? void 0 : r.widgetList, x = oe({}), A = {}, { fieldModel: P, fieldName: $, fieldEditor: u, attrs: O, events: C, hasFieldOptions: S, exposed: w, fieldObj: E, watchOption: g, propResultOpt: h, extendAttrs: D } = Ge(r), { off$: W, on$: V, emit$: y, broadcast: N } = Te();
|
|
19
|
+
var { instance: G } = Be();
|
|
20
|
+
const { setAllRefList: me } = Je(x.value), J = { designState: r == null ? void 0 : r.designState, pageConfig: b, globalConfig: h == null ? void 0 : h.globalConfig }, { formModel: k, setData: ue, getData: R, clearData: Q } = Ye(_, { ...J }), { handleFunc: I } = Qe({ options: b }, J), B = z({}), pe = () => {
|
|
21
|
+
W(L.fieldChange), V(L.fieldChange, (e) => {
|
|
22
|
+
Fe(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), w == null || w.setValue(k), _e(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue);
|
|
23
|
+
});
|
|
24
|
+
}, ve = () => {
|
|
25
|
+
W(L.fieldValidation), V(L.fieldValidation, (e) => {
|
|
26
|
+
var t;
|
|
27
|
+
(t = u.value) == null || t.validateField(e == null ? void 0 : e.propName);
|
|
28
|
+
});
|
|
29
|
+
}, ge = () => {
|
|
30
|
+
W(L.fieldRuleChange), V(L.fieldRuleChange, (e) => {
|
|
31
|
+
var o;
|
|
32
|
+
var t = (o = e == null ? void 0 : e.rules) == null ? void 0 : o.map((n) => ({
|
|
33
|
+
required: n.required,
|
|
34
|
+
message: n.message,
|
|
35
|
+
trigger: n.trigger,
|
|
36
|
+
validator: n.validator
|
|
37
|
+
}));
|
|
38
|
+
Object.assign(B, { [e == null ? void 0 : e.fieldName]: t }), O.value.rules = B;
|
|
39
|
+
});
|
|
40
|
+
}, T = oe(!1), H = z({}), q = z({}), X = (e) => {
|
|
41
|
+
re(q), se(q, e);
|
|
42
|
+
}, he = () => ({
|
|
43
|
+
change_info: de(H),
|
|
44
|
+
before_info: de(q),
|
|
45
|
+
flag: T.value
|
|
46
|
+
}), _e = (e, t, o) => {
|
|
47
|
+
T.value = !0, e && se(H, { [e]: { oldValue: o, newValue: t } });
|
|
48
|
+
}, Ce = () => {
|
|
49
|
+
T.value = !1, re(H), X(R());
|
|
50
|
+
}, Fe = (e, t, o) => {
|
|
51
|
+
I(C.value.formDataChange, { field: { fieldName: e, newValue: t, oldValue: o }, formModel: k });
|
|
52
|
+
}, be = () => {
|
|
53
|
+
I(C.value.formCreated);
|
|
54
|
+
}, we = () => {
|
|
55
|
+
I(C.value.formMounted);
|
|
56
|
+
}, De = () => {
|
|
57
|
+
ge(), pe(), ve(), be();
|
|
58
|
+
}, Ve = (e) => {
|
|
59
|
+
var t;
|
|
60
|
+
(t = u.value) == null || t.clearValidate(e);
|
|
61
|
+
}, Le = () => {
|
|
62
|
+
me(Xe.resetField), je(() => {
|
|
63
|
+
Ve();
|
|
64
|
+
});
|
|
65
|
+
}, Y = (e, t) => {
|
|
66
|
+
let o = [];
|
|
67
|
+
for (let s in e) {
|
|
68
|
+
var n = e[s], d = n == null ? void 0 : n.filter((l) => (l == null ? void 0 : l.force) === t);
|
|
69
|
+
d == null || d.forEach((l) => {
|
|
70
|
+
var a;
|
|
71
|
+
const f = (a = l == null ? void 0 : l.rule) == null ? void 0 : a.label;
|
|
72
|
+
l.message && o.push(Ie(f ? "【" + f + "】" : "", l.message, ":"));
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return Ze(o);
|
|
76
|
+
}, We = (e, t) => {
|
|
77
|
+
var o = {};
|
|
78
|
+
return Ue(t, (n) => {
|
|
79
|
+
var d = Ke.getName(n), s = et(e, d);
|
|
80
|
+
return s && (o[d] = e[d]), s;
|
|
81
|
+
}, !1), o;
|
|
82
|
+
}, Ne = (e = !0) => {
|
|
83
|
+
var d, s, l;
|
|
84
|
+
let t = R(), o = function() {
|
|
85
|
+
}, n = new Promise(function(f, a) {
|
|
86
|
+
o = function(p, i) {
|
|
87
|
+
(i ? a : f)({ data: p, isSuccess: !i, message: i });
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
return !((d = u.value) != null && d.validate) || !e ? (o(t), n) : ((l = (s = u.value) == null ? void 0 : s.validate) == null || l.call(s, (f, a) => {
|
|
91
|
+
if (f)
|
|
92
|
+
o(t);
|
|
93
|
+
else {
|
|
94
|
+
var p = Y(a, !0);
|
|
95
|
+
if (p && p.length > 0) {
|
|
96
|
+
o(t, p);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
var i = Y(a, !1);
|
|
100
|
+
if (i && i.length > 0) {
|
|
101
|
+
i.push(qe.i18nt("designer.hint.continue")), ze.multiple(i).then((v) => {
|
|
102
|
+
o(t);
|
|
103
|
+
});
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}), n);
|
|
108
|
+
}, Z = (e, t = !0) => {
|
|
109
|
+
if (!j)
|
|
110
|
+
return;
|
|
111
|
+
var o = We(e, [j]);
|
|
112
|
+
ue(o, t);
|
|
113
|
+
const n = ["refList", "widgetRefList"];
|
|
114
|
+
N(U.ContainerWidget, le.setFormData, e, G, n), N(U.FieldWidget, le.setFormData, e, G, n);
|
|
115
|
+
}, ee = (e) => new Promise((t, o) => {
|
|
116
|
+
const n = (a, p) => {
|
|
117
|
+
var v, F, te;
|
|
118
|
+
let i = (v = D.value) != null && v.formDataLoaded ? (te = (F = D.value) == null ? void 0 : F.formDataLoaded) == null ? void 0 : te.call(F, R(), a) : a;
|
|
119
|
+
tt(i) ? Z(i, !p) : i = {}, X(i), t(i);
|
|
120
|
+
}, d = () => {
|
|
121
|
+
g(e, M.newDataSource, void 0, (a, p) => {
|
|
122
|
+
n(a, !0);
|
|
123
|
+
});
|
|
124
|
+
}, s = () => {
|
|
125
|
+
g(e, M.editDataSource, void 0, (a, p) => {
|
|
126
|
+
var v, F;
|
|
127
|
+
if (((F = (v = D.value) == null ? void 0 : v.needFormAdd) == null ? void 0 : F.call(v, a)) && f) {
|
|
128
|
+
d();
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
n(a, !1);
|
|
132
|
+
});
|
|
133
|
+
}, l = S(M.editDataSource), f = S(M.newDataSource);
|
|
134
|
+
l ? s() : f && d();
|
|
135
|
+
});
|
|
136
|
+
return De(), fe(() => {
|
|
137
|
+
He(), we();
|
|
138
|
+
}), {
|
|
139
|
+
widgetRefList: x,
|
|
140
|
+
allWidgetRefList: A,
|
|
141
|
+
fieldEditor: u,
|
|
142
|
+
formModel: k,
|
|
143
|
+
pageConfig: b,
|
|
144
|
+
widgetList: _,
|
|
145
|
+
fieldModel: P,
|
|
146
|
+
fieldName: $,
|
|
147
|
+
attrs: O,
|
|
148
|
+
extendAttrs: D,
|
|
149
|
+
events: C,
|
|
150
|
+
rules: B,
|
|
151
|
+
loadData: ee,
|
|
152
|
+
clearData: Q,
|
|
153
|
+
exposed: {
|
|
154
|
+
...w,
|
|
155
|
+
setValue: Z,
|
|
156
|
+
getValue: Ne,
|
|
157
|
+
resetField: Le,
|
|
158
|
+
clearData: Q,
|
|
159
|
+
loadData: ee,
|
|
160
|
+
getData: R,
|
|
161
|
+
//修改痕迹
|
|
162
|
+
clearChangeRecord: Ce,
|
|
163
|
+
getChangeRecord: he,
|
|
164
|
+
emit$: y
|
|
165
|
+
},
|
|
166
|
+
fieldObj: E
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
const it = ce({ componentName: U.ContainerWidget }), lt = /* @__PURE__ */ ce({
|
|
170
|
+
...it,
|
|
171
|
+
__name: "form-widget",
|
|
172
|
+
props: { ...Pe },
|
|
173
|
+
setup(r, { expose: j }) {
|
|
174
|
+
var E;
|
|
175
|
+
const m = r, { exposed: b, formModel: _, fieldEditor: x, attrs: A, events: P, widgetRefList: $, extendAttrs: u, fieldName: O, fieldObj: C, loadData: S } = at({ ...m, widgetList: (E = m == null ? void 0 : m.widget) == null ? void 0 : E.widgetList }), w = O.value;
|
|
176
|
+
return ot.globalProvide({
|
|
177
|
+
globalFormName: w,
|
|
178
|
+
globalDataModel: _
|
|
179
|
+
}), fe(() => {
|
|
180
|
+
var g;
|
|
181
|
+
(g = u.value) != null && g.loadDataWhenInit && !m.designState && S(!0).then((h) => {
|
|
182
|
+
}).catch((h) => {
|
|
183
|
+
}).finally(() => {
|
|
184
|
+
b.clearChangeRecord();
|
|
185
|
+
});
|
|
186
|
+
}), j({ ...b }), (g, h) => {
|
|
187
|
+
const D = xe("el-form"), W = Oe("loading");
|
|
188
|
+
return ne(), ae(ke, K(g.$props, {
|
|
189
|
+
"prop-options": { fieldObj: c(C) }
|
|
190
|
+
}), {
|
|
191
|
+
default: ie(({ data: V }) => {
|
|
192
|
+
var y, N;
|
|
193
|
+
return [
|
|
194
|
+
Se(" form:" + Ee(c(_)) + " ", 1),
|
|
195
|
+
ye((ne(), ae(D, K({
|
|
196
|
+
ref_key: "fieldEditor",
|
|
197
|
+
ref: x,
|
|
198
|
+
model: c(_)
|
|
199
|
+
}, c(A), Re(c(P)), {
|
|
200
|
+
class: V.injectClass,
|
|
201
|
+
key: (y = c(C)) == null ? void 0 : y.fieldKey,
|
|
202
|
+
"element-loading-text": c(u).loadingText,
|
|
203
|
+
onSubmit: h[0] || (h[0] = Me(() => {
|
|
204
|
+
}, ["prevent"]))
|
|
205
|
+
}), {
|
|
206
|
+
default: ie(() => [
|
|
207
|
+
Ae($e, K(g.$props, {
|
|
208
|
+
dragClass: "formDrag",
|
|
209
|
+
model: c(_),
|
|
210
|
+
provideModel: !0,
|
|
211
|
+
"component-class": V.componentWrapperClass,
|
|
212
|
+
refList: c($)
|
|
213
|
+
}), null, 16, ["model", "component-class", "refList"])
|
|
214
|
+
]),
|
|
215
|
+
_: 2
|
|
216
|
+
}, 1040, ["model", "class", "element-loading-text"])), [
|
|
217
|
+
[W, (N = c(u)) == null ? void 0 : N.showLoading]
|
|
218
|
+
])
|
|
219
|
+
];
|
|
220
|
+
}),
|
|
221
|
+
_: 1
|
|
222
|
+
}, 16, ["prop-options"]);
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
const dt = /* @__PURE__ */ nt(lt, [["__scopeId", "data-v-5601b332"]]), Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
227
|
+
__proto__: null,
|
|
228
|
+
default: dt
|
|
229
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
230
|
+
export {
|
|
231
|
+
Vt as _
|
|
232
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-
|
|
1
|
+
import { _ as e } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-082d895b.js";
|
|
2
2
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
default: e
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as m, computed as l, reactive as C, openBlock as y, createBlock as O, mergeProps as c, unref as o, withCtx as W, createVNode as k } from "vue";
|
|
2
2
|
import { w as x } from "./expression-cf83c895.js";
|
|
3
3
|
import { I as A } from "./widget-base-4c2d6265.js";
|
|
4
|
-
import { D as b } from "./drag-wrapper-
|
|
4
|
+
import { D as b } from "./drag-wrapper-be4fc6c6.js";
|
|
5
5
|
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7ea2dd77.js";
|
|
6
|
-
import { c as H } from "./share-field-
|
|
7
|
-
import { c as $ } from "./slot-
|
|
6
|
+
import { c as H } from "./share-field-081900cb.js";
|
|
7
|
+
import { c as $ } from "./slot-ad34bf62.js";
|
|
8
8
|
const z = m({ componentName: x.ContainerWidget }), V = /* @__PURE__ */ m({
|
|
9
9
|
...z,
|
|
10
10
|
__name: "grid-col-widget",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as t, createBlock as s, mergeProps as f, unref as o, withCtx as u, createElementBlock as w, Fragment as b, renderList as h } from "vue";
|
|
2
2
|
import { w as k, b as y } from "./expression-cf83c895.js";
|
|
3
3
|
import { I as C } from "./widget-base-4c2d6265.js";
|
|
4
|
-
import { _ as O } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-
|
|
4
|
+
import { _ as O } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-082d895b.js";
|
|
5
5
|
import { _ as S } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7ea2dd77.js";
|
|
6
|
-
import { c as j } from "./share-field-
|
|
7
|
-
import { c as P } from "./slot-
|
|
6
|
+
import { c as j } from "./share-field-081900cb.js";
|
|
7
|
+
import { c as P } from "./slot-ad34bf62.js";
|
|
8
8
|
const v = p({ componentName: k.ContainerWidget }), B = /* @__PURE__ */ p({
|
|
9
9
|
...v,
|
|
10
10
|
__name: "grid-widget",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as _, createBlock as u, mergeProps as x, unref as o, withCtx as g, createVNode as w } from "vue";
|
|
2
2
|
import { I as C } from "./field-base-5547436d.js";
|
|
3
|
-
import { c as P } from "./share-field-
|
|
3
|
+
import { c as P } from "./share-field-081900cb.js";
|
|
4
4
|
import { w as h } from "./expression-cf83c895.js";
|
|
5
5
|
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7ea2dd77.js";
|
|
6
6
|
import { _ as k } from "./content-wrapper.vue_vue_type_script_setup_true_lang-ef54a554.js";
|
|
@@ -15,12 +15,12 @@ import "./dialog-24d066bb.js";
|
|
|
15
15
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
16
|
import "./uuid-d9f857bf.js";
|
|
17
17
|
import "element-plus";
|
|
18
|
-
import "./slot-
|
|
18
|
+
import "./slot-ad34bf62.js";
|
|
19
19
|
import "./index-9bf39185.js";
|
|
20
20
|
import "./index-2cc63818.js";
|
|
21
21
|
import "./optionItem-94e8e557.js";
|
|
22
22
|
import "./index-f328b549.js";
|
|
23
|
-
import "./multirow-
|
|
23
|
+
import "./multirow-60333a37.js";
|
|
24
24
|
import "./source-map-b04aec4a.js";
|
|
25
25
|
import "./esprima-e8d15055.js";
|
|
26
26
|
import "./index-6d72c605.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, resolveComponent as D, openBlock as i, createBlock as r, mergeProps as a, unref as o, withCtx as f, toHandlers as k, resolveDynamicComponent as v } from "vue";
|
|
2
2
|
import { I as F } from "./field-base-5547436d.js";
|
|
3
3
|
import { w as S } from "./expression-cf83c895.js";
|
|
4
|
-
import { c as b } from "./share-field-
|
|
4
|
+
import { c as b } from "./share-field-081900cb.js";
|
|
5
5
|
import { _ as h } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7ea2dd77.js";
|
|
6
6
|
import { S as B } from "./enum-type-50a08ddf.js";
|
|
7
7
|
import "./widget-base-4c2d6265.js";
|
|
@@ -16,12 +16,12 @@ import "./icon-6342f929.js";
|
|
|
16
16
|
import "./baseImp-d6a218bb.js";
|
|
17
17
|
import "./dialog-24d066bb.js";
|
|
18
18
|
import "element-plus";
|
|
19
|
-
import "./slot-
|
|
19
|
+
import "./slot-ad34bf62.js";
|
|
20
20
|
import "./index-9bf39185.js";
|
|
21
21
|
import "./index-2cc63818.js";
|
|
22
22
|
import "./optionItem-94e8e557.js";
|
|
23
23
|
import "./index-f328b549.js";
|
|
24
|
-
import "./multirow-
|
|
24
|
+
import "./multirow-60333a37.js";
|
|
25
25
|
import "./index-6d72c605.js";
|
|
26
26
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
27
27
|
import "./fieldobj-fe7d8eae.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as j, ref as C, computed as D, onMounted as O, resolveDirective as R, openBlock as v, createBlock as V, mergeProps as I, unref as n, withCtx as W, withDirectives as L, createElementBlock as U, createCommentVNode as q, toHandlers as z, vShow as H } from "vue";
|
|
2
2
|
import { z as g } from "./baseImp-d6a218bb.js";
|
|
3
3
|
import { w as K } from "./expression-cf83c895.js";
|
|
4
|
-
import { c as M } from "./share-field-
|
|
4
|
+
import { c as M } from "./share-field-081900cb.js";
|
|
5
5
|
import { _ as T } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7ea2dd77.js";
|
|
6
6
|
import { I as G } from "./field-base-5547436d.js";
|
|
7
7
|
import { g as J } from "./uuid-d9f857bf.js";
|
|
@@ -15,12 +15,12 @@ import "element-plus";
|
|
|
15
15
|
import "./source-map-b04aec4a.js";
|
|
16
16
|
import "./esprima-e8d15055.js";
|
|
17
17
|
import "./emitter-22bcad26.js";
|
|
18
|
-
import "./slot-
|
|
18
|
+
import "./slot-ad34bf62.js";
|
|
19
19
|
import "./index-9bf39185.js";
|
|
20
20
|
import "./index-2cc63818.js";
|
|
21
21
|
import "./optionItem-94e8e557.js";
|
|
22
22
|
import "./index-f328b549.js";
|
|
23
|
-
import "./multirow-
|
|
23
|
+
import "./multirow-60333a37.js";
|
|
24
24
|
import "./widget-base-4c2d6265.js";
|
|
25
25
|
import "./index-6d72c605.js";
|
|
26
26
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as a, openBlock as f, createBlock as u, normalizeProps
|
|
|
2
2
|
import { I as E } from "./property-base-847bea01.js";
|
|
3
3
|
import { w as V } from "./expression-cf83c895.js";
|
|
4
4
|
import { u as C } from "./share-editor-2b290a2a.js";
|
|
5
|
-
import { E as w, O as y } from "./editor-wrapper-
|
|
5
|
+
import { E as w, O as y } from "./editor-wrapper-8027ed75.js";
|
|
6
6
|
import { d as B, e as I } from "./obj-469b8636.js";
|
|
7
7
|
import { aj as h } from "./enum-type-50a08ddf.js";
|
|
8
8
|
import { h as k } from "./_share_image-30a7e940.js";
|
|
@@ -2,8 +2,8 @@ import { defineComponent as c, computed as j, resolveComponent as k, openBlock a
|
|
|
2
2
|
import { w as E } from "./expression-cf83c895.js";
|
|
3
3
|
import { I as L } from "./field-base-5547436d.js";
|
|
4
4
|
import { _ as N } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7ea2dd77.js";
|
|
5
|
-
import { c as P } from "./share-field-
|
|
6
|
-
import { g as $ } from "./slot-
|
|
5
|
+
import { c as P } from "./share-field-081900cb.js";
|
|
6
|
+
import { g as $ } from "./slot-ad34bf62.js";
|
|
7
7
|
import "./source-map-b04aec4a.js";
|
|
8
8
|
import "./obj-469b8636.js";
|
|
9
9
|
import "./uuid-d9f857bf.js";
|
|
@@ -23,7 +23,7 @@ import "./index-6d72c605.js";
|
|
|
23
23
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
24
24
|
import "./fieldobj-fe7d8eae.js";
|
|
25
25
|
import "./emitter-22bcad26.js";
|
|
26
|
-
import "./multirow-
|
|
26
|
+
import "./multirow-60333a37.js";
|
|
27
27
|
import "./index-9bf39185.js";
|
|
28
28
|
const A = c({ componentName: E.FieldWidget }), le = /* @__PURE__ */ c({
|
|
29
29
|
...A,
|