hldesigner 0.0.261 → 0.0.263
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-7f3f80ed.js → affix-widget-e753a24d.js} +2 -2
- package/{alert-widget-77d456a0.js → alert-widget-bcffd653.js} +2 -2
- package/{auto-complete-widget-f0b1d09e.js → auto-complete-widget-976493b4.js} +1 -1
- package/{avatar-widget-d25151d0.js → avatar-widget-dc349288.js} +2 -2
- package/{backtop-widget-72d29916.js → backtop-widget-d505f6b9.js} +2 -2
- package/{badge-widget-3cf336b3.js → badge-widget-52cb2379.js} +2 -2
- package/{button-widget-5073015e.js → button-widget-896895fc.js} +2 -2
- package/{card-widget-a2d70213.js → card-widget-2bc2e5c3.js} +1 -1
- package/{carousel-widget-7cbc90cf.js → carousel-widget-ce8b0e9f.js} +1 -1
- package/{collapse-widget-66a8782d.js → collapse-widget-11f84ba6.js} +1 -1
- package/{configItem-ac095ab4.js → configItem-b9ae8e36.js} +17 -17
- package/{cont-cell-widget-19872036.js → cont-cell-widget-5318492a.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-c43ba8d4.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-33252204.js} +1 -1
- package/{cont-widget-ec0ac434.js → cont-widget-c73a27e2.js} +1 -1
- package/{countdown-widget-47f0486e.js → countdown-widget-24a1f008.js} +2 -2
- package/{default-slot-widget-7becd648.js → default-slot-widget-84029579.js} +2 -2
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-facec1e8.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-091acc31.js} +1 -1
- package/{descriptions-widget-3a7df4c4.js → descriptions-widget-cecb6289.js} +1 -1
- package/designer.es.js +16 -16
- package/designer.style.css +1 -1
- package/designer.umd.js +91 -91
- package/{dialog-widget-b4dcf81c.js → dialog-widget-43766516.js} +2 -2
- package/{divider-widget-1e4690d7.js → divider-widget-6696c7b6.js} +2 -2
- package/{drag-wrapper-21480cf3.js → drag-wrapper-636f0170.js} +1 -1
- package/{drawer-widget-5da62cef.js → drawer-widget-331de048.js} +2 -2
- package/{dropdown-widget-6adf7abd.js → dropdown-widget-6b729d6b.js} +1 -1
- package/{empty-widget-b48caa26.js → empty-widget-0d6c47f7.js} +2 -2
- package/{feedback-widget-1bc224eb.js → feedback-widget-8a0b2ebf.js} +2 -2
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-2aafeb34.js +98 -0
- package/{file-upload-widget-240e3f6d.js → file-upload-widget-4d9d9696.js} +1 -1
- package/form-widget-331a94ba.js +247 -0
- package/{grid-col-widget-6c8ad660.js → grid-col-widget-fe76cf7e.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-5d8385a4.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ab8281e1.js} +1 -1
- package/{grid-widget-72ddf385.js → grid-widget-fd5d744d.js} +1 -1
- package/{hcard-widget-3b92b078.js → hcard-widget-52bf6d97.js} +1 -1
- package/iframe-widget-1a5e1140.js +117 -0
- package/{index-cece3c21.js → index-0c47df2f.js} +1 -1
- package/{index-4035adf8.js → index-1cc23461.js} +6 -6
- package/{index-07ccebe2.js → index-5d325c74.js} +16 -16
- package/{index-09172eb0.js → index-6d113b78.js} +3 -3
- package/{index-0cf48420.js → index-6d7def26.js} +1 -1
- package/{index-b37aa933.js → index-72618aa0.js} +18 -18
- package/{index-025c1aa1.js → index-8c0c21d0.js} +18 -18
- package/{input-tag-widget-1b1980b7.js → input-tag-widget-21d5746a.js} +1 -1
- package/{input-widget-3ec43e11.js → input-widget-54dc8e8a.js} +1 -1
- package/{install-designer-6c89e7c7.js → install-designer-ee0ff655.js} +12 -12
- package/{link-widget-69695081.js → link-widget-eb4734f7.js} +2 -2
- package/{ltable-col-widget-86dd1c5e.js → ltable-col-widget-d3af57b2.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7dfef234.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-c63bae8c.js} +1 -1
- package/{ltable-widget-8cb4c7f8.js → ltable-widget-5a75f839.js} +1 -1
- package/{mention-widget-71300d69.js → mention-widget-83b3c36a.js} +1 -1
- package/{multirow-widget-d5b9f732.js → multirow-widget-73b9f5b8.js} +1 -1
- package/package.json +1 -1
- package/{progress-widget-a507d6d7.js → progress-widget-e9a7ac91.js} +1 -1
- package/{range-widget-4390df58.js → range-widget-d2852556.js} +1 -1
- package/{reg-editor.vue_vue_type_script_setup_true_lang-55d6a47f.js → reg-editor.vue_vue_type_script_setup_true_lang-3a609547.js} +1 -1
- package/{result-widget-55a5a2de.js → result-widget-d504e54a.js} +1 -1
- package/{skeleton-widget-0fe76ef3.js → skeleton-widget-a2602734.js} +2 -2
- package/{space-widget-f6f3671d.js → space-widget-e6030989.js} +1 -1
- package/{splitter-widget-b3ef2978.js → splitter-widget-59a86414.js} +1 -1
- package/{statistic-widget-1d7e4b0d.js → statistic-widget-8b430599.js} +2 -2
- package/{tab-pane-widget-3453d80b.js → tab-pane-widget-1201a1cb.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-56ec9055.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-802714ab.js} +1 -1
- package/{table-col-widget-b7713df3.js → table-col-widget-5b7cc3e5.js} +2 -2
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-a76dd425.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-930b5abc.js} +1 -1
- package/{table-widget-5ece31d2.js → table-widget-b109d43f.js} +2 -2
- package/{tabs-widget-08290181.js → tabs-widget-b30343b8.js} +1 -1
- package/{tag-widget-af3633b9.js → tag-widget-96791265.js} +2 -2
- package/{target-datasource-23407237.js → target-datasource-ae88f7d2.js} +18 -18
- package/{target-link-4c25d7e8.js → target-link-ba16e2bb.js} +18 -18
- package/{target-saveForm-2a3cbf8c.js → target-saveForm-48f26dbe.js} +18 -18
- package/{text-widget-e807ae46.js → text-widget-ba10f5d0.js} +2 -2
- package/{timeline-widget-3a9456f9.js → timeline-widget-b870926b.js} +1 -1
- package/{tmpl-widget-62331166.js → tmpl-widget-95025cff.js} +1 -1
- package/{tooltip-widget-bff9e00b.js → tooltip-widget-2797db64.js} +1 -1
- package/{transfer-widget-f53b6bf1.js → transfer-widget-b0797f27.js} +1 -1
- package/{wrapper-widget-ca28a84d.js → wrapper-widget-6e690296.js} +1 -1
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-b543ab09.js +0 -90
- package/form-widget-49c41f9c.js +0 -256
- package/iframe-widget-2cc84335.js +0 -117
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as p, createBlock as t, mergeProps as i } from "vue";
|
|
2
|
-
import { _ as m } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-
|
|
2
|
+
import { _ as m } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-2aafeb34.js";
|
|
3
3
|
import { I as e } from "./widget-base-8eece820.js";
|
|
4
|
-
import "./drag-wrapper-
|
|
4
|
+
import "./drag-wrapper-636f0170.js";
|
|
5
5
|
import "./obj-de9ca9c2.js";
|
|
6
6
|
import "./enum-type-c8b77ba5.js";
|
|
7
7
|
import "./baseImp-301687cc.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, openBlock as f, createBlock as c, mergeProps as _, unref as r } from "vue";
|
|
2
2
|
import { I as u } from "./field-base-1acf3ada.js";
|
|
3
|
-
import { _ as g } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-
|
|
3
|
+
import { _ as g } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-091acc31.js";
|
|
4
4
|
import { w as v } from "./expression-9901f861.js";
|
|
5
5
|
import { c as x } from "./share-field-99831984.js";
|
|
6
6
|
import "./widget-base-8eece820.js";
|
|
@@ -23,7 +23,7 @@ import "./fieldobj-a62cc1fc.js";
|
|
|
23
23
|
import "./slot-92a62ccb.js";
|
|
24
24
|
import "./index-937b1e27.js";
|
|
25
25
|
import "./content-wrapper.vue_vue_type_script_setup_true_lang-7743da14.js";
|
|
26
|
-
import "./drag-wrapper-
|
|
26
|
+
import "./drag-wrapper-636f0170.js";
|
|
27
27
|
import "./source-map-b04aec4a.js";
|
|
28
28
|
import "./esprima-e8d15055.js";
|
|
29
29
|
import "./emitter-00809005.js";
|
|
@@ -17,7 +17,7 @@ function ee() {
|
|
|
17
17
|
let e = /* @__PURE__ */ new Map();
|
|
18
18
|
const s = (t) => {
|
|
19
19
|
var n = D.getWidgetName(t), w = null;
|
|
20
|
-
return n && (D.isContainer(t) ? w = B(() => W(/* @__PURE__ */ Object.assign({ "./container-widget/cont-cell-widget.vue": () => import("./cont-cell-widget-
|
|
20
|
+
return n && (D.isContainer(t) ? w = B(() => W(/* @__PURE__ */ Object.assign({ "./container-widget/cont-cell-widget.vue": () => import("./cont-cell-widget-5318492a.js").then((o) => o._), "./container-widget/cont-widget.vue": () => import("./cont-widget-c73a27e2.js").then((o) => o._), "./container-widget/form-widget.vue": () => import("./form-widget-331a94ba.js").then((o) => o._), "./container-widget/grid-col-widget.vue": () => import("./grid-col-widget-fe76cf7e.js").then((o) => o._), "./container-widget/grid-widget.vue": () => import("./grid-widget-fd5d744d.js").then((o) => o._), "./container-widget/ltable-col-widget.vue": () => import("./ltable-col-widget-d3af57b2.js").then((o) => o._), "./container-widget/ltable-widget.vue": () => import("./ltable-widget-5a75f839.js").then((o) => o._), "./container-widget/tab-pane-widget.vue": () => import("./tab-pane-widget-1201a1cb.js").then((o) => o._), "./container-widget/tabs-widget.vue": () => import("./tabs-widget-b30343b8.js").then((o) => o._), "./container-widget/wrapper-widget.vue": () => import("./wrapper-widget-6e690296.js").then((o) => o._) }), `./container-widget/${n}.vue`)) : w = B(() => W(/* @__PURE__ */ Object.assign({ "./field-widget/affix-widget.vue": () => import("./affix-widget-e753a24d.js"), "./field-widget/alert-widget.vue": () => import("./alert-widget-bcffd653.js"), "./field-widget/anchor-link-widget.vue": () => import("./anchor-link-widget-dae98704.js"), "./field-widget/anchor-widget.vue": () => import("./anchor-widget-1de0909a.js"), "./field-widget/auto-complete-widget.vue": () => import("./auto-complete-widget-976493b4.js"), "./field-widget/avatar-widget.vue": () => import("./avatar-widget-dc349288.js"), "./field-widget/backtop-widget.vue": () => import("./backtop-widget-d505f6b9.js"), "./field-widget/badge-widget.vue": () => import("./badge-widget-52cb2379.js"), "./field-widget/barcode-widget.vue": () => import("./barcode-widget-3abe6dee.js"), "./field-widget/breadcrumb-widget.vue": () => import("./breadcrumb-widget-96b2dfab.js"), "./field-widget/button-widget.vue": () => import("./button-widget-896895fc.js"), "./field-widget/cache-widget.vue": () => import("./cache-widget-637da578.js"), "./field-widget/card-widget.vue": () => import("./card-widget-2bc2e5c3.js"), "./field-widget/carousel-widget.vue": () => import("./carousel-widget-ce8b0e9f.js"), "./field-widget/cascader-widget.vue": () => import("./cascader-widget-d232df2d.js"), "./field-widget/chart-widget.vue": () => import("./chart-widget-d3d8651f.js"), "./field-widget/checkbox-widget.vue": () => import("./checkbox-widget-7383775b.js"), "./field-widget/collapse-widget.vue": () => import("./collapse-widget-11f84ba6.js"), "./field-widget/color-picker-widget.vue": () => import("./color-picker-widget-13df5698.js"), "./field-widget/content-wrapper.vue": () => import("./content-wrapper-57065f6b.js"), "./field-widget/countdown-widget.vue": () => import("./countdown-widget-24a1f008.js"), "./field-widget/date-picker-range-widget.vue": () => import("./date-picker-range-widget-53c762e8.js"), "./field-widget/date-picker-widget.vue": () => import("./date-picker-widget-32997922.js"), "./field-widget/default-slot-widget.vue": () => import("./default-slot-widget-84029579.js"), "./field-widget/descriptions-widget.vue": () => import("./descriptions-widget-cecb6289.js"), "./field-widget/dialog-widget.vue": () => import("./dialog-widget-43766516.js"), "./field-widget/divider-widget.vue": () => import("./divider-widget-6696c7b6.js"), "./field-widget/drawer-widget.vue": () => import("./drawer-widget-331de048.js"), "./field-widget/dropdown-widget.vue": () => import("./dropdown-widget-6b729d6b.js"), "./field-widget/empty-widget.vue": () => import("./empty-widget-0d6c47f7.js"), "./field-widget/feedback-widget.vue": () => import("./feedback-widget-8a0b2ebf.js"), "./field-widget/file-upload-widget.vue": () => import("./file-upload-widget-4d9d9696.js"), "./field-widget/form-item-wrapper.vue": () => import("./form-item-wrapper-3a8256e9.js"), "./field-widget/hcard-widget.vue": () => import("./hcard-widget-52bf6d97.js"), "./field-widget/html-text-widget.vue": () => import("./html-text-widget-0a061ef0.js"), "./field-widget/icon-widget.vue": () => import("./icon-widget-da099c59.js"), "./field-widget/iframe-widget.vue": () => import("./iframe-widget-1a5e1140.js"), "./field-widget/image-widget.vue": () => import("./image-widget-e396dfb4.js"), "./field-widget/input-number-widget.vue": () => import("./input-number-widget-04bc6af8.js"), "./field-widget/input-tag-widget.vue": () => import("./input-tag-widget-21d5746a.js"), "./field-widget/input-widget.vue": () => import("./input-widget-54dc8e8a.js"), "./field-widget/label-wrapper.vue": () => import("./label-wrapper-46604df9.js"), "./field-widget/link-widget.vue": () => import("./link-widget-eb4734f7.js"), "./field-widget/mention-widget.vue": () => import("./mention-widget-83b3c36a.js"), "./field-widget/menu-widget.vue": () => import("./menu-widget-27e8a739.js"), "./field-widget/model-widget.vue": () => import("./model-widget-226f4c48.js"), "./field-widget/multirow-widget.vue": () => import("./multirow-widget-73b9f5b8.js"), "./field-widget/pagination-widget.vue": () => import("./pagination-widget-ef2c4cbe.js"), "./field-widget/picture-upload-widget.vue": () => import("./picture-upload-widget-d7b2439b.js"), "./field-widget/progress-widget.vue": () => import("./progress-widget-e9a7ac91.js"), "./field-widget/qrcode-widget.vue": () => import("./qrcode-widget-c2168584.js"), "./field-widget/radio-widget.vue": () => import("./radio-widget-823c69c6.js"), "./field-widget/range-widget.vue": () => import("./range-widget-d2852556.js"), "./field-widget/rate-widget.vue": () => import("./rate-widget-cb1ed332.js"), "./field-widget/result-widget.vue": () => import("./result-widget-d504e54a.js"), "./field-widget/rich-editor-widget.vue": () => import("./rich-editor-widget-bc490e5e.js"), "./field-widget/router-widget.vue": () => import("./router-widget-8cf8fd84.js"), "./field-widget/segmented-widget.vue": () => import("./segmented-widget-efb0e31c.js"), "./field-widget/select-widget.vue": () => import("./select-widget-f32c15b5.js"), "./field-widget/skeleton-widget.vue": () => import("./skeleton-widget-a2602734.js"), "./field-widget/skeletonItem-widget.vue": () => import("./skeletonItem-widget-04d7fd25.js"), "./field-widget/slider-widget.vue": () => import("./slider-widget-be9a1f6a.js"), "./field-widget/space-widget.vue": () => import("./space-widget-e6030989.js"), "./field-widget/splitter-widget.vue": () => import("./splitter-widget-59a86414.js"), "./field-widget/static-text-widget.vue": () => import("./static-text-widget-a768744d.js"), "./field-widget/statistic-widget.vue": () => import("./statistic-widget-8b430599.js"), "./field-widget/steps-widget.vue": () => import("./steps-widget-e972664d.js"), "./field-widget/subMenu-widget.vue": () => import("./subMenu-widget-17cd9886.js"), "./field-widget/switch-widget.vue": () => import("./switch-widget-04cd74f6.js"), "./field-widget/table-col-widget.vue": () => import("./table-col-widget-5b7cc3e5.js"), "./field-widget/table-widget.vue": () => import("./table-widget-b109d43f.js"), "./field-widget/tag-widget.vue": () => import("./tag-widget-96791265.js"), "./field-widget/text-widget.vue": () => import("./text-widget-ba10f5d0.js"), "./field-widget/textarea-widget.vue": () => import("./textarea-widget-6d06658f.js"), "./field-widget/time-picker-range-widget.vue": () => import("./time-picker-range-widget-b7b79052.js"), "./field-widget/time-picker-widget.vue": () => import("./time-picker-widget-282f49c0.js"), "./field-widget/time-select-widget.vue": () => import("./time-select-widget-c24e8d75.js"), "./field-widget/timeline-widget.vue": () => import("./timeline-widget-b870926b.js"), "./field-widget/tmpl-widget.vue": () => import("./tmpl-widget-95025cff.js"), "./field-widget/tooltip-widget.vue": () => import("./tooltip-widget-2797db64.js"), "./field-widget/tour-widget.vue": () => import("./tour-widget-c64d5c4f.js"), "./field-widget/transfer-widget.vue": () => import("./transfer-widget-b0797f27.js"), "./field-widget/tree-select-widget.vue": () => import("./tree-select-widget-222972fb.js"), "./field-widget/tree-widget.vue": () => import("./tree-widget-08adb635.js"), "./field-widget/verifycode-widget.vue": () => import("./verifycode-widget-c5e8f9c6.js"), "./field-widget/vertical-progress-widget.vue": () => import("./vertical-progress-widget-c44812e6.js") }), `./field-widget/${n}.vue`))), w;
|
|
21
21
|
};
|
|
22
22
|
return { components: (t) => {
|
|
23
23
|
var n = D.getWidgetName(t);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as p, createBlock as t, mergeProps as m } from "vue";
|
|
2
|
-
import { _ as i } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-
|
|
2
|
+
import { _ as i } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-2aafeb34.js";
|
|
3
3
|
import { I as e } from "./widget-base-8eece820.js";
|
|
4
|
-
import "./drag-wrapper-
|
|
4
|
+
import "./drag-wrapper-636f0170.js";
|
|
5
5
|
import "./obj-de9ca9c2.js";
|
|
6
6
|
import "./enum-type-c8b77ba5.js";
|
|
7
7
|
import "./baseImp-301687cc.js";
|
|
@@ -6,7 +6,7 @@ import { c as P } from "./share-field-99831984.js";
|
|
|
6
6
|
import { w as I } from "./expression-9901f861.js";
|
|
7
7
|
import { b as K } from "./baseImp-301687cc.js";
|
|
8
8
|
import { g as q } from "./slot-92a62ccb.js";
|
|
9
|
-
import { D as G } from "./drag-wrapper-
|
|
9
|
+
import { D as G } from "./drag-wrapper-636f0170.js";
|
|
10
10
|
import "./obj-de9ca9c2.js";
|
|
11
11
|
import "./widget-base-8eece820.js";
|
|
12
12
|
import "./index-f1034f73.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, openBlock as n, createBlock as d, mergeProps as f, unref as l } from "vue";
|
|
2
2
|
import { I as a } from "./field-base-1acf3ada.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-091acc31.js";
|
|
4
4
|
import { w as _ } from "./expression-9901f861.js";
|
|
5
5
|
import { c as u } from "./share-field-99831984.js";
|
|
6
6
|
import "./widget-base-8eece820.js";
|
|
@@ -23,7 +23,7 @@ import "./fieldobj-a62cc1fc.js";
|
|
|
23
23
|
import "./slot-92a62ccb.js";
|
|
24
24
|
import "./index-937b1e27.js";
|
|
25
25
|
import "./content-wrapper.vue_vue_type_script_setup_true_lang-7743da14.js";
|
|
26
|
-
import "./drag-wrapper-
|
|
26
|
+
import "./drag-wrapper-636f0170.js";
|
|
27
27
|
import "./source-map-b04aec4a.js";
|
|
28
28
|
import "./esprima-e8d15055.js";
|
|
29
29
|
import "./emitter-00809005.js";
|
|
@@ -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-2aafeb34.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "./widget-base-8eece820.js";
|
|
4
|
-
import "./drag-wrapper-
|
|
4
|
+
import "./drag-wrapper-636f0170.js";
|
|
5
5
|
import "./obj-de9ca9c2.js";
|
|
6
6
|
import "./enum-type-c8b77ba5.js";
|
|
7
7
|
import "./baseImp-301687cc.js";
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineComponent as h, ref as P, inject as A, openBlock as a, createBlock as t, mergeProps as p, unref as d, withCtx as b, createElementBlock as i, Fragment as u, renderList as O, resolveDynamicComponent as m, createCommentVNode as f, createVNode as c, isRef as E, toHandlers as H, createSlots as K, createTextVNode as M, toDisplayString as T } from "vue";
|
|
2
|
+
import { I as U } from "./widget-base-8eece820.js";
|
|
3
|
+
import { D as k } from "./drag-wrapper-636f0170.js";
|
|
4
|
+
import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c39260e2.js";
|
|
5
|
+
import { d as G, w as J } from "./expression-9901f861.js";
|
|
6
|
+
import { c as Q } from "./share-field-99831984.js";
|
|
7
|
+
import { g as $ } from "./slot-92a62ccb.js";
|
|
8
|
+
import { i as X } from "./obj-de9ca9c2.js";
|
|
9
|
+
const Y = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "__hl_dialog_body_wrap"
|
|
12
|
+
}, Z = h({ componentName: J.ContainerWidget }), te = /* @__PURE__ */ h({
|
|
13
|
+
...Z,
|
|
14
|
+
__name: "feedback-widget",
|
|
15
|
+
props: { ...U },
|
|
16
|
+
setup(z, { expose: j }) {
|
|
17
|
+
var l;
|
|
18
|
+
const n = z, { fieldKey: D, attrs: w, events: L, slots: N, fieldModel: y, exposed: B, fieldObj: R, extendAttrs: W } = Q(n), F = P();
|
|
19
|
+
F.value = (n == null ? void 0 : n.designState) === !0 ? "div" : (l = n.propOptions) == null ? void 0 : l.widgetName;
|
|
20
|
+
const I = A(G.refList), S = (r) => {
|
|
21
|
+
var s, o;
|
|
22
|
+
var g = (o = W.value) == null ? void 0 : o[(s = r == null ? void 0 : r.options) == null ? void 0 : s.enableName];
|
|
23
|
+
return X(g) || !!g;
|
|
24
|
+
};
|
|
25
|
+
return j({ ...B, parentRefList: I }), (r, g) => (a(), t(q, p(r.$props, {
|
|
26
|
+
propOptions: { fieldObj: d(R) }
|
|
27
|
+
}), {
|
|
28
|
+
default: b(({ data: s }) => {
|
|
29
|
+
var o;
|
|
30
|
+
return [
|
|
31
|
+
r.designState ? (a(), i("div", { key: d(D) }, [
|
|
32
|
+
r.designState ? (a(!0), i(u, { key: 0 }, O(d($)(d(N), r.designState, void 0, S), (e) => (a(), i("div", {
|
|
33
|
+
key: e.slotName,
|
|
34
|
+
style: { border: "1px dashed black" }
|
|
35
|
+
}, [
|
|
36
|
+
e != null && e.default ? (a(), t(m(e == null ? void 0 : e.default), { key: 0 })) : f("", !0),
|
|
37
|
+
c(k, p({ ref_for: !0 }, r.$props, {
|
|
38
|
+
widget: e,
|
|
39
|
+
title: e.slotName,
|
|
40
|
+
dragClass: "dragSize1"
|
|
41
|
+
}), null, 16, ["widget", "title"])
|
|
42
|
+
]))), 128)) : f("", !0)
|
|
43
|
+
])) : (a(), t(m((o = n.propOptions) == null ? void 0 : o.widgetName), p({
|
|
44
|
+
key: 1,
|
|
45
|
+
modelValue: d(y),
|
|
46
|
+
"onUpdate:modelValue": g[0] || (g[0] = (e) => E(y) ? y.value = e : null)
|
|
47
|
+
}, d(w), H(d(L)), {
|
|
48
|
+
class: s.injectClass
|
|
49
|
+
}), K({ _: 2 }, [
|
|
50
|
+
O(d($)(d(N), !1, void 0, S), (e) => ({
|
|
51
|
+
name: e.slotName,
|
|
52
|
+
fn: b(() => {
|
|
53
|
+
var v, C, V;
|
|
54
|
+
return [
|
|
55
|
+
e.slotName === "default" ? (a(), i(u, { key: 0 }, [
|
|
56
|
+
(v = n.propOptions) != null && v.oneRoot ? (a(), i("div", Y, [
|
|
57
|
+
e != null && e.default ? (a(), t(m(e == null ? void 0 : e.default), { key: 0 })) : f("", !0),
|
|
58
|
+
c(k, p(r.$props, {
|
|
59
|
+
widget: e,
|
|
60
|
+
dragClass: "dragSize1"
|
|
61
|
+
}), null, 16, ["widget"])
|
|
62
|
+
])) : (a(), i(u, { key: 1 }, [
|
|
63
|
+
e != null && e.default ? (a(), t(m(e == null ? void 0 : e.default), { key: 0 })) : f("", !0),
|
|
64
|
+
c(k, p(r.$props, {
|
|
65
|
+
widget: e,
|
|
66
|
+
dragClass: "dragSize1"
|
|
67
|
+
}), null, 16, ["widget"])
|
|
68
|
+
], 64))
|
|
69
|
+
], 64)) : e.slotName === "header" ? (a(), i(u, { key: 1 }, [
|
|
70
|
+
e.default || (((C = e.widgetList) == null ? void 0 : C.length) || 0) > 0 ? (a(), i(u, { key: 0 }, [
|
|
71
|
+
e != null && e.default ? (a(), t(m(e == null ? void 0 : e.default), { key: 0 })) : f("", !0),
|
|
72
|
+
c(k, p(r.$props, {
|
|
73
|
+
widget: e,
|
|
74
|
+
dragClass: "dragSize1"
|
|
75
|
+
}), null, 16, ["widget"])
|
|
76
|
+
], 64)) : (a(), i(u, { key: 1 }, [
|
|
77
|
+
M(T((V = d(w)) == null ? void 0 : V.title), 1)
|
|
78
|
+
], 64))
|
|
79
|
+
], 64)) : (a(), i(u, { key: 2 }, [
|
|
80
|
+
e != null && e.default ? (a(), t(m(e == null ? void 0 : e.default), { key: 0 })) : f("", !0),
|
|
81
|
+
c(k, p(r.$props, {
|
|
82
|
+
widget: e,
|
|
83
|
+
dragClass: "dragSize1"
|
|
84
|
+
}), null, 16, ["widget"])
|
|
85
|
+
], 64))
|
|
86
|
+
];
|
|
87
|
+
})
|
|
88
|
+
}))
|
|
89
|
+
]), 1040, ["modelValue", "class"]))
|
|
90
|
+
];
|
|
91
|
+
}),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 16, ["propOptions"]));
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
te as _
|
|
98
|
+
};
|
|
@@ -6,7 +6,7 @@ import { u as ve } from "./share-file-67eb033c.js";
|
|
|
6
6
|
import { f as b, w as fe } from "./expression-9901f861.js";
|
|
7
7
|
import we from "./form-item-wrapper-3a8256e9.js";
|
|
8
8
|
import { g as Ce } from "./slot-92a62ccb.js";
|
|
9
|
-
import { D as be } from "./drag-wrapper-
|
|
9
|
+
import { D as be } from "./drag-wrapper-636f0170.js";
|
|
10
10
|
import { UploadFilled as De, Plus as $e, Document as Te, Download as te, CircleCheck as le, Close as oe } from "./index-6bcfdc22.js";
|
|
11
11
|
import { x as ae } from "./enum-type-1e41a275.js";
|
|
12
12
|
import { _ as xe } from "./_plugin-vue_export-helper-dad06003.js";
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { ref as I, reactive as J, onMounted as me, nextTick as Ee, defineComponent as ve, computed as le, resolveComponent as ye, resolveDirective as Ne, openBlock as ie, createBlock as de, mergeProps as Q, unref as h, 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-636f0170.js";
|
|
4
|
+
import { _ as Ie } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c39260e2.js";
|
|
5
|
+
import { w as Y, a as se, b as $, f as V, c as Be } from "./expression-9901f861.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 ze } from "./enum-type-c8b77ba5.js";
|
|
9
|
+
import { $ as Ke, B as Ue } from "./baseImp-301687cc.js";
|
|
10
|
+
import { f as Ge } from "./index-f1034f73.js";
|
|
11
|
+
import { c as Je, a as Qe, u as Xe } from "./share-field-99831984.js";
|
|
12
|
+
import { W as Ye } from "./enum-type-1e41a275.js";
|
|
13
|
+
import { u as Ze } from "./multirow-d9432e17.js";
|
|
14
|
+
import { e as X, f as fe, d as ce, g as ue, h as et, j as tt, k as ot } from "./obj-de9ca9c2.js";
|
|
15
|
+
import { F as at } from "./slot-92a62ccb.js";
|
|
16
|
+
import { _ as nt } from "./_plugin-vue_export-helper-dad06003.js";
|
|
17
|
+
function lt(s) {
|
|
18
|
+
const j = s.widget, v = s.designer, F = v == null ? void 0 : v.pageConfig, w = s == null ? void 0 : s.widgetList, x = I({}), E = {}, { fieldModel: B, fieldName: q, fieldEditor: f, attrs: y, events: _, hasFieldOptions: N, exposed: D, fieldObj: H, watchOption: L, propResultOpt: S, extendAttrs: C } = Je(s), { off$: n, on$: c, emit$: T, broadcast: R } = He();
|
|
19
|
+
var { instance: W } = qe();
|
|
20
|
+
const { setAllRefList: M } = Qe(x.value), O = { designState: s == null ? void 0 : s.designState, pageConfig: F, globalConfig: S == null ? void 0 : S.globalConfig }, { formModel: k, setData: pe, getData: A, clearData: Z } = Ze(w, { ...O }), { handleFunc: z } = Xe({ options: F }, O), K = J({}), ge = () => {
|
|
21
|
+
n(V.fieldChange), c(V.fieldChange, (e) => {
|
|
22
|
+
De(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), D == null || D.setValue(k), Fe(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue);
|
|
23
|
+
});
|
|
24
|
+
}, he = () => {
|
|
25
|
+
n(V.fieldValidation), c(V.fieldValidation, (e) => {
|
|
26
|
+
var t;
|
|
27
|
+
(t = f.value) == null || t.validateField(e == null ? void 0 : e.propName);
|
|
28
|
+
});
|
|
29
|
+
}, _e = () => {
|
|
30
|
+
n(V.fieldRuleChange), c(V.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(K, { [e == null ? void 0 : e.fieldName]: t }), y.value.rules = K;
|
|
39
|
+
});
|
|
40
|
+
}, Ce = I(!0), U = I(!1), G = J({}), P = J({}), ee = (e) => {
|
|
41
|
+
fe(P), ce(P, e);
|
|
42
|
+
}, be = () => ({
|
|
43
|
+
change_info: X(G),
|
|
44
|
+
before_info: X(P),
|
|
45
|
+
after_info: X(k),
|
|
46
|
+
flag: U.value
|
|
47
|
+
}), Fe = (e, t, o) => {
|
|
48
|
+
var a = P[e];
|
|
49
|
+
ue(t, o) || ue(t, a) || (U.value = !0, e && ce(G, { [e]: { oldValue: a, newValue: t, beforeValue: o } }));
|
|
50
|
+
}, we = () => {
|
|
51
|
+
U.value = !1, fe(G), ee(A());
|
|
52
|
+
}, De = (e, t, o) => {
|
|
53
|
+
z(_.value.formDataChange, { field: { fieldName: e, newValue: t, oldValue: o }, formModel: k });
|
|
54
|
+
}, Le = () => {
|
|
55
|
+
z(_.value.formCreated);
|
|
56
|
+
}, Ve = () => {
|
|
57
|
+
z(_.value.formMounted);
|
|
58
|
+
}, Se = () => {
|
|
59
|
+
_e(), ge(), he(), Le();
|
|
60
|
+
}, We = (e) => {
|
|
61
|
+
var t;
|
|
62
|
+
(t = f.value) == null || t.clearValidate(e);
|
|
63
|
+
}, Oe = () => {
|
|
64
|
+
M(Ye.resetField), Ee(() => {
|
|
65
|
+
We();
|
|
66
|
+
});
|
|
67
|
+
}, te = (e, t) => {
|
|
68
|
+
let o = [];
|
|
69
|
+
for (let u in e) {
|
|
70
|
+
var a = e[u], 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 et(o);
|
|
78
|
+
}, je = (e, t) => {
|
|
79
|
+
var o = {};
|
|
80
|
+
return Ge(t, (a) => {
|
|
81
|
+
var d = Ue.getName(a), u = tt(e, d);
|
|
82
|
+
return u && (o[d] = e[d]), u;
|
|
83
|
+
}, !1), o;
|
|
84
|
+
}, xe = (e = !0) => {
|
|
85
|
+
var d, u, r;
|
|
86
|
+
let t = A(), o = function() {
|
|
87
|
+
}, a = new Promise(function(m, l) {
|
|
88
|
+
o = function(p, i) {
|
|
89
|
+
(i ? l : m)({ data: p, isSuccess: !i, message: i });
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
return !((d = f.value) != null && d.validate) || !e ? (o(t), a) : ((r = (u = f.value) == null ? void 0 : u.validate) == null || r.call(u, (m, l) => {
|
|
93
|
+
if (m)
|
|
94
|
+
o(t);
|
|
95
|
+
else {
|
|
96
|
+
var p = te(l, !0);
|
|
97
|
+
if (p && p.length > 0) {
|
|
98
|
+
o(t, p);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
var i = te(l, !1);
|
|
102
|
+
if (i && i.length > 0) {
|
|
103
|
+
i.push(ze.i18nt("designer.hint.continue")), Ke.multiple(i).then((g) => {
|
|
104
|
+
o(t);
|
|
105
|
+
});
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}), a);
|
|
110
|
+
}, oe = (e, t = !0) => {
|
|
111
|
+
if (!j)
|
|
112
|
+
return;
|
|
113
|
+
var o = je(e, [j]);
|
|
114
|
+
pe(o, t);
|
|
115
|
+
const a = ["refList", "widgetRefList"];
|
|
116
|
+
R(Y.ContainerWidget, se.setFormData, e, W, a), R(Y.FieldWidget, se.setFormData, e, W, a);
|
|
117
|
+
}, ae = (e) => new Promise((t, o) => {
|
|
118
|
+
const a = (l, p) => {
|
|
119
|
+
var g, b, ne;
|
|
120
|
+
let i = (g = C.value) != null && g.formDataLoaded ? (ne = (b = C.value) == null ? void 0 : b.formDataLoaded) == null ? void 0 : ne.call(b, A(), l) : l;
|
|
121
|
+
ot(i) ? oe(i, !p) : i = {}, ee(i), Ce.value = !1, t(i);
|
|
122
|
+
}, d = () => {
|
|
123
|
+
L(e, $.newDataSource, void 0, (l, p) => {
|
|
124
|
+
a(l, !0);
|
|
125
|
+
});
|
|
126
|
+
}, u = () => {
|
|
127
|
+
L(e, $.editDataSource, void 0, (l, p) => {
|
|
128
|
+
var g, b;
|
|
129
|
+
if (((b = (g = C.value) == null ? void 0 : g.needFormAdd) == null ? void 0 : b.call(g, l)) && m) {
|
|
130
|
+
d();
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
a(l, !1);
|
|
134
|
+
});
|
|
135
|
+
}, r = N($.editDataSource), m = N($.newDataSource);
|
|
136
|
+
r ? u() : m && d();
|
|
137
|
+
});
|
|
138
|
+
return Se(), me(() => {
|
|
139
|
+
Te(), Ve();
|
|
140
|
+
}), {
|
|
141
|
+
widgetRefList: x,
|
|
142
|
+
allWidgetRefList: E,
|
|
143
|
+
fieldEditor: f,
|
|
144
|
+
formModel: k,
|
|
145
|
+
pageConfig: F,
|
|
146
|
+
widgetList: w,
|
|
147
|
+
fieldModel: B,
|
|
148
|
+
fieldName: q,
|
|
149
|
+
attrs: y,
|
|
150
|
+
extendAttrs: C,
|
|
151
|
+
events: _,
|
|
152
|
+
rules: K,
|
|
153
|
+
loadData: ae,
|
|
154
|
+
clearData: Z,
|
|
155
|
+
exposed: {
|
|
156
|
+
...D,
|
|
157
|
+
setValue: oe,
|
|
158
|
+
getValue: xe,
|
|
159
|
+
resetField: Oe,
|
|
160
|
+
clearData: Z,
|
|
161
|
+
loadData: ae,
|
|
162
|
+
getData: A,
|
|
163
|
+
//修改痕迹
|
|
164
|
+
clearChangeRecord: we,
|
|
165
|
+
getChangeRecord: be,
|
|
166
|
+
emit$: T
|
|
167
|
+
},
|
|
168
|
+
fieldObj: H
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
const it = ve({ componentName: Y.ContainerWidget }), dt = /* @__PURE__ */ ve({
|
|
172
|
+
...it,
|
|
173
|
+
__name: "form-widget",
|
|
174
|
+
props: { ...Pe },
|
|
175
|
+
setup(s, { expose: j }) {
|
|
176
|
+
var C;
|
|
177
|
+
const v = s, { exposed: F, formModel: w, fieldEditor: x, attrs: E, events: B, widgetRefList: q, extendAttrs: f, fieldName: y, fieldObj: _, loadData: N } = lt({ ...v, widgetList: (C = v == null ? void 0 : v.widget) == null ? void 0 : C.widgetList }), D = y.value, H = le(() => {
|
|
178
|
+
var n, c;
|
|
179
|
+
return {
|
|
180
|
+
disabled: (n = E.value) == null ? void 0 : n.disabled,
|
|
181
|
+
readonly: (c = f.value) == null ? void 0 : c.readonly
|
|
182
|
+
};
|
|
183
|
+
}), L = I(!1), S = le(() => {
|
|
184
|
+
var n;
|
|
185
|
+
return L.value || ((n = f.value) == null ? void 0 : n.showLoading);
|
|
186
|
+
});
|
|
187
|
+
return at.globalProvide({
|
|
188
|
+
globalFormName: D,
|
|
189
|
+
globalDataModel: w,
|
|
190
|
+
globalFormOptions: H
|
|
191
|
+
}), me(() => {
|
|
192
|
+
var n;
|
|
193
|
+
(n = f.value) != null && n.loadDataWhenInit && !v.designState && (L.value = !0, N(!0).then((c) => {
|
|
194
|
+
}).catch((c) => {
|
|
195
|
+
}).finally(() => {
|
|
196
|
+
L.value = !1, F.clearChangeRecord();
|
|
197
|
+
}));
|
|
198
|
+
}), j({ ...F }), (n, c) => {
|
|
199
|
+
const T = ye("el-form"), R = Ne("loading");
|
|
200
|
+
return ie(), de(Ie, Q(n.$props, {
|
|
201
|
+
"prop-options": { fieldObj: h(_) }
|
|
202
|
+
}), {
|
|
203
|
+
default: re(({ data: W }) => {
|
|
204
|
+
var M;
|
|
205
|
+
return [
|
|
206
|
+
Re((ie(), de(T, Q({
|
|
207
|
+
ref_key: "fieldEditor",
|
|
208
|
+
ref: x,
|
|
209
|
+
model: h(w)
|
|
210
|
+
}, h(E), Me(h(B)), {
|
|
211
|
+
class: W.injectClass,
|
|
212
|
+
key: (M = h(_)) == null ? void 0 : M.fieldKey,
|
|
213
|
+
"element-loading-text": h(f).loadingText,
|
|
214
|
+
onSubmit: c[0] || (c[0] = ke(() => {
|
|
215
|
+
}, ["prevent"]))
|
|
216
|
+
}), {
|
|
217
|
+
default: re(() => {
|
|
218
|
+
var O;
|
|
219
|
+
return [
|
|
220
|
+
Ae($e, Q(n.$props, {
|
|
221
|
+
dragClass: "formDrag padSize",
|
|
222
|
+
model: h(w),
|
|
223
|
+
provideModel: !0,
|
|
224
|
+
"component-class": W.componentWrapperClass,
|
|
225
|
+
refList: h(q),
|
|
226
|
+
"show-suspense": (O = h(f)) == null ? void 0 : O.showSuspense
|
|
227
|
+
}), null, 16, ["model", "component-class", "refList", "show-suspense"])
|
|
228
|
+
];
|
|
229
|
+
}),
|
|
230
|
+
_: 2
|
|
231
|
+
}, 1040, ["model", "class", "element-loading-text"])), [
|
|
232
|
+
[R, S.value]
|
|
233
|
+
])
|
|
234
|
+
];
|
|
235
|
+
}),
|
|
236
|
+
_: 1
|
|
237
|
+
}, 16, ["prop-options"]);
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
const rt = /* @__PURE__ */ nt(dt, [["__scopeId", "data-v-2ed0a44d"]]), Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
242
|
+
__proto__: null,
|
|
243
|
+
default: rt
|
|
244
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
245
|
+
export {
|
|
246
|
+
Vt as _
|
|
247
|
+
};
|
|
@@ -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-ab8281e1.js";
|
|
2
2
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
default: e
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as 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
2
|
import { w as k } from "./expression-9901f861.js";
|
|
3
3
|
import { I as A } from "./widget-base-8eece820.js";
|
|
4
|
-
import { D as b } from "./drag-wrapper-
|
|
4
|
+
import { D as b } from "./drag-wrapper-636f0170.js";
|
|
5
5
|
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c39260e2.js";
|
|
6
6
|
import { c as H } from "./share-field-99831984.js";
|
|
7
7
|
import { c as $ } from "./slot-92a62ccb.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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-9901f861.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-
|
|
4
|
+
import { _ as O } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ab8281e1.js";
|
|
5
5
|
import { _ as S } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c39260e2.js";
|
|
6
6
|
import { c as j } from "./share-field-99831984.js";
|
|
7
7
|
import { c as P } from "./slot-92a62ccb.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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
2
|
import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c39260e2.js";
|
|
3
3
|
import { c as T } from "./share-field-99831984.js";
|
|
4
|
-
import { D as v } from "./drag-wrapper-
|
|
4
|
+
import { D as v } from "./drag-wrapper-636f0170.js";
|
|
5
5
|
import { w as q } from "./expression-9901f861.js";
|
|
6
6
|
import { e as h } from "./slot-92a62ccb.js";
|
|
7
7
|
import { I as A } from "./widget-base-8eece820.js";
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { defineComponent as Q, computed as L, ref as h, onMounted as R, watch as T, resolveComponent as U, openBlock as d, createBlock as y, mergeProps as b, unref as a, withCtx as V, createCommentVNode as j, createElementBlock as q, toHandlers as z } from "vue";
|
|
2
|
+
import { z as w } from "./baseImp-301687cc.js";
|
|
3
|
+
import { w as H } from "./expression-9901f861.js";
|
|
4
|
+
import { c as K } from "./share-field-99831984.js";
|
|
5
|
+
import { _ as M } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c39260e2.js";
|
|
6
|
+
import { I as D } from "./field-base-1acf3ada.js";
|
|
7
|
+
import { g as G } from "./uuid-dab47659.js";
|
|
8
|
+
import { l as B } from "./enum-type-c8b77ba5.js";
|
|
9
|
+
import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
|
|
10
|
+
import "./obj-de9ca9c2.js";
|
|
11
|
+
import "./enum-type-1e41a275.js";
|
|
12
|
+
import "./icon-aff7bde2.js";
|
|
13
|
+
import "./dialog-01ece6ab.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-92a62ccb.js";
|
|
20
|
+
import "./index-937b1e27.js";
|
|
21
|
+
import "./index-f1034f73.js";
|
|
22
|
+
import "./optionItem-6e6635c2.js";
|
|
23
|
+
import "./index-8eb82169.js";
|
|
24
|
+
import "./multirow-d9432e17.js";
|
|
25
|
+
import "./widget-base-8eece820.js";
|
|
26
|
+
import "./index-0c1a0ddc.js";
|
|
27
|
+
import "./fieldobj-a62cc1fc.js";
|
|
28
|
+
function X(s, f) {
|
|
29
|
+
var m;
|
|
30
|
+
if (!s) {
|
|
31
|
+
B.error("iframe is empty");
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const o = (m = s.contentWindow) == null ? void 0 : m.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 Y = ["src", "id"], Z = Q({ componentName: H.FieldWidget }), A = /* @__PURE__ */ Q({
|
|
42
|
+
...Z,
|
|
43
|
+
__name: "iframe-widget",
|
|
44
|
+
props: { ...D },
|
|
45
|
+
setup(s, { expose: f }) {
|
|
46
|
+
const o = s, { exposed: m, fieldEditor: k, events: p, attrs: C, extendAttrs: r, fieldObj: W, fieldKey: $, fieldName: x } = K(o), E = L(() => t.value && !i.value ? "full-width full-height" : "mini-wrapper"), i = h(!1), _ = h(), F = (e) => {
|
|
47
|
+
var n, l;
|
|
48
|
+
const v = ((n = r == null ? void 0 : r.value) == null ? void 0 : n.withQuery) ? w.getLocationQueryParams() : {}, g = w.buildUrl(e, v), c = (l = r == null ? void 0 : r.value) == null ? void 0 : l.hashRouter;
|
|
49
|
+
return w.resolveByCurrentUrl(g, c ? G() + "" : "");
|
|
50
|
+
}, I = h(), t = L(() => {
|
|
51
|
+
if (_.value)
|
|
52
|
+
return _.value;
|
|
53
|
+
const e = I.value || C.value.src;
|
|
54
|
+
return e == "" || e == "#" ? "" : F(e);
|
|
55
|
+
}), N = () => {
|
|
56
|
+
var e, u;
|
|
57
|
+
i.value = !1, (u = (e = p == null ? void 0 : p.value) == null ? void 0 : e.onLoaded) == null || u.call(e);
|
|
58
|
+
}, P = (e) => {
|
|
59
|
+
I.value = e;
|
|
60
|
+
}, S = (e) => {
|
|
61
|
+
_.value = e;
|
|
62
|
+
}, O = (e) => {
|
|
63
|
+
X(k.value, e);
|
|
64
|
+
};
|
|
65
|
+
return R(() => {
|
|
66
|
+
t.value && (i.value = !0);
|
|
67
|
+
}), T(() => t.value, (e) => {
|
|
68
|
+
e && (i.value = !0);
|
|
69
|
+
}), f({
|
|
70
|
+
...m,
|
|
71
|
+
loadSrc: P,
|
|
72
|
+
loadUrl: S,
|
|
73
|
+
loadContent: O
|
|
74
|
+
}), (e, u) => {
|
|
75
|
+
var c;
|
|
76
|
+
const v = U("el-empty"), g = U("el-skeleton");
|
|
77
|
+
return d(), y(M, b(e.$props, {
|
|
78
|
+
"prop-options": { fieldObj: a(W) },
|
|
79
|
+
key: (c = e.widget) == null ? void 0 : c.id
|
|
80
|
+
}), {
|
|
81
|
+
default: V(({ data: n }) => {
|
|
82
|
+
var l;
|
|
83
|
+
return [
|
|
84
|
+
t.value ? j("", !0) : (d(), y(v, {
|
|
85
|
+
key: 0,
|
|
86
|
+
description: (l = a(C)) == null ? void 0 : l.emptyText,
|
|
87
|
+
class: "full-width full-height nopadding nomargin"
|
|
88
|
+
}, null, 8, ["description"])),
|
|
89
|
+
i.value ? (d(), y(g, {
|
|
90
|
+
key: 1,
|
|
91
|
+
rows: 5,
|
|
92
|
+
animated: "",
|
|
93
|
+
class: "full-width full-height nopadding nomargin"
|
|
94
|
+
})) : j("", !0),
|
|
95
|
+
(d(), q("iframe", b({
|
|
96
|
+
ref_key: "fieldEditor",
|
|
97
|
+
ref: k,
|
|
98
|
+
key: `${a($)}_${t.value}`
|
|
99
|
+
}, z(a(p), !0), {
|
|
100
|
+
onLoad: N,
|
|
101
|
+
src: t.value,
|
|
102
|
+
class: [[...n.injectClass, E.value], "nopadding nomargin hlIframe"],
|
|
103
|
+
frameborder: 0,
|
|
104
|
+
style: n.injectStyle,
|
|
105
|
+
id: a(x)
|
|
106
|
+
}), null, 16, Y))
|
|
107
|
+
];
|
|
108
|
+
}),
|
|
109
|
+
_: 1
|
|
110
|
+
}, 16, ["prop-options"]);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
const je = /* @__PURE__ */ J(A, [["__scopeId", "data-v-2270dda4"]]);
|
|
115
|
+
export {
|
|
116
|
+
je as default
|
|
117
|
+
};
|