hldesigner 0.0.294 → 0.0.296
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-6d272319.js → _pdf-1b95fb5d.js} +13 -12
- package/{_share_image-707deb7b.js → _share_image-0ca0ad96.js} +2 -2
- package/{_share_size.vue_vue_type_script_setup_true_lang-198b6412.js → _share_size.vue_vue_type_script_setup_true_lang-25e38d41.js} +3 -3
- package/{_txt-14955ea9.js → _txt-170bb7d6.js} +8 -7
- package/{_unsupport-8b411d51.js → _unsupport-1309283f.js} +2 -2
- package/{affix-widget-b164f66f.js → affix-widget-a1e94961.js} +25 -24
- package/{alert-widget-a5b38a7f.js → alert-widget-e89962f3.js} +25 -24
- package/{anchor-widget-cb79aead.js → anchor-widget-2666cfcb.js} +22 -21
- package/{auto-complete-widget-2b5c9b04.js → auto-complete-widget-f19efc93.js} +25 -24
- package/avatar-widget-d1f582e7.js +49 -0
- package/{backtop-widget-54df7811.js → backtop-widget-800b83e2.js} +25 -24
- package/{badge-widget-b3e2b84e.js → badge-widget-3dfede47.js} +28 -27
- package/{barcode-widget-c9539f20.js → barcode-widget-1a9a8e4a.js} +23 -22
- package/{baseImp-7f0c4121.js → baseCommonField-607f46b1.js} +3567 -3903
- package/baseDataType-af503f9f.js +4 -0
- package/{breadcrumb-widget-966a5b98.js → breadcrumb-widget-72fc4371.js} +28 -27
- package/{button-widget-b29f2836.js → button-widget-3f9aebd6.js} +25 -24
- package/{cache-widget-8cdf6bb3.js → cache-widget-4446b135.js} +24 -23
- package/{card-widget-635325c2.js → card-widget-ce3e3897.js} +40 -39
- package/{carousel-widget-a7f37b1e.js → carousel-widget-cc0ed1e7.js} +23 -22
- package/{cascader-widget-8bb5f9db.js → cascader-widget-d1fc3ca0.js} +24 -23
- package/{chart-widget-fb1a670b.js → chart-widget-85cb8854.js} +48 -47
- package/{checkbox-widget-52c61029.js → checkbox-widget-db3afa9b.js} +31 -30
- package/codeType-e06c2bb4.js +4 -0
- package/{collapse-widget-a4d2945d.js → collapse-widget-8779845e.js} +29 -28
- package/{color-picker-widget-c7d26f46.js → color-picker-widget-f745a9cd.js} +24 -23
- package/common-editor-353641ab.js +30 -0
- package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-cd2508fd.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-8352d795.js} +2 -2
- package/{configItem-e39cd3bb.js → configItem-7889264b.js} +51 -50
- package/{cont-cell-widget-d4a89c8a.js → cont-cell-widget-d44e04d3.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-a72224f3.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-b5288fd3.js} +5 -5
- package/{cont-widget-c1e4feae.js → cont-widget-18cd3de8.js} +5 -5
- package/content-wrapper-36adcccb.js +19 -0
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-74a9ce66.js → content-wrapper.vue_vue_type_script_setup_true_lang-88a3a92e.js} +7 -7
- package/countdown-widget-8716e1ba.js +61 -0
- package/{css-editor-1b37b14b.js → css-editor-53b67144.js} +80 -77
- package/{cssClass-de753b04.js → cssClass-1492660e.js} +2 -2
- package/cssIndex-4c169331.js +160 -0
- package/{customClass-editor-30844eef.js → customClass-editor-b910c95b.js} +22 -20
- package/{date-picker-range-widget-68c22748.js → date-picker-range-widget-2278cad8.js} +33 -32
- package/{date-picker-widget-4532430c.js → date-picker-widget-d361f6f3.js} +34 -33
- package/default-slot-widget-9312050d.js +33 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-7903c803.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-7e67d1a4.js} +8 -8
- package/{descriptions-widget-ec41f960.js → descriptions-widget-e3e0d806.js} +23 -22
- package/designer.es.js +40 -40
- package/designer.style.css +2 -2
- package/designer.umd.js +327 -327
- package/{dialog-f67b0d8f.js → dialog-abd1055d.js} +2 -2
- package/dialog-widget-3e040d0f.js +41 -0
- package/divider-widget-4037971b.js +55 -0
- package/{drag-wrapper-04c5f241.js → drag-wrapper-a7ac11e7.js} +21 -21
- package/drawer-widget-3b223a9b.js +41 -0
- package/{dropdown-widget-9c81e135.js → dropdown-widget-7b107117.js} +23 -22
- package/{editor-wrapper-e4b65100.js → editor-wrapper-412921da.js} +99 -100
- package/{emitter-2e6d5612.js → emitter-752d9612.js} +1 -1
- package/{empty-widget-631442f5.js → empty-widget-03dc45a4.js} +25 -24
- package/{enum-type-e32f6d55.js → enum-669d691c.js} +344 -351
- package/{expression-5df4780f.js → expression-185552e1.js} +1562 -1386
- package/feedback-widget-c555aa07.js +34 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-a365a6c2.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-664151d2.js} +6 -6
- package/{field-editor-98dd0a48.js → field-editor-01ad04f5.js} +22 -20
- package/{fieldobj-e04fe3b7.js → fieldobj-097a7c28.js} +7 -7
- package/{file-upload-widget-2a7f1bc3.js → file-upload-widget-132d811f.js} +29 -28
- package/{form-item-wrapper-fd97d391.js → form-item-wrapper-e095f173.js} +18 -17
- package/{form-widget-8289b9c1.js → form-widget-3e609e45.js} +45 -45
- package/{global-provide-inject-f7c2434f.js → globalProvideInject-f72c46e1.js} +1 -1
- package/{grid-col-widget-1bce9b22.js → grid-col-widget-07f9934e.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-91bc4542.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-e758879c.js} +5 -5
- package/{grid-widget-6d7246c3.js → grid-widget-fcdf2ff1.js} +5 -5
- package/{hcard-widget-64f8b247.js → hcard-widget-25a74183.js} +29 -28
- package/{html-text-widget-4783ce1e.js → html-text-widget-3f9a7049.js} +23 -22
- package/{icon-widget-6bdfa4d3.js → icon-widget-6428cc00.js} +26 -25
- package/iframe-widget-beb764f8.js +138 -0
- package/image-editor-82e3d316.js +55 -0
- package/{image-widget-8158689d.js → image-widget-e340b551.js} +22 -21
- package/{index-3e27dbc2.js → index-05b3b9ca.js} +32 -31
- package/{enum-type-eeb2dcbd.js → index-0fea97a8.js} +311 -111
- package/index-1071c4c7.js +83 -0
- package/{index-3dabfdc0.js → index-1a4f56dd.js} +63 -62
- package/index-436cc07a.js +265 -0
- package/{index-bcac9980.js → index-5728cd3c.js} +24 -23
- package/{index-e0d0fa2e.js → index-61d6c848.js} +1 -1
- package/{index-a26bf6de.js → index-68c3c04e.js} +219 -218
- package/{index-6f2e7cc2.js → index-69b23b46.js} +46 -45
- package/index-6fb8d595.js +80 -0
- package/{index-397967db.js → index-730f8497.js} +18 -16
- package/{index-6aa18a15.js → index-7766bc2f.js} +106 -106
- package/{index-0504bd3a.js → index-79a0163e.js} +12 -11
- package/{index-73758a90.js → index-8cfb6a9c.js} +1 -1
- package/{index-290ac037.js → index-9254507b.js} +27 -26
- package/{index-afd82448.js → index-9b56c1e6.js} +22 -20
- package/index-a1324d15.js +1350 -0
- package/{index-03c22bc5.js → index-a1c1b668.js} +45 -43
- package/{index-74ce0e3c.js → index-a565454e.js} +7 -7
- package/{index-1878e33f.js → index-ac413547.js} +46 -45
- package/index-b55657c0.js +351 -0
- package/{index-bca6580c.js → index-b82a7942.js} +32 -30
- package/index-cd781075.js +239 -0
- package/{index-b236e386.js → index-e207955c.js} +22 -21
- package/{index-cd822487.js → index-f5e76d4f.js} +13 -12
- package/{index-0409d23f.js → index-fcc4373b.js} +59 -59
- package/{input-number-widget-0f414e2c.js → input-number-widget-8cc70bb5.js} +27 -26
- package/{input-tag-widget-ad3eb896.js → input-tag-widget-f9b11b33.js} +25 -24
- package/{input-widget-469c5464.js → input-widget-f29e34fc.js} +25 -24
- package/{install-designer-13ab516e.js → install-designer-90c18b43.js} +1911 -1799
- package/{item-fb474622.js → item-20a8e244.js} +11 -10
- package/{itemDetail-f887bfaf.js → itemDetail-b08a6256.js} +17 -16
- package/{label-wrapper-acfc937a.js → label-wrapper-cc5b374b.js} +7 -6
- package/{label-wrapper.vue_vue_type_style_index_0_lang-e81392d8.js → label-wrapper.vue_vue_type_style_index_0_lang-270c6e23.js} +3 -3
- package/{link-widget-ad7f38d9.js → link-widget-46bb53ba.js} +25 -24
- package/{ltable-col-widget-dcd79046.js → ltable-col-widget-85158af5.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d48e107e.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d200a6a8.js} +9 -9
- package/{ltable-widget-80a365bc.js → ltable-widget-58330976.js} +11 -11
- package/{mask-bdcecc2d.js → mask-38100676.js} +1 -1
- package/{mention-widget-1d31da3b.js → mention-widget-6c235170.js} +25 -24
- package/{menu-widget-b47ae070.js → menu-widget-bd1fa158.js} +42 -41
- package/{model-widget-151836f0.js → model-widget-b4364744.js} +22 -21
- package/multirow-7d028dd0.js +182 -0
- package/{multirow-widget-b7c6bc11.js → multirow-widget-aeb02101.js} +87 -86
- package/{name-editor-9862d519.js → name-editor-3a3747f6.js} +52 -50
- package/nameCase-2134ee3e.js +33 -0
- package/object-751045cf.js +44 -0
- package/{optionItem-0afcf797.js → optionItem-8e1d0080.js} +809 -474
- package/package.json +1 -1
- package/{pagination-widget-4af8fa55.js → pagination-widget-bcbb95e0.js} +29 -28
- package/{picture-upload-widget-01d4477b.js → picture-upload-widget-1e2240d2.js} +47 -46
- package/{progress-widget-87bf7089.js → progress-widget-d3e2e116.js} +30 -29
- package/{property-base-9cb6f0af.js → property-base-eaed8cbe.js} +15 -16
- package/px-8e97b0e9.js +10 -0
- package/{qrcode-widget-e8a010b5.js → qrcode-widget-3ea4613b.js} +29 -28
- package/{radio-widget-d3d350f1.js → radio-widget-63540761.js} +33 -32
- package/{range-widget-0c8453ad.js → range-widget-e115e075.js} +30 -29
- package/{rate-widget-7c9f360b.js → rate-widget-2af29296.js} +24 -23
- package/{reg-editor.vue_vue_type_script_setup_true_lang-472581e2.js → reg-editor.vue_vue_type_script_setup_true_lang-420ed8ba.js} +4 -4
- package/{result-widget-c1ae2079.js → result-widget-e4217327.js} +23 -22
- package/{rich-editor-widget-31f4fd68.js → rich-editor-widget-e42dc6a2.js} +30 -29
- package/{router-widget-2889ec23.js → router-widget-7859980a.js} +22 -21
- package/{schemaData-7d14e9de.js → schemaData-602ab58d.js} +70 -69
- package/{segmented-widget-21f8a5c8.js → segmented-widget-4d90e11a.js} +40 -39
- package/{select-widget-f2e60d59.js → select-widget-268e6778.js} +24 -23
- package/{sfc-ca2f1573.js → sfc-c8bdbcc3.js} +32 -32
- package/{sfcview-79a20801.js → sfcview-7f974f98.js} +24 -23
- package/{share-editor-79be0fe3.js → share-editor-3caefde2.js} +55 -54
- package/{share-event-77717d69.js → share-event-0ac319f0.js} +2 -2
- package/share-field-f51ccb41.js +863 -0
- package/{share-file-bc8f56f8.js → share-file-ea94d84e.js} +20 -21
- package/size-editor-511e40a5.js +57 -0
- package/{skeleton-widget-c593fe7a.js → skeleton-widget-379c1a23.js} +25 -24
- package/{skeletonItem-widget-4550c4fe.js → skeletonItem-widget-70f95048.js} +22 -21
- package/{slider-widget-74a31030.js → slider-widget-e16ceea7.js} +24 -23
- package/{slot-2cdc3b54.js → slot-a11ba403.js} +5 -5
- package/{space-widget-ffc9eabc.js → space-widget-79e1ee5e.js} +40 -39
- package/{splitter-widget-fca00f2b.js → splitter-widget-6cde3a4c.js} +23 -22
- package/{static-text-widget-c682f482.js → static-text-widget-48a223a0.js} +23 -22
- package/{statistic-widget-1a8051c0.js → statistic-widget-04dbb84c.js} +25 -24
- package/{steps-widget-a445a201.js → steps-widget-ff9c8112.js} +22 -21
- package/{subMenu-widget-87d583a9.js → subMenu-widget-75b5b885.js} +10 -9
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-0255e3d5.js → subMenu-widget.vue_vue_type_script_setup_true_lang-dff950d1.js} +18 -18
- package/{switch-widget-de893bf9.js → switch-widget-b4dfb30f.js} +29 -28
- package/{tab-pane-widget-a7374d75.js → tab-pane-widget-12393cec.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-434f9cf7.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-07a3da71.js} +5 -5
- package/table-col-widget-565631d2.js +30 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8c799d0f.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-b83a4a39.js} +26 -27
- package/{table-widget-05b53a5f.js → table-widget-dba1ef32.js} +50 -48
- package/{tabs-widget-65ed6426.js → tabs-widget-8d497cb7.js} +8 -8
- package/{tag-widget-85bcce8f.js → tag-widget-7c023bb0.js} +25 -24
- package/{target-code-9a4699b1.js → target-code-24346bfc.js} +12 -11
- package/{target-datasource-94c64cbb.js → target-datasource-14df6047.js} +66 -65
- package/{target-link-88b4fd89.js → target-link-9472348b.js} +56 -55
- package/{target-saveForm-e1115d3f.js → target-saveForm-ddd0b24a.js} +71 -70
- package/{target-widget-5cf4403e.js → target-widget-426dbfe8.js} +2 -2
- package/{target-window-fb793bc8.js → target-window-bb03d3b5.js} +24 -23
- package/{text-widget-dd4f6b97.js → text-widget-e241f6be.js} +25 -24
- package/{textarea-widget-953b39e8.js → textarea-widget-5c288e26.js} +24 -23
- package/{time-picker-range-widget-30903551.js → time-picker-range-widget-4c18e0cf.js} +35 -35
- package/time-picker-widget-1e695b27.js +72 -0
- package/{time-select-widget-4dbe95ff.js → time-select-widget-055a902a.js} +24 -23
- package/{timeline-widget-476e9ea8.js → timeline-widget-881bf090.js} +23 -22
- package/{tmpl-widget-2cbd418b.js → tmpl-widget-f1bdf0a4.js} +36 -35
- package/{tooltip-widget-8b022a6d.js → tooltip-widget-32af6ae1.js} +23 -22
- package/{tour-widget-be2ef78d.js → tour-widget-18697c7d.js} +37 -36
- package/{transfer-widget-31ea801d.js → transfer-widget-04bb21a2.js} +25 -24
- package/{tree-select-widget-691c9cb6.js → tree-select-widget-4c63a180.js} +24 -23
- package/{tree-widget-15cddec7.js → tree-widget-9a8da624.js} +31 -30
- package/uuid-1013bfdd.js +16 -0
- package/{value-editor-676d7ca0.js → value-editor-ad4a9472.js} +29 -27
- package/{verifycode-widget-2cbb68e2.js → verifycode-widget-1e2f11f6.js} +49 -48
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-ddcbea59.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b7eb5c4b.js} +30 -30
- package/{wrapper-widget-40c40291.js → wrapper-widget-03be4616.js} +7 -7
- package/avatar-widget-00d2f77a.js +0 -48
- package/common-editor-96af86ea.js +0 -28
- package/content-wrapper-feb05971.js +0 -18
- package/countdown-widget-87ab2577.js +0 -60
- package/cssIndex-77da0ec7.js +0 -185
- package/default-slot-widget-4be80302.js +0 -32
- package/dialog-widget-bae25ba7.js +0 -40
- package/divider-widget-643e5787.js +0 -54
- package/drawer-widget-73902c82.js +0 -40
- package/feedback-widget-90fe8e26.js +0 -33
- package/iframe-widget-c6d453cc.js +0 -137
- package/image-editor-1e8036ad.js +0 -53
- package/index-08436ce4.js +0 -1445
- package/index-1c33c886.js +0 -230
- package/index-54eed7c3.js +0 -334
- package/index-64486ab5.js +0 -43
- package/index-fa15e4c8.js +0 -240
- package/index-fc1c67a3.js +0 -46
- package/multirow-89ec2174.js +0 -183
- package/obj-cc64f79c.js +0 -230
- package/setView-de8aaf40.js +0 -84
- package/share-field-4f3d4a0b.js +0 -879
- package/size-editor-99257b84.js +0 -54
- package/table-col-widget-35d0c1ba.js +0 -29
- package/time-picker-widget-3398f837.js +0 -71
- package/uuid-2f7814e3.js +0 -203
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { defineComponent as Ke, ref as T, computed as W, onMounted as we, resolveComponent as $, openBlock as m, createElementBlock as Z, Fragment as Fe, createVNode as F, withCtx as p, createElementVNode as O, createBlock as k, resolveDynamicComponent as R, unref as s, createTextVNode as B, toDisplayString as S, createCommentVNode as C, renderSlot as Ce } from "vue";
|
|
2
|
+
import { t as H, a as N, u as De, e as Ve } from "./index-0fea97a8.js";
|
|
3
|
+
import { aN as c, aC as xe } from "./enum-669d691c.js";
|
|
4
|
+
import { e as Te } from "./optionItem-8e1d0080.js";
|
|
5
|
+
import { u as Oe } from "./icon-8b8b9744.js";
|
|
6
|
+
import { S as q } from "./index-a565454e.js";
|
|
7
|
+
import { u as Se } from "./share-event-0ac319f0.js";
|
|
8
|
+
import { a as ee } from "./index-61d6c848.js";
|
|
9
|
+
import { t as j, P as te, $ as Le, g as Ee } from "./baseCommonField-607f46b1.js";
|
|
10
|
+
import { p as I } from "./px-8e97b0e9.js";
|
|
11
|
+
import "./object-751045cf.js";
|
|
12
|
+
import "./baseDataType-af503f9f.js";
|
|
13
|
+
import "./expression-185552e1.js";
|
|
14
|
+
import "./source-map-b04aec4a.js";
|
|
15
|
+
import "./uuid-1013bfdd.js";
|
|
16
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
17
|
+
import "./esprima-e8d15055.js";
|
|
18
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
19
|
+
import "./emitter-752d9612.js";
|
|
20
|
+
import "axios";
|
|
21
|
+
import "./dialog-abd1055d.js";
|
|
22
|
+
import "element-plus";
|
|
23
|
+
const We = { class: "flexJustify" }, $e = { class: "labelWrapper" }, Be = { key: 1 }, Ne = { class: "buttonWrapper" }, qe = { class: "marginTop10" }, it = /* @__PURE__ */ Ke({
|
|
24
|
+
__name: "index",
|
|
25
|
+
props: {
|
|
26
|
+
modelValue: {},
|
|
27
|
+
keys: {},
|
|
28
|
+
widgetType: {},
|
|
29
|
+
multiple: { type: Boolean },
|
|
30
|
+
dataPath: {},
|
|
31
|
+
uuidKey: { default: "id" },
|
|
32
|
+
childrenKey: { default: "children" },
|
|
33
|
+
disabledKey: {},
|
|
34
|
+
labelKey: { default: "label" },
|
|
35
|
+
valueKey: { default: "value" },
|
|
36
|
+
maxLevel: { default: 10 },
|
|
37
|
+
minLevel: { default: 1 },
|
|
38
|
+
onlyLeafSelect: { type: Boolean },
|
|
39
|
+
editorType: {},
|
|
40
|
+
path: {},
|
|
41
|
+
showEditor: { type: Boolean, default: !0 },
|
|
42
|
+
newOptionFn: {},
|
|
43
|
+
cloneOptionFn: {},
|
|
44
|
+
newValueFn: {},
|
|
45
|
+
setDefaultFn: {},
|
|
46
|
+
getDefaultFn: {},
|
|
47
|
+
findDefaultFn: {},
|
|
48
|
+
isDefaultFn: {},
|
|
49
|
+
filterOptionFn: {},
|
|
50
|
+
tools: {}
|
|
51
|
+
},
|
|
52
|
+
emits: ["updateDefaultValue", "update:modelValue", "importData"],
|
|
53
|
+
setup(i, { emit: le }) {
|
|
54
|
+
var G;
|
|
55
|
+
const t = i, M = le, b = T([
|
|
56
|
+
c.rank,
|
|
57
|
+
c.add,
|
|
58
|
+
c.edit,
|
|
59
|
+
c.clone,
|
|
60
|
+
c.delete,
|
|
61
|
+
c.import,
|
|
62
|
+
c.reset
|
|
63
|
+
]);
|
|
64
|
+
t.tools && ((G = t.tools) == null ? void 0 : G.length) > 0 && (b.value = t.tools);
|
|
65
|
+
const ne = () => {
|
|
66
|
+
M("importData");
|
|
67
|
+
}, { getInstance: ue } = Oe(), { popOverHandler: re, drawerHandler: ie } = Se({ instance: ue() }), V = T({}), g = W({
|
|
68
|
+
get: () => t.modelValue,
|
|
69
|
+
set: (e) => {
|
|
70
|
+
E(), M("update:modelValue", e);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
let h = {}, P = !1;
|
|
74
|
+
var K = t.uuidKey;
|
|
75
|
+
const y = t.childrenKey, ae = (e, u) => t.filterOptionFn ? t.filterOptionFn(u) : !0, J = () => {
|
|
76
|
+
if (t.newValueFn)
|
|
77
|
+
return t.newValueFn(g.value);
|
|
78
|
+
{
|
|
79
|
+
const e = Ee();
|
|
80
|
+
return String(e + 1);
|
|
81
|
+
}
|
|
82
|
+
}, U = (e) => {
|
|
83
|
+
h = e, P = !0;
|
|
84
|
+
let u = J();
|
|
85
|
+
var n = t.newOptionFn ? t.newOptionFn(t.keys, u, t.widgetType) : Te(t.keys, u, t.widgetType);
|
|
86
|
+
n = { ...n }, V.value = n, L();
|
|
87
|
+
}, oe = (e, u) => {
|
|
88
|
+
u && (P = !1, V.value = u, L());
|
|
89
|
+
}, se = (e, u) => {
|
|
90
|
+
var f;
|
|
91
|
+
const n = (a) => {
|
|
92
|
+
var l, o;
|
|
93
|
+
var r = {};
|
|
94
|
+
if (t.cloneOptionFn)
|
|
95
|
+
r = t.cloneOptionFn(a, t.widgetType);
|
|
96
|
+
else if (r = Ve(a), r == null || delete r[y], r[t.valueKey] = J(), ((l = a == null ? void 0 : a[y]) == null ? void 0 : l.length) > 0) {
|
|
97
|
+
const w = (o = Array.from(a == null ? void 0 : a[y])) == null ? void 0 : o.map((v) => n(v));
|
|
98
|
+
r[t.childrenKey] = w;
|
|
99
|
+
}
|
|
100
|
+
return r;
|
|
101
|
+
};
|
|
102
|
+
var d = n(u);
|
|
103
|
+
e.parent.data && ((f = e.parent.data) != null && f[y] ? e.parent.data[y].push(d) : e.parent.data.push(d)), E();
|
|
104
|
+
}, de = (e, u) => {
|
|
105
|
+
Le.delete().then(() => {
|
|
106
|
+
var r, l, o, w;
|
|
107
|
+
let n = (r = e.parent) == null ? void 0 : r.childNodes;
|
|
108
|
+
const d = n == null ? void 0 : n.find((v) => (v == null ? void 0 : v[K]) === (e == null ? void 0 : e[K])), f = ((o = (l = d == null ? void 0 : d.parent) == null ? void 0 : l.data) == null ? void 0 : o[y]) || ((w = d == null ? void 0 : d.parent) == null ? void 0 : w.data);
|
|
109
|
+
var a = f == null ? void 0 : f.findIndex((v) => v === u);
|
|
110
|
+
a >= 0 && (f.splice(a, 1), g.value = [...g.value], E(), _(x));
|
|
111
|
+
});
|
|
112
|
+
}, ce = () => {
|
|
113
|
+
L(!1);
|
|
114
|
+
}, fe = () => {
|
|
115
|
+
P && (h && !(h != null && h[y]) && Object.assign(h, { [y]: [] }), h != null && h[y] ? h[y].push(V.value) : g.value.push(V.value)), g.value = [...g.value], _(x), L(!1);
|
|
116
|
+
}, pe = (e, u, n) => {
|
|
117
|
+
var r, l;
|
|
118
|
+
if (n === "inner")
|
|
119
|
+
return;
|
|
120
|
+
const d = (r = e.data) == null ? void 0 : r[K], f = (l = u.data) == null ? void 0 : l[K];
|
|
121
|
+
let a = [];
|
|
122
|
+
return j(
|
|
123
|
+
g.value,
|
|
124
|
+
t.childrenKey,
|
|
125
|
+
(o) => (o == null ? void 0 : o[K]) === d,
|
|
126
|
+
(o, w, v) => {
|
|
127
|
+
a = v;
|
|
128
|
+
}
|
|
129
|
+
), !!a.some((o) => (o == null ? void 0 : o[K]) === f);
|
|
130
|
+
}, ye = () => {
|
|
131
|
+
t.multiple ? D.value = [] : D.value = "";
|
|
132
|
+
}, ve = W(() => {
|
|
133
|
+
var e = [];
|
|
134
|
+
j(g.value, t.childrenKey, (n) => t.isDefaultFn ? t.isDefaultFn(n) : n.isdefault, (n) => {
|
|
135
|
+
e.push(n);
|
|
136
|
+
});
|
|
137
|
+
var u = e == null ? void 0 : e.map((n) => t.getDefaultFn ? t.getDefaultFn(n, t.valueKey) : n[t.valueKey]);
|
|
138
|
+
return H(u, !!t.multiple);
|
|
139
|
+
}), z = T(), D = W({
|
|
140
|
+
get: () => z.value || ve.value,
|
|
141
|
+
set: (e) => {
|
|
142
|
+
z.value = e, ge(e);
|
|
143
|
+
}
|
|
144
|
+
}), me = (e) => {
|
|
145
|
+
j(g.value, t.childrenKey, (u) => {
|
|
146
|
+
var n;
|
|
147
|
+
return t.findDefaultFn ? t.findDefaultFn(u, e) : (n = H(e, !0)) == null ? void 0 : n.includes(u[t.valueKey]);
|
|
148
|
+
}, (u) => {
|
|
149
|
+
t.setDefaultFn ? t.setDefaultFn(u, !0) : u.isdefault = !0;
|
|
150
|
+
}, (u) => {
|
|
151
|
+
t.setDefaultFn ? t.setDefaultFn(u, !1) : u.isdefault = !1;
|
|
152
|
+
});
|
|
153
|
+
}, ge = (e) => {
|
|
154
|
+
me(e), M("updateDefaultValue", e);
|
|
155
|
+
}, A = T(), he = () => {
|
|
156
|
+
var e;
|
|
157
|
+
D.value && t.multiple && ((e = A.value) == null || e.setCheckedKeys(H(D.value, !0)));
|
|
158
|
+
}, be = W(() => t.multiple !== void 0), x = T(), L = (e = !0) => {
|
|
159
|
+
if (!t.showEditor)
|
|
160
|
+
return;
|
|
161
|
+
(t.editorType === xe.drawer ? ie : re)({
|
|
162
|
+
attrs: {
|
|
163
|
+
triggerRef: x,
|
|
164
|
+
visible: e,
|
|
165
|
+
data: De(V.value, t.dataPath),
|
|
166
|
+
widgetType: t.widgetType,
|
|
167
|
+
keys: t.keys,
|
|
168
|
+
path: t.path,
|
|
169
|
+
title: N.i18nt("designer.hint.propEditTitle")
|
|
170
|
+
},
|
|
171
|
+
events: {
|
|
172
|
+
confirm: fe,
|
|
173
|
+
cancel: ce
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}, E = () => {
|
|
177
|
+
setTimeout(() => {
|
|
178
|
+
var e;
|
|
179
|
+
(e = A.value) == null || e.filter("");
|
|
180
|
+
}, 2e3);
|
|
181
|
+
}, _ = (e) => {
|
|
182
|
+
var u = ((e == null ? void 0 : e.value) || document).querySelectorAll(".el-tree-node"), n = [];
|
|
183
|
+
if (u == null || u.forEach((a) => {
|
|
184
|
+
var Q, X, Y;
|
|
185
|
+
var r = a.querySelector(".labelWrapper"), l = a.querySelector(".buttonWrapper"), o = a.querySelector(".el-tree-node__content");
|
|
186
|
+
if (!(!r || !l || !o)) {
|
|
187
|
+
var w = I((Q = getComputedStyle(r)) == null ? void 0 : Q.width), v = I((X = getComputedStyle(l)) == null ? void 0 : X.width), ke = I((Y = getComputedStyle(o)) == null ? void 0 : Y.paddingLeft);
|
|
188
|
+
n.push(w + ke + v);
|
|
189
|
+
}
|
|
190
|
+
}), (n == null ? void 0 : n.length) > 0) {
|
|
191
|
+
let a = n.reduce((r, l) => r > l ? r : l);
|
|
192
|
+
if (e.value) {
|
|
193
|
+
var d = I(getComputedStyle(e.value).width), f = a + 20;
|
|
194
|
+
Math.ceil(d) + 2 < Math.ceil(f) && (e.value.style.width = f + "px");
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
return we(() => {
|
|
199
|
+
E(), setTimeout(() => {
|
|
200
|
+
_(x);
|
|
201
|
+
}, 1e3 * 2), he();
|
|
202
|
+
}), (e, u) => {
|
|
203
|
+
const n = $("el-button"), d = $("el-tree"), f = $("el-card"), a = $("el-button-group");
|
|
204
|
+
return m(), Z(Fe, null, [
|
|
205
|
+
F(f, {
|
|
206
|
+
style: { "overflow-x": "auto" },
|
|
207
|
+
class: "full-width flexWrap",
|
|
208
|
+
bodyStyle: { padding: "0px" }
|
|
209
|
+
}, {
|
|
210
|
+
default: p(() => [
|
|
211
|
+
O("div", {
|
|
212
|
+
ref_key: "customTreeRef",
|
|
213
|
+
ref: x
|
|
214
|
+
}, [
|
|
215
|
+
(m(), k(R(i.multiple === null ? "div" : i.multiple ? "el-checkbox-group" : "el-radio-group"), {
|
|
216
|
+
modelValue: D.value,
|
|
217
|
+
"onUpdate:modelValue": u[0] || (u[0] = (r) => D.value = r),
|
|
218
|
+
class: "full-width"
|
|
219
|
+
}, {
|
|
220
|
+
default: p(() => [
|
|
221
|
+
F(d, {
|
|
222
|
+
ref_key: "treeRef",
|
|
223
|
+
ref: A,
|
|
224
|
+
class: "full-width",
|
|
225
|
+
data: g.value,
|
|
226
|
+
"allow-drop": pe,
|
|
227
|
+
draggable: b.value.includes(s(c).rank),
|
|
228
|
+
"node-key": i.valueKey,
|
|
229
|
+
"default-expand-all": "",
|
|
230
|
+
"expand-on-click-node": !1,
|
|
231
|
+
"check-strictly": !0,
|
|
232
|
+
"filter-node-method": ae,
|
|
233
|
+
props: { children: s(y), disabled: i.disabledKey }
|
|
234
|
+
}, {
|
|
235
|
+
default: p(({ node: r, data: l }) => [
|
|
236
|
+
O("div", We, [
|
|
237
|
+
O("span", $e, [
|
|
238
|
+
i.multiple !== null ? (m(), k(R(i.multiple ? "el-checkbox" : "el-radio"), {
|
|
239
|
+
key: r == null ? void 0 : r[s(K)],
|
|
240
|
+
value: l == null ? void 0 : l[i.valueKey],
|
|
241
|
+
disabled: !!i.onlyLeafSelect && !r.isLeaf || i.disabledKey && (l == null ? void 0 : l[i.disabledKey])
|
|
242
|
+
}, {
|
|
243
|
+
default: p(() => [
|
|
244
|
+
B(S(s(te).getValue(s(ee)(i.labelKey, l))), 1)
|
|
245
|
+
]),
|
|
246
|
+
_: 2
|
|
247
|
+
}, 1032, ["value", "disabled"])) : (m(), Z("span", Be, S(s(te).getValue(s(ee)(i.labelKey, l))), 1))
|
|
248
|
+
]),
|
|
249
|
+
O("span", Ne, [
|
|
250
|
+
(r == null ? void 0 : r.level) < i.maxLevel && b.value.includes(s(c).add) ? (m(), k(n, {
|
|
251
|
+
key: 0,
|
|
252
|
+
link: "",
|
|
253
|
+
onClick: (o) => U(l),
|
|
254
|
+
disabled: i.disabledKey && (l == null ? void 0 : l[i.disabledKey])
|
|
255
|
+
}, {
|
|
256
|
+
default: p(() => [
|
|
257
|
+
F(q, { name: "@el-plus" })
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
}, 8, ["onClick", "disabled"])) : C("", !0),
|
|
261
|
+
b.value.includes(s(c).edit) ? (m(), k(n, {
|
|
262
|
+
key: 1,
|
|
263
|
+
link: "",
|
|
264
|
+
onClick: (o) => oe(r, l),
|
|
265
|
+
disabled: i.disabledKey && (l == null ? void 0 : l[i.disabledKey])
|
|
266
|
+
}, {
|
|
267
|
+
default: p(() => [
|
|
268
|
+
F(q, { name: "@el-edit" })
|
|
269
|
+
]),
|
|
270
|
+
_: 1
|
|
271
|
+
}, 8, ["onClick", "disabled"])) : C("", !0),
|
|
272
|
+
b.value.includes(s(c).clone) ? (m(), k(n, {
|
|
273
|
+
key: 2,
|
|
274
|
+
link: "",
|
|
275
|
+
onClick: (o) => se(r, l),
|
|
276
|
+
disabled: i.disabledKey && (l == null ? void 0 : l[i.disabledKey])
|
|
277
|
+
}, {
|
|
278
|
+
default: p(() => [
|
|
279
|
+
F(q, { name: "@el-clone" })
|
|
280
|
+
]),
|
|
281
|
+
_: 1
|
|
282
|
+
}, 8, ["onClick", "disabled"])) : C("", !0),
|
|
283
|
+
b.value.includes(s(c).delete) ? (m(), k(n, {
|
|
284
|
+
key: 3,
|
|
285
|
+
link: "",
|
|
286
|
+
onClick: (o) => de(r, l),
|
|
287
|
+
disabled: i.disabledKey && (l == null ? void 0 : l[i.disabledKey])
|
|
288
|
+
}, {
|
|
289
|
+
default: p(() => [
|
|
290
|
+
F(q, { name: "@el-delete" })
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
}, 8, ["onClick", "disabled"])) : C("", !0)
|
|
294
|
+
])
|
|
295
|
+
])
|
|
296
|
+
]),
|
|
297
|
+
_: 1
|
|
298
|
+
}, 8, ["data", "draggable", "node-key", "props"])
|
|
299
|
+
]),
|
|
300
|
+
_: 1
|
|
301
|
+
}, 8, ["modelValue"]))
|
|
302
|
+
], 512)
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
}),
|
|
306
|
+
Ce(e.$slots, "tools", {}, () => [
|
|
307
|
+
O("div", qe, [
|
|
308
|
+
F(a, { class: "full-width" }, {
|
|
309
|
+
default: p(() => [
|
|
310
|
+
b.value.includes(s(c).add) ? (m(), k(n, {
|
|
311
|
+
key: 0,
|
|
312
|
+
type: "primary",
|
|
313
|
+
onClick: u[1] || (u[1] = (r) => U(null))
|
|
314
|
+
}, {
|
|
315
|
+
default: p(() => [
|
|
316
|
+
B(S(s(N).i18nt("designer.setting.addOption")), 1)
|
|
317
|
+
]),
|
|
318
|
+
_: 1
|
|
319
|
+
})) : C("", !0),
|
|
320
|
+
b.value.includes(s(c).import) ? (m(), k(n, {
|
|
321
|
+
key: 1,
|
|
322
|
+
type: "primary",
|
|
323
|
+
onClick: u[2] || (u[2] = (r) => ne())
|
|
324
|
+
}, {
|
|
325
|
+
default: p(() => [
|
|
326
|
+
B(S(s(N).i18nt("designer.setting.importOptions")), 1)
|
|
327
|
+
]),
|
|
328
|
+
_: 1
|
|
329
|
+
})) : C("", !0),
|
|
330
|
+
be.value && b.value.includes(s(c).reset) ? (m(), k(n, {
|
|
331
|
+
key: 2,
|
|
332
|
+
type: "primary",
|
|
333
|
+
onClick: ye
|
|
334
|
+
}, {
|
|
335
|
+
default: p(() => [
|
|
336
|
+
B(S(s(N).i18nt("designer.setting.resetDefault")), 1)
|
|
337
|
+
]),
|
|
338
|
+
_: 1
|
|
339
|
+
})) : C("", !0)
|
|
340
|
+
]),
|
|
341
|
+
_: 1
|
|
342
|
+
})
|
|
343
|
+
])
|
|
344
|
+
])
|
|
345
|
+
], 64);
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
export {
|
|
350
|
+
it as default
|
|
351
|
+
};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { defineComponent as A, shallowRef as N, ref as B, onMounted as Q, resolveComponent as D, openBlock as b, createElementBlock as K, Fragment as q, createBlock as M, withCtx as S, createVNode as I, createTextVNode as E, toDisplayString as F, createElementVNode as J, unref as L, createCommentVNode as _, resolveDynamicComponent as j, inject as G, defineAsyncComponent as H } from "vue";
|
|
2
|
-
import { a as e } from "./
|
|
3
|
-
import { I as $ } from "./property-base-
|
|
4
|
-
import { u as O } from "./share-editor-
|
|
5
|
-
import {
|
|
6
|
-
import { A as t } from "./index-
|
|
7
|
-
import {
|
|
8
|
-
import "./
|
|
9
|
-
import "./enum-
|
|
2
|
+
import { a as e } from "./index-0fea97a8.js";
|
|
3
|
+
import { I as $ } from "./property-base-eaed8cbe.js";
|
|
4
|
+
import { u as O } from "./share-editor-3caefde2.js";
|
|
5
|
+
import { j as z } from "./baseCommonField-607f46b1.js";
|
|
6
|
+
import { A as t } from "./index-fcc4373b.js";
|
|
7
|
+
import { N as X, d as Y } from "./expression-185552e1.js";
|
|
8
|
+
import "./object-751045cf.js";
|
|
9
|
+
import "./enum-669d691c.js";
|
|
10
|
+
import "./baseDataType-af503f9f.js";
|
|
11
|
+
import "./codeType-e06c2bb4.js";
|
|
10
12
|
import "./icon-8b8b9744.js";
|
|
11
13
|
import "axios";
|
|
12
|
-
import "./dialog-
|
|
14
|
+
import "./dialog-abd1055d.js";
|
|
13
15
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
|
-
import "./uuid-
|
|
16
|
+
import "./uuid-1013bfdd.js";
|
|
15
17
|
import "element-plus";
|
|
16
18
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
17
19
|
import "./source-map-b04aec4a.js";
|
|
@@ -196,23 +198,6 @@ class R {
|
|
|
196
198
|
};
|
|
197
199
|
}
|
|
198
200
|
}
|
|
199
|
-
function Z(d) {
|
|
200
|
-
const s = {};
|
|
201
|
-
if (!d || d.length <= 0)
|
|
202
|
-
return s;
|
|
203
|
-
for (const i of d) {
|
|
204
|
-
const o = i.indexOf(":");
|
|
205
|
-
if (o === -1)
|
|
206
|
-
continue;
|
|
207
|
-
const p = i.substring(0, o).trim(), r = i.substring(o + 1).trim();
|
|
208
|
-
if (r.startsWith("{") && r.endsWith("}")) {
|
|
209
|
-
const n = r.slice(1, -1);
|
|
210
|
-
s[p] = x(n);
|
|
211
|
-
} else
|
|
212
|
-
s[p] = r;
|
|
213
|
-
}
|
|
214
|
-
return s;
|
|
215
|
-
}
|
|
216
201
|
function x(d) {
|
|
217
202
|
const s = {};
|
|
218
203
|
let i = "", o = "", p = 0, r = !0;
|
|
@@ -238,7 +223,24 @@ function x(d) {
|
|
|
238
223
|
}
|
|
239
224
|
return s;
|
|
240
225
|
}
|
|
241
|
-
|
|
226
|
+
function Z(d) {
|
|
227
|
+
const s = {};
|
|
228
|
+
if (!d || d.length <= 0)
|
|
229
|
+
return s;
|
|
230
|
+
for (const i of d) {
|
|
231
|
+
const o = i.indexOf(":");
|
|
232
|
+
if (o === -1)
|
|
233
|
+
continue;
|
|
234
|
+
const p = i.substring(0, o).trim(), r = i.substring(o + 1).trim();
|
|
235
|
+
if (r.startsWith("{") && r.endsWith("}")) {
|
|
236
|
+
const n = r.slice(1, -1);
|
|
237
|
+
s[p] = x(n);
|
|
238
|
+
} else
|
|
239
|
+
s[p] = r;
|
|
240
|
+
}
|
|
241
|
+
return s;
|
|
242
|
+
}
|
|
243
|
+
const Ce = /* @__PURE__ */ A({
|
|
242
244
|
__name: "index",
|
|
243
245
|
props: {
|
|
244
246
|
...$,
|
|
@@ -247,7 +249,7 @@ const we = /* @__PURE__ */ A({
|
|
|
247
249
|
},
|
|
248
250
|
setup(d, { expose: s }) {
|
|
249
251
|
const i = d, { saveCode: o } = O(i), p = N(), r = () => {
|
|
250
|
-
p.value = H(() => import("./index-
|
|
252
|
+
p.value = H(() => import("./index-fcc4373b.js").then((c) => c._));
|
|
251
253
|
};
|
|
252
254
|
B();
|
|
253
255
|
const n = B(), a = () => {
|
|
@@ -360,5 +362,5 @@ const we = /* @__PURE__ */ A({
|
|
|
360
362
|
}
|
|
361
363
|
});
|
|
362
364
|
export {
|
|
363
|
-
|
|
365
|
+
Ce as default
|
|
364
366
|
};
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { defineComponent as O, ref as R, onMounted as S, nextTick as B, withDirectives as E, openBlock as o, createBlock as s, withCtx as l, createElementBlock as $, normalizeClass as I, unref as u, createCommentVNode as d, vShow as L, computed as U, resolveComponent as T, mergeProps as b, createElementVNode as h, createTextVNode as c, toDisplayString as g, createVNode as V } from "vue";
|
|
2
|
+
import { a as y } from "./index-0fea97a8.js";
|
|
3
|
+
import { I as j } from "./dialog-abd1055d.js";
|
|
4
|
+
import { f as A } from "./object-751045cf.js";
|
|
5
|
+
import { u as M } from "./uuid-1013bfdd.js";
|
|
6
|
+
import { M as D } from "./mask-38100676.js";
|
|
7
|
+
const H = ["src", "id"], W = ["id"], z = /* @__PURE__ */ O({
|
|
8
|
+
__name: "iframe",
|
|
9
|
+
props: {
|
|
10
|
+
url: {},
|
|
11
|
+
htmlContent: {}
|
|
12
|
+
},
|
|
13
|
+
setup(f, { expose: _ }) {
|
|
14
|
+
const a = f, n = R(), m = R(!0), p = () => {
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
m.value = !1;
|
|
17
|
+
}, 1e3);
|
|
18
|
+
}, e = () => {
|
|
19
|
+
if (A(a.htmlContent))
|
|
20
|
+
return;
|
|
21
|
+
const t = n.value;
|
|
22
|
+
if (t) {
|
|
23
|
+
const i = t.contentWindow.document;
|
|
24
|
+
i.open(), i.write(a.htmlContent), i.close();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
return S(() => {
|
|
28
|
+
B(() => {
|
|
29
|
+
e();
|
|
30
|
+
});
|
|
31
|
+
}), _({
|
|
32
|
+
iframeRef: n
|
|
33
|
+
}), (t, i) => E((o(), s(D, { loading: m.value }, {
|
|
34
|
+
default: l(({ maskData: C }) => [
|
|
35
|
+
f.url ? (o(), $("iframe", {
|
|
36
|
+
key: 0,
|
|
37
|
+
frameborder: "0",
|
|
38
|
+
ref_key: "iframeRef",
|
|
39
|
+
ref: n,
|
|
40
|
+
class: I(["full-width full-height", [...C.class]]),
|
|
41
|
+
src: f.url,
|
|
42
|
+
onLoad: p,
|
|
43
|
+
id: u(M)()
|
|
44
|
+
}, null, 42, H)) : f.htmlContent ? (o(), $("iframe", {
|
|
45
|
+
key: 1,
|
|
46
|
+
frameborder: "0",
|
|
47
|
+
ref_key: "iframeRef",
|
|
48
|
+
ref: n,
|
|
49
|
+
class: I(["full-width full-height", [...C.class]]),
|
|
50
|
+
id: u(M)(),
|
|
51
|
+
onLoad: p
|
|
52
|
+
}, null, 42, W)) : d("", !0)
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["loading"])), [
|
|
56
|
+
[L, !!f.url || !!f.htmlContent]
|
|
57
|
+
]);
|
|
58
|
+
}
|
|
59
|
+
}), q = { style: { width: "99%", height: "99%", margin: "0 auto" } }, F = { class: "dialog-footer" }, G = { style: { width: "99%", height: "99%", margin: "0 auto" } }, J = { class: "dialog-footer" }, K = { style: { width: "99%", height: "99%", margin: "0 auto" } }, Q = /* @__PURE__ */ O({
|
|
60
|
+
__name: "index",
|
|
61
|
+
props: { ...j },
|
|
62
|
+
emits: ["ok", "cancel", "close"],
|
|
63
|
+
setup(f, { emit: _ }) {
|
|
64
|
+
const a = _, n = R(!0), m = R(), p = U(() => {
|
|
65
|
+
var e;
|
|
66
|
+
return (e = m.value) == null ? void 0 : e.iframeRef;
|
|
67
|
+
});
|
|
68
|
+
return (e, t) => {
|
|
69
|
+
const i = T("el-button"), C = T("el-dialog"), N = T("el-drawer"), P = T("el-popover");
|
|
70
|
+
return !e.modalType || e.modalType == "dialog" ? (o(), s(C, b({
|
|
71
|
+
key: 0,
|
|
72
|
+
modelValue: n.value,
|
|
73
|
+
"onUpdate:modelValue": t[3] || (t[3] = (r) => n.value = r),
|
|
74
|
+
class: "--hl-dialog1",
|
|
75
|
+
top: "15vh",
|
|
76
|
+
fullscreen: e.fullscreen,
|
|
77
|
+
title: e.title,
|
|
78
|
+
"close-on-click-modal": !1,
|
|
79
|
+
"close-on-press-escape": !1,
|
|
80
|
+
"show-close": !0,
|
|
81
|
+
width: e.width
|
|
82
|
+
}, e.exterOptions, {
|
|
83
|
+
style: { height: e.height }
|
|
84
|
+
}), {
|
|
85
|
+
footer: l(() => {
|
|
86
|
+
var r, v, k;
|
|
87
|
+
return [
|
|
88
|
+
h("span", F, [
|
|
89
|
+
(r = e.dialogType) != null && r.includes("close") ? (o(), s(i, {
|
|
90
|
+
key: 0,
|
|
91
|
+
onClick: t[0] || (t[0] = (w) => {
|
|
92
|
+
a("close", {});
|
|
93
|
+
}),
|
|
94
|
+
size: "large"
|
|
95
|
+
}, {
|
|
96
|
+
default: l(() => [
|
|
97
|
+
c(g(u(y).i18nt("designer.hint.close")), 1)
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
})) : d("", !0),
|
|
101
|
+
(v = e.dialogType) != null && v.includes("cancel") ? (o(), s(i, {
|
|
102
|
+
key: 1,
|
|
103
|
+
onClick: t[1] || (t[1] = (w) => {
|
|
104
|
+
a("cancel", { iframeRef: p.value });
|
|
105
|
+
}),
|
|
106
|
+
size: "large"
|
|
107
|
+
}, {
|
|
108
|
+
default: l(() => [
|
|
109
|
+
c(g(u(y).i18nt("designer.hint.close")), 1)
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
})) : d("", !0),
|
|
113
|
+
(k = e.dialogType) != null && k.includes("save") ? (o(), s(i, {
|
|
114
|
+
key: 2,
|
|
115
|
+
type: "primary",
|
|
116
|
+
onClick: t[2] || (t[2] = (w) => {
|
|
117
|
+
a("ok", { iframeRef: p.value });
|
|
118
|
+
}),
|
|
119
|
+
size: "large"
|
|
120
|
+
}, {
|
|
121
|
+
default: l(() => [
|
|
122
|
+
c(g(u(y).i18nt("designer.hint.confirm")), 1)
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
})) : d("", !0)
|
|
126
|
+
])
|
|
127
|
+
];
|
|
128
|
+
}),
|
|
129
|
+
default: l(() => [
|
|
130
|
+
h("div", q, [
|
|
131
|
+
V(z, {
|
|
132
|
+
url: e.url,
|
|
133
|
+
"html-content": e.htmlContent,
|
|
134
|
+
ref_key: "hlIframeRef",
|
|
135
|
+
ref: m
|
|
136
|
+
}, null, 8, ["url", "html-content"])
|
|
137
|
+
])
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}, 16, ["modelValue", "fullscreen", "title", "width", "style"])) : e.modalType === "drawer" ? (o(), s(N, b({
|
|
141
|
+
key: 1,
|
|
142
|
+
modelValue: n.value,
|
|
143
|
+
"onUpdate:modelValue": t[7] || (t[7] = (r) => n.value = r),
|
|
144
|
+
"close-on-click-modal": !1,
|
|
145
|
+
"close-on-press-escape": !1,
|
|
146
|
+
"show-close": !0,
|
|
147
|
+
title: e.title,
|
|
148
|
+
size: e.width,
|
|
149
|
+
style: { height: e.height }
|
|
150
|
+
}, e.exterOptions), {
|
|
151
|
+
footer: l(() => {
|
|
152
|
+
var r, v, k;
|
|
153
|
+
return [
|
|
154
|
+
h("span", J, [
|
|
155
|
+
(r = e.dialogType) != null && r.includes("close") ? (o(), s(i, {
|
|
156
|
+
key: 0,
|
|
157
|
+
onClick: t[4] || (t[4] = (w) => {
|
|
158
|
+
a("close", {});
|
|
159
|
+
}),
|
|
160
|
+
size: "large"
|
|
161
|
+
}, {
|
|
162
|
+
default: l(() => [
|
|
163
|
+
c(g(u(y).i18nt("designer.hint.close")), 1)
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
})) : d("", !0),
|
|
167
|
+
(v = e.dialogType) != null && v.includes("cancel") ? (o(), s(i, {
|
|
168
|
+
key: 1,
|
|
169
|
+
onClick: t[5] || (t[5] = (w) => {
|
|
170
|
+
a("cancel", { iframeRef: p.value });
|
|
171
|
+
}),
|
|
172
|
+
size: "large"
|
|
173
|
+
}, {
|
|
174
|
+
default: l(() => [
|
|
175
|
+
c(g(u(y).i18nt("designer.hint.close")), 1)
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
})) : d("", !0),
|
|
179
|
+
(k = e.dialogType) != null && k.includes("save") ? (o(), s(i, {
|
|
180
|
+
key: 2,
|
|
181
|
+
type: "primary",
|
|
182
|
+
onClick: t[6] || (t[6] = (w) => {
|
|
183
|
+
a("ok", { iframeRef: p.value });
|
|
184
|
+
}),
|
|
185
|
+
size: "large"
|
|
186
|
+
}, {
|
|
187
|
+
default: l(() => [
|
|
188
|
+
c(g(u(y).i18nt("designer.hint.confirm")), 1)
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
})) : d("", !0)
|
|
192
|
+
])
|
|
193
|
+
];
|
|
194
|
+
}),
|
|
195
|
+
default: l(() => [
|
|
196
|
+
h("div", G, [
|
|
197
|
+
V(z, {
|
|
198
|
+
url: e.url,
|
|
199
|
+
"html-content": e.htmlContent,
|
|
200
|
+
ref_key: "hlIframeRef",
|
|
201
|
+
ref: m
|
|
202
|
+
}, null, 8, ["url", "html-content"])
|
|
203
|
+
])
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 16, ["modelValue", "title", "size", "style"])) : e.modalType === "popover" ? (o(), s(P, b({
|
|
207
|
+
key: 2,
|
|
208
|
+
visible: n.value,
|
|
209
|
+
"onUpdate:visible": t[8] || (t[8] = (r) => n.value = r),
|
|
210
|
+
title: e.title,
|
|
211
|
+
width: e.width,
|
|
212
|
+
style: { height: e.height }
|
|
213
|
+
}, e.exterOptions), {
|
|
214
|
+
reference: l(() => [...t[9] || (t[9] = [
|
|
215
|
+
h("span", { style: { display: "none" } }, null, -1)
|
|
216
|
+
])]),
|
|
217
|
+
default: l(() => [
|
|
218
|
+
h("div", K, [
|
|
219
|
+
V(z, {
|
|
220
|
+
url: e.url,
|
|
221
|
+
"html-content": e.htmlContent,
|
|
222
|
+
ref_key: "hlIframeRef",
|
|
223
|
+
ref: m
|
|
224
|
+
}, null, 8, ["url", "html-content"])
|
|
225
|
+
])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
}, 16, ["visible", "title", "width", "style"])) : d("", !0);
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
233
|
+
__proto__: null,
|
|
234
|
+
default: Q
|
|
235
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
236
|
+
export {
|
|
237
|
+
z as _,
|
|
238
|
+
le as a
|
|
239
|
+
};
|