hldesigner 0.0.281 → 0.0.282
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-8124ac79.js → _pdf-aedfa178.js} +7 -7
- package/{_share_image-b0e3dd36.js → _share_image-9ce786a4.js} +2 -2
- package/{_share_size.vue_vue_type_script_setup_true_lang-0f17dbf2.js → _share_size.vue_vue_type_script_setup_true_lang-22bdb232.js} +3 -3
- package/{_txt-7e98af0d.js → _txt-fb9eea1e.js} +7 -7
- package/{_unsupport-9ff38976.js → _unsupport-1cb78d71.js} +2 -2
- package/{affix-widget-ebbf3699.js → affix-widget-aac99193.js} +21 -21
- package/{alert-widget-2125d75a.js → alert-widget-20c0637f.js} +21 -21
- package/{anchor-widget-01e25780.js → anchor-widget-ff762722.js} +18 -18
- package/{auto-complete-widget-10ca81ae.js → auto-complete-widget-11d9ebb7.js} +21 -21
- package/{avatar-widget-0353ddac.js → avatar-widget-c0cfa519.js} +21 -21
- package/{backtop-widget-9598e265.js → backtop-widget-54e80839.js} +21 -21
- package/{badge-widget-f0aa3600.js → badge-widget-562ec30b.js} +21 -21
- package/{barcode-widget-a574c51b.js → barcode-widget-40bee3b0.js} +33 -33
- package/{baseImp-e6533762.js → baseImp-f2767c96.js} +2613 -2514
- package/{breadcrumb-widget-96982a25.js → breadcrumb-widget-04ed3fd1.js} +18 -18
- package/{button-widget-3a58356b.js → button-widget-27c135c1.js} +21 -21
- package/{cache-widget-0ed801b2.js → cache-widget-bd7db1b9.js} +20 -20
- package/{card-widget-bbcb0430.js → card-widget-0006ca78.js} +19 -19
- package/{carousel-widget-5cc16c41.js → carousel-widget-d60ea709.js} +19 -19
- package/{cascader-widget-e07c5eb5.js → cascader-widget-e3915bc7.js} +20 -20
- package/{chart-widget-92c6d365.js → chart-widget-5c9da012.js} +36 -36
- package/{checkbox-widget-70ae21cc.js → checkbox-widget-d6e624da.js} +20 -20
- package/{collapse-widget-55f1825a.js → collapse-widget-257cf0bd.js} +19 -19
- package/{color-picker-widget-d68ab32d.js → color-picker-widget-52cde85a.js} +20 -20
- package/common-editor-a6308d06.js +28 -0
- package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-0f7c6da1.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-494e2151.js} +2 -2
- package/{configItem-128b0fe4.js → configItem-242e2146.js} +41 -40
- package/{cont-cell-widget-95edac13.js → cont-cell-widget-546cd121.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-af89065e.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-bb506b6d.js} +11 -11
- package/{cont-widget-f438f87a.js → cont-widget-93aa9072.js} +15 -15
- package/{content-wrapper-f22d0844.js → content-wrapper-09c98dcd.js} +8 -8
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-7238d66f.js → content-wrapper.vue_vue_type_script_setup_true_lang-1bfb716d.js} +7 -7
- package/{countdown-widget-568d4bce.js → countdown-widget-11f335e9.js} +21 -21
- package/css-editor-362763ce.js +1355 -0
- package/cssClass-870a810b.js +24 -0
- package/{cssIndex-376549b5.js → cssIndex-87c6de29.js} +45 -45
- package/{customClass-editor-7797e325.js → customClass-editor-7b232d1c.js} +19 -19
- package/{date-picker-range-widget-bf9b3410.js → date-picker-range-widget-a9541ebc.js} +20 -20
- package/{date-picker-widget-7d8a6d68.js → date-picker-widget-2acb3c41.js} +20 -20
- package/default-slot-widget-c6f582c9.js +31 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-51c5ad1d.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8642a0cd.js} +8 -8
- package/{descriptions-widget-567504b1.js → descriptions-widget-60253050.js} +19 -19
- package/designer.es.js +38 -37
- package/designer.style.css +2 -2
- package/designer.umd.js +173 -173
- package/{dialog-8d618800.js → dialog-8367296a.js} +2 -2
- package/{dialog-widget-929fa994.js → dialog-widget-6ecdf930.js} +20 -20
- package/{divider-widget-c5378a25.js → divider-widget-0174a1fa.js} +21 -21
- package/drag-wrapper-54edde7d.js +281 -0
- package/{drawer-widget-0dc62477.js → drawer-widget-d761e2fe.js} +20 -20
- package/{dropdown-widget-13c60863.js → dropdown-widget-d4230051.js} +19 -19
- package/{editor-wrapper-b5924cae.js → editor-wrapper-ac06b695.js} +125 -125
- package/{emitter-5d6d8130.js → emitter-1acbfda9.js} +1 -1
- package/{empty-widget-55795163.js → empty-widget-7c9d855d.js} +21 -21
- package/{enum-type-4fd2996f.js → enum-type-dfa86fd6.js} +108 -92
- package/{enum-type-059a1871.js → enum-type-fe807357.js} +1 -1
- package/{expression-4614311c.js → expression-b8f60625.js} +926 -911
- package/feedback-widget-dc08aa41.js +32 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-71d82be2.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-23e9a940.js} +6 -6
- package/{field-editor-49a46aa0.js → field-editor-abbd6353.js} +16 -16
- package/{fieldobj-3a7ee3ae.js → fieldobj-7dcfbe2b.js} +1 -1
- package/{file-upload-widget-70e49ed7.js → file-upload-widget-7e1084db.js} +25 -25
- package/{form-item-wrapper-d8dd576e.js → form-item-wrapper-b17d3528.js} +14 -14
- package/{form-widget-cadd5e59.js → form-widget-5f3d30a9.js} +25 -25
- package/{grid-col-widget-e5671796.js → grid-col-widget-a13f4179.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-298a782d.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-a096adf9.js} +5 -5
- package/{grid-widget-4d55c29e.js → grid-widget-2c8ad689.js} +17 -17
- package/{hcard-widget-dd47f1e6.js → hcard-widget-a8558e9e.js} +19 -19
- package/{html-text-widget-405f277d.js → html-text-widget-a8463f7b.js} +19 -19
- package/{icon-widget-d07e9007.js → icon-widget-48833032.js} +18 -18
- package/iframe-widget-4bf6b2c0.js +132 -0
- package/{image-editor-e439fc49.js → image-editor-6302c266.js} +18 -18
- package/{image-widget-31f9e5f5.js → image-widget-90a021ad.js} +18 -18
- package/{index-271a233e.js → index-027a190d.js} +59 -58
- package/{index-fc934362.js → index-046a6529.js} +42 -41
- package/{index-facfdc4c.js → index-05335c3b.js} +43 -43
- package/{index-1dd1ec8e.js → index-126a08b9.js} +1 -1
- package/{index-2d59c452.js → index-1584a7a5.js} +163 -163
- package/{index-5d61fc57.js → index-16ba07eb.js} +157 -157
- package/{index-e2938e1a.js → index-28c71533.js} +9 -9
- package/{index-bb63159a.js → index-31195212.js} +1 -1
- package/{index-1f254780.js → index-32be7e8e.js} +74 -74
- package/{index-6ee2f29c.js → index-4d588346.js} +7 -7
- package/{index-84570716.js → index-57897f1a.js} +1 -1
- package/{index-dda9431f.js → index-6d7e61d1.js} +10 -10
- package/{index-5a5f923f.js → index-6d8b1ba0.js} +42 -41
- package/{index-7663b5f5.js → index-7e1db5b9.js} +18 -18
- package/{index-46f811f0.js → index-9655a1c0.js} +9 -9
- package/{index-4e6b41f7.js → index-ba5cd3f6.js} +16 -16
- package/{index-fe30f176.js → index-c9cf28ed.js} +23 -23
- package/{index-cd15488c.js → index-ca37bcea.js} +11 -11
- package/{index-ae684e6f.js → index-cff952ce.js} +17 -17
- package/{index-93450b9d.js → index-d1c0a237.js} +14 -14
- package/{index-253c416f.js → index-d5f4c57b.js} +10 -10
- package/{index-93949bc0.js → index-d9f3ea25.js} +1 -1
- package/{index-fe39be78.js → index-da3c9f0b.js} +190 -190
- package/{index-bed990e5.js → index-db051705.js} +7 -7
- package/{index-b41517e3.js → index-fe2ffedb.js} +32 -32
- package/{input-number-widget-676c5079.js → input-number-widget-7c859dbe.js} +25 -25
- package/{input-tag-widget-43aeeaa4.js → input-tag-widget-cbe84e7a.js} +21 -21
- package/{input-widget-2299c4f3.js → input-widget-383ec0df.js} +21 -21
- package/{install-designer-a5b0e47e.js → install-designer-d80f8c8f.js} +872 -872
- package/{item-e599bcb1.js → item-272cd30a.js} +3 -3
- package/{itemDetail-656b58f6.js → itemDetail-ef5e61f4.js} +3 -3
- package/{label-wrapper-7c03b684.js → label-wrapper-58dbe260.js} +6 -6
- package/{label-wrapper.vue_vue_type_style_index_0_lang-03cc6049.js → label-wrapper.vue_vue_type_style_index_0_lang-fefab42d.js} +3 -3
- package/{link-widget-4f9622ac.js → link-widget-e771f3cc.js} +21 -21
- package/{ltable-col-widget-4c7f7d86.js → ltable-col-widget-2cb3f884.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-dfacbd4b.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-4720d166.js} +56 -56
- package/{ltable-widget-0b51d9f7.js → ltable-widget-ec7b6577.js} +23 -23
- package/{mention-widget-37a175f5.js → mention-widget-a552c38b.js} +21 -21
- package/{menu-widget-60f3a249.js → menu-widget-389e9a7b.js} +42 -42
- package/{model-widget-13686a07.js → model-widget-4faeddd4.js} +33 -33
- package/{multirow-58359a2b.js → multirow-ac9106c7.js} +17 -17
- package/{multirow-widget-bfeaf41c.js → multirow-widget-d01e60c8.js} +90 -90
- package/{name-editor-06fa948b.js → name-editor-12d7f518.js} +23 -23
- package/obj-571dd058.js +210 -0
- package/{optionItem-b66d0f80.js → optionItem-3c87120a.js} +5 -5
- package/package.json +1 -1
- package/{pagination-widget-3908212a.js → pagination-widget-cbb2ac37.js} +18 -18
- package/{picture-upload-widget-6394482e.js → picture-upload-widget-2f3b0ce9.js} +38 -38
- package/{progress-widget-408168ef.js → progress-widget-1a2c63fb.js} +19 -19
- package/{property-base-224cbba8.js → property-base-2e08f1cd.js} +4 -4
- package/qrcode-widget-93e7295e.js +75 -0
- package/{radio-widget-eb32da64.js → radio-widget-44821d40.js} +20 -20
- package/{range-widget-afae7ae9.js → range-widget-34e2815a.js} +21 -21
- package/{rate-widget-493ff611.js → rate-widget-428a5495.js} +20 -20
- package/{reg-editor.vue_vue_type_script_setup_true_lang-0c5793af.js → reg-editor.vue_vue_type_script_setup_true_lang-860cdc59.js} +3 -3
- package/{result-widget-b87e1405.js → result-widget-d6def378.js} +19 -19
- package/{rich-editor-widget-caa21b12.js → rich-editor-widget-7cac0bcb.js} +20 -20
- package/{router-widget-40ad3a8c.js → router-widget-cb5690c8.js} +18 -18
- package/{schemaData-cdd1ab79.js → schemaData-79f3ef69.js} +58 -58
- package/{segmented-widget-3d40c59d.js → segmented-widget-c6139d1e.js} +18 -18
- package/{select-widget-bdad06b4.js → select-widget-5c3dfa89.js} +20 -20
- package/{sfc-212fe046.js → sfc-dbb72bcb.js} +117 -99
- package/{sfcview-71b16f15.js → sfcview-cc18300c.js} +17 -17
- package/{share-editor-b5bdc20c.js → share-editor-7c525c97.js} +41 -41
- package/{share-event-74d5db69.js → share-event-f999e66a.js} +2 -2
- package/{share-field-05fd929b.js → share-field-7d5fca55.js} +52 -52
- package/{share-file-6a6f32ac.js → share-file-ad123d7c.js} +70 -70
- package/{size-editor-0a6f297f.js → size-editor-813f0f02.js} +19 -19
- package/{skeleton-widget-1608f888.js → skeleton-widget-ba85d6b8.js} +21 -21
- package/{skeletonItem-widget-42b20713.js → skeletonItem-widget-f4e5e533.js} +18 -18
- package/{slider-widget-30f11cc3.js → slider-widget-d5fad4a6.js} +20 -20
- package/slot-cc6c2adb.js +331 -0
- package/{space-widget-b33ee60f.js → space-widget-d9f503d3.js} +19 -19
- package/{splitter-widget-d2ad2396.js → splitter-widget-48718ac9.js} +19 -19
- package/{static-text-widget-55a70332.js → static-text-widget-042d0b7d.js} +19 -19
- package/{statistic-widget-b2fe71c7.js → statistic-widget-74c5b5e5.js} +21 -21
- package/{steps-widget-a5fc8f08.js → steps-widget-7548001a.js} +18 -18
- package/{subMenu-widget-b0c58453.js → subMenu-widget-ebbc6593.js} +9 -9
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-0de86d54.js → subMenu-widget.vue_vue_type_script_setup_true_lang-a9a26175.js} +10 -10
- package/{switch-widget-89caa914.js → switch-widget-a334b82a.js} +20 -20
- package/{tab-pane-widget-2252bc4b.js → tab-pane-widget-a482c358.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-c62e9e82.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-49089f7b.js} +8 -8
- package/table-col-widget-cc3e5241.js +28 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-1418214e.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-58f69793.js} +8 -8
- package/{table-widget-4f73ad57.js → table-widget-e211d7ec.js} +68 -68
- package/{tabs-widget-eff74c43.js → tabs-widget-ee5d48c0.js} +8 -8
- package/{tag-widget-0a71ca03.js → tag-widget-39f90035.js} +21 -21
- package/{target-code-1aba790b.js → target-code-5126d170.js} +9 -9
- package/{target-datasource-c6d48b70.js → target-datasource-10557086.js} +67 -66
- package/{target-link-a0302d99.js → target-link-88a75d03.js} +53 -52
- package/{target-saveForm-f41cfa3c.js → target-saveForm-7bd68428.js} +42 -41
- package/{target-widget-5dc412fa.js → target-widget-c5050a76.js} +2 -2
- package/{target-window-017f28de.js → target-window-7b08ee32.js} +10 -10
- package/{text-widget-11af8e0d.js → text-widget-29734605.js} +21 -21
- package/{textarea-widget-dbfe9e2f.js → textarea-widget-bad0d83f.js} +20 -20
- package/{time-picker-range-widget-b1b1bfc4.js → time-picker-range-widget-52a386c1.js} +20 -20
- package/{time-picker-widget-29ca9962.js → time-picker-widget-87cfcd84.js} +20 -20
- package/{time-select-widget-ef994eeb.js → time-select-widget-3f4e00e3.js} +20 -20
- package/{timeline-widget-039f1eb0.js → timeline-widget-019f92c3.js} +19 -19
- package/tmpl-widget-b170a998.js +104 -0
- package/{tooltip-widget-d340f763.js → tooltip-widget-da084813.js} +19 -19
- package/{tour-widget-450e6ed6.js → tour-widget-9fc1003b.js} +25 -25
- package/{transfer-widget-617b8866.js → transfer-widget-1ec99e79.js} +21 -21
- package/{tree-select-widget-4b196114.js → tree-select-widget-a61fdff3.js} +20 -20
- package/{tree-widget-005a5e67.js → tree-widget-849a4a27.js} +18 -18
- package/{uuid-14e756b8.js → uuid-46529de4.js} +1 -1
- package/{value-editor-4d68a513.js → value-editor-d31cf4da.js} +16 -16
- package/{verifycode-widget-43a7ac5d.js → verifycode-widget-19f21f41.js} +33 -33
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-50e92e0b.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2c107711.js} +17 -18
- package/{wrapper-widget-86472df1.js → wrapper-widget-f6523317.js} +9 -8
- package/common-editor-62687495.js +0 -28
- package/css-editor-6ef171e7.js +0 -1350
- package/default-slot-widget-a4ec5629.js +0 -31
- package/drag-wrapper-85875395.js +0 -297
- package/feedback-widget-6550dcbf.js +0 -32
- package/iframe-widget-c8fe6ac3.js +0 -127
- package/obj-502bbea0.js +0 -357
- package/qrcode-widget-a8ea4356.js +0 -75
- package/slot-7d65c8ff.js +0 -312
- package/table-col-widget-9ebb322b.js +0 -28
- package/tmpl-widget-a10219af.js +0 -103
|
@@ -0,0 +1,1355 @@
|
|
|
1
|
+
import { defineComponent as A, ref as S, computed as M, watch as U, resolveComponent as F, openBlock as L, createBlock as X, withCtx as c, renderSlot as ge, createVNode as d, mergeProps as ie, createElementBlock as q, Fragment as ae, renderList as pe, unref as s, createCommentVNode as ce, createTextVNode as me, toDisplayString as z, reactive as le, createElementVNode as a, withKeys as be, normalizeClass as I, onMounted as fe, normalizeProps as ve, guardReactiveProps as ye } from "vue";
|
|
2
|
+
import { d as B, i as Z, h as H, f as Ve } from "./obj-571dd058.js";
|
|
3
|
+
import { a as m } from "./enum-type-dfa86fd6.js";
|
|
4
|
+
import { u as he } from "./icon-aff7bde2.js";
|
|
5
|
+
import { w as _e } from "./expression-b8f60625.js";
|
|
6
|
+
import { S as W, b6 as Re, bW as ue, bX as $e, bY as Te, bZ as ke, b_ as we, b$ as Ue, c0 as xe, c1 as Be, c2 as Le, bV as Se, ay as Ce } from "./enum-type-fe807357.js";
|
|
7
|
+
import { C as x } from "./baseImp-f2767c96.js";
|
|
8
|
+
import { I as Ee } from "./property-base-2e08f1cd.js";
|
|
9
|
+
import { u as Ie } from "./share-editor-7c525c97.js";
|
|
10
|
+
import { E as Fe, O as De } from "./editor-wrapper-ac06b695.js";
|
|
11
|
+
import { S as V } from "./index-d9f3ea25.js";
|
|
12
|
+
import { _ as D } from "./_share_size.vue_vue_type_script_setup_true_lang-22bdb232.js";
|
|
13
|
+
import { s as J } from "./_share_wrapper-9d61ae87.js";
|
|
14
|
+
import { _ as j } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
+
import { c as de, a as ne, u as We } from "./cssIndex-87c6de29.js";
|
|
16
|
+
import { h as Me } from "./_share_image-9ce786a4.js";
|
|
17
|
+
import { u as Ae } from "./share-event-f999e66a.js";
|
|
18
|
+
import "./source-map-b04aec4a.js";
|
|
19
|
+
import "./uuid-46529de4.js";
|
|
20
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
21
|
+
import "./esprima-e8d15055.js";
|
|
22
|
+
import "axios";
|
|
23
|
+
import "./dialog-8367296a.js";
|
|
24
|
+
import "element-plus";
|
|
25
|
+
import "./index-1584a7a5.js";
|
|
26
|
+
import "./optionItem-3c87120a.js";
|
|
27
|
+
import "./index-31195212.js";
|
|
28
|
+
import "./index-126a08b9.js";
|
|
29
|
+
import "./index-6bcfdc22.js";
|
|
30
|
+
import "./emitter-1acbfda9.js";
|
|
31
|
+
const Ke = /* @__PURE__ */ A({
|
|
32
|
+
__name: "_share_color",
|
|
33
|
+
props: {
|
|
34
|
+
modelValue: {},
|
|
35
|
+
label: {},
|
|
36
|
+
color: {},
|
|
37
|
+
options: {}
|
|
38
|
+
},
|
|
39
|
+
emits: ["update:modelValue"],
|
|
40
|
+
setup($, { emit: T }) {
|
|
41
|
+
const _ = $, i = S([
|
|
42
|
+
"#ff4500",
|
|
43
|
+
"#ff8c00",
|
|
44
|
+
"#ffd700",
|
|
45
|
+
"#90ee90",
|
|
46
|
+
"#00ced1",
|
|
47
|
+
"#1e90ff",
|
|
48
|
+
"#c71585",
|
|
49
|
+
"rgba(255, 69, 0, 0.68)",
|
|
50
|
+
"rgb(255, 120, 0)",
|
|
51
|
+
"hsv(51, 100, 98)",
|
|
52
|
+
"hsva(120, 40, 94, 0.5)",
|
|
53
|
+
"hsl(181, 100%, 37%)",
|
|
54
|
+
"hsla(209, 100%, 56%, 0.73)",
|
|
55
|
+
"#c7158577"
|
|
56
|
+
]), h = S(_.modelValue), R = M(() => h.value || ""), v = T, e = () => {
|
|
57
|
+
v("update:modelValue", R.value);
|
|
58
|
+
}, u = S(), n = () => {
|
|
59
|
+
setTimeout(() => {
|
|
60
|
+
var f;
|
|
61
|
+
(f = u.value) == null || f.show();
|
|
62
|
+
}, 100);
|
|
63
|
+
};
|
|
64
|
+
return U(() => h.value, () => {
|
|
65
|
+
e();
|
|
66
|
+
}), U(() => _.modelValue, (f) => {
|
|
67
|
+
h.value = f;
|
|
68
|
+
}), (f, p) => {
|
|
69
|
+
const b = F("el-color-picker"), w = F("el-input");
|
|
70
|
+
return L(), X(J, {
|
|
71
|
+
label: $.label,
|
|
72
|
+
color: $.color
|
|
73
|
+
}, {
|
|
74
|
+
label: c(() => [
|
|
75
|
+
ge(f.$slots, "label", {}, void 0, !0)
|
|
76
|
+
]),
|
|
77
|
+
input: c(() => [
|
|
78
|
+
d(w, {
|
|
79
|
+
modelValue: h.value,
|
|
80
|
+
"onUpdate:modelValue": p[1] || (p[1] = (k) => h.value = k),
|
|
81
|
+
onClick: n
|
|
82
|
+
}, {
|
|
83
|
+
prepend: c(() => [
|
|
84
|
+
d(b, ie({
|
|
85
|
+
ref_key: "colorRef",
|
|
86
|
+
ref: u,
|
|
87
|
+
modelValue: h.value,
|
|
88
|
+
"onUpdate:modelValue": p[0] || (p[0] = (k) => h.value = k)
|
|
89
|
+
}, $.options, { predefine: i.value }), null, 16, ["modelValue", "predefine"])
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["modelValue"])
|
|
93
|
+
]),
|
|
94
|
+
_: 3
|
|
95
|
+
}, 8, ["label", "color"]);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
const re = /* @__PURE__ */ j(Ke, [["__scopeId", "data-v-6f08b1ee"]]), oe = /* @__PURE__ */ A({
|
|
100
|
+
__name: "_share_select",
|
|
101
|
+
props: {
|
|
102
|
+
modelValue: {},
|
|
103
|
+
iconTitle: {},
|
|
104
|
+
options: {}
|
|
105
|
+
},
|
|
106
|
+
emits: ["update:modelValue", "change"],
|
|
107
|
+
setup($, { emit: T }) {
|
|
108
|
+
const _ = $, i = S(_.modelValue), h = M(() => i.value || ""), R = T, v = () => {
|
|
109
|
+
R("update:modelValue", h.value);
|
|
110
|
+
}, e = (u) => {
|
|
111
|
+
R("change", u);
|
|
112
|
+
};
|
|
113
|
+
return U(() => i.value, () => {
|
|
114
|
+
v();
|
|
115
|
+
}), U(() => _.modelValue, (u) => {
|
|
116
|
+
i.value = u;
|
|
117
|
+
}), (u, n) => {
|
|
118
|
+
const f = F("el-option"), p = F("el-select");
|
|
119
|
+
return L(), X(p, {
|
|
120
|
+
modelValue: i.value,
|
|
121
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => i.value = b),
|
|
122
|
+
"suffix-icon": "",
|
|
123
|
+
placeholder: " ",
|
|
124
|
+
teleported: !1,
|
|
125
|
+
clearable: !0,
|
|
126
|
+
onChange: e
|
|
127
|
+
}, {
|
|
128
|
+
default: c(() => [
|
|
129
|
+
(L(!0), q(ae, null, pe($.options, (b) => (L(), X(f, {
|
|
130
|
+
key: b.value,
|
|
131
|
+
label: b.label,
|
|
132
|
+
value: b.value
|
|
133
|
+
}, {
|
|
134
|
+
default: c(() => [
|
|
135
|
+
$.iconTitle ? (L(), X(V, {
|
|
136
|
+
key: 0,
|
|
137
|
+
name: `@css-${$.iconTitle ? $.iconTitle + "-" : ""}${s(de)(b.value, "kebab")}`
|
|
138
|
+
}, null, 8, ["name"])) : ce("", !0),
|
|
139
|
+
me(z(b == null ? void 0 : b.label), 1)
|
|
140
|
+
]),
|
|
141
|
+
_: 2
|
|
142
|
+
}, 1032, ["label", "value"]))), 128))
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["modelValue"]);
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
}), Ne = /* @__PURE__ */ A({
|
|
149
|
+
__name: "_share_radio",
|
|
150
|
+
props: {
|
|
151
|
+
modelValue: {},
|
|
152
|
+
iconTitle: {},
|
|
153
|
+
options: {}
|
|
154
|
+
},
|
|
155
|
+
emits: ["update:modelValue"],
|
|
156
|
+
setup($, { emit: T }) {
|
|
157
|
+
const _ = $, i = S(_.modelValue), h = M(() => i.value || ""), R = T, v = () => {
|
|
158
|
+
R("update:modelValue", h.value || "");
|
|
159
|
+
};
|
|
160
|
+
return U(() => i.value, () => {
|
|
161
|
+
v();
|
|
162
|
+
}), U(() => _.modelValue, (e) => {
|
|
163
|
+
i.value = e;
|
|
164
|
+
}), (e, u) => {
|
|
165
|
+
const n = F("el-tooltip"), f = F("el-radio-button"), p = F("el-radio-group");
|
|
166
|
+
return L(), X(p, {
|
|
167
|
+
modelValue: i.value,
|
|
168
|
+
"onUpdate:modelValue": u[0] || (u[0] = (b) => i.value = b),
|
|
169
|
+
class: "flex-wrapper"
|
|
170
|
+
}, {
|
|
171
|
+
default: c(() => [
|
|
172
|
+
(L(!0), q(ae, null, pe($.options, (b) => (L(), X(f, {
|
|
173
|
+
key: b.value,
|
|
174
|
+
label: b.label,
|
|
175
|
+
value: b.value,
|
|
176
|
+
class: "flex-item"
|
|
177
|
+
}, {
|
|
178
|
+
default: c(() => [
|
|
179
|
+
d(n, {
|
|
180
|
+
effect: "dark",
|
|
181
|
+
content: b.value,
|
|
182
|
+
placement: "top"
|
|
183
|
+
}, {
|
|
184
|
+
default: c(() => [
|
|
185
|
+
d(V, {
|
|
186
|
+
name: `@css-${$.iconTitle ? $.iconTitle + "-" : ""}${s(de)(b.value, "kebab")}`
|
|
187
|
+
}, null, 8, ["name"])
|
|
188
|
+
]),
|
|
189
|
+
_: 2
|
|
190
|
+
}, 1032, ["content"])
|
|
191
|
+
]),
|
|
192
|
+
_: 2
|
|
193
|
+
}, 1032, ["label", "value"]))), 128))
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
}, 8, ["modelValue"]);
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
const se = /* @__PURE__ */ j(Ne, [["__scopeId", "data-v-12dcba4d"]]), ze = { class: "flex flexJustify" }, Je = { class: "flex flexJustify" }, Xe = /* @__PURE__ */ A({
|
|
201
|
+
__name: "_boxShadow",
|
|
202
|
+
props: {
|
|
203
|
+
modelValue: {}
|
|
204
|
+
},
|
|
205
|
+
emits: ["update:modelValue"],
|
|
206
|
+
setup($, { emit: T }) {
|
|
207
|
+
const { switchColor: _ } = ne(), i = le({}), h = $, R = T, v = (n) => {
|
|
208
|
+
R("update:modelValue", e(n));
|
|
209
|
+
}, e = (n) => `${n == null ? void 0 : n.color} ${n == null ? void 0 : n.offsetX} ${n == null ? void 0 : n.offsetY} ${n == null ? void 0 : n.blurRadius} ${n == null ? void 0 : n.spreadRadius}`, u = (n) => {
|
|
210
|
+
const f = n == null ? void 0 : n.split(" "), [p, b, w, k, K] = f || [], C = (N) => Z(N) || N === "undefined" ? "" : N;
|
|
211
|
+
return {
|
|
212
|
+
color: C(p),
|
|
213
|
+
offsetX: C(b),
|
|
214
|
+
offsetY: C(w),
|
|
215
|
+
blurRadius: C(k),
|
|
216
|
+
spreadRadius: C(K)
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
return U(i, (n) => {
|
|
220
|
+
v(n);
|
|
221
|
+
}), U(() => h.modelValue, (n) => {
|
|
222
|
+
B(i, u(n));
|
|
223
|
+
}), (n, f) => (L(), q(ae, null, [
|
|
224
|
+
d(re, {
|
|
225
|
+
modelValue: i.color,
|
|
226
|
+
"onUpdate:modelValue": f[0] || (f[0] = (p) => i.color = p),
|
|
227
|
+
label: s(m).i18nt("designer.style.boxShadowColor")
|
|
228
|
+
}, {
|
|
229
|
+
label: c(() => [
|
|
230
|
+
d(V, {
|
|
231
|
+
name: "@css-background-color",
|
|
232
|
+
color: s(_)(i == null ? void 0 : i.color)
|
|
233
|
+
}, null, 8, ["color"])
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
}, 8, ["modelValue", "label"]),
|
|
237
|
+
a("div", ze, [
|
|
238
|
+
d(D, {
|
|
239
|
+
modelValue: i.offsetX,
|
|
240
|
+
"onUpdate:modelValue": f[1] || (f[1] = (p) => i.offsetX = p),
|
|
241
|
+
options: s(x)(W),
|
|
242
|
+
label: s(m).i18nt("designer.style.boxShadowHShadow"),
|
|
243
|
+
style: { width: "48%" }
|
|
244
|
+
}, {
|
|
245
|
+
label: c(() => [
|
|
246
|
+
d(V, {
|
|
247
|
+
name: "@css-box-shadow-h-shadow",
|
|
248
|
+
color: s(_)(i == null ? void 0 : i.offsetX)
|
|
249
|
+
}, null, 8, ["color"])
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
}, 8, ["modelValue", "options", "label"]),
|
|
253
|
+
d(D, {
|
|
254
|
+
modelValue: i.offsetY,
|
|
255
|
+
"onUpdate:modelValue": f[2] || (f[2] = (p) => i.offsetY = p),
|
|
256
|
+
options: s(x)(W),
|
|
257
|
+
label: s(m).i18nt("designer.style.boxShadowVShadow"),
|
|
258
|
+
style: { width: "48%" }
|
|
259
|
+
}, {
|
|
260
|
+
label: c(() => [
|
|
261
|
+
d(V, {
|
|
262
|
+
name: "@css-box-shadow-v-shadow",
|
|
263
|
+
color: s(_)(i == null ? void 0 : i.offsetY)
|
|
264
|
+
}, null, 8, ["color"])
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
}, 8, ["modelValue", "options", "label"])
|
|
268
|
+
]),
|
|
269
|
+
a("div", Je, [
|
|
270
|
+
d(D, {
|
|
271
|
+
modelValue: i.blurRadius,
|
|
272
|
+
"onUpdate:modelValue": f[3] || (f[3] = (p) => i.blurRadius = p),
|
|
273
|
+
options: s(x)(W),
|
|
274
|
+
label: s(m).i18nt("designer.style.boxShadowBlur"),
|
|
275
|
+
style: { width: "48%" }
|
|
276
|
+
}, {
|
|
277
|
+
label: c(() => [
|
|
278
|
+
d(V, {
|
|
279
|
+
name: "@css-box-shadow-blur",
|
|
280
|
+
color: s(_)(i.blurRadius)
|
|
281
|
+
}, null, 8, ["color"])
|
|
282
|
+
]),
|
|
283
|
+
_: 1
|
|
284
|
+
}, 8, ["modelValue", "options", "label"]),
|
|
285
|
+
d(D, {
|
|
286
|
+
modelValue: i.spreadRadius,
|
|
287
|
+
"onUpdate:modelValue": f[4] || (f[4] = (p) => i.spreadRadius = p),
|
|
288
|
+
options: s(x)(W),
|
|
289
|
+
label: s(m).i18nt("designer.style.boxShadowSpread"),
|
|
290
|
+
style: { width: "48%" }
|
|
291
|
+
}, {
|
|
292
|
+
label: c(() => [
|
|
293
|
+
d(V, {
|
|
294
|
+
name: "@css-box-shadow-spread",
|
|
295
|
+
color: s(_)(i.spreadRadius)
|
|
296
|
+
}, null, 8, ["color"])
|
|
297
|
+
]),
|
|
298
|
+
_: 1
|
|
299
|
+
}, 8, ["modelValue", "options", "label"])
|
|
300
|
+
])
|
|
301
|
+
], 64));
|
|
302
|
+
}
|
|
303
|
+
}), Ye = /* @__PURE__ */ A({
|
|
304
|
+
__name: "_share_input_switch",
|
|
305
|
+
props: {
|
|
306
|
+
modelValue: {},
|
|
307
|
+
title: {}
|
|
308
|
+
},
|
|
309
|
+
emits: ["update:modelValue"],
|
|
310
|
+
setup($, { emit: T }) {
|
|
311
|
+
const _ = $, { switchColorClass: i } = ne(), h = S(), R = S(_.modelValue), v = S(), e = T, u = (p) => {
|
|
312
|
+
e("update:modelValue", p);
|
|
313
|
+
}, n = () => {
|
|
314
|
+
var p;
|
|
315
|
+
h.value = !0, (p = v.value) == null || p.focus();
|
|
316
|
+
}, f = () => {
|
|
317
|
+
var p;
|
|
318
|
+
h.value = !1, (p = v.value) == null || p.blur();
|
|
319
|
+
};
|
|
320
|
+
return U(() => R.value, (p) => {
|
|
321
|
+
u(p);
|
|
322
|
+
}), U(() => _.modelValue, (p) => {
|
|
323
|
+
R.value = p;
|
|
324
|
+
}), (p, b) => {
|
|
325
|
+
const w = F("el-input");
|
|
326
|
+
return L(), X(w, {
|
|
327
|
+
ref_key: "inputRef",
|
|
328
|
+
ref: v,
|
|
329
|
+
modelValue: R.value,
|
|
330
|
+
"onUpdate:modelValue": b[0] || (b[0] = (k) => R.value = k),
|
|
331
|
+
editable: h.value,
|
|
332
|
+
onKeyup: be(f, ["enter"]),
|
|
333
|
+
onBlur: f,
|
|
334
|
+
placeholder: `${R.value || "0"}`,
|
|
335
|
+
class: I([h.value ? "" : "readonly", s(i)(R.value)]),
|
|
336
|
+
onClick: n
|
|
337
|
+
}, null, 8, ["modelValue", "editable", "placeholder", "class"]);
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
const Y = /* @__PURE__ */ j(Ye, [["__scopeId", "data-v-c44ac24d"]]), He = {
|
|
342
|
+
style: { position: "relative" },
|
|
343
|
+
class: "hl-margin-padding"
|
|
344
|
+
}, Oe = { class: "hl-layout-box hl-margin-box" }, Pe = { class: "hl-inline-input hl-input-h hl-input-top" }, Ge = { class: "hl-inline-input hl-input-v hl-input-right" }, Ze = { class: "hl-inline-input hl-input-h hl-input-bottom" }, qe = { class: "hl-inline-input hl-input-v hl-input-left" }, Qe = { class: "hl-layout-box hl-padding-box" }, je = { class: "hl-inline-input hl-input-h hl-input-top" }, et = { class: "hl-inline-input hl-input-v hl-input-right" }, tt = { class: "hl-inline-input hl-input-h hl-input-bottom" }, ot = { class: "hl-inline-input hl-input-v hl-input-left" }, lt = /* @__PURE__ */ A({
|
|
345
|
+
__name: "_margin_padding",
|
|
346
|
+
props: {
|
|
347
|
+
margin: {},
|
|
348
|
+
padding: {}
|
|
349
|
+
},
|
|
350
|
+
emits: ["update:margin", "update:padding"],
|
|
351
|
+
setup($, { emit: T }) {
|
|
352
|
+
const { splitNumericUnit: _ } = We(), i = le({ margin: {}, padding: {} }), h = $, R = T, v = (e, u, n) => {
|
|
353
|
+
let f = e[u];
|
|
354
|
+
Z(f) && (f = {});
|
|
355
|
+
let p = f[n];
|
|
356
|
+
Z(p) && (p = "0px");
|
|
357
|
+
const b = _(p);
|
|
358
|
+
if (!b.valid)
|
|
359
|
+
return;
|
|
360
|
+
const w = ((b == null ? void 0 : b.numeric) || 0) + 1, k = b == null ? void 0 : b.unit;
|
|
361
|
+
B(e, { [u]: { [n]: `${w}${k}` } });
|
|
362
|
+
};
|
|
363
|
+
return U(() => i.margin, (e) => {
|
|
364
|
+
R("update:margin", e);
|
|
365
|
+
}, { deep: !0 }), U(() => i.padding, (e) => {
|
|
366
|
+
R("update:padding", e);
|
|
367
|
+
}, { deep: !0 }), U(() => h.margin, (e) => {
|
|
368
|
+
B(i, { margin: e });
|
|
369
|
+
}), U(() => h.padding, (e) => {
|
|
370
|
+
B(i, { padding: e });
|
|
371
|
+
}), (e, u) => (L(), q("div", He, [
|
|
372
|
+
a("div", Oe, [
|
|
373
|
+
a("div", {
|
|
374
|
+
class: "hl-handle hl-handle-top hl-handle-top-border",
|
|
375
|
+
onClick: u[0] || (u[0] = (n) => v(i, "margin", "top"))
|
|
376
|
+
}, [
|
|
377
|
+
d(V, { name: "@css-arrow-top" })
|
|
378
|
+
]),
|
|
379
|
+
a("div", Pe, [
|
|
380
|
+
d(Y, {
|
|
381
|
+
modelValue: i.margin.top,
|
|
382
|
+
"onUpdate:modelValue": u[1] || (u[1] = (n) => i.margin.top = n),
|
|
383
|
+
title: s(m).i18nt("designer.style.marginTop")
|
|
384
|
+
}, null, 8, ["modelValue", "title"])
|
|
385
|
+
]),
|
|
386
|
+
a("div", {
|
|
387
|
+
class: "hl-handle hl-handle-right hl-handle-right-border",
|
|
388
|
+
onClick: u[2] || (u[2] = (n) => v(i, "margin", "right"))
|
|
389
|
+
}, [
|
|
390
|
+
d(V, { name: "@css-arrow-right" })
|
|
391
|
+
]),
|
|
392
|
+
a("div", Ge, [
|
|
393
|
+
d(Y, {
|
|
394
|
+
modelValue: i.margin.right,
|
|
395
|
+
"onUpdate:modelValue": u[3] || (u[3] = (n) => i.margin.right = n),
|
|
396
|
+
title: s(m).i18nt("designer.style.marginRight")
|
|
397
|
+
}, null, 8, ["modelValue", "title"])
|
|
398
|
+
]),
|
|
399
|
+
a("div", {
|
|
400
|
+
class: "hl-handle hl-handle-bottom hl-handle-bottom-border",
|
|
401
|
+
onClick: u[4] || (u[4] = (n) => v(i, "margin", "bottom"))
|
|
402
|
+
}, [
|
|
403
|
+
u[16] || (u[16] = a("span", { class: "hl-border-desp" }, "MARGIN", -1)),
|
|
404
|
+
d(V, { name: "@css-arrow-bottom" })
|
|
405
|
+
]),
|
|
406
|
+
a("div", Ze, [
|
|
407
|
+
d(Y, {
|
|
408
|
+
modelValue: i.margin.bottom,
|
|
409
|
+
"onUpdate:modelValue": u[5] || (u[5] = (n) => i.margin.bottom = n),
|
|
410
|
+
title: s(m).i18nt("designer.style.marginBottom")
|
|
411
|
+
}, null, 8, ["modelValue", "title"])
|
|
412
|
+
]),
|
|
413
|
+
a("div", {
|
|
414
|
+
class: "hl-handle hl-handle-left hl-handle-left-border",
|
|
415
|
+
onClick: u[6] || (u[6] = (n) => v(i, "margin", "left"))
|
|
416
|
+
}, [
|
|
417
|
+
d(V, { name: "@css-arrow-left" })
|
|
418
|
+
]),
|
|
419
|
+
a("div", qe, [
|
|
420
|
+
d(Y, {
|
|
421
|
+
modelValue: i.margin.left,
|
|
422
|
+
"onUpdate:modelValue": u[7] || (u[7] = (n) => i.margin.left = n),
|
|
423
|
+
title: s(m).i18nt("designer.style.marginLeft")
|
|
424
|
+
}, null, 8, ["modelValue", "title"])
|
|
425
|
+
])
|
|
426
|
+
]),
|
|
427
|
+
a("div", Qe, [
|
|
428
|
+
a("div", {
|
|
429
|
+
class: "hl-handle hl-handle-top hl-handle-top-border",
|
|
430
|
+
onClick: u[8] || (u[8] = (n) => v(i, "padding", "top"))
|
|
431
|
+
}, [
|
|
432
|
+
d(V, { name: "@css-arrow-top" })
|
|
433
|
+
]),
|
|
434
|
+
a("div", je, [
|
|
435
|
+
d(Y, {
|
|
436
|
+
modelValue: i.padding.top,
|
|
437
|
+
"onUpdate:modelValue": u[9] || (u[9] = (n) => i.padding.top = n),
|
|
438
|
+
title: s(m).i18nt("designer.style.paddingTop")
|
|
439
|
+
}, null, 8, ["modelValue", "title"])
|
|
440
|
+
]),
|
|
441
|
+
a("div", {
|
|
442
|
+
class: "hl-handle hl-handle-right hl-handle-right-border",
|
|
443
|
+
onClick: u[10] || (u[10] = (n) => v(i, "padding", "right"))
|
|
444
|
+
}, [
|
|
445
|
+
d(V, { name: "@css-arrow-right" })
|
|
446
|
+
]),
|
|
447
|
+
a("div", et, [
|
|
448
|
+
d(Y, {
|
|
449
|
+
modelValue: i.padding.right,
|
|
450
|
+
"onUpdate:modelValue": u[11] || (u[11] = (n) => i.padding.right = n),
|
|
451
|
+
title: s(m).i18nt("designer.style.paddingRight")
|
|
452
|
+
}, null, 8, ["modelValue", "title"])
|
|
453
|
+
]),
|
|
454
|
+
a("div", {
|
|
455
|
+
class: "hl-handle hl-handle-bottom hl-handle-bottom-border",
|
|
456
|
+
onClick: u[12] || (u[12] = (n) => v(i, "padding", "bottom"))
|
|
457
|
+
}, [
|
|
458
|
+
u[17] || (u[17] = a("span", { class: "hl-border-desp" }, "PADDING", -1)),
|
|
459
|
+
d(V, { name: "@css-arrow-bottom" })
|
|
460
|
+
]),
|
|
461
|
+
a("div", tt, [
|
|
462
|
+
d(Y, {
|
|
463
|
+
modelValue: i.padding.bottom,
|
|
464
|
+
"onUpdate:modelValue": u[13] || (u[13] = (n) => i.padding.bottom = n),
|
|
465
|
+
title: s(m).i18nt("designer.style.paddingBottom")
|
|
466
|
+
}, null, 8, ["modelValue", "title"])
|
|
467
|
+
]),
|
|
468
|
+
a("div", {
|
|
469
|
+
class: "hl-handle hl-handle-left hl-handle-left-border",
|
|
470
|
+
onClick: u[14] || (u[14] = (n) => v(i, "padding", "left"))
|
|
471
|
+
}, [
|
|
472
|
+
d(V, { name: "@css-arrow-left" })
|
|
473
|
+
]),
|
|
474
|
+
a("div", ot, [
|
|
475
|
+
d(Y, {
|
|
476
|
+
modelValue: i.padding.left,
|
|
477
|
+
"onUpdate:modelValue": u[15] || (u[15] = (n) => i.padding.left = n),
|
|
478
|
+
title: s(m).i18nt("designer.style.paddingLeft")
|
|
479
|
+
}, null, 8, ["modelValue", "title"])
|
|
480
|
+
])
|
|
481
|
+
])
|
|
482
|
+
]));
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
const nt = /* @__PURE__ */ j(lt, [["__scopeId", "data-v-bc109a82"]]), st = { class: "vs-style-border-style" }, it = { class: "vs-style-border-setter-left-pane" }, dt = { class: "vs-style-border-setter-row" }, rt = { class: "vs-style-border-setter-row" }, at = { class: "vs-style-border-setter-row" }, ut = { class: "vs-style-border-setter-right-pane" }, pt = /* @__PURE__ */ A({
|
|
486
|
+
__name: "_border",
|
|
487
|
+
props: {
|
|
488
|
+
borderWidth: {},
|
|
489
|
+
borderStyle: {},
|
|
490
|
+
borderColor: {},
|
|
491
|
+
borderLeftWidth: {},
|
|
492
|
+
borderLeftStyle: {},
|
|
493
|
+
borderLeftColor: {},
|
|
494
|
+
borderTopWidth: {},
|
|
495
|
+
borderTopStyle: {},
|
|
496
|
+
borderTopColor: {},
|
|
497
|
+
borderBottomWidth: {},
|
|
498
|
+
borderBottomStyle: {},
|
|
499
|
+
borderBottomColor: {},
|
|
500
|
+
borderRightWidth: {},
|
|
501
|
+
borderRightStyle: {},
|
|
502
|
+
borderRightColor: {}
|
|
503
|
+
},
|
|
504
|
+
emits: [
|
|
505
|
+
"update:border"
|
|
506
|
+
],
|
|
507
|
+
setup($, { emit: T }) {
|
|
508
|
+
const { switchColorClass: _ } = ne(), i = [
|
|
509
|
+
"borderBottom",
|
|
510
|
+
"borderLeft",
|
|
511
|
+
"borderRight",
|
|
512
|
+
"borderTop"
|
|
513
|
+
/* borderTop */
|
|
514
|
+
], h = [
|
|
515
|
+
"color",
|
|
516
|
+
"style",
|
|
517
|
+
"width"
|
|
518
|
+
/* width */
|
|
519
|
+
], R = T, v = $, e = S(
|
|
520
|
+
"border"
|
|
521
|
+
/* border */
|
|
522
|
+
), u = (o) => {
|
|
523
|
+
e.value = o;
|
|
524
|
+
}, n = le({}), f = S(!1), p = (o, t) => de(`${de(o, "kebab")}-${t}`, "camel"), b = (o) => {
|
|
525
|
+
const t = p(e.value, o);
|
|
526
|
+
var r = p("border", o);
|
|
527
|
+
return (n == null ? void 0 : n[t]) || (n == null ? void 0 : n[r]);
|
|
528
|
+
}, w = (o, t) => {
|
|
529
|
+
const r = p(e.value, t);
|
|
530
|
+
ee(r, t, o);
|
|
531
|
+
}, k = M({
|
|
532
|
+
get: () => b(
|
|
533
|
+
"width"
|
|
534
|
+
/* width */
|
|
535
|
+
),
|
|
536
|
+
set: (o) => {
|
|
537
|
+
w(
|
|
538
|
+
o,
|
|
539
|
+
"width"
|
|
540
|
+
/* width */
|
|
541
|
+
);
|
|
542
|
+
}
|
|
543
|
+
}), K = M({
|
|
544
|
+
get: () => b(
|
|
545
|
+
"style"
|
|
546
|
+
/* style */
|
|
547
|
+
),
|
|
548
|
+
set: (o) => {
|
|
549
|
+
w(
|
|
550
|
+
o,
|
|
551
|
+
"style"
|
|
552
|
+
/* style */
|
|
553
|
+
);
|
|
554
|
+
}
|
|
555
|
+
}), C = M({
|
|
556
|
+
get: () => b(
|
|
557
|
+
"color"
|
|
558
|
+
/* color */
|
|
559
|
+
),
|
|
560
|
+
set: (o) => {
|
|
561
|
+
w(
|
|
562
|
+
o,
|
|
563
|
+
"color"
|
|
564
|
+
/* color */
|
|
565
|
+
);
|
|
566
|
+
}
|
|
567
|
+
}), N = (o) => {
|
|
568
|
+
const t = H(o);
|
|
569
|
+
return h.forEach((r) => {
|
|
570
|
+
const l = p("border", r);
|
|
571
|
+
t == null || delete t[l];
|
|
572
|
+
}), t;
|
|
573
|
+
}, O = (o, t) => {
|
|
574
|
+
let r = !0, l = null;
|
|
575
|
+
return i.forEach((y) => {
|
|
576
|
+
const g = p(y, t);
|
|
577
|
+
var E = o == null ? void 0 : o[g];
|
|
578
|
+
r = r && (E == l || l === null), l = E;
|
|
579
|
+
}), r;
|
|
580
|
+
}, P = (o) => {
|
|
581
|
+
let t = H(o);
|
|
582
|
+
return h.forEach((r) => {
|
|
583
|
+
if (!O(o, r))
|
|
584
|
+
return;
|
|
585
|
+
const l = o == null ? void 0 : o[p("borderLeft", r)], y = p("border", r), g = o == null ? void 0 : o[y];
|
|
586
|
+
Ve(g) && B(t, { [y]: l });
|
|
587
|
+
}), t;
|
|
588
|
+
}, G = (o, t, r, l) => {
|
|
589
|
+
o === "border" && i.forEach((y) => {
|
|
590
|
+
const g = p(y, t), E = n[g];
|
|
591
|
+
(E == l || Z(E)) && B(n, { [g]: r });
|
|
592
|
+
});
|
|
593
|
+
}, ee = (o, t, r) => {
|
|
594
|
+
(n == null ? void 0 : n[o]) != r && (f.value = !0, G(e.value, t, r, n == null ? void 0 : n[o]), B(n, { [o]: r }), R("update:border", N(n)), setTimeout(() => {
|
|
595
|
+
f.value = !1;
|
|
596
|
+
}, 1e3));
|
|
597
|
+
}, te = (o) => {
|
|
598
|
+
B(n, H(P(o)));
|
|
599
|
+
};
|
|
600
|
+
return U(() => v, (o) => {
|
|
601
|
+
f.value || te(o);
|
|
602
|
+
}, { deep: !0, immediate: !0 }), (o, t) => {
|
|
603
|
+
const r = F("el-tooltip");
|
|
604
|
+
return L(), q("div", st, [
|
|
605
|
+
a("div", it, [
|
|
606
|
+
a("div", dt, [
|
|
607
|
+
a("div", {
|
|
608
|
+
class: I(["vs-style-border-col", {
|
|
609
|
+
"vs-style-border-selected": e.value === "borderLeft"
|
|
610
|
+
/* borderLeft */
|
|
611
|
+
}]),
|
|
612
|
+
onClick: t[0] || (t[0] = (l) => u(
|
|
613
|
+
"borderLeft"
|
|
614
|
+
/* borderLeft */
|
|
615
|
+
))
|
|
616
|
+
}, [
|
|
617
|
+
d(r, {
|
|
618
|
+
placement: "left",
|
|
619
|
+
content: s(m).i18nt("designer.style.borderLeft")
|
|
620
|
+
}, {
|
|
621
|
+
default: c(() => [...t[8] || (t[8] = [
|
|
622
|
+
a("span", null, "┣", -1)
|
|
623
|
+
])]),
|
|
624
|
+
_: 1
|
|
625
|
+
}, 8, ["content"])
|
|
626
|
+
], 2)
|
|
627
|
+
]),
|
|
628
|
+
a("div", rt, [
|
|
629
|
+
a("div", {
|
|
630
|
+
class: I(["vs-style-border-col", {
|
|
631
|
+
"vs-style-border-selected": e.value === "borderTop"
|
|
632
|
+
/* borderTop */
|
|
633
|
+
}]),
|
|
634
|
+
onClick: t[1] || (t[1] = (l) => u(
|
|
635
|
+
"borderTop"
|
|
636
|
+
/* borderTop */
|
|
637
|
+
))
|
|
638
|
+
}, [
|
|
639
|
+
d(r, {
|
|
640
|
+
placement: "top",
|
|
641
|
+
content: s(m).i18nt("designer.style.borderTop")
|
|
642
|
+
}, {
|
|
643
|
+
default: c(() => [...t[9] || (t[9] = [
|
|
644
|
+
a("span", null, "┳", -1)
|
|
645
|
+
])]),
|
|
646
|
+
_: 1
|
|
647
|
+
}, 8, ["content"])
|
|
648
|
+
], 2),
|
|
649
|
+
a("div", {
|
|
650
|
+
class: I(["vs-style-border-col", {
|
|
651
|
+
"vs-style-border-selected": e.value === "border"
|
|
652
|
+
/* border */
|
|
653
|
+
}]),
|
|
654
|
+
onClick: t[2] || (t[2] = (l) => u(
|
|
655
|
+
"border"
|
|
656
|
+
/* border */
|
|
657
|
+
))
|
|
658
|
+
}, [
|
|
659
|
+
d(r, {
|
|
660
|
+
content: s(m).i18nt("designer.style.border")
|
|
661
|
+
}, {
|
|
662
|
+
default: c(() => [...t[10] || (t[10] = [
|
|
663
|
+
a("span", null, "╋", -1)
|
|
664
|
+
])]),
|
|
665
|
+
_: 1
|
|
666
|
+
}, 8, ["content"])
|
|
667
|
+
], 2),
|
|
668
|
+
a("div", {
|
|
669
|
+
class: I(["vs-style-border-col", {
|
|
670
|
+
"vs-style-border-selected": e.value === "borderBottom"
|
|
671
|
+
/* borderBottom */
|
|
672
|
+
}]),
|
|
673
|
+
onClick: t[3] || (t[3] = (l) => u(
|
|
674
|
+
"borderBottom"
|
|
675
|
+
/* borderBottom */
|
|
676
|
+
))
|
|
677
|
+
}, [
|
|
678
|
+
d(r, {
|
|
679
|
+
placement: "bottom",
|
|
680
|
+
content: s(m).i18nt("designer.style.borderBottom")
|
|
681
|
+
}, {
|
|
682
|
+
default: c(() => [...t[11] || (t[11] = [
|
|
683
|
+
a("span", null, "┻", -1)
|
|
684
|
+
])]),
|
|
685
|
+
_: 1
|
|
686
|
+
}, 8, ["content"])
|
|
687
|
+
], 2)
|
|
688
|
+
]),
|
|
689
|
+
a("div", at, [
|
|
690
|
+
a("div", {
|
|
691
|
+
class: I(["vs-style-border-col", {
|
|
692
|
+
"vs-style-border-selected": e.value === "borderRight"
|
|
693
|
+
/* borderRight */
|
|
694
|
+
}]),
|
|
695
|
+
onClick: t[4] || (t[4] = (l) => u(
|
|
696
|
+
"borderRight"
|
|
697
|
+
/* borderRight */
|
|
698
|
+
))
|
|
699
|
+
}, [
|
|
700
|
+
d(r, {
|
|
701
|
+
placement: "right",
|
|
702
|
+
content: s(m).i18nt("designer.style.borderRight")
|
|
703
|
+
}, {
|
|
704
|
+
default: c(() => [...t[12] || (t[12] = [
|
|
705
|
+
a("span", null, "┫", -1)
|
|
706
|
+
])]),
|
|
707
|
+
_: 1
|
|
708
|
+
}, 8, ["content"])
|
|
709
|
+
], 2)
|
|
710
|
+
])
|
|
711
|
+
]),
|
|
712
|
+
a("div", ut, [
|
|
713
|
+
d(J, {
|
|
714
|
+
label: s(m).i18nt("designer.style.borderStyle"),
|
|
715
|
+
color: s(_)(K.value)
|
|
716
|
+
}, {
|
|
717
|
+
input: c(() => [
|
|
718
|
+
d(oe, {
|
|
719
|
+
options: Re,
|
|
720
|
+
modelValue: K.value,
|
|
721
|
+
"onUpdate:modelValue": t[5] || (t[5] = (l) => K.value = l)
|
|
722
|
+
}, null, 8, ["options", "modelValue"])
|
|
723
|
+
]),
|
|
724
|
+
_: 1
|
|
725
|
+
}, 8, ["label", "color"]),
|
|
726
|
+
d(D, {
|
|
727
|
+
modelValue: k.value,
|
|
728
|
+
"onUpdate:modelValue": t[6] || (t[6] = (l) => k.value = l),
|
|
729
|
+
options: s(x)(W),
|
|
730
|
+
"show-label": !0,
|
|
731
|
+
label: s(m).i18nt("designer.style.borderWidth"),
|
|
732
|
+
color: s(_)(k.value)
|
|
733
|
+
}, null, 8, ["modelValue", "options", "label", "color"]),
|
|
734
|
+
d(re, {
|
|
735
|
+
modelValue: C.value,
|
|
736
|
+
"onUpdate:modelValue": t[7] || (t[7] = (l) => C.value = l),
|
|
737
|
+
label: s(m).i18nt("designer.style.borderColor"),
|
|
738
|
+
color: s(_)(C.value)
|
|
739
|
+
}, null, 8, ["modelValue", "label", "color"])
|
|
740
|
+
])
|
|
741
|
+
]);
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
const mt = /* @__PURE__ */ j(pt, [["__scopeId", "data-v-11351887"]]), gt = { class: "vs-style-border-radius" }, ct = { class: "vs-style-border-setter-left-pane" }, bt = { class: "vs-style-border-setter-row" }, ft = { class: "vs-style-border-setter-row" }, vt = { class: "vs-style-border-setter-row" }, yt = { class: "vs-style-border-setter-right-pane" }, Vt = {
|
|
746
|
+
key: 1,
|
|
747
|
+
class: "flex flexJustify",
|
|
748
|
+
style: { margin: "5px 0px" }
|
|
749
|
+
}, ht = /* @__PURE__ */ A({
|
|
750
|
+
__name: "_border_radius",
|
|
751
|
+
props: {
|
|
752
|
+
borderRadius: {},
|
|
753
|
+
borderTopLeftRadius: {},
|
|
754
|
+
borderTopRightRadius: {},
|
|
755
|
+
borderBottomLeftRadius: {},
|
|
756
|
+
borderBottomRightRadius: {}
|
|
757
|
+
},
|
|
758
|
+
emits: [
|
|
759
|
+
"update:borderRadius"
|
|
760
|
+
],
|
|
761
|
+
setup($, { emit: T }) {
|
|
762
|
+
const { switchColorClass: _ } = ne();
|
|
763
|
+
let i = le({});
|
|
764
|
+
const h = $, R = T;
|
|
765
|
+
let v = S(!1);
|
|
766
|
+
const e = S(
|
|
767
|
+
"borderRadius"
|
|
768
|
+
/* borderRadius */
|
|
769
|
+
), u = [
|
|
770
|
+
"borderBottomLeftRadius",
|
|
771
|
+
"borderBottomRightRadius",
|
|
772
|
+
"borderTopLeftRadius",
|
|
773
|
+
"borderTopRightRadius"
|
|
774
|
+
/* borderTopRightRadius */
|
|
775
|
+
], n = M({
|
|
776
|
+
get: () => {
|
|
777
|
+
const o = e.value;
|
|
778
|
+
var t = "borderRadius";
|
|
779
|
+
return (i == null ? void 0 : i[o]) || (i == null ? void 0 : i[t]);
|
|
780
|
+
},
|
|
781
|
+
set: (o) => {
|
|
782
|
+
const t = e.value;
|
|
783
|
+
w(t, o);
|
|
784
|
+
}
|
|
785
|
+
}), f = (o) => {
|
|
786
|
+
let t = H(o);
|
|
787
|
+
return B(t, { ["borderRadius"]: P(o) }), t;
|
|
788
|
+
}, p = (o, t, r) => {
|
|
789
|
+
o === "borderRadius" && u.forEach((l) => {
|
|
790
|
+
const y = l, g = i[y];
|
|
791
|
+
(g == r || Z(g)) && B(i, { [y]: t });
|
|
792
|
+
});
|
|
793
|
+
}, b = (o) => {
|
|
794
|
+
const t = H(o);
|
|
795
|
+
return t == null || delete t.borderRadius, t;
|
|
796
|
+
}, w = (o, t) => {
|
|
797
|
+
(i == null ? void 0 : i[o]) != t && (v.value = !0, p(e.value, t, i == null ? void 0 : i[o]), B(i, { [o]: t }), R("update:borderRadius", b(i)), setTimeout(() => {
|
|
798
|
+
v.value = !1;
|
|
799
|
+
}, 1e3));
|
|
800
|
+
}, k = (o) => {
|
|
801
|
+
v.value = !1, e.value = o, B(i, { borderRadius: P(i) }), setTimeout(() => {
|
|
802
|
+
v.value = !0;
|
|
803
|
+
}, 1e3);
|
|
804
|
+
}, K = (o) => `${(o == null ? void 0 : o.borderTopLeftRadius) || "0px"} ${(o == null ? void 0 : o.borderTopRightRadius) || "0px"} ${(o == null ? void 0 : o.borderBottomRightRadius) || "0px"} ${(o == null ? void 0 : o.borderBottomLeftRadius) || "0px"}`, C = (o) => {
|
|
805
|
+
var t = {}, r = !0;
|
|
806
|
+
if (Z(o) || o === "")
|
|
807
|
+
return { obj: t, isSame: r };
|
|
808
|
+
var l = (o == null ? void 0 : o.split(" ")) || [];
|
|
809
|
+
if (!l || (l == null ? void 0 : l.length) <= 0)
|
|
810
|
+
return { obj: t, isSame: r };
|
|
811
|
+
let y, g, E, Q;
|
|
812
|
+
return (l == null ? void 0 : l.length) === 1 ? y = g = Q = E = l == null ? void 0 : l[0] : (l == null ? void 0 : l.length) == 2 ? (y = g = l == null ? void 0 : l[0], Q = E = l == null ? void 0 : l[1]) : (l == null ? void 0 : l.length) == 4 && (y = l == null ? void 0 : l[0], g = l == null ? void 0 : l[1], E = l == null ? void 0 : l[2], Q = l == null ? void 0 : l[3]), t.borderTopLeftRadius = y, t.borderTopRightRadius = g, t.borderBottomRightRadius = E, t.borderBottomLeftRadius = Q, t.borderRadius = P(t), { obj: t, isSame: O(t) };
|
|
813
|
+
}, N = (o) => {
|
|
814
|
+
var t = !0, r = void 0;
|
|
815
|
+
return o == null || o.forEach((l) => {
|
|
816
|
+
t = t && (r === void 0 || l === r), Z(l) || (r = l);
|
|
817
|
+
}), t;
|
|
818
|
+
}, O = (o) => N([
|
|
819
|
+
o == null ? void 0 : o.borderTopLeftRadius,
|
|
820
|
+
o == null ? void 0 : o.borderTopRightRadius,
|
|
821
|
+
o == null ? void 0 : o.borderBottomRightRadius,
|
|
822
|
+
o == null ? void 0 : o.borderBottomLeftRadius
|
|
823
|
+
]), P = (o) => O(o) ? o == null ? void 0 : o.borderTopLeftRadius : K(o), G = (o) => {
|
|
824
|
+
var t;
|
|
825
|
+
return !((t = C(o)) != null && t.isSame);
|
|
826
|
+
}, ee = M(() => G(n.value)), te = (o) => {
|
|
827
|
+
B(i, H(f(o)));
|
|
828
|
+
};
|
|
829
|
+
return U(() => h, (o) => {
|
|
830
|
+
v.value || te(o);
|
|
831
|
+
}, { immediate: !0, deep: !0 }), (o, t) => {
|
|
832
|
+
const r = F("el-tooltip"), l = F("el-input");
|
|
833
|
+
return L(), q("div", gt, [
|
|
834
|
+
a("div", ct, [
|
|
835
|
+
a("div", bt, [
|
|
836
|
+
a("div", {
|
|
837
|
+
class: I(["vs-style-border-col", {
|
|
838
|
+
"vs-style-border-selected": e.value === "borderTopLeftRadius"
|
|
839
|
+
/* borderTopLeftRadius */
|
|
840
|
+
}]),
|
|
841
|
+
onClick: t[0] || (t[0] = (y) => k(
|
|
842
|
+
"borderTopLeftRadius"
|
|
843
|
+
/* borderTopLeftRadius */
|
|
844
|
+
))
|
|
845
|
+
}, [
|
|
846
|
+
d(r, {
|
|
847
|
+
placement: "left-start",
|
|
848
|
+
content: s(m).i18nt("designer.style.borderRadiusTopLeft")
|
|
849
|
+
}, {
|
|
850
|
+
default: c(() => [...t[7] || (t[7] = [
|
|
851
|
+
a("span", null, "┏", -1)
|
|
852
|
+
])]),
|
|
853
|
+
_: 1
|
|
854
|
+
}, 8, ["content"])
|
|
855
|
+
], 2),
|
|
856
|
+
a("div", {
|
|
857
|
+
class: I(["vs-style-border-col", {
|
|
858
|
+
"vs-style-border-selected": e.value === "borderBottomLeftRadius"
|
|
859
|
+
/* borderBottomLeftRadius */
|
|
860
|
+
}]),
|
|
861
|
+
onClick: t[1] || (t[1] = (y) => k(
|
|
862
|
+
"borderBottomLeftRadius"
|
|
863
|
+
/* borderBottomLeftRadius */
|
|
864
|
+
))
|
|
865
|
+
}, [
|
|
866
|
+
d(r, {
|
|
867
|
+
placement: "left-end",
|
|
868
|
+
content: s(m).i18nt("designer.style.borderRadiusBottomLeft")
|
|
869
|
+
}, {
|
|
870
|
+
default: c(() => [...t[8] || (t[8] = [
|
|
871
|
+
a("span", null, "┗", -1)
|
|
872
|
+
])]),
|
|
873
|
+
_: 1
|
|
874
|
+
}, 8, ["content"])
|
|
875
|
+
], 2)
|
|
876
|
+
]),
|
|
877
|
+
a("div", ft, [
|
|
878
|
+
a("div", {
|
|
879
|
+
class: I(["vs-style-border-col", {
|
|
880
|
+
"vs-style-border-selected": e.value === "borderRadius"
|
|
881
|
+
/* borderRadius */
|
|
882
|
+
}]),
|
|
883
|
+
onClick: t[2] || (t[2] = (y) => k(
|
|
884
|
+
"borderRadius"
|
|
885
|
+
/* borderRadius */
|
|
886
|
+
))
|
|
887
|
+
}, [
|
|
888
|
+
d(r, {
|
|
889
|
+
content: s(m).i18nt("designer.style.borderRadiusAll")
|
|
890
|
+
}, {
|
|
891
|
+
default: c(() => [...t[9] || (t[9] = [
|
|
892
|
+
a("span", null, "╋", -1)
|
|
893
|
+
])]),
|
|
894
|
+
_: 1
|
|
895
|
+
}, 8, ["content"])
|
|
896
|
+
], 2)
|
|
897
|
+
]),
|
|
898
|
+
a("div", vt, [
|
|
899
|
+
a("div", {
|
|
900
|
+
class: I(["vs-style-border-col", {
|
|
901
|
+
"vs-style-border-selected": e.value === "borderTopRightRadius"
|
|
902
|
+
/* borderTopRightRadius */
|
|
903
|
+
}]),
|
|
904
|
+
onClick: t[3] || (t[3] = (y) => k(
|
|
905
|
+
"borderTopRightRadius"
|
|
906
|
+
/* borderTopRightRadius */
|
|
907
|
+
))
|
|
908
|
+
}, [
|
|
909
|
+
d(r, {
|
|
910
|
+
placement: "right-start",
|
|
911
|
+
content: s(m).i18nt("designer.style.borderRadiusTopRight")
|
|
912
|
+
}, {
|
|
913
|
+
default: c(() => [...t[10] || (t[10] = [
|
|
914
|
+
a("span", null, "┓", -1)
|
|
915
|
+
])]),
|
|
916
|
+
_: 1
|
|
917
|
+
}, 8, ["content"])
|
|
918
|
+
], 2),
|
|
919
|
+
a("div", {
|
|
920
|
+
class: I(["vs-style-border-col", {
|
|
921
|
+
"vs-style-border-selected": e.value === "borderBottomRightRadius"
|
|
922
|
+
/* borderBottomRightRadius */
|
|
923
|
+
}]),
|
|
924
|
+
onClick: t[4] || (t[4] = (y) => k(
|
|
925
|
+
"borderBottomRightRadius"
|
|
926
|
+
/* borderBottomRightRadius */
|
|
927
|
+
))
|
|
928
|
+
}, [
|
|
929
|
+
d(r, {
|
|
930
|
+
placement: "right-end",
|
|
931
|
+
content: s(m).i18nt("designer.style.borderRadiusBottomRight")
|
|
932
|
+
}, {
|
|
933
|
+
default: c(() => [...t[11] || (t[11] = [
|
|
934
|
+
a("span", null, "┛", -1)
|
|
935
|
+
])]),
|
|
936
|
+
_: 1
|
|
937
|
+
}, 8, ["content"])
|
|
938
|
+
], 2)
|
|
939
|
+
])
|
|
940
|
+
]),
|
|
941
|
+
a("div", yt, [
|
|
942
|
+
ee.value ? (L(), q("div", Vt, [
|
|
943
|
+
a("div", {
|
|
944
|
+
style: { width: "3em" },
|
|
945
|
+
class: I([s(_)(n.value)])
|
|
946
|
+
}, z(s(m).i18nt("designer.style.width")), 3),
|
|
947
|
+
d(l, {
|
|
948
|
+
modelValue: n.value,
|
|
949
|
+
"onUpdate:modelValue": t[6] || (t[6] = (y) => n.value = y),
|
|
950
|
+
readonly: !0
|
|
951
|
+
}, null, 8, ["modelValue"])
|
|
952
|
+
])) : (L(), X(D, {
|
|
953
|
+
key: 0,
|
|
954
|
+
modelValue: n.value,
|
|
955
|
+
"onUpdate:modelValue": t[5] || (t[5] = (y) => n.value = y),
|
|
956
|
+
options: s(x)(W),
|
|
957
|
+
"show-label": !0,
|
|
958
|
+
label: s(m).i18nt("designer.style.width"),
|
|
959
|
+
color: s(_)(n.value)
|
|
960
|
+
}, null, 8, ["modelValue", "options", "label", "color"]))
|
|
961
|
+
])
|
|
962
|
+
]);
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
const _t = /* @__PURE__ */ j(ht, [["__scopeId", "data-v-9561dee6"]]), Rt = { class: "custom-divider" }, $t = { class: "flex flexJustify" }, Tt = { style: { width: "48%" } }, kt = { class: "custom-divider" }, wt = { class: "flex flexJustify" }, Ut = { class: "custom-divider" }, xt = { class: "flex flexJustify" }, Bt = { class: "flex flexJustify" }, Lt = { class: "custom-divider" }, St = { class: "custom-divider" }, Ct = { class: "custom-divider" }, Et = A({ componentName: _e.PropertyEditor }), po = /* @__PURE__ */ A({
|
|
967
|
+
...Et,
|
|
968
|
+
__name: "css-editor",
|
|
969
|
+
props: { ...Ee },
|
|
970
|
+
setup($) {
|
|
971
|
+
const T = $, { propValue: _, propName: i, propChanged: h } = Ie(T);
|
|
972
|
+
let R = S({});
|
|
973
|
+
const v = S(ue.default), e = le({}), { changeListener: u, switchColor: n, toStateInf: f } = ne(), p = (r) => {
|
|
974
|
+
var l;
|
|
975
|
+
t.value = !1, (l = Object.keys(e)) == null || l.forEach((y) => {
|
|
976
|
+
delete e[y];
|
|
977
|
+
}), B(e, H(R.value[r])), setTimeout(() => {
|
|
978
|
+
t.value = !0;
|
|
979
|
+
}, 1e3);
|
|
980
|
+
}, b = () => {
|
|
981
|
+
f(_.value || "").then((r) => {
|
|
982
|
+
R.value = r, v.value = ue.default, p(v.value), t.value = !0;
|
|
983
|
+
});
|
|
984
|
+
}, w = (r) => {
|
|
985
|
+
B(e, r);
|
|
986
|
+
}, k = M(() => ({
|
|
987
|
+
top: e == null ? void 0 : e.marginTop,
|
|
988
|
+
left: e == null ? void 0 : e.marginLeft,
|
|
989
|
+
right: e == null ? void 0 : e.marginRight,
|
|
990
|
+
bottom: e == null ? void 0 : e.marginBottom
|
|
991
|
+
})), K = M(() => ({
|
|
992
|
+
top: e == null ? void 0 : e.paddingTop,
|
|
993
|
+
left: e == null ? void 0 : e.paddingLeft,
|
|
994
|
+
right: e == null ? void 0 : e.paddingRight,
|
|
995
|
+
bottom: e == null ? void 0 : e.paddingBottom
|
|
996
|
+
})), C = (r) => {
|
|
997
|
+
w({
|
|
998
|
+
marginTop: r == null ? void 0 : r.top,
|
|
999
|
+
marginLeft: r == null ? void 0 : r.left,
|
|
1000
|
+
marginRight: r == null ? void 0 : r.right,
|
|
1001
|
+
marginBottom: r == null ? void 0 : r.bottom
|
|
1002
|
+
});
|
|
1003
|
+
}, N = (r) => {
|
|
1004
|
+
w({
|
|
1005
|
+
paddingTop: r == null ? void 0 : r.top,
|
|
1006
|
+
paddingLeft: r == null ? void 0 : r.left,
|
|
1007
|
+
paddingRight: r == null ? void 0 : r.right,
|
|
1008
|
+
paddingBottom: r == null ? void 0 : r.bottom
|
|
1009
|
+
});
|
|
1010
|
+
}, O = (r) => {
|
|
1011
|
+
h(r), G(!1);
|
|
1012
|
+
}, P = () => {
|
|
1013
|
+
G(!1);
|
|
1014
|
+
}, G = (r = !0, l, y, g, E, Q) => {
|
|
1015
|
+
te({
|
|
1016
|
+
attrs: B({
|
|
1017
|
+
props: {
|
|
1018
|
+
optionModel: T.optionModel,
|
|
1019
|
+
propConfig: { ...T.propConfig, ...l },
|
|
1020
|
+
...g
|
|
1021
|
+
},
|
|
1022
|
+
dialogType: y,
|
|
1023
|
+
visible: r,
|
|
1024
|
+
title: m.i18nt("designer.setting.widgetCss"),
|
|
1025
|
+
name: i.value
|
|
1026
|
+
}, Q),
|
|
1027
|
+
events: {
|
|
1028
|
+
confirm: E || O,
|
|
1029
|
+
cancel: P
|
|
1030
|
+
}
|
|
1031
|
+
});
|
|
1032
|
+
}, { getInstance: ee } = he(), { editHandler: te } = Ae({ ...T, instance: ee() }), o = () => {
|
|
1033
|
+
G(!0, { ...T.propConfig, type: Ce.css }, Se.code, void 0, (r) => {
|
|
1034
|
+
var l = r;
|
|
1035
|
+
f(l).then((y) => {
|
|
1036
|
+
R.value = y, p(v.value), O(l);
|
|
1037
|
+
});
|
|
1038
|
+
});
|
|
1039
|
+
}, t = S(!1);
|
|
1040
|
+
return U(e, (r) => {
|
|
1041
|
+
t.value && (R.value[v.value] = H(r), u(R.value).then((l) => {
|
|
1042
|
+
h(l);
|
|
1043
|
+
}));
|
|
1044
|
+
}, { deep: !0 }), fe(() => {
|
|
1045
|
+
b();
|
|
1046
|
+
}), (r, l) => {
|
|
1047
|
+
const y = F("el-button");
|
|
1048
|
+
return L(), X(Fe, ve(ye(r.$props)), {
|
|
1049
|
+
slotEditor: c(() => [
|
|
1050
|
+
d(De, ie(r.$props, { "prop-config": r.propConfig }), {
|
|
1051
|
+
specialEditor: c(() => [
|
|
1052
|
+
a("div", null, [
|
|
1053
|
+
a("div", Rt, z(s(m).i18nt("designer.style.state")), 1),
|
|
1054
|
+
a("div", $t, [
|
|
1055
|
+
d(y, {
|
|
1056
|
+
type: "primary",
|
|
1057
|
+
onClick: o
|
|
1058
|
+
}, {
|
|
1059
|
+
default: c(() => [
|
|
1060
|
+
me(z(s(m).i18nt("designer.style.codeEdit")), 1)
|
|
1061
|
+
]),
|
|
1062
|
+
_: 1
|
|
1063
|
+
}),
|
|
1064
|
+
a("div", Tt, [
|
|
1065
|
+
d(oe, {
|
|
1066
|
+
options: $e,
|
|
1067
|
+
modelValue: v.value,
|
|
1068
|
+
"onUpdate:modelValue": l[0] || (l[0] = (g) => v.value = g),
|
|
1069
|
+
onChange: p
|
|
1070
|
+
}, null, 8, ["options", "modelValue"])
|
|
1071
|
+
])
|
|
1072
|
+
]),
|
|
1073
|
+
a("div", kt, z(s(m).i18nt("designer.style.container")), 1),
|
|
1074
|
+
d(J, {
|
|
1075
|
+
label: s(m).i18nt("designer.style.display")
|
|
1076
|
+
}, {
|
|
1077
|
+
label: c(() => [
|
|
1078
|
+
d(V, {
|
|
1079
|
+
name: "@css-display",
|
|
1080
|
+
color: s(n)(e == null ? void 0 : e.display)
|
|
1081
|
+
}, null, 8, ["color"])
|
|
1082
|
+
]),
|
|
1083
|
+
input: c(() => [
|
|
1084
|
+
d(se, {
|
|
1085
|
+
options: s(x)(Te),
|
|
1086
|
+
"icon-title": "display",
|
|
1087
|
+
modelValue: e.display,
|
|
1088
|
+
"onUpdate:modelValue": l[1] || (l[1] = (g) => e.display = g)
|
|
1089
|
+
}, null, 8, ["options", "modelValue"])
|
|
1090
|
+
]),
|
|
1091
|
+
_: 1
|
|
1092
|
+
}, 8, ["label"]),
|
|
1093
|
+
d(nt, {
|
|
1094
|
+
margin: k.value,
|
|
1095
|
+
padding: K.value,
|
|
1096
|
+
"onUpdate:margin": C,
|
|
1097
|
+
"onUpdate:padding": N
|
|
1098
|
+
}, null, 8, ["margin", "padding"]),
|
|
1099
|
+
a("div", wt, [
|
|
1100
|
+
d(D, {
|
|
1101
|
+
modelValue: e.width,
|
|
1102
|
+
"onUpdate:modelValue": l[2] || (l[2] = (g) => e.width = g),
|
|
1103
|
+
options: s(x)(W),
|
|
1104
|
+
label: s(m).i18nt("designer.style.width")
|
|
1105
|
+
}, {
|
|
1106
|
+
label: c(() => [
|
|
1107
|
+
d(V, {
|
|
1108
|
+
name: "@css-width",
|
|
1109
|
+
color: s(n)(e == null ? void 0 : e.width)
|
|
1110
|
+
}, null, 8, ["color"])
|
|
1111
|
+
]),
|
|
1112
|
+
_: 1
|
|
1113
|
+
}, 8, ["modelValue", "options", "label"]),
|
|
1114
|
+
d(D, {
|
|
1115
|
+
modelValue: e.height,
|
|
1116
|
+
"onUpdate:modelValue": l[3] || (l[3] = (g) => e.height = g),
|
|
1117
|
+
options: s(x)(W),
|
|
1118
|
+
label: s(m).i18nt("designer.style.height")
|
|
1119
|
+
}, {
|
|
1120
|
+
label: c(() => [
|
|
1121
|
+
d(V, {
|
|
1122
|
+
name: "@css-height",
|
|
1123
|
+
color: s(n)(e == null ? void 0 : e.height)
|
|
1124
|
+
}, null, 8, ["color"])
|
|
1125
|
+
]),
|
|
1126
|
+
_: 1
|
|
1127
|
+
}, 8, ["modelValue", "options", "label"])
|
|
1128
|
+
]),
|
|
1129
|
+
a("div", Ut, z(s(m).i18nt("designer.style.wordFont")), 1),
|
|
1130
|
+
d(J, {
|
|
1131
|
+
label: s(m).i18nt("designer.style.fontFamily")
|
|
1132
|
+
}, {
|
|
1133
|
+
label: c(() => [
|
|
1134
|
+
d(V, {
|
|
1135
|
+
name: "@css-font-family",
|
|
1136
|
+
color: s(n)(e == null ? void 0 : e.fontFamily)
|
|
1137
|
+
}, null, 8, ["color"])
|
|
1138
|
+
]),
|
|
1139
|
+
input: c(() => [
|
|
1140
|
+
d(oe, {
|
|
1141
|
+
options: ke,
|
|
1142
|
+
modelValue: e.fontFamily,
|
|
1143
|
+
"onUpdate:modelValue": l[4] || (l[4] = (g) => e.fontFamily = g)
|
|
1144
|
+
}, null, 8, ["options", "modelValue"])
|
|
1145
|
+
]),
|
|
1146
|
+
_: 1
|
|
1147
|
+
}, 8, ["label"]),
|
|
1148
|
+
d(re, {
|
|
1149
|
+
modelValue: e.color,
|
|
1150
|
+
"onUpdate:modelValue": l[5] || (l[5] = (g) => e.color = g),
|
|
1151
|
+
label: s(m).i18nt("designer.style.color"),
|
|
1152
|
+
options: { showAlpha: !0 }
|
|
1153
|
+
}, {
|
|
1154
|
+
label: c(() => [
|
|
1155
|
+
d(V, {
|
|
1156
|
+
name: "@css-font-color",
|
|
1157
|
+
color: s(n)(e == null ? void 0 : e.color)
|
|
1158
|
+
}, null, 8, ["color"])
|
|
1159
|
+
]),
|
|
1160
|
+
_: 1
|
|
1161
|
+
}, 8, ["modelValue", "label"]),
|
|
1162
|
+
a("div", xt, [
|
|
1163
|
+
d(J, {
|
|
1164
|
+
label: s(m).i18nt("designer.style.fontWeight"),
|
|
1165
|
+
style: { width: "48%" }
|
|
1166
|
+
}, {
|
|
1167
|
+
label: c(() => [
|
|
1168
|
+
d(V, {
|
|
1169
|
+
name: "@css-font-weight",
|
|
1170
|
+
color: s(n)(e == null ? void 0 : e.fontWeight)
|
|
1171
|
+
}, null, 8, ["color"])
|
|
1172
|
+
]),
|
|
1173
|
+
input: c(() => [
|
|
1174
|
+
d(oe, {
|
|
1175
|
+
options: s(x)(we),
|
|
1176
|
+
modelValue: e.fontWeight,
|
|
1177
|
+
"onUpdate:modelValue": l[6] || (l[6] = (g) => e.fontWeight = g)
|
|
1178
|
+
}, null, 8, ["options", "modelValue"])
|
|
1179
|
+
]),
|
|
1180
|
+
_: 1
|
|
1181
|
+
}, 8, ["label"]),
|
|
1182
|
+
d(J, {
|
|
1183
|
+
label: s(m).i18nt("designer.style.fontStyle"),
|
|
1184
|
+
style: { width: "48%" }
|
|
1185
|
+
}, {
|
|
1186
|
+
label: c(() => [
|
|
1187
|
+
d(V, {
|
|
1188
|
+
name: "@css-font-style",
|
|
1189
|
+
color: s(n)(e == null ? void 0 : e.fontStyle)
|
|
1190
|
+
}, null, 8, ["color"])
|
|
1191
|
+
]),
|
|
1192
|
+
input: c(() => [
|
|
1193
|
+
d(se, {
|
|
1194
|
+
options: s(x)(Ue),
|
|
1195
|
+
"icon-title": "font-style",
|
|
1196
|
+
modelValue: e.fontStyle,
|
|
1197
|
+
"onUpdate:modelValue": l[7] || (l[7] = (g) => e.fontStyle = g)
|
|
1198
|
+
}, null, 8, ["options", "modelValue"])
|
|
1199
|
+
]),
|
|
1200
|
+
_: 1
|
|
1201
|
+
}, 8, ["label"])
|
|
1202
|
+
]),
|
|
1203
|
+
a("div", Bt, [
|
|
1204
|
+
d(D, {
|
|
1205
|
+
modelValue: e.fontSize,
|
|
1206
|
+
"onUpdate:modelValue": l[8] || (l[8] = (g) => e.fontSize = g),
|
|
1207
|
+
options: s(x)(W),
|
|
1208
|
+
label: s(m).i18nt("designer.style.fontSize"),
|
|
1209
|
+
style: { width: "48%" }
|
|
1210
|
+
}, {
|
|
1211
|
+
label: c(() => [
|
|
1212
|
+
d(V, {
|
|
1213
|
+
name: "@css-font-size",
|
|
1214
|
+
color: s(n)(e == null ? void 0 : e.fontSize)
|
|
1215
|
+
}, null, 8, ["color"])
|
|
1216
|
+
]),
|
|
1217
|
+
_: 1
|
|
1218
|
+
}, 8, ["modelValue", "options", "label"]),
|
|
1219
|
+
d(D, {
|
|
1220
|
+
modelValue: e.lineHeight,
|
|
1221
|
+
"onUpdate:modelValue": l[9] || (l[9] = (g) => e.lineHeight = g),
|
|
1222
|
+
options: s(x)(W),
|
|
1223
|
+
label: s(m).i18nt("designer.style.lineHeight"),
|
|
1224
|
+
style: { width: "48%" }
|
|
1225
|
+
}, {
|
|
1226
|
+
label: c(() => [
|
|
1227
|
+
d(V, {
|
|
1228
|
+
name: "@css-line-height",
|
|
1229
|
+
color: s(n)(e == null ? void 0 : e.lineHeight)
|
|
1230
|
+
}, null, 8, ["color"])
|
|
1231
|
+
]),
|
|
1232
|
+
_: 1
|
|
1233
|
+
}, 8, ["modelValue", "options", "label"])
|
|
1234
|
+
]),
|
|
1235
|
+
d(J, {
|
|
1236
|
+
label: s(m).i18nt("designer.style.textAlign")
|
|
1237
|
+
}, {
|
|
1238
|
+
label: c(() => [
|
|
1239
|
+
d(V, {
|
|
1240
|
+
name: "@css-text-align",
|
|
1241
|
+
color: s(n)(e == null ? void 0 : e.textAlign)
|
|
1242
|
+
}, null, 8, ["color"])
|
|
1243
|
+
]),
|
|
1244
|
+
input: c(() => [
|
|
1245
|
+
d(se, {
|
|
1246
|
+
options: s(x)(xe),
|
|
1247
|
+
"icon-title": "text-align",
|
|
1248
|
+
modelValue: e.textAlign,
|
|
1249
|
+
"onUpdate:modelValue": l[10] || (l[10] = (g) => e.textAlign = g)
|
|
1250
|
+
}, null, 8, ["options", "modelValue"])
|
|
1251
|
+
]),
|
|
1252
|
+
_: 1
|
|
1253
|
+
}, 8, ["label"]),
|
|
1254
|
+
d(J, {
|
|
1255
|
+
label: s(m).i18nt("designer.style.textDecoration")
|
|
1256
|
+
}, {
|
|
1257
|
+
label: c(() => [
|
|
1258
|
+
d(V, {
|
|
1259
|
+
name: "@css-text-decoration",
|
|
1260
|
+
color: s(n)(e == null ? void 0 : e.textDecoration)
|
|
1261
|
+
}, null, 8, ["color"])
|
|
1262
|
+
]),
|
|
1263
|
+
input: c(() => [
|
|
1264
|
+
d(se, {
|
|
1265
|
+
options: s(x)(Be),
|
|
1266
|
+
"icon-title": "text-decoration",
|
|
1267
|
+
modelValue: e.textDecoration,
|
|
1268
|
+
"onUpdate:modelValue": l[11] || (l[11] = (g) => e.textDecoration = g)
|
|
1269
|
+
}, null, 8, ["options", "modelValue"])
|
|
1270
|
+
]),
|
|
1271
|
+
_: 1
|
|
1272
|
+
}, 8, ["label"]),
|
|
1273
|
+
a("div", Lt, z(s(m).i18nt("designer.style.background")), 1),
|
|
1274
|
+
d(re, {
|
|
1275
|
+
modelValue: e.backgroundColor,
|
|
1276
|
+
"onUpdate:modelValue": l[12] || (l[12] = (g) => e.backgroundColor = g),
|
|
1277
|
+
label: s(m).i18nt("designer.style.backgroundColor"),
|
|
1278
|
+
options: { showAlpha: !0 }
|
|
1279
|
+
}, {
|
|
1280
|
+
label: c(() => [
|
|
1281
|
+
d(V, {
|
|
1282
|
+
name: "@css-background-color",
|
|
1283
|
+
color: s(n)(e == null ? void 0 : e.backgroundColor)
|
|
1284
|
+
}, null, 8, ["color"])
|
|
1285
|
+
]),
|
|
1286
|
+
_: 1
|
|
1287
|
+
}, 8, ["modelValue", "label"]),
|
|
1288
|
+
d(Me, {
|
|
1289
|
+
modelValue: e.backgroundImage,
|
|
1290
|
+
"onUpdate:modelValue": l[13] || (l[13] = (g) => e.backgroundImage = g),
|
|
1291
|
+
label: s(m).i18nt("designer.style.backgroundImage")
|
|
1292
|
+
}, {
|
|
1293
|
+
label: c(() => [
|
|
1294
|
+
d(V, {
|
|
1295
|
+
name: "@css-background-image",
|
|
1296
|
+
color: s(n)(e == null ? void 0 : e.backgroundImage)
|
|
1297
|
+
}, null, 8, ["color"])
|
|
1298
|
+
]),
|
|
1299
|
+
_: 1
|
|
1300
|
+
}, 8, ["modelValue", "label"]),
|
|
1301
|
+
a("div", St, z(s(m).i18nt("designer.style.border")), 1),
|
|
1302
|
+
d(mt, ie(e, { "onUpdate:border": w }), null, 16),
|
|
1303
|
+
d(_t, ie(e, { "onUpdate:borderRadius": w }), null, 16),
|
|
1304
|
+
a("div", Ct, z(s(m).i18nt("designer.style.effect")), 1),
|
|
1305
|
+
d(D, {
|
|
1306
|
+
modelValue: e.opacity,
|
|
1307
|
+
"onUpdate:modelValue": l[14] || (l[14] = (g) => e.opacity = g),
|
|
1308
|
+
options: [{ value: "%", label: "%" }],
|
|
1309
|
+
label: s(m).i18nt("designer.style.opacity"),
|
|
1310
|
+
style: { width: "48%" }
|
|
1311
|
+
}, {
|
|
1312
|
+
label: c(() => [
|
|
1313
|
+
d(V, {
|
|
1314
|
+
name: "@css-line-height",
|
|
1315
|
+
color: s(n)(e == null ? void 0 : e.opacity)
|
|
1316
|
+
}, null, 8, ["color"])
|
|
1317
|
+
]),
|
|
1318
|
+
_: 1
|
|
1319
|
+
}, 8, ["modelValue", "label"]),
|
|
1320
|
+
d(J, {
|
|
1321
|
+
label: s(m).i18nt("designer.style.cursor")
|
|
1322
|
+
}, {
|
|
1323
|
+
label: c(() => [
|
|
1324
|
+
d(V, {
|
|
1325
|
+
name: "@css-cursor",
|
|
1326
|
+
color: s(n)(e == null ? void 0 : e.cursor)
|
|
1327
|
+
}, null, 8, ["color"])
|
|
1328
|
+
]),
|
|
1329
|
+
input: c(() => [
|
|
1330
|
+
d(oe, {
|
|
1331
|
+
options: s(x)(Le),
|
|
1332
|
+
modelValue: e.cursor,
|
|
1333
|
+
"onUpdate:modelValue": l[15] || (l[15] = (g) => e.cursor = g),
|
|
1334
|
+
"icon-title": "cursor"
|
|
1335
|
+
}, null, 8, ["options", "modelValue"])
|
|
1336
|
+
]),
|
|
1337
|
+
_: 1
|
|
1338
|
+
}, 8, ["label"]),
|
|
1339
|
+
d(Xe, {
|
|
1340
|
+
modelValue: e.boxShadow,
|
|
1341
|
+
"onUpdate:modelValue": l[16] || (l[16] = (g) => e.boxShadow = g)
|
|
1342
|
+
}, null, 8, ["modelValue"])
|
|
1343
|
+
])
|
|
1344
|
+
]),
|
|
1345
|
+
_: 1
|
|
1346
|
+
}, 16, ["prop-config"])
|
|
1347
|
+
]),
|
|
1348
|
+
_: 1
|
|
1349
|
+
}, 16);
|
|
1350
|
+
};
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1353
|
+
export {
|
|
1354
|
+
po as default
|
|
1355
|
+
};
|