hldesigner 0.0.263 → 0.0.265
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-d0fb3441.js → _pdf-c637edb9.js} +5 -5
- package/{_share_image-41808a56.js → _share_image-d51fea3f.js} +2 -2
- package/{_share_size.vue_vue_type_script_setup_true_lang-e6778e1e.js → _share_size.vue_vue_type_script_setup_true_lang-9decefca.js} +2 -2
- package/{_txt-d121fec4.js → _txt-dd6c6842.js} +5 -5
- package/{_unsupport-0d122c86.js → _unsupport-0d665687.js} +1 -1
- package/{affix-widget-e753a24d.js → affix-widget-04fe0c3d.js} +16 -16
- package/{alert-widget-bcffd653.js → alert-widget-b6795bc1.js} +16 -16
- package/{anchor-widget-1de0909a.js → anchor-widget-fac59605.js} +13 -13
- package/{auto-complete-widget-976493b4.js → auto-complete-widget-22163268.js} +16 -16
- package/{avatar-widget-dc349288.js → avatar-widget-f746439b.js} +16 -16
- package/{backtop-widget-d505f6b9.js → backtop-widget-b12881b5.js} +16 -16
- package/{badge-widget-52cb2379.js → badge-widget-9646f89b.js} +16 -16
- package/{barcode-widget-3abe6dee.js → barcode-widget-9c89a155.js} +13 -13
- package/{baseImp-301687cc.js → baseImp-d07c59b1.js} +3831 -3832
- package/{breadcrumb-widget-96b2dfab.js → breadcrumb-widget-9e01ce00.js} +13 -13
- package/{button-widget-896895fc.js → button-widget-6d8e6c2e.js} +16 -16
- package/{cache-widget-637da578.js → cache-widget-d05d704d.js} +15 -15
- package/{card-widget-2bc2e5c3.js → card-widget-de04bb54.js} +14 -14
- package/{carousel-widget-ce8b0e9f.js → carousel-widget-fa6d99c1.js} +14 -14
- package/{cascader-widget-d232df2d.js → cascader-widget-2536fff5.js} +15 -15
- package/chart-widget-09ed82eb.js +92 -0
- package/{checkbox-widget-7383775b.js → checkbox-widget-9f2688fc.js} +15 -15
- package/{collapse-widget-11f84ba6.js → collapse-widget-c7556155.js} +14 -14
- package/{color-picker-widget-13df5698.js → color-picker-widget-efaaab62.js} +15 -15
- package/common-editor-d362a27d.js +27 -0
- package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-9f196508.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-4e383bd8.js} +2 -2
- package/{configItem-b9ae8e36.js → configItem-2d556540.js} +32 -32
- package/{cont-cell-widget-5318492a.js → cont-cell-widget-6b2138fc.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-33252204.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-cfca2901.js} +5 -5
- package/{cont-widget-c73a27e2.js → cont-widget-36d42365.js} +5 -5
- package/{content-wrapper-57065f6b.js → content-wrapper-5420cdb3.js} +6 -6
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-7743da14.js → content-wrapper.vue_vue_type_script_setup_true_lang-2cdf4d4b.js} +2 -2
- package/{countdown-widget-24a1f008.js → countdown-widget-4b42d15f.js} +16 -16
- package/{css-editor-748a30de.js → css-editor-3ce1bef2.js} +16 -16
- package/{cssIndex-17847070.js → cssIndex-271e8ed7.js} +3 -3
- package/{customClass-editor-13b38518.js → customClass-editor-dedf089a.js} +13 -13
- package/{date-picker-range-widget-53c762e8.js → date-picker-range-widget-801fa6f2.js} +15 -15
- package/{date-picker-widget-32997922.js → date-picker-widget-f3ee5d02.js} +15 -15
- package/{default-slot-widget-84029579.js → default-slot-widget-4be747cf.js} +14 -14
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-091acc31.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-61a9fa6b.js} +6 -6
- package/{descriptions-widget-cecb6289.js → descriptions-widget-cacad921.js} +14 -14
- package/designer.es.js +30 -30
- package/designer.style.css +1 -1
- package/designer.umd.js +405 -405
- package/{dialog-01ece6ab.js → dialog-3dfa5e38.js} +2 -2
- package/{dialog-widget-43766516.js → dialog-widget-2e2978b6.js} +15 -15
- package/{divider-widget-6696c7b6.js → divider-widget-675e39e7.js} +16 -16
- package/{drag-wrapper-636f0170.js → drag-wrapper-c4ef72c1.js} +6 -6
- package/{drawer-widget-331de048.js → drawer-widget-0674a459.js} +15 -15
- package/{dropdown-widget-6b729d6b.js → dropdown-widget-782c42a1.js} +14 -14
- package/{editor-wrapper-6d3e0929.js → editor-wrapper-c40dad6b.js} +10 -10
- package/{empty-widget-0d6c47f7.js → empty-widget-bd41efbc.js} +16 -16
- package/{enum-type-c8b77ba5.js → enum-type-53abee45.js} +100 -96
- package/{enum-type-1e41a275.js → enum-type-f35e9c94.js} +1 -1
- package/{expression-9901f861.js → expression-bcf074b8.js} +2 -2
- package/{feedback-widget-8a0b2ebf.js → feedback-widget-a86711b9.js} +15 -15
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-2aafeb34.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-45680469.js} +5 -5
- package/{field-editor-4d16ebed.js → field-editor-1886c6b6.js} +12 -12
- package/{file-upload-widget-4d9d9696.js → file-upload-widget-2b31d014.js} +20 -20
- package/{form-item-wrapper-3a8256e9.js → form-item-wrapper-40e3872b.js} +10 -10
- package/form-widget-c35d3b89.js +246 -0
- package/{grid-col-widget-fe76cf7e.js → grid-col-widget-a1dd62e5.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ab8281e1.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-e250d72f.js} +5 -5
- package/{grid-widget-fd5d744d.js → grid-widget-e7be9da5.js} +5 -5
- package/{hcard-widget-52bf6d97.js → hcard-widget-e19c1fba.js} +14 -14
- package/{html-text-widget-0a061ef0.js → html-text-widget-b4d5d5ce.js} +14 -14
- package/{icon-widget-da099c59.js → icon-widget-b8a0a27d.js} +13 -13
- package/iframe-widget-9be457b9.js +117 -0
- package/{image-editor-c1c6d25c.js → image-editor-57eb67c3.js} +13 -13
- package/{image-widget-e396dfb4.js → image-widget-664da033.js} +13 -13
- package/{index-2a5f4ed6.js → index-1bdfb858.js} +7 -7
- package/{index-af3622c1.js → index-29683d75.js} +7 -7
- package/{index-5bb588b3.js → index-2e3de9af.js} +5 -5
- package/{index-f1034f73.js → index-3353cdf1.js} +6 -6
- package/{index-1cc23461.js → index-34448da8.js} +17 -17
- package/{index-72618aa0.js → index-3dde7951.js} +33 -33
- package/{index-2ce5f40f.js → index-404ebbb3.js} +5 -5
- package/{index-deb4c1a8.js → index-4335b8f7.js} +5 -5
- package/{index-5d325c74.js → index-4c7a458c.js} +34 -34
- package/{index-da7ca79d.js → index-4eaded12.js} +3 -3
- package/{index-d7b2ded0.js → index-586a2057.js} +8 -8
- package/index-6480019f.js +53 -0
- package/{index-6d113b78.js → index-80926ab0.js} +16 -16
- package/{index-8eb82169.js → index-9bda915b.js} +1 -1
- package/{index-8c0c21d0.js → index-a4259b93.js} +33 -33
- package/{index-e96d5869.js → index-ad4d24a1.js} +5 -5
- package/{index-6d7def26.js → index-bb98325c.js} +13 -13
- package/{index-f2309e37.js → index-c0ab8fc8.js} +8 -8
- package/{index-df920776.js → index-c2a1ddd7.js} +9 -9
- package/{index-0c47df2f.js → index-da0f381b.js} +12 -12
- package/{index-0a305460.js → index-ddd169e4.js} +7 -7
- package/{index-cbd39531.js → index-ee8cb054.js} +7 -7
- package/{index-6cac1021.js → index-f2bffcf6.js} +8 -8
- package/{index-096eeda6.js → index-f70160e4.js} +7 -7
- package/{input-number-widget-04bc6af8.js → input-number-widget-bd85fe75.js} +15 -15
- package/{input-tag-widget-21d5746a.js → input-tag-widget-bb0d2239.js} +16 -16
- package/{input-widget-54dc8e8a.js → input-widget-7788f733.js} +16 -16
- package/{install-designer-ee0ff655.js → install-designer-31b3216d.js} +25 -29
- package/{item-edc22968.js → item-fdcfaa6a.js} +2 -2
- package/{itemDetail-b678a98f.js → itemDetail-3d381e01.js} +2 -2
- package/{label-wrapper-46604df9.js → label-wrapper-614e8aa3.js} +3 -3
- package/{label-wrapper.vue_vue_type_style_index_0_lang-1f187139.js → label-wrapper.vue_vue_type_style_index_0_lang-2647cf62.js} +1 -1
- package/{link-widget-eb4734f7.js → link-widget-feb93df3.js} +16 -16
- package/{ltable-col-widget-d3af57b2.js → ltable-col-widget-d7e908e1.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-c63bae8c.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-07400678.js} +8 -8
- package/{ltable-widget-5a75f839.js → ltable-widget-8a7e2dda.js} +5 -5
- package/{mention-widget-83b3c36a.js → mention-widget-c49bc8e9.js} +16 -16
- package/{menu-widget-27e8a739.js → menu-widget-657a85e4.js} +14 -14
- package/{model-widget-226f4c48.js → model-widget-14f99700.js} +13 -13
- package/{multirow-d9432e17.js → multirow-423eaa76.js} +5 -5
- package/{multirow-widget-73b9f5b8.js → multirow-widget-12128f94.js} +102 -102
- package/{name-editor-ff3592a1.js → name-editor-f264f0c4.js} +13 -13
- package/{optionItem-6e6635c2.js → optionItem-80618414.js} +4 -4
- package/package.json +1 -1
- package/{pagination-widget-ef2c4cbe.js → pagination-widget-f1dd628f.js} +13 -13
- package/{picture-upload-widget-d7b2439b.js → picture-upload-widget-de1bebdb.js} +16 -16
- package/{progress-widget-e9a7ac91.js → progress-widget-c4bcd6c1.js} +14 -14
- package/{property-base-2c77cef1.js → property-base-bddac18d.js} +3 -3
- package/{qrcode-widget-c2168584.js → qrcode-widget-08b1b15c.js} +13 -13
- package/{radio-widget-823c69c6.js → radio-widget-a10b2e81.js} +15 -15
- package/{range-widget-d2852556.js → range-widget-b9417c32.js} +16 -16
- package/{rate-widget-cb1ed332.js → rate-widget-8c5ca29b.js} +15 -15
- package/{reg-editor.vue_vue_type_script_setup_true_lang-3a609547.js → reg-editor.vue_vue_type_script_setup_true_lang-cad456e4.js} +2 -2
- package/{result-widget-d504e54a.js → result-widget-aec531f6.js} +14 -14
- package/{rich-editor-widget-bc490e5e.js → rich-editor-widget-a6a246b2.js} +15 -15
- package/{router-widget-8cf8fd84.js → router-widget-46c444e4.js} +13 -13
- package/{schemaData-8e1b3320.js → schemaData-9806b35c.js} +4 -4
- package/{segmented-widget-efb0e31c.js → segmented-widget-08032430.js} +13 -13
- package/{select-widget-f32c15b5.js → select-widget-be99334a.js} +16 -16
- package/{sfc-35a064df.js → sfc-51fd433f.js} +10 -10
- package/{sfcview-d8797ff0.js → sfcview-1011f241.js} +8 -8
- package/{share-editor-d7674969.js → share-editor-25591f75.js} +4 -4
- package/{share-event-9c550116.js → share-event-332c470a.js} +1 -1
- package/share-field-bcc5d86d.js +844 -0
- package/{share-file-67eb033c.js → share-file-66a4fade.js} +5 -5
- package/{size-editor-510212eb.js → size-editor-18fbc556.js} +15 -15
- package/{skeleton-widget-a2602734.js → skeleton-widget-ce9b9cb0.js} +16 -16
- package/{skeletonItem-widget-04d7fd25.js → skeletonItem-widget-31ee91f2.js} +13 -13
- package/{slider-widget-be9a1f6a.js → slider-widget-f57e3926.js} +15 -15
- package/{slot-92a62ccb.js → slot-359aec81.js} +4 -4
- package/{space-widget-e6030989.js → space-widget-03099361.js} +14 -14
- package/{splitter-widget-59a86414.js → splitter-widget-b8123c34.js} +14 -14
- package/{static-text-widget-a768744d.js → static-text-widget-3c8b6819.js} +14 -14
- package/{statistic-widget-8b430599.js → statistic-widget-b428e49f.js} +16 -16
- package/{steps-widget-e972664d.js → steps-widget-98aef9cb.js} +13 -13
- package/{subMenu-widget-17cd9886.js → subMenu-widget-a87e3dc3.js} +6 -6
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-51eedd2e.js → subMenu-widget.vue_vue_type_script_setup_true_lang-0f0c7774.js} +2 -2
- package/{switch-widget-04cd74f6.js → switch-widget-844bf443.js} +15 -15
- package/{tab-pane-widget-1201a1cb.js → tab-pane-widget-2f1c455e.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-802714ab.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-85a81e99.js} +5 -5
- package/table-col-widget-105d4c86.js +27 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-930b5abc.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8b16410d.js} +6 -6
- package/{table-widget-b109d43f.js → table-widget-d8aa740d.js} +18 -18
- package/{tabs-widget-b30343b8.js → tabs-widget-6fdd6666.js} +7 -7
- package/{tag-widget-96791265.js → tag-widget-93d8d860.js} +16 -16
- package/{target-code-4b600c1c.js → target-code-ece31445.js} +7 -7
- package/{target-datasource-ae88f7d2.js → target-datasource-e7b03f4a.js} +34 -34
- package/{target-link-ba16e2bb.js → target-link-3693076d.js} +33 -33
- package/{target-saveForm-48f26dbe.js → target-saveForm-ed5394df.js} +33 -33
- package/{target-widget-77899f98.js → target-widget-72c3bb92.js} +1 -1
- package/{target-window-2374c60a.js → target-window-20bef03c.js} +8 -8
- package/{text-widget-ba10f5d0.js → text-widget-3ef56ae9.js} +16 -16
- package/{textarea-widget-6d06658f.js → textarea-widget-7d82678b.js} +15 -15
- package/{time-picker-range-widget-b7b79052.js → time-picker-range-widget-52559d61.js} +15 -15
- package/{time-picker-widget-282f49c0.js → time-picker-widget-db102891.js} +15 -15
- package/{time-select-widget-c24e8d75.js → time-select-widget-cd82072a.js} +15 -15
- package/{timeline-widget-b870926b.js → timeline-widget-f2c48fc4.js} +80 -80
- package/tmpl-widget-42f29ab8.js +102 -0
- package/{tooltip-widget-2797db64.js → tooltip-widget-be618591.js} +14 -14
- package/{tour-widget-c64d5c4f.js → tour-widget-08a8396c.js} +31 -31
- package/{transfer-widget-b0797f27.js → transfer-widget-4184aa82.js} +33 -33
- package/{tree-select-widget-222972fb.js → tree-select-widget-d46fbf6e.js} +15 -15
- package/{tree-widget-08adb635.js → tree-widget-5b44d2be.js} +13 -13
- package/{value-editor-42038640.js → value-editor-b7c7d2e7.js} +12 -12
- package/{verifycode-widget-c5e8f9c6.js → verifycode-widget-c2671e3d.js} +13 -13
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c39260e2.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-14afc295.js} +5 -5
- package/{wrapper-widget-6e690296.js → wrapper-widget-5f7bfba9.js} +6 -6
- package/chart-widget-d3d8651f.js +0 -92
- package/common-editor-135904ae.js +0 -27
- package/form-widget-331a94ba.js +0 -247
- package/iframe-widget-1a5e1140.js +0 -117
- package/index-937b1e27.js +0 -49
- package/share-field-99831984.js +0 -842
- package/table-col-widget-5b7cc3e5.js +0 -27
- package/tmpl-widget-95025cff.js +0 -102
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { ref as X, reactive as G, onMounted as me, nextTick as Ee, defineComponent as pe, computed as ie, resolveComponent as ye, resolveDirective as Ne, openBlock as le, createBlock as de, mergeProps as J, unref as p, withCtx as re, withDirectives as Re, toHandlers as Me, withModifiers as ke, createVNode as Ae } from "vue";
|
|
2
|
+
import { I as Pe } from "./widget-base-8eece820.js";
|
|
3
|
+
import { D as $e } from "./drag-wrapper-c4ef72c1.js";
|
|
4
|
+
import { _ as Ie } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-14afc295.js";
|
|
5
|
+
import { w as Y, a as se, b as $, f as L, c as Be } from "./expression-bcf074b8.js";
|
|
6
|
+
import { u as qe } from "./icon-aff7bde2.js";
|
|
7
|
+
import { u as He } from "./emitter-00809005.js";
|
|
8
|
+
import { i as Te, a as ve } from "./enum-type-53abee45.js";
|
|
9
|
+
import { $ as ze, B as Ke } from "./baseImp-d07c59b1.js";
|
|
10
|
+
import { f as Ue } from "./index-3353cdf1.js";
|
|
11
|
+
import { c as Ge, a as Je, u as Qe } from "./share-field-bcc5d86d.js";
|
|
12
|
+
import { W as Xe } from "./enum-type-f35e9c94.js";
|
|
13
|
+
import { u as Ye } from "./multirow-423eaa76.js";
|
|
14
|
+
import { e as Q, f as fe, d as ce, g as ue, h as Ze, j as et, k as tt } from "./obj-de9ca9c2.js";
|
|
15
|
+
import { F as ot } from "./slot-359aec81.js";
|
|
16
|
+
import { _ as at } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
+
function nt(s) {
|
|
18
|
+
const O = s.widget, v = s.designer, b = v == null ? void 0 : v.pageConfig, F = s == null ? void 0 : s.widgetList, j = X({}), x = {}, { fieldModel: I, fieldName: B, fieldEditor: f, attrs: E, events: h, hasFieldOptions: y, exposed: w, fieldObj: q, watchOption: D, propResultOpt: V, extendAttrs: _ } = Ge(s), { off$: i, on$: u, emit$: H, broadcast: N } = He();
|
|
19
|
+
var { instance: S } = qe();
|
|
20
|
+
const { setAllRefList: R } = Je(j.value), W = { designState: s == null ? void 0 : s.designState, pageConfig: b, globalConfig: V == null ? void 0 : V.globalConfig }, { formModel: M, setData: ge, getData: k, clearData: Z } = Ye(F, { ...W }), { handleFunc: T } = Qe({ options: b }, W), z = G({}), he = () => {
|
|
21
|
+
i(L.fieldChange), u(L.fieldChange, (e) => {
|
|
22
|
+
De(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), w == null || w.setValue(M), Fe(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue);
|
|
23
|
+
});
|
|
24
|
+
}, _e = () => {
|
|
25
|
+
i(L.fieldValidation), u(L.fieldValidation, (e) => {
|
|
26
|
+
var t;
|
|
27
|
+
(t = f.value) == null || t.validateField(e == null ? void 0 : e.propName);
|
|
28
|
+
});
|
|
29
|
+
}, Ce = () => {
|
|
30
|
+
i(L.fieldRuleChange), u(L.fieldRuleChange, (e) => {
|
|
31
|
+
var o;
|
|
32
|
+
var t = (o = e == null ? void 0 : e.rules) == null ? void 0 : o.map((a) => ({
|
|
33
|
+
required: a.required,
|
|
34
|
+
message: a.message,
|
|
35
|
+
trigger: a.trigger,
|
|
36
|
+
validator: a.validator
|
|
37
|
+
}));
|
|
38
|
+
Object.assign(z, { [e == null ? void 0 : e.fieldName]: t }), E.value.rules = z;
|
|
39
|
+
});
|
|
40
|
+
}, K = X(!1), U = G({}), A = G({}), ee = (e) => {
|
|
41
|
+
fe(A), ce(A, e);
|
|
42
|
+
}, be = () => ({
|
|
43
|
+
change_info: Q(U),
|
|
44
|
+
before_info: Q(A),
|
|
45
|
+
after_info: Q(M),
|
|
46
|
+
flag: K.value
|
|
47
|
+
}), Fe = (e, t, o) => {
|
|
48
|
+
var a = A[e];
|
|
49
|
+
ue(t, o) || ue(t, a) || (K.value = !0, e && ce(U, { [e]: { oldValue: a, newValue: t, beforeValue: o } }));
|
|
50
|
+
}, we = () => {
|
|
51
|
+
K.value = !1, fe(U), ee(k());
|
|
52
|
+
}, De = (e, t, o) => {
|
|
53
|
+
T(h.value.formDataChange, { field: { fieldName: e, newValue: t, oldValue: o }, formModel: M });
|
|
54
|
+
}, Le = () => {
|
|
55
|
+
T(h.value.formCreated);
|
|
56
|
+
}, Ve = () => {
|
|
57
|
+
T(h.value.formMounted);
|
|
58
|
+
}, Se = () => {
|
|
59
|
+
Ce(), he(), _e(), Le();
|
|
60
|
+
}, We = (e) => {
|
|
61
|
+
var t;
|
|
62
|
+
(t = f.value) == null || t.clearValidate(e);
|
|
63
|
+
}, Oe = () => {
|
|
64
|
+
R(Xe.resetField), Ee(() => {
|
|
65
|
+
We();
|
|
66
|
+
});
|
|
67
|
+
}, te = (e, t) => {
|
|
68
|
+
let o = [];
|
|
69
|
+
for (let c in e) {
|
|
70
|
+
var a = e[c], d = a == null ? void 0 : a.filter((r) => (r == null ? void 0 : r.force) === t);
|
|
71
|
+
d == null || d.forEach((r) => {
|
|
72
|
+
var l;
|
|
73
|
+
const m = (l = r == null ? void 0 : r.rule) == null ? void 0 : l.label;
|
|
74
|
+
r.message && o.push(Be(m ? "【" + m + "】" : "", r.message, ":"));
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return Ze(o);
|
|
78
|
+
}, je = (e, t) => {
|
|
79
|
+
var o = {};
|
|
80
|
+
return Ue(t, (a) => {
|
|
81
|
+
var d = Ke.getName(a), c = et(e, d);
|
|
82
|
+
return c && (o[d] = e[d]), c;
|
|
83
|
+
}, !1), o;
|
|
84
|
+
}, xe = (e = !0) => {
|
|
85
|
+
var d, c, r;
|
|
86
|
+
let t = k(), o = function() {
|
|
87
|
+
}, a = new Promise(function(m, l) {
|
|
88
|
+
o = function(g, n) {
|
|
89
|
+
(n ? l : m)({ data: g, isSuccess: !n, message: n });
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
return !((d = f.value) != null && d.validate) || !e ? (o(t), a) : ((r = (c = f.value) == null ? void 0 : c.validate) == null || r.call(c, (m, l) => {
|
|
93
|
+
if (m)
|
|
94
|
+
o(t);
|
|
95
|
+
else {
|
|
96
|
+
var g = te(l, !0);
|
|
97
|
+
if (g && g.length > 0) {
|
|
98
|
+
o(t, g);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
var n = te(l, !1);
|
|
102
|
+
if (n && n.length > 0) {
|
|
103
|
+
n.push(ve.i18nt("designer.hint.continue")), ze.multiple(n).then((C) => {
|
|
104
|
+
o(t);
|
|
105
|
+
});
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}), a);
|
|
110
|
+
}, oe = (e, t = !0) => {
|
|
111
|
+
if (!O)
|
|
112
|
+
return;
|
|
113
|
+
var o = je(e, [O]);
|
|
114
|
+
ge(o, t);
|
|
115
|
+
const a = ["refList", "widgetRefList"];
|
|
116
|
+
N(Y.ContainerWidget, se.setFormData, e, S, a), N(Y.FieldWidget, se.setFormData, e, S, a);
|
|
117
|
+
}, ae = (e) => new Promise((t, o) => {
|
|
118
|
+
const a = (l, g) => {
|
|
119
|
+
var C, P, ne;
|
|
120
|
+
let n = (C = _.value) != null && C.formDataLoaded ? (ne = (P = _.value) == null ? void 0 : P.formDataLoaded) == null ? void 0 : ne.call(P, k(), l) : l;
|
|
121
|
+
tt(n) ? oe(n, !g) : n = {}, ee(n), t(n);
|
|
122
|
+
}, d = () => {
|
|
123
|
+
D($.newDataSource).then((l) => {
|
|
124
|
+
a(l, !0);
|
|
125
|
+
});
|
|
126
|
+
}, c = () => {
|
|
127
|
+
D($.editDataSource).then((l) => {
|
|
128
|
+
var n, C;
|
|
129
|
+
if (((C = (n = _.value) == null ? void 0 : n.needFormAdd) == null ? void 0 : C.call(n, l)) && m) {
|
|
130
|
+
d();
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
a(l, !1);
|
|
134
|
+
});
|
|
135
|
+
}, r = y($.editDataSource), m = y($.newDataSource);
|
|
136
|
+
r ? c() : m && d();
|
|
137
|
+
});
|
|
138
|
+
return Se(), me(() => {
|
|
139
|
+
Te(), Ve();
|
|
140
|
+
}), {
|
|
141
|
+
widgetRefList: j,
|
|
142
|
+
allWidgetRefList: x,
|
|
143
|
+
fieldEditor: f,
|
|
144
|
+
formModel: M,
|
|
145
|
+
pageConfig: b,
|
|
146
|
+
widgetList: F,
|
|
147
|
+
fieldModel: I,
|
|
148
|
+
fieldName: B,
|
|
149
|
+
attrs: E,
|
|
150
|
+
extendAttrs: _,
|
|
151
|
+
events: h,
|
|
152
|
+
rules: z,
|
|
153
|
+
loadData: ae,
|
|
154
|
+
clearData: Z,
|
|
155
|
+
exposed: {
|
|
156
|
+
...w,
|
|
157
|
+
setValue: oe,
|
|
158
|
+
getValue: xe,
|
|
159
|
+
resetField: Oe,
|
|
160
|
+
clearData: Z,
|
|
161
|
+
loadData: ae,
|
|
162
|
+
getData: k,
|
|
163
|
+
//修改痕迹
|
|
164
|
+
clearChangeRecord: we,
|
|
165
|
+
getChangeRecord: be,
|
|
166
|
+
emit$: H
|
|
167
|
+
},
|
|
168
|
+
fieldObj: q
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
const it = pe({ componentName: Y.ContainerWidget }), lt = /* @__PURE__ */ pe({
|
|
172
|
+
...it,
|
|
173
|
+
__name: "form-widget",
|
|
174
|
+
props: { ...Pe },
|
|
175
|
+
setup(s, { expose: O }) {
|
|
176
|
+
var _;
|
|
177
|
+
const v = s, { exposed: b, formModel: F, fieldEditor: j, attrs: x, events: I, widgetRefList: B, extendAttrs: f, fieldName: E, fieldObj: h, loadData: y } = nt({ ...v, widgetList: (_ = v == null ? void 0 : v.widget) == null ? void 0 : _.widgetList }), w = E.value, q = ie(() => {
|
|
178
|
+
var i, u;
|
|
179
|
+
return {
|
|
180
|
+
disabled: (i = x.value) == null ? void 0 : i.disabled,
|
|
181
|
+
readonly: (u = f.value) == null ? void 0 : u.readonly
|
|
182
|
+
};
|
|
183
|
+
}), D = X(!1), V = ie(() => {
|
|
184
|
+
var i;
|
|
185
|
+
return D.value || ((i = f.value) == null ? void 0 : i.showLoading);
|
|
186
|
+
});
|
|
187
|
+
return ot.globalProvide({
|
|
188
|
+
globalFormName: w,
|
|
189
|
+
globalDataModel: F,
|
|
190
|
+
globalFormOptions: q
|
|
191
|
+
}), me(() => {
|
|
192
|
+
var i;
|
|
193
|
+
(i = f.value) != null && i.loadDataWhenInit && !v.designState && (D.value = !0, y(!0).catch((u) => {
|
|
194
|
+
}).finally(() => {
|
|
195
|
+
D.value = !1, b.clearChangeRecord();
|
|
196
|
+
}));
|
|
197
|
+
}), O({ ...b }), (i, u) => {
|
|
198
|
+
const H = ye("el-form"), N = Ne("loading");
|
|
199
|
+
return le(), de(Ie, J(i.$props, {
|
|
200
|
+
"prop-options": { fieldObj: p(h) }
|
|
201
|
+
}), {
|
|
202
|
+
default: re(({ data: S }) => {
|
|
203
|
+
var R;
|
|
204
|
+
return [
|
|
205
|
+
Re((le(), de(H, J({
|
|
206
|
+
ref_key: "fieldEditor",
|
|
207
|
+
ref: j,
|
|
208
|
+
model: p(F)
|
|
209
|
+
}, p(x), Me(p(I)), {
|
|
210
|
+
class: S.injectClass,
|
|
211
|
+
key: (R = p(h)) == null ? void 0 : R.fieldKey,
|
|
212
|
+
"element-loading-text": p(f).loadingText || p(ve).i18nt("designer.hint.dataLoading"),
|
|
213
|
+
onSubmit: u[0] || (u[0] = ke(() => {
|
|
214
|
+
}, ["prevent"]))
|
|
215
|
+
}), {
|
|
216
|
+
default: re(() => {
|
|
217
|
+
var W;
|
|
218
|
+
return [
|
|
219
|
+
Ae($e, J(i.$props, {
|
|
220
|
+
dragClass: "formDrag padSize",
|
|
221
|
+
model: p(F),
|
|
222
|
+
provideModel: !0,
|
|
223
|
+
"component-class": S.componentWrapperClass,
|
|
224
|
+
refList: p(B),
|
|
225
|
+
"show-suspense": (W = p(f)) == 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
|
+
[N, V.value]
|
|
232
|
+
])
|
|
233
|
+
];
|
|
234
|
+
}),
|
|
235
|
+
_: 1
|
|
236
|
+
}, 16, ["prop-options"]);
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
const dt = /* @__PURE__ */ at(lt, [["__scopeId", "data-v-2649eac0"]]), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
241
|
+
__proto__: null,
|
|
242
|
+
default: dt
|
|
243
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
244
|
+
export {
|
|
245
|
+
Lt as _
|
|
246
|
+
};
|
|
@@ -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-e250d72f.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 r, withCtx as W, createVNode as x } from "vue";
|
|
2
|
-
import { w as k } from "./expression-
|
|
2
|
+
import { w as k } from "./expression-bcf074b8.js";
|
|
3
3
|
import { I as A } from "./widget-base-8eece820.js";
|
|
4
|
-
import { D as b } from "./drag-wrapper-
|
|
5
|
-
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
6
|
-
import { c as H } from "./share-field-
|
|
7
|
-
import { c as $ } from "./slot-
|
|
4
|
+
import { D as b } from "./drag-wrapper-c4ef72c1.js";
|
|
5
|
+
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-14afc295.js";
|
|
6
|
+
import { c as H } from "./share-field-bcc5d86d.js";
|
|
7
|
+
import { c as $ } from "./slot-359aec81.js";
|
|
8
8
|
const z = m({ componentName: k.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
|
-
import { w as k, b as y } from "./expression-
|
|
2
|
+
import { w as k, b as y } from "./expression-bcf074b8.js";
|
|
3
3
|
import { I as C } from "./widget-base-8eece820.js";
|
|
4
|
-
import { _ as O } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-
|
|
5
|
-
import { _ as S } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
6
|
-
import { c as j } from "./share-field-
|
|
7
|
-
import { c as P } from "./slot-
|
|
4
|
+
import { _ as O } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-e250d72f.js";
|
|
5
|
+
import { _ as S } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-14afc295.js";
|
|
6
|
+
import { c as j } from "./share-field-bcc5d86d.js";
|
|
7
|
+
import { c as P } from "./slot-359aec81.js";
|
|
8
8
|
const v = p({ componentName: k.ContainerWidget }), B = /* @__PURE__ */ p({
|
|
9
9
|
...v,
|
|
10
10
|
__name: "grid-widget",
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { defineComponent as C, useCssVars as j, computed as t, openBlock as p, createBlock as f, mergeProps as i, unref as r, withCtx as D, createElementBlock as _, normalizeClass as E, createElementVNode as g, Fragment as F, createTextVNode as I, toDisplayString as P, normalizeStyle as H, createVNode as O } from "vue";
|
|
2
|
-
import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
3
|
-
import { c as T } from "./share-field-
|
|
4
|
-
import { D as v } from "./drag-wrapper-
|
|
5
|
-
import { w as q } from "./expression-
|
|
6
|
-
import { e as h } from "./slot-
|
|
2
|
+
import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-14afc295.js";
|
|
3
|
+
import { c as T } from "./share-field-bcc5d86d.js";
|
|
4
|
+
import { D as v } from "./drag-wrapper-c4ef72c1.js";
|
|
5
|
+
import { w as q } from "./expression-bcf074b8.js";
|
|
6
|
+
import { e as h } from "./slot-359aec81.js";
|
|
7
7
|
import { I as A } from "./widget-base-8eece820.js";
|
|
8
8
|
import { g as l, a as G } from "./color-bae04003.js";
|
|
9
9
|
import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
|
|
10
|
-
import "./enum-type-
|
|
10
|
+
import "./enum-type-53abee45.js";
|
|
11
11
|
import "./obj-de9ca9c2.js";
|
|
12
|
-
import "./index-
|
|
12
|
+
import "./index-3353cdf1.js";
|
|
13
13
|
import "./uuid-dab47659.js";
|
|
14
|
-
import "./enum-type-
|
|
15
|
-
import "./optionItem-
|
|
16
|
-
import "./baseImp-
|
|
14
|
+
import "./enum-type-f35e9c94.js";
|
|
15
|
+
import "./optionItem-80618414.js";
|
|
16
|
+
import "./baseImp-d07c59b1.js";
|
|
17
17
|
import "./icon-aff7bde2.js";
|
|
18
|
-
import "./dialog-
|
|
18
|
+
import "./dialog-3dfa5e38.js";
|
|
19
19
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
20
20
|
import "element-plus";
|
|
21
|
-
import "./index-
|
|
21
|
+
import "./index-9bda915b.js";
|
|
22
22
|
import "./index-0c1a0ddc.js";
|
|
23
23
|
import "./fieldobj-a62cc1fc.js";
|
|
24
24
|
import "./emitter-00809005.js";
|
|
25
|
-
import "./multirow-
|
|
25
|
+
import "./multirow-423eaa76.js";
|
|
26
26
|
import "./source-map-b04aec4a.js";
|
|
27
27
|
import "./esprima-e8d15055.js";
|
|
28
|
-
import "./index-
|
|
28
|
+
import "./index-6480019f.js";
|
|
29
29
|
const L = { class: "--hcard-header" }, M = C({ componentName: q.ContainerWidget }), Q = /* @__PURE__ */ C({
|
|
30
30
|
...M,
|
|
31
31
|
__name: "hcard-widget",
|
|
@@ -1,26 +1,26 @@
|
|
|
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-1acf3ada.js";
|
|
3
|
-
import { c as P } from "./share-field-
|
|
4
|
-
import { w as h } from "./expression-
|
|
5
|
-
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
6
|
-
import { _ as k } from "./content-wrapper.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { c as P } from "./share-field-bcc5d86d.js";
|
|
4
|
+
import { w as h } from "./expression-bcf074b8.js";
|
|
5
|
+
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-14afc295.js";
|
|
6
|
+
import { _ as k } from "./content-wrapper.vue_vue_type_script_setup_true_lang-2cdf4d4b.js";
|
|
7
7
|
import "./widget-base-8eece820.js";
|
|
8
8
|
import "./obj-de9ca9c2.js";
|
|
9
9
|
import "./emitter-00809005.js";
|
|
10
10
|
import "./icon-aff7bde2.js";
|
|
11
|
-
import "./enum-type-
|
|
12
|
-
import "./baseImp-
|
|
13
|
-
import "./enum-type-
|
|
14
|
-
import "./dialog-
|
|
11
|
+
import "./enum-type-53abee45.js";
|
|
12
|
+
import "./baseImp-d07c59b1.js";
|
|
13
|
+
import "./enum-type-f35e9c94.js";
|
|
14
|
+
import "./dialog-3dfa5e38.js";
|
|
15
15
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
16
|
import "./uuid-dab47659.js";
|
|
17
17
|
import "element-plus";
|
|
18
|
-
import "./slot-
|
|
19
|
-
import "./index-
|
|
20
|
-
import "./index-
|
|
21
|
-
import "./optionItem-
|
|
22
|
-
import "./index-
|
|
23
|
-
import "./multirow-
|
|
18
|
+
import "./slot-359aec81.js";
|
|
19
|
+
import "./index-6480019f.js";
|
|
20
|
+
import "./index-3353cdf1.js";
|
|
21
|
+
import "./optionItem-80618414.js";
|
|
22
|
+
import "./index-9bda915b.js";
|
|
23
|
+
import "./multirow-423eaa76.js";
|
|
24
24
|
import "./source-map-b04aec4a.js";
|
|
25
25
|
import "./esprima-e8d15055.js";
|
|
26
26
|
import "./index-0c1a0ddc.js";
|
|
@@ -1,27 +1,27 @@
|
|
|
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-1acf3ada.js";
|
|
3
|
-
import { w as S } from "./expression-
|
|
4
|
-
import { c as b } from "./share-field-
|
|
5
|
-
import { _ as h } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
6
|
-
import { S as B } from "./enum-type-
|
|
3
|
+
import { w as S } from "./expression-bcf074b8.js";
|
|
4
|
+
import { c as b } from "./share-field-bcc5d86d.js";
|
|
5
|
+
import { _ as h } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-14afc295.js";
|
|
6
|
+
import { S as B } from "./enum-type-f35e9c94.js";
|
|
7
7
|
import "./widget-base-8eece820.js";
|
|
8
8
|
import "./source-map-b04aec4a.js";
|
|
9
9
|
import "./obj-de9ca9c2.js";
|
|
10
10
|
import "./uuid-dab47659.js";
|
|
11
|
-
import "./enum-type-
|
|
11
|
+
import "./enum-type-53abee45.js";
|
|
12
12
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
13
13
|
import "./esprima-e8d15055.js";
|
|
14
14
|
import "./emitter-00809005.js";
|
|
15
15
|
import "./icon-aff7bde2.js";
|
|
16
|
-
import "./baseImp-
|
|
17
|
-
import "./dialog-
|
|
16
|
+
import "./baseImp-d07c59b1.js";
|
|
17
|
+
import "./dialog-3dfa5e38.js";
|
|
18
18
|
import "element-plus";
|
|
19
|
-
import "./slot-
|
|
20
|
-
import "./index-
|
|
21
|
-
import "./index-
|
|
22
|
-
import "./optionItem-
|
|
23
|
-
import "./index-
|
|
24
|
-
import "./multirow-
|
|
19
|
+
import "./slot-359aec81.js";
|
|
20
|
+
import "./index-6480019f.js";
|
|
21
|
+
import "./index-3353cdf1.js";
|
|
22
|
+
import "./optionItem-80618414.js";
|
|
23
|
+
import "./index-9bda915b.js";
|
|
24
|
+
import "./multirow-423eaa76.js";
|
|
25
25
|
import "./index-0c1a0ddc.js";
|
|
26
26
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
27
27
|
import "./fieldobj-a62cc1fc.js";
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { defineComponent as Q, computed as b, ref as h, onMounted as O, watch as R, resolveComponent as T, resolveDirective as V, openBlock as d, createBlock as I, mergeProps as L, unref as a, withCtx as q, createCommentVNode as U, withDirectives as z, createElementBlock as j, toHandlers as H } from "vue";
|
|
2
|
+
import { z as y } from "./baseImp-d07c59b1.js";
|
|
3
|
+
import { w as K } from "./expression-bcf074b8.js";
|
|
4
|
+
import { c as M } from "./share-field-bcc5d86d.js";
|
|
5
|
+
import { _ as G } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-14afc295.js";
|
|
6
|
+
import { I as J } from "./field-base-1acf3ada.js";
|
|
7
|
+
import { g as X } from "./uuid-dab47659.js";
|
|
8
|
+
import { l as B } from "./enum-type-53abee45.js";
|
|
9
|
+
import { _ as Y } from "./_plugin-vue_export-helper-dad06003.js";
|
|
10
|
+
import "./obj-de9ca9c2.js";
|
|
11
|
+
import "./enum-type-f35e9c94.js";
|
|
12
|
+
import "./icon-aff7bde2.js";
|
|
13
|
+
import "./dialog-3dfa5e38.js";
|
|
14
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
+
import "element-plus";
|
|
16
|
+
import "./source-map-b04aec4a.js";
|
|
17
|
+
import "./esprima-e8d15055.js";
|
|
18
|
+
import "./emitter-00809005.js";
|
|
19
|
+
import "./slot-359aec81.js";
|
|
20
|
+
import "./index-6480019f.js";
|
|
21
|
+
import "./index-3353cdf1.js";
|
|
22
|
+
import "./optionItem-80618414.js";
|
|
23
|
+
import "./index-9bda915b.js";
|
|
24
|
+
import "./multirow-423eaa76.js";
|
|
25
|
+
import "./widget-base-8eece820.js";
|
|
26
|
+
import "./index-0c1a0ddc.js";
|
|
27
|
+
import "./fieldobj-a62cc1fc.js";
|
|
28
|
+
function Z(s, f) {
|
|
29
|
+
var c;
|
|
30
|
+
if (!s) {
|
|
31
|
+
B.error("iframe is empty");
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const o = (c = s.contentWindow) == null ? void 0 : c.document;
|
|
35
|
+
if (!o) {
|
|
36
|
+
B.error("iframe doc is empty");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
o.open(), o.write(f), o.close();
|
|
40
|
+
}
|
|
41
|
+
const A = {
|
|
42
|
+
key: 1,
|
|
43
|
+
class: "full-width full-height nopadding nomargin"
|
|
44
|
+
}, ee = ["src", "id"], oe = Q({ componentName: K.FieldWidget }), re = /* @__PURE__ */ Q({
|
|
45
|
+
...oe,
|
|
46
|
+
__name: "iframe-widget",
|
|
47
|
+
props: { ...J },
|
|
48
|
+
setup(s, { expose: f }) {
|
|
49
|
+
const o = s, { exposed: c, fieldEditor: w, events: m, attrs: k, extendAttrs: r, fieldObj: W, fieldKey: $, fieldName: x } = M(o), E = b(() => i.value && !t.value ? "full-width full-height" : "mini-wrapper"), t = h(!1), _ = h(), F = (e) => {
|
|
50
|
+
var l, n;
|
|
51
|
+
const v = ((l = r == null ? void 0 : r.value) == null ? void 0 : l.withQuery) ? y.getLocationQueryParams() : {}, g = y.buildUrl(e, v), p = (n = r == null ? void 0 : r.value) == null ? void 0 : n.hashRouter;
|
|
52
|
+
return y.resolveByCurrentUrl(g, p ? X() + "" : "");
|
|
53
|
+
}, C = h(), i = b(() => {
|
|
54
|
+
if (_.value)
|
|
55
|
+
return _.value;
|
|
56
|
+
const e = C.value || k.value.src;
|
|
57
|
+
return e == "" || e == "#" ? "" : F(e);
|
|
58
|
+
}), N = () => {
|
|
59
|
+
var e, u;
|
|
60
|
+
t.value = !1, (u = (e = m == null ? void 0 : m.value) == null ? void 0 : e.onLoaded) == null || u.call(e);
|
|
61
|
+
}, P = (e) => {
|
|
62
|
+
C.value = e;
|
|
63
|
+
}, S = (e) => {
|
|
64
|
+
_.value = e;
|
|
65
|
+
}, D = (e) => {
|
|
66
|
+
Z(w.value, e);
|
|
67
|
+
};
|
|
68
|
+
return O(() => {
|
|
69
|
+
i.value && (t.value = !0);
|
|
70
|
+
}), R(() => i.value, (e) => {
|
|
71
|
+
e && (t.value = !0);
|
|
72
|
+
}), f({
|
|
73
|
+
...c,
|
|
74
|
+
loadSrc: P,
|
|
75
|
+
loadUrl: S,
|
|
76
|
+
loadContent: D
|
|
77
|
+
}), (e, u) => {
|
|
78
|
+
var p;
|
|
79
|
+
const v = T("el-empty"), g = V("loading");
|
|
80
|
+
return d(), I(G, L(e.$props, {
|
|
81
|
+
"prop-options": { fieldObj: a(W) },
|
|
82
|
+
key: (p = e.widget) == null ? void 0 : p.id
|
|
83
|
+
}), {
|
|
84
|
+
default: q(({ data: l }) => {
|
|
85
|
+
var n;
|
|
86
|
+
return [
|
|
87
|
+
i.value ? U("", !0) : (d(), I(v, {
|
|
88
|
+
key: 0,
|
|
89
|
+
description: (n = a(k)) == null ? void 0 : n.emptyText,
|
|
90
|
+
class: "full-width full-height nopadding nomargin"
|
|
91
|
+
}, null, 8, ["description"])),
|
|
92
|
+
t.value ? z((d(), j("div", A, null, 512)), [
|
|
93
|
+
[g, t.value]
|
|
94
|
+
]) : U("", !0),
|
|
95
|
+
(d(), j("iframe", L({
|
|
96
|
+
ref_key: "fieldEditor",
|
|
97
|
+
ref: w,
|
|
98
|
+
key: `${a($)}_${i.value}`
|
|
99
|
+
}, H(a(m), !0), {
|
|
100
|
+
onLoad: N,
|
|
101
|
+
src: i.value,
|
|
102
|
+
class: [[...l.injectClass, E.value], "nopadding nomargin hlIframe"],
|
|
103
|
+
frameborder: 0,
|
|
104
|
+
style: l.injectStyle,
|
|
105
|
+
id: a(x)
|
|
106
|
+
}), null, 16, ee))
|
|
107
|
+
];
|
|
108
|
+
}),
|
|
109
|
+
_: 1
|
|
110
|
+
}, 16, ["prop-options"]);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
const We = /* @__PURE__ */ Y(re, [["__scopeId", "data-v-bc4cf8a6"]]);
|
|
115
|
+
export {
|
|
116
|
+
We as default
|
|
117
|
+
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as a, openBlock as f, createBlock as u, normalizeProps as c, guardReactiveProps as g, withCtx as i, createVNode as m, mergeProps as P, unref as r, isRef as _ } from "vue";
|
|
2
|
-
import { I as E } from "./property-base-
|
|
3
|
-
import { w as V } from "./expression-
|
|
4
|
-
import { u as y } from "./share-editor-
|
|
5
|
-
import { E as C, O as w } from "./editor-wrapper-
|
|
2
|
+
import { I as E } from "./property-base-bddac18d.js";
|
|
3
|
+
import { w as V } from "./expression-bcf074b8.js";
|
|
4
|
+
import { u as y } from "./share-editor-25591f75.js";
|
|
5
|
+
import { E as C, O as w } from "./editor-wrapper-c40dad6b.js";
|
|
6
6
|
import { d as B, e as I } from "./obj-de9ca9c2.js";
|
|
7
|
-
import { ay as h } from "./enum-type-
|
|
8
|
-
import { h as k } from "./_share_image-
|
|
9
|
-
import "./enum-type-
|
|
10
|
-
import "./baseImp-
|
|
7
|
+
import { ay as h } from "./enum-type-f35e9c94.js";
|
|
8
|
+
import { h as k } from "./_share_image-d51fea3f.js";
|
|
9
|
+
import "./enum-type-53abee45.js";
|
|
10
|
+
import "./baseImp-d07c59b1.js";
|
|
11
11
|
import "./icon-aff7bde2.js";
|
|
12
|
-
import "./dialog-
|
|
12
|
+
import "./dialog-3dfa5e38.js";
|
|
13
13
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
14
|
import "./uuid-dab47659.js";
|
|
15
15
|
import "element-plus";
|
|
16
16
|
import "./source-map-b04aec4a.js";
|
|
17
17
|
import "./esprima-e8d15055.js";
|
|
18
|
-
import "./share-event-
|
|
18
|
+
import "./share-event-332c470a.js";
|
|
19
19
|
import "./emitter-00809005.js";
|
|
20
|
-
import "./index-
|
|
21
|
-
import "./optionItem-
|
|
22
|
-
import "./index-
|
|
20
|
+
import "./index-3353cdf1.js";
|
|
21
|
+
import "./optionItem-80618414.js";
|
|
22
|
+
import "./index-9bda915b.js";
|
|
23
23
|
import "./index-0c1a0ddc.js";
|
|
24
24
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
25
25
|
import "./_share_wrapper-9d61ae87.js";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
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 F, createSlots as O, renderList as b, resolveDynamicComponent as B } from "vue";
|
|
2
|
-
import { w as E } from "./expression-
|
|
2
|
+
import { w as E } from "./expression-bcf074b8.js";
|
|
3
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-
|
|
5
|
-
import { c as P } from "./share-field-
|
|
6
|
-
import { g as $ } from "./slot-
|
|
4
|
+
import { _ as N } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-14afc295.js";
|
|
5
|
+
import { c as P } from "./share-field-bcc5d86d.js";
|
|
6
|
+
import { g as $ } from "./slot-359aec81.js";
|
|
7
7
|
import "./source-map-b04aec4a.js";
|
|
8
8
|
import "./obj-de9ca9c2.js";
|
|
9
9
|
import "./uuid-dab47659.js";
|
|
10
|
-
import "./enum-type-
|
|
10
|
+
import "./enum-type-53abee45.js";
|
|
11
11
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
12
12
|
import "./esprima-e8d15055.js";
|
|
13
13
|
import "./widget-base-8eece820.js";
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./enum-type-
|
|
16
|
-
import "./optionItem-
|
|
17
|
-
import "./baseImp-
|
|
14
|
+
import "./index-3353cdf1.js";
|
|
15
|
+
import "./enum-type-f35e9c94.js";
|
|
16
|
+
import "./optionItem-80618414.js";
|
|
17
|
+
import "./baseImp-d07c59b1.js";
|
|
18
18
|
import "./icon-aff7bde2.js";
|
|
19
|
-
import "./dialog-
|
|
19
|
+
import "./dialog-3dfa5e38.js";
|
|
20
20
|
import "element-plus";
|
|
21
|
-
import "./index-
|
|
21
|
+
import "./index-9bda915b.js";
|
|
22
22
|
import "./index-0c1a0ddc.js";
|
|
23
23
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
24
24
|
import "./fieldobj-a62cc1fc.js";
|
|
25
25
|
import "./emitter-00809005.js";
|
|
26
|
-
import "./multirow-
|
|
27
|
-
import "./index-
|
|
26
|
+
import "./multirow-423eaa76.js";
|
|
27
|
+
import "./index-6480019f.js";
|
|
28
28
|
const A = c({ componentName: E.FieldWidget }), le = /* @__PURE__ */ c({
|
|
29
29
|
...A,
|
|
30
30
|
__name: "image-widget",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as B, useCssVars as K, unref as a, ref as i, watch as I, resolveComponent as C, openBlock as T, createElementBlock as Q, createElementVNode as t, createVNode as r, withCtx as c, toDisplayString as u, mergeProps as M, createBlock as X } from "vue";
|
|
2
|
-
import { c as N, a as v } from "./enum-type-
|
|
3
|
-
import Y from "./index-
|
|
4
|
-
import { r as Z, q as ee, H as te } from "./expression-
|
|
5
|
-
import { e as oe, V as le, P as se } from "./baseImp-
|
|
2
|
+
import { c as N, a as v } from "./enum-type-53abee45.js";
|
|
3
|
+
import Y from "./index-2e3de9af.js";
|
|
4
|
+
import { r as Z, q as ee, H as te } from "./expression-bcf074b8.js";
|
|
5
|
+
import { e as oe, V as le, P as se } from "./baseImp-d07c59b1.js";
|
|
6
6
|
import { ElTree as R } from "element-plus";
|
|
7
7
|
import { Search as $ } from "./index-6bcfdc22.js";
|
|
8
8
|
import { u as ae } from "./setView-de8aaf40.js";
|
|
9
9
|
import { N as ne } from "./obj-de9ca9c2.js";
|
|
10
10
|
import { _ as re } from "./_plugin-vue_export-helper-dad06003.js";
|
|
11
|
-
import { I as ie } from "./property-base-
|
|
11
|
+
import { I as ie } from "./property-base-bddac18d.js";
|
|
12
12
|
import "./source-map-b04aec4a.js";
|
|
13
13
|
import "./uuid-dab47659.js";
|
|
14
14
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
15
|
import "./esprima-e8d15055.js";
|
|
16
|
-
import "./enum-type-
|
|
16
|
+
import "./enum-type-f35e9c94.js";
|
|
17
17
|
import "./icon-aff7bde2.js";
|
|
18
|
-
import "./dialog-
|
|
18
|
+
import "./dialog-3dfa5e38.js";
|
|
19
19
|
const ce = { id: "formulaPage" }, de = { class: "page" }, ue = { class: "card" }, pe = { class: "card_header" }, fe = { class: "card_body" }, _e = { class: "card" }, me = { class: "card_header" }, ve = { class: "card_body" }, he = { class: "card-search" }, be = { class: "var-item" }, Ve = { class: "var-title" }, ge = { class: "var-capsule" }, Fe = { class: "card" }, ye = { class: "card_header" }, Le = { class: "card_body" }, xe = { class: "card-search" }, Ce = ["onMouseover"], ke = { class: "card" }, we = { class: "card_header" }, Ee = { class: "card_body" }, He = { class: "text" }, Pe = ["innerHTML"], Ie = /* @__PURE__ */ B({
|
|
20
20
|
__name: "formula",
|
|
21
21
|
props: {
|