@tmagic/editor 1.5.2 → 1.5.3
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/dist/style.css +366 -6
- package/dist/tmagic-editor.js +1421 -509
- package/dist/tmagic-editor.umd.cjs +1436 -523
- package/package.json +7 -7
- package/src/components/SplitView.vue +1 -1
- package/src/fields/DisplayConds.vue +2 -1
- package/src/fields/StyleSetter/Index.vue +69 -0
- package/src/fields/StyleSetter/components/BackgroundPosition.vue +71 -0
- package/src/fields/StyleSetter/components/Border.vue +104 -0
- package/src/fields/StyleSetter/components/Box.vue +73 -0
- package/src/fields/StyleSetter/components/Position.vue +54 -0
- package/src/fields/StyleSetter/icons/background-position/LeftBottom.vue +7 -0
- package/src/fields/StyleSetter/icons/background-position/LeftCenter.vue +7 -0
- package/src/fields/StyleSetter/icons/background-position/LeftTop.vue +12 -0
- package/src/fields/StyleSetter/icons/background-position/index.ts +3 -0
- package/src/fields/StyleSetter/icons/background-repeat/NoRepeat.vue +8 -0
- package/src/fields/StyleSetter/icons/background-repeat/Repeat.vue +31 -0
- package/src/fields/StyleSetter/icons/background-repeat/RepeatX.vue +8 -0
- package/src/fields/StyleSetter/icons/background-repeat/RepeatY.vue +8 -0
- package/src/fields/StyleSetter/icons/background-repeat/index.ts +4 -0
- package/src/fields/StyleSetter/icons/display/Block.vue +7 -0
- package/src/fields/StyleSetter/icons/display/Flex.vue +7 -0
- package/src/fields/StyleSetter/icons/display/Inline.vue +7 -0
- package/src/fields/StyleSetter/icons/display/InlineBlock.vue +7 -0
- package/src/fields/StyleSetter/icons/display/None.vue +7 -0
- package/src/fields/StyleSetter/icons/display/index.ts +5 -0
- package/src/fields/StyleSetter/icons/flex-direction/Column.vue +7 -0
- package/src/fields/StyleSetter/icons/flex-direction/ColumnReverse.vue +7 -0
- package/src/fields/StyleSetter/icons/flex-direction/Row.vue +7 -0
- package/src/fields/StyleSetter/icons/flex-direction/RowReverse.vue +7 -0
- package/src/fields/StyleSetter/icons/flex-direction/index.ts +4 -0
- package/src/fields/StyleSetter/icons/justify-content/Center.vue +5 -0
- package/src/fields/StyleSetter/icons/justify-content/FlexEnd.vue +5 -0
- package/src/fields/StyleSetter/icons/justify-content/FlexStart.vue +5 -0
- package/src/fields/StyleSetter/icons/justify-content/SpaceAround.vue +7 -0
- package/src/fields/StyleSetter/icons/justify-content/SpaceBetween.vue +5 -0
- package/src/fields/StyleSetter/icons/justify-content/index.ts +5 -0
- package/src/fields/StyleSetter/icons/text-align/Center.vue +7 -0
- package/src/fields/StyleSetter/icons/text-align/Left.vue +7 -0
- package/src/fields/StyleSetter/icons/text-align/Right.vue +7 -0
- package/src/fields/StyleSetter/icons/text-align/index.ts +3 -0
- package/src/fields/StyleSetter/pro/Background.vue +78 -0
- package/src/fields/StyleSetter/pro/Border.vue +35 -0
- package/src/fields/StyleSetter/pro/Font.vue +90 -0
- package/src/fields/StyleSetter/pro/Layout.vue +164 -0
- package/src/fields/StyleSetter/pro/Position.vue +48 -0
- package/src/fields/StyleSetter/pro/index.ts +5 -0
- package/src/index.ts +3 -0
- package/src/layouts/props-panel/FormPanel.vue +1 -1
- package/src/layouts/props-panel/PropsPanel.vue +32 -2
- package/src/services/editor.ts +2 -2
- package/src/theme/props-panel.scss +13 -0
- package/src/theme/resizer.scss +2 -2
- package/src/theme/style-setter/background.scss +113 -0
- package/src/theme/style-setter/border.scss +53 -0
- package/src/theme/style-setter/index.scss +28 -0
- package/src/theme/style-setter/layout.scss +199 -0
- package/src/theme/theme.scss +1 -0
- package/src/utils/props.ts +52 -297
- package/types/index.d.ts +425 -110
package/dist/tmagic-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import designPlugin__default, { TMagicIcon, TMagicButton, TMagicCard, tMagicMessage, getDesignConfig, TMagicSelect, useZIndex, tMagicMessageBox, TMagicCascader, TMagicTooltip, TMagicTag, TMagicDialog, TMagicSwitch, TMagicInput, TMagicDivider, TMagicDropdown, TMagicDropdownMenu, TMagicDropdownItem, TMagicPopover, TMagicScrollbar
|
|
1
|
+
import designPlugin__default, { TMagicIcon, TMagicButton, TMagicCard, tMagicMessage, getDesignConfig, TMagicSelect, useZIndex, tMagicMessageBox, TMagicCascader, TMagicTooltip, TMagicTag, TMagicDialog, TMagicSwitch, TMagicInput, TMagicCollapse, TMagicCollapseItem, TMagicDivider, TMagicDropdown, TMagicDropdownMenu, TMagicDropdownItem, TMagicPopover, TMagicScrollbar } from '@tmagic/design';
|
|
2
2
|
export * from '@tmagic/design';
|
|
3
3
|
export { default as designPlugin } from '@tmagic/design';
|
|
4
4
|
import formPlugin__default, { MContainer, MForm, filterFunction, createValues, MFormBox, MSelect, MGroupList, MPanel, createForm } from '@tmagic/form';
|
|
@@ -7,8 +7,8 @@ export { default as formPlugin } from '@tmagic/form';
|
|
|
7
7
|
import tablePlugin__default, { MagicTable } from '@tmagic/table';
|
|
8
8
|
export * from '@tmagic/table';
|
|
9
9
|
export { default as tablePlugin } from '@tmagic/table';
|
|
10
|
-
import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, createElementVNode, createElementBlock, normalizeClass, resolveDynamicComponent, toRaw, ref, useTemplateRef, watch, onMounted, onBeforeUnmount, Teleport, normalizeStyle, computed, reactive, resolveComponent, inject, createCommentVNode, Fragment, renderList, mergeProps, mergeModels, useModel, nextTick, provide, renderSlot, toDisplayString, createTextVNode, isRef, createStaticVNode, watchEffect,
|
|
11
|
-
import { Edit, FullScreen, View, Close, Coin, Delete, Plus, ArrowDown, ArrowLeftBold, ArrowRightBold, Files, Search, CaretBottom, DocumentCopy,
|
|
10
|
+
import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, createElementVNode, createElementBlock, normalizeClass, resolveDynamicComponent, toRaw, ref, useTemplateRef, watch, onMounted, onBeforeUnmount, Teleport, normalizeStyle, computed, reactive, resolveComponent, inject, createCommentVNode, Fragment, renderList, mergeProps, mergeModels, useModel, nextTick, provide, renderSlot, toDisplayString, createTextVNode, isRef, createStaticVNode, watchEffect, markRaw, withDirectives, vModelText, vShow, shallowRef, withModifiers, toHandlers, createSlots, getCurrentInstance, Transition, resolveDirective, mergeDefaults } from 'vue';
|
|
11
|
+
import { Edit, FullScreen, View, Close, Coin, Delete, Plus, Grid, ArrowDown, ArrowLeftBold, ArrowRightBold, Files, Search, CaretBottom, DocumentCopy, Memo, ScaleToOriginal, ZoomOut, ZoomIn, Right, Back, Document, Sugar, ArrowRight, CopyDocument, Hide, Goods, List, EditPen, CloseBold, Top, Bottom } from '@element-plus/icons-vue';
|
|
12
12
|
import { throttle, isEmpty, isObject, cloneDeep, mergeWith, uniq, get, map, has, pick, keys } from 'lodash-es';
|
|
13
13
|
import serialize from 'serialize-javascript';
|
|
14
14
|
import { emmetHTML, emmetCSS } from 'emmet-monaco-es';
|
|
@@ -27,8 +27,8 @@ import { detailedDiff } from 'deep-object-diff';
|
|
|
27
27
|
import Sortable from 'sortablejs';
|
|
28
28
|
import KeyController from 'keycon';
|
|
29
29
|
|
|
30
|
-
const _hoisted_1$
|
|
31
|
-
const _sfc_main$
|
|
30
|
+
const _hoisted_1$Y = ["src"];
|
|
31
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
32
32
|
...{
|
|
33
33
|
name: "MEditorIcon"
|
|
34
34
|
},
|
|
@@ -52,7 +52,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
class: "magic-editor-icon"
|
|
53
53
|
}, {
|
|
54
54
|
default: withCtx(() => [
|
|
55
|
-
createElementVNode("img", { src: _ctx.icon }, null, 8, _hoisted_1$
|
|
55
|
+
createElementVNode("img", { src: _ctx.icon }, null, 8, _hoisted_1$Y)
|
|
56
56
|
]),
|
|
57
57
|
_: 1
|
|
58
58
|
})) : typeof _ctx.icon === "string" ? (openBlock(), createElementBlock("i", {
|
|
@@ -80,10 +80,10 @@ const getEditorConfig = (key) => $TMAGIC_EDITOR[key];
|
|
|
80
80
|
emmetHTML(monaco);
|
|
81
81
|
emmetCSS(monaco, ["css", "scss"]);
|
|
82
82
|
|
|
83
|
-
const _hoisted_1$
|
|
83
|
+
const _hoisted_1$X = {
|
|
84
84
|
class: /* @__PURE__ */ normalizeClass(`magic-code-editor`)
|
|
85
85
|
};
|
|
86
|
-
const _sfc_main$
|
|
86
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
87
87
|
...{
|
|
88
88
|
name: "MEditorCodeEditor"
|
|
89
89
|
},
|
|
@@ -240,7 +240,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
242
|
return (_ctx, _cache) => {
|
|
243
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
243
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
244
244
|
(openBlock(), createBlock(Teleport, {
|
|
245
245
|
to: "body",
|
|
246
246
|
disabled: !fullScreen.value
|
|
@@ -256,7 +256,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
256
256
|
onClick: fullScreenHandler
|
|
257
257
|
}, {
|
|
258
258
|
default: withCtx(() => [
|
|
259
|
-
createVNode(_sfc_main$
|
|
259
|
+
createVNode(_sfc_main$1s, { icon: unref(FullScreen) }, null, 8, ["icon"])
|
|
260
260
|
]),
|
|
261
261
|
_: 1
|
|
262
262
|
}),
|
|
@@ -272,7 +272,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
|
|
275
|
-
const _sfc_main$
|
|
275
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
276
276
|
...{
|
|
277
277
|
name: "MFieldsVsCode"
|
|
278
278
|
},
|
|
@@ -295,7 +295,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
295
295
|
emit("change", v);
|
|
296
296
|
};
|
|
297
297
|
return (_ctx, _cache) => {
|
|
298
|
-
return openBlock(), createBlock(_sfc_main$
|
|
298
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
299
299
|
height: _ctx.config.height,
|
|
300
300
|
"init-values": _ctx.model[_ctx.name],
|
|
301
301
|
language: _ctx.config.language,
|
|
@@ -310,7 +310,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
312
|
|
|
313
|
-
const _sfc_main$
|
|
313
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
314
314
|
...{
|
|
315
315
|
name: "MFieldsCodeLink"
|
|
316
316
|
},
|
|
@@ -389,7 +389,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
|
|
392
|
-
const _sfc_main$
|
|
392
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
393
393
|
...{
|
|
394
394
|
name: "MFieldsCodeSelect"
|
|
395
395
|
},
|
|
@@ -532,303 +532,60 @@ const styleTabConfig = {
|
|
|
532
532
|
items: [
|
|
533
533
|
{
|
|
534
534
|
name: "style",
|
|
535
|
+
labelWidth: "100px",
|
|
536
|
+
type: "style-setter",
|
|
535
537
|
items: [
|
|
536
538
|
{
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
name: "bottom",
|
|
588
|
-
text: "bottom",
|
|
589
|
-
checkStrictly: false,
|
|
590
|
-
dataSourceFieldType: ["string", "number"],
|
|
591
|
-
fieldConfig: {
|
|
592
|
-
type: "text"
|
|
593
|
-
},
|
|
594
|
-
disabled: (_vm, { model }) => model.position === "fixed" && model._magic_position === "fixedTop"
|
|
595
|
-
}
|
|
596
|
-
]
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
type: "fieldset",
|
|
600
|
-
legend: "盒子",
|
|
601
|
-
items: [
|
|
602
|
-
{
|
|
603
|
-
type: "data-source-field-select",
|
|
604
|
-
name: "display",
|
|
605
|
-
text: "display",
|
|
606
|
-
checkStrictly: false,
|
|
607
|
-
dataSourceFieldType: ["string"],
|
|
608
|
-
fieldConfig: {
|
|
609
|
-
type: "select",
|
|
610
|
-
clearable: true,
|
|
611
|
-
allowCreate: true,
|
|
612
|
-
options: [
|
|
613
|
-
{ text: "block", value: "block" },
|
|
614
|
-
{ text: "flex", value: "flex" },
|
|
615
|
-
{ text: "none", value: "none" },
|
|
616
|
-
{ text: "inline-block", value: "inline-block" },
|
|
617
|
-
{ text: "grid", value: "grid" },
|
|
618
|
-
{ text: "inline", value: "inline" },
|
|
619
|
-
{ text: "initial", value: "initial" }
|
|
620
|
-
]
|
|
621
|
-
}
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
type: "data-source-field-select",
|
|
625
|
-
name: "width",
|
|
626
|
-
text: "宽度",
|
|
627
|
-
checkStrictly: false,
|
|
628
|
-
dataSourceFieldType: ["string", "number"],
|
|
629
|
-
fieldConfig: {
|
|
630
|
-
type: "text"
|
|
631
|
-
}
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
type: "data-source-field-select",
|
|
635
|
-
name: "height",
|
|
636
|
-
text: "高度",
|
|
637
|
-
checkStrictly: false,
|
|
638
|
-
dataSourceFieldType: ["string", "number"],
|
|
639
|
-
fieldConfig: {
|
|
640
|
-
type: "text"
|
|
641
|
-
}
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
type: "data-source-field-select",
|
|
645
|
-
text: "overflow",
|
|
646
|
-
name: "overflow",
|
|
647
|
-
checkStrictly: false,
|
|
648
|
-
dataSourceFieldType: ["string"],
|
|
649
|
-
fieldConfig: {
|
|
650
|
-
type: "select",
|
|
651
|
-
clearable: true,
|
|
652
|
-
allowCreate: true,
|
|
653
|
-
options: [
|
|
654
|
-
{ text: "visible", value: "visible" },
|
|
655
|
-
{ text: "hidden", value: "hidden" },
|
|
656
|
-
{ text: "clip", value: "clip" },
|
|
657
|
-
{ text: "scroll", value: "scroll" },
|
|
658
|
-
{ text: "auto", value: "auto" },
|
|
659
|
-
{ text: "overlay", value: "overlay" },
|
|
660
|
-
{ text: "initial", value: "initial" }
|
|
661
|
-
]
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
]
|
|
665
|
-
},
|
|
666
|
-
{
|
|
667
|
-
type: "fieldset",
|
|
668
|
-
legend: "边框",
|
|
669
|
-
items: [
|
|
670
|
-
{
|
|
671
|
-
type: "data-source-field-select",
|
|
672
|
-
name: "borderWidth",
|
|
673
|
-
text: "宽度",
|
|
674
|
-
defaultValue: "0",
|
|
675
|
-
checkStrictly: false,
|
|
676
|
-
dataSourceFieldType: ["string", "number"],
|
|
677
|
-
fieldConfig: {
|
|
678
|
-
type: "text"
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
type: "data-source-field-select",
|
|
683
|
-
name: "borderColor",
|
|
684
|
-
text: "颜色",
|
|
685
|
-
checkStrictly: false,
|
|
686
|
-
dataSourceFieldType: ["string"],
|
|
687
|
-
fieldConfig: {
|
|
688
|
-
type: "text"
|
|
689
|
-
}
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
type: "data-source-field-select",
|
|
693
|
-
name: "borderStyle",
|
|
694
|
-
text: "样式",
|
|
695
|
-
defaultValue: "none",
|
|
696
|
-
checkStrictly: false,
|
|
697
|
-
dataSourceFieldType: ["string"],
|
|
698
|
-
fieldConfig: {
|
|
699
|
-
type: "select",
|
|
700
|
-
options: [
|
|
701
|
-
{ text: "none", value: "none" },
|
|
702
|
-
{ text: "hidden", value: "hidden" },
|
|
703
|
-
{ text: "dotted", value: "dotted" },
|
|
704
|
-
{ text: "dashed", value: "dashed" },
|
|
705
|
-
{ text: "solid", value: "solid" },
|
|
706
|
-
{ text: "double", value: "double" },
|
|
707
|
-
{ text: "groove", value: "groove" },
|
|
708
|
-
{ text: "ridge", value: "ridge" },
|
|
709
|
-
{ text: "inset", value: "inset" },
|
|
710
|
-
{ text: "outset", value: "outset" }
|
|
711
|
-
]
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
]
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
type: "fieldset",
|
|
718
|
-
legend: "背景",
|
|
719
|
-
items: [
|
|
720
|
-
{
|
|
721
|
-
type: "data-source-field-select",
|
|
722
|
-
name: "backgroundImage",
|
|
723
|
-
text: "背景图",
|
|
724
|
-
checkStrictly: false,
|
|
725
|
-
dataSourceFieldType: ["string"],
|
|
726
|
-
fieldConfig: {
|
|
727
|
-
type: "img-upload"
|
|
728
|
-
}
|
|
729
|
-
},
|
|
730
|
-
{
|
|
731
|
-
type: "data-source-field-select",
|
|
732
|
-
name: "backgroundColor",
|
|
733
|
-
text: "背景颜色",
|
|
734
|
-
checkStrictly: false,
|
|
735
|
-
dataSourceFieldType: ["string"],
|
|
736
|
-
fieldConfig: {
|
|
737
|
-
type: "colorPicker"
|
|
738
|
-
}
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
type: "data-source-field-select",
|
|
742
|
-
name: "backgroundRepeat",
|
|
743
|
-
text: "背景图重复",
|
|
744
|
-
defaultValue: "no-repeat",
|
|
745
|
-
checkStrictly: false,
|
|
746
|
-
dataSourceFieldType: ["string"],
|
|
747
|
-
fieldConfig: {
|
|
748
|
-
type: "select",
|
|
749
|
-
options: [
|
|
750
|
-
{ text: "repeat", value: "repeat" },
|
|
751
|
-
{ text: "repeat-x", value: "repeat-x" },
|
|
752
|
-
{ text: "repeat-y", value: "repeat-y" },
|
|
753
|
-
{ text: "no-repeat", value: "no-repeat" },
|
|
754
|
-
{ text: "inherit", value: "inherit" }
|
|
755
|
-
]
|
|
756
|
-
}
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
type: "data-source-field-select",
|
|
760
|
-
name: "backgroundSize",
|
|
761
|
-
text: "背景图大小",
|
|
762
|
-
defaultValue: "100% 100%",
|
|
763
|
-
checkStrictly: false,
|
|
764
|
-
dataSourceFieldType: ["string"],
|
|
765
|
-
fieldConfig: {
|
|
766
|
-
type: "text"
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
]
|
|
770
|
-
},
|
|
771
|
-
{
|
|
772
|
-
type: "fieldset",
|
|
773
|
-
legend: "字体",
|
|
774
|
-
items: [
|
|
775
|
-
{
|
|
776
|
-
type: "data-source-field-select",
|
|
777
|
-
name: "color",
|
|
778
|
-
text: "颜色",
|
|
779
|
-
checkStrictly: false,
|
|
780
|
-
dataSourceFieldType: ["string"],
|
|
781
|
-
fieldConfig: {
|
|
782
|
-
type: "colorPicker"
|
|
783
|
-
}
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
type: "data-source-field-select",
|
|
787
|
-
name: "fontSize",
|
|
788
|
-
text: "大小",
|
|
789
|
-
checkStrictly: false,
|
|
790
|
-
dataSourceFieldType: ["string", "number"],
|
|
791
|
-
fieldConfig: {
|
|
792
|
-
type: "text"
|
|
793
|
-
}
|
|
794
|
-
},
|
|
795
|
-
{
|
|
796
|
-
type: "data-source-field-select",
|
|
797
|
-
name: "fontWeight",
|
|
798
|
-
text: "粗细",
|
|
799
|
-
checkStrictly: false,
|
|
800
|
-
dataSourceFieldType: ["string", "number"],
|
|
801
|
-
fieldConfig: {
|
|
802
|
-
type: "text"
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
]
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
type: "fieldset",
|
|
809
|
-
legend: "变形",
|
|
810
|
-
name: "transform",
|
|
811
|
-
items: [
|
|
812
|
-
{
|
|
813
|
-
type: "data-source-field-select",
|
|
814
|
-
name: "rotate",
|
|
815
|
-
text: "旋转角度",
|
|
816
|
-
checkStrictly: false,
|
|
817
|
-
dataSourceFieldType: ["string"],
|
|
818
|
-
fieldConfig: {
|
|
819
|
-
type: "text"
|
|
820
|
-
}
|
|
821
|
-
},
|
|
822
|
-
{
|
|
823
|
-
type: "data-source-field-select",
|
|
824
|
-
name: "scale",
|
|
825
|
-
text: "缩放",
|
|
826
|
-
checkStrictly: false,
|
|
827
|
-
dataSourceFieldType: ["number", "string"],
|
|
828
|
-
fieldConfig: {
|
|
829
|
-
type: "text"
|
|
830
|
-
}
|
|
831
|
-
}
|
|
539
|
+
names: [
|
|
540
|
+
"display",
|
|
541
|
+
"flexDirection",
|
|
542
|
+
"justifyContent",
|
|
543
|
+
"alignItems",
|
|
544
|
+
"flexWrap",
|
|
545
|
+
"marginTop",
|
|
546
|
+
"marginRight",
|
|
547
|
+
"marginBottom",
|
|
548
|
+
"marginLeft",
|
|
549
|
+
"paddingTop",
|
|
550
|
+
"paddingRight",
|
|
551
|
+
"paddingBottom",
|
|
552
|
+
"paddingLeft",
|
|
553
|
+
"width",
|
|
554
|
+
"height",
|
|
555
|
+
"overflow",
|
|
556
|
+
"fontSize",
|
|
557
|
+
"lineHeight",
|
|
558
|
+
"fontWeight",
|
|
559
|
+
"color",
|
|
560
|
+
"textAlign",
|
|
561
|
+
"backgroundColor",
|
|
562
|
+
"backgroundImage",
|
|
563
|
+
"backgroundSize",
|
|
564
|
+
"backgroundPosition",
|
|
565
|
+
"backgroundRepeat",
|
|
566
|
+
"position",
|
|
567
|
+
"zIndex",
|
|
568
|
+
"top",
|
|
569
|
+
"right",
|
|
570
|
+
"bottom",
|
|
571
|
+
"left",
|
|
572
|
+
"borderRadius",
|
|
573
|
+
"borderTopWidth",
|
|
574
|
+
"borderTopStyle",
|
|
575
|
+
"borderTopColor",
|
|
576
|
+
"borderRightColor",
|
|
577
|
+
"borderRightWidth",
|
|
578
|
+
"borderRightStyle",
|
|
579
|
+
"borderRightColor",
|
|
580
|
+
"borderBottomWidth",
|
|
581
|
+
"borderBottomStyle",
|
|
582
|
+
"borderBottomColor",
|
|
583
|
+
"borderLeftStyle",
|
|
584
|
+
"borderLeftWidth",
|
|
585
|
+
"borderLeftColor",
|
|
586
|
+
"borderWidth",
|
|
587
|
+
"borderStyle",
|
|
588
|
+
"borderColor"
|
|
832
589
|
]
|
|
833
590
|
}
|
|
834
591
|
]
|
|
@@ -2213,8 +1970,8 @@ class Editor extends BaseService {
|
|
|
2213
1970
|
if (!info.node) throw new Error(`获取不到id为${config.id}的节点`);
|
|
2214
1971
|
const node = toRaw(info.node);
|
|
2215
1972
|
let newConfig = await this.toggleFixedPosition(toRaw(config), node, root);
|
|
2216
|
-
newConfig = mergeWith(cloneDeep(node), newConfig, (objValue, srcValue, key) => {
|
|
2217
|
-
if (typeof srcValue === "undefined" && Object.hasOwn(
|
|
1973
|
+
newConfig = mergeWith(cloneDeep(node), newConfig, (objValue, srcValue, key, object, source) => {
|
|
1974
|
+
if (typeof srcValue === "undefined" && Object.hasOwn(source, key)) {
|
|
2218
1975
|
return "";
|
|
2219
1976
|
}
|
|
2220
1977
|
if (isObject(srcValue) && Array.isArray(objValue)) {
|
|
@@ -3272,7 +3029,7 @@ const updateStatus = (nodeStatusMap, id, status) => {
|
|
|
3272
3029
|
});
|
|
3273
3030
|
};
|
|
3274
3031
|
|
|
3275
|
-
const _sfc_main$
|
|
3032
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
3276
3033
|
...{
|
|
3277
3034
|
name: "MEditorCodeParams"
|
|
3278
3035
|
},
|
|
@@ -3332,9 +3089,9 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
3332
3089
|
}
|
|
3333
3090
|
});
|
|
3334
3091
|
|
|
3335
|
-
const _hoisted_1$
|
|
3336
|
-
const _hoisted_2$
|
|
3337
|
-
const _sfc_main$
|
|
3092
|
+
const _hoisted_1$W = { class: "m-fields-code-select-col" };
|
|
3093
|
+
const _hoisted_2$m = { class: "code-select-container" };
|
|
3094
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
3338
3095
|
...{
|
|
3339
3096
|
name: "MFieldsCodeSelectCol"
|
|
3340
3097
|
},
|
|
@@ -3430,8 +3187,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
3430
3187
|
eventBus?.emit("edit-code", id);
|
|
3431
3188
|
};
|
|
3432
3189
|
return (_ctx, _cache) => {
|
|
3433
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3434
|
-
createElementVNode("div", _hoisted_2$
|
|
3190
|
+
return openBlock(), createElementBlock("div", _hoisted_1$W, [
|
|
3191
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
3435
3192
|
createVNode(unref(MContainer), {
|
|
3436
3193
|
class: "select",
|
|
3437
3194
|
config: selectConfig,
|
|
@@ -3446,14 +3203,14 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
3446
3203
|
onClick: _cache[0] || (_cache[0] = ($event) => editCode(_ctx.model[_ctx.name]))
|
|
3447
3204
|
}, {
|
|
3448
3205
|
default: withCtx(() => [
|
|
3449
|
-
createVNode(_sfc_main$
|
|
3206
|
+
createVNode(_sfc_main$1s, {
|
|
3450
3207
|
icon: !notEditable.value ? unref(Edit) : unref(View)
|
|
3451
3208
|
}, null, 8, ["icon"])
|
|
3452
3209
|
]),
|
|
3453
3210
|
_: 1
|
|
3454
3211
|
}, 8, ["size"])) : createCommentVNode("", true)
|
|
3455
3212
|
]),
|
|
3456
|
-
paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
3213
|
+
paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
3457
3214
|
name: "params",
|
|
3458
3215
|
key: _ctx.model[_ctx.name],
|
|
3459
3216
|
model: _ctx.model,
|
|
@@ -3466,7 +3223,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
3466
3223
|
}
|
|
3467
3224
|
});
|
|
3468
3225
|
|
|
3469
|
-
const _sfc_main$
|
|
3226
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
3470
3227
|
...{
|
|
3471
3228
|
name: "MFieldsCondOpSelect"
|
|
3472
3229
|
},
|
|
@@ -3552,7 +3309,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
3552
3309
|
}
|
|
3553
3310
|
});
|
|
3554
3311
|
|
|
3555
|
-
const _sfc_main$
|
|
3312
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
3556
3313
|
__name: "FloatingBox",
|
|
3557
3314
|
props: /* @__PURE__ */ mergeModels({
|
|
3558
3315
|
position: { default: () => ({ left: 0, top: 0 }) },
|
|
@@ -3707,7 +3464,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
3707
3464
|
onClick: closeHandler
|
|
3708
3465
|
}, {
|
|
3709
3466
|
default: withCtx(() => [
|
|
3710
|
-
createVNode(_sfc_main$
|
|
3467
|
+
createVNode(_sfc_main$1s, { icon: unref(Close) }, null, 8, ["icon"])
|
|
3711
3468
|
]),
|
|
3712
3469
|
_: 1
|
|
3713
3470
|
})
|
|
@@ -4230,9 +3987,9 @@ const useNodeStatus$1 = (nodeData) => {
|
|
|
4230
3987
|
};
|
|
4231
3988
|
};
|
|
4232
3989
|
|
|
4233
|
-
const _hoisted_1$
|
|
4234
|
-
const _hoisted_2$
|
|
4235
|
-
const _sfc_main$
|
|
3990
|
+
const _hoisted_1$V = { class: "m-editor-data-source-fields" };
|
|
3991
|
+
const _hoisted_2$l = { class: "m-editor-data-source-fields-footer" };
|
|
3992
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
4236
3993
|
...{
|
|
4237
3994
|
name: "MFieldsDataSourceFields"
|
|
4238
3995
|
},
|
|
@@ -4496,12 +4253,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
4496
4253
|
const parentFloating = inject("parentFloating", ref(null));
|
|
4497
4254
|
const { boxPosition, calcBoxPosition } = useNextFloatBoxPosition(services?.uiService, parentFloating);
|
|
4498
4255
|
return (_ctx, _cache) => {
|
|
4499
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4256
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
4500
4257
|
createVNode(unref(MagicTable), {
|
|
4501
4258
|
data: _ctx.model[_ctx.name],
|
|
4502
4259
|
columns: fieldColumns
|
|
4503
4260
|
}, null, 8, ["data"]),
|
|
4504
|
-
createElementVNode("div", _hoisted_2$
|
|
4261
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
4505
4262
|
createVNode(unref(TMagicButton), {
|
|
4506
4263
|
size: "small",
|
|
4507
4264
|
disabled: _ctx.disabled,
|
|
@@ -4526,7 +4283,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
4526
4283
|
_: 1
|
|
4527
4284
|
}, 8, ["disabled"])
|
|
4528
4285
|
]),
|
|
4529
|
-
createVNode(_sfc_main$
|
|
4286
|
+
createVNode(_sfc_main$1k, {
|
|
4530
4287
|
visible: addDialogVisible.value,
|
|
4531
4288
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => addDialogVisible.value = $event),
|
|
4532
4289
|
width: width.value,
|
|
@@ -4549,7 +4306,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
4549
4306
|
]),
|
|
4550
4307
|
_: 1
|
|
4551
4308
|
}, 8, ["visible", "width", "height", "title", "position"]),
|
|
4552
|
-
createVNode(_sfc_main$
|
|
4309
|
+
createVNode(_sfc_main$1k, {
|
|
4553
4310
|
visible: addFromJsonDialogVisible.value,
|
|
4554
4311
|
"onUpdate:visible": _cache[5] || (_cache[5] = ($event) => addFromJsonDialogVisible.value = $event),
|
|
4555
4312
|
width: width.value,
|
|
@@ -4574,8 +4331,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
4574
4331
|
}
|
|
4575
4332
|
});
|
|
4576
4333
|
|
|
4577
|
-
const _hoisted_1$
|
|
4578
|
-
const _sfc_main$
|
|
4334
|
+
const _hoisted_1$U = { class: "m-editor-data-source-field-select" };
|
|
4335
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
4579
4336
|
__name: "FieldSelect",
|
|
4580
4337
|
props: /* @__PURE__ */ mergeModels({
|
|
4581
4338
|
value: {},
|
|
@@ -4656,7 +4413,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
4656
4413
|
eventBus?.emit("edit-data-source", removeDataSourceFieldPrefix(id));
|
|
4657
4414
|
};
|
|
4658
4415
|
return (_ctx, _cache) => {
|
|
4659
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4416
|
+
return openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
4660
4417
|
_ctx.checkStrictly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4661
4418
|
createVNode(unref(TMagicSelect), {
|
|
4662
4419
|
"model-value": selectDataSourceId.value,
|
|
@@ -4724,7 +4481,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
4724
4481
|
onClick: _cache[0] || (_cache[0] = ($event) => editHandler(selectDataSourceId.value))
|
|
4725
4482
|
}, {
|
|
4726
4483
|
default: withCtx(() => [
|
|
4727
|
-
createVNode(_sfc_main$
|
|
4484
|
+
createVNode(_sfc_main$1s, {
|
|
4728
4485
|
icon: !notEditable.value ? unref(Edit) : unref(View)
|
|
4729
4486
|
}, null, 8, ["icon"])
|
|
4730
4487
|
]),
|
|
@@ -4738,8 +4495,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
4738
4495
|
}
|
|
4739
4496
|
});
|
|
4740
4497
|
|
|
4741
|
-
const _hoisted_1$
|
|
4742
|
-
const _sfc_main$
|
|
4498
|
+
const _hoisted_1$T = { class: "m-fields-data-source-field-select" };
|
|
4499
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
4743
4500
|
...{
|
|
4744
4501
|
name: "MFieldsDataSourceFieldSelect"
|
|
4745
4502
|
},
|
|
@@ -4840,8 +4597,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
4840
4597
|
}
|
|
4841
4598
|
};
|
|
4842
4599
|
return (_ctx, _cache) => {
|
|
4843
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4844
|
-
showDataSourceFieldSelect.value || !_ctx.config.fieldConfig ? (openBlock(), createBlock(_sfc_main$
|
|
4600
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
4601
|
+
showDataSourceFieldSelect.value || !_ctx.config.fieldConfig ? (openBlock(), createBlock(_sfc_main$1i, {
|
|
4845
4602
|
key: 0,
|
|
4846
4603
|
"model-value": _ctx.model[_ctx.name],
|
|
4847
4604
|
disabled: _ctx.disabled,
|
|
@@ -4876,7 +4633,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
4876
4633
|
onClick: _cache[0] || (_cache[0] = ($event) => showDataSourceFieldSelect.value = !showDataSourceFieldSelect.value)
|
|
4877
4634
|
}, {
|
|
4878
4635
|
default: withCtx(() => [
|
|
4879
|
-
createVNode(_sfc_main$
|
|
4636
|
+
createVNode(_sfc_main$1s, { icon: unref(Coin) }, null, 8, ["icon"])
|
|
4880
4637
|
]),
|
|
4881
4638
|
_: 1
|
|
4882
4639
|
}, 8, ["type", "size"])
|
|
@@ -4888,10 +4645,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
4888
4645
|
}
|
|
4889
4646
|
});
|
|
4890
4647
|
|
|
4891
|
-
const _hoisted_1$
|
|
4892
|
-
const _hoisted_2$
|
|
4893
|
-
const _hoisted_3$
|
|
4894
|
-
const _sfc_main$
|
|
4648
|
+
const _hoisted_1$S = { style: { "display": "flex", "flex-direction": "column", "line-height": "1.2em" } };
|
|
4649
|
+
const _hoisted_2$k = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
|
|
4650
|
+
const _hoisted_3$8 = { class: "el-input__inner t-input__inner" };
|
|
4651
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
4895
4652
|
...{
|
|
4896
4653
|
name: "MFieldsDataSourceInput"
|
|
4897
4654
|
},
|
|
@@ -5091,12 +4848,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
5091
4848
|
}
|
|
5092
4849
|
), {
|
|
5093
4850
|
suffix: withCtx(() => [
|
|
5094
|
-
createVNode(_sfc_main$
|
|
4851
|
+
createVNode(_sfc_main$1s, { icon: unref(Coin) }, null, 8, ["icon"])
|
|
5095
4852
|
]),
|
|
5096
4853
|
default: withCtx(({ item }) => [
|
|
5097
|
-
createElementVNode("div", _hoisted_1$
|
|
4854
|
+
createElementVNode("div", _hoisted_1$S, [
|
|
5098
4855
|
createElementVNode("div", null, toDisplayString(item.text), 1),
|
|
5099
|
-
createElementVNode("span", _hoisted_2$
|
|
4856
|
+
createElementVNode("span", _hoisted_2$k, toDisplayString(item.value), 1)
|
|
5100
4857
|
])
|
|
5101
4858
|
]),
|
|
5102
4859
|
_: 1
|
|
@@ -5108,7 +4865,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
5108
4865
|
createElementVNode("div", {
|
|
5109
4866
|
class: normalizeClass(`tmagic-data-source-input-text-wrapper el-input__wrapper ${isFocused.value ? " is-focus" : ""}`)
|
|
5110
4867
|
}, [
|
|
5111
|
-
createElementVNode("div", _hoisted_3$
|
|
4868
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
5112
4869
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayState.value, (item, index) => {
|
|
5113
4870
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
5114
4871
|
item.type === "text" ? (openBlock(), createElementBlock("span", {
|
|
@@ -5126,7 +4883,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
5126
4883
|
}, 1032, ["size"])) : createCommentVNode("", true)
|
|
5127
4884
|
], 64);
|
|
5128
4885
|
}), 256)),
|
|
5129
|
-
createVNode(_sfc_main$
|
|
4886
|
+
createVNode(_sfc_main$1s, {
|
|
5130
4887
|
class: "tmagic-data-source-input-icon",
|
|
5131
4888
|
icon: unref(Coin)
|
|
5132
4889
|
}, null, 8, ["icon"])
|
|
@@ -5137,11 +4894,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
5137
4894
|
}
|
|
5138
4895
|
});
|
|
5139
4896
|
|
|
5140
|
-
const _hoisted_1$
|
|
5141
|
-
const _hoisted_2$
|
|
5142
|
-
const _hoisted_3$
|
|
5143
|
-
const _hoisted_4$
|
|
5144
|
-
const _sfc_main$
|
|
4897
|
+
const _hoisted_1$R = { style: { "display": "flex", "margin-bottom": "10px" } };
|
|
4898
|
+
const _hoisted_2$j = { style: { "flex": "1" } };
|
|
4899
|
+
const _hoisted_3$7 = { style: { "flex": "1" } };
|
|
4900
|
+
const _hoisted_4$5 = { class: "dialog-footer" };
|
|
4901
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
5145
4902
|
...{
|
|
5146
4903
|
name: "MEditorCodeBlockEditor"
|
|
5147
4904
|
},
|
|
@@ -5314,7 +5071,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5314
5071
|
});
|
|
5315
5072
|
return (_ctx, _cache) => {
|
|
5316
5073
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
5317
|
-
createVNode(_sfc_main$
|
|
5074
|
+
createVNode(_sfc_main$1k, {
|
|
5318
5075
|
visible: boxVisible.value,
|
|
5319
5076
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => boxVisible.value = $event),
|
|
5320
5077
|
width: width.value,
|
|
@@ -5368,7 +5125,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5368
5125
|
fullscreen: ""
|
|
5369
5126
|
}, {
|
|
5370
5127
|
footer: withCtx(() => [
|
|
5371
|
-
createElementVNode("span", _hoisted_4$
|
|
5128
|
+
createElementVNode("span", _hoisted_4$5, [
|
|
5372
5129
|
createVNode(unref(TMagicButton), {
|
|
5373
5130
|
size: "small",
|
|
5374
5131
|
onClick: _cache[4] || (_cache[4] = ($event) => difVisible.value = false)
|
|
@@ -5391,8 +5148,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5391
5148
|
])
|
|
5392
5149
|
]),
|
|
5393
5150
|
default: withCtx(() => [
|
|
5394
|
-
createElementVNode("div", _hoisted_1$
|
|
5395
|
-
createElementVNode("div", _hoisted_2$
|
|
5151
|
+
createElementVNode("div", _hoisted_1$R, [
|
|
5152
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
5396
5153
|
createVNode(unref(TMagicTag), {
|
|
5397
5154
|
size: "small",
|
|
5398
5155
|
type: "info"
|
|
@@ -5403,7 +5160,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5403
5160
|
_: 1
|
|
5404
5161
|
})
|
|
5405
5162
|
]),
|
|
5406
|
-
createElementVNode("div", _hoisted_3$
|
|
5163
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
5407
5164
|
createVNode(unref(TMagicTag), {
|
|
5408
5165
|
size: "small",
|
|
5409
5166
|
type: "success"
|
|
@@ -5415,7 +5172,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5415
5172
|
})
|
|
5416
5173
|
])
|
|
5417
5174
|
]),
|
|
5418
|
-
difVisible.value ? (openBlock(), createBlock(_sfc_main$
|
|
5175
|
+
difVisible.value ? (openBlock(), createBlock(_sfc_main$1r, {
|
|
5419
5176
|
key: 0,
|
|
5420
5177
|
ref_key: "magicVsEditor",
|
|
5421
5178
|
ref: magicVsEditor,
|
|
@@ -5434,9 +5191,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
5434
5191
|
}
|
|
5435
5192
|
});
|
|
5436
5193
|
|
|
5437
|
-
const _hoisted_1$
|
|
5438
|
-
const _hoisted_2$
|
|
5439
|
-
const _sfc_main$
|
|
5194
|
+
const _hoisted_1$Q = { class: "m-editor-data-source-methods" };
|
|
5195
|
+
const _hoisted_2$i = { class: "m-editor-data-source-methods-footer" };
|
|
5196
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
5440
5197
|
...{
|
|
5441
5198
|
name: "MFieldsDataSourceMethods"
|
|
5442
5199
|
},
|
|
@@ -5557,12 +5314,12 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
5557
5314
|
codeBlockEditor.value?.hide();
|
|
5558
5315
|
};
|
|
5559
5316
|
return (_ctx, _cache) => {
|
|
5560
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5317
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
5561
5318
|
createVNode(unref(MagicTable), {
|
|
5562
5319
|
data: _ctx.model[_ctx.name],
|
|
5563
5320
|
columns: methodColumns
|
|
5564
5321
|
}, null, 8, ["data"]),
|
|
5565
|
-
createElementVNode("div", _hoisted_2$
|
|
5322
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
5566
5323
|
createVNode(unref(TMagicButton), {
|
|
5567
5324
|
size: "small",
|
|
5568
5325
|
type: "primary",
|
|
@@ -5576,7 +5333,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
5576
5333
|
_: 1
|
|
5577
5334
|
}, 8, ["disabled"])
|
|
5578
5335
|
]),
|
|
5579
|
-
codeConfig.value ? (openBlock(), createBlock(_sfc_main$
|
|
5336
|
+
codeConfig.value ? (openBlock(), createBlock(_sfc_main$1f, {
|
|
5580
5337
|
key: 0,
|
|
5581
5338
|
ref_key: "codeBlockEditor",
|
|
5582
5339
|
ref: codeBlockEditor,
|
|
@@ -5591,9 +5348,9 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
5591
5348
|
}
|
|
5592
5349
|
});
|
|
5593
5350
|
|
|
5594
|
-
const _hoisted_1$
|
|
5595
|
-
const _hoisted_2$
|
|
5596
|
-
const _sfc_main$
|
|
5351
|
+
const _hoisted_1$P = { class: "m-fields-data-source-method-select" };
|
|
5352
|
+
const _hoisted_2$h = { class: "data-source-method-select-container" };
|
|
5353
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
5597
5354
|
...{
|
|
5598
5355
|
name: "MFieldsDataSourceMethodSelect"
|
|
5599
5356
|
},
|
|
@@ -5679,8 +5436,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5679
5436
|
eventBus?.emit("edit-data-source", id);
|
|
5680
5437
|
};
|
|
5681
5438
|
return (_ctx, _cache) => {
|
|
5682
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5683
|
-
createElementVNode("div", _hoisted_2$
|
|
5439
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
5440
|
+
createElementVNode("div", _hoisted_2$h, [
|
|
5684
5441
|
createVNode(unref(MContainer), {
|
|
5685
5442
|
class: "select",
|
|
5686
5443
|
config: cascaderConfig.value,
|
|
@@ -5699,7 +5456,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5699
5456
|
onClick: editCodeHandler
|
|
5700
5457
|
}, {
|
|
5701
5458
|
default: withCtx(() => [
|
|
5702
|
-
createVNode(_sfc_main$
|
|
5459
|
+
createVNode(_sfc_main$1s, {
|
|
5703
5460
|
icon: !notEditable.value ? unref(Edit) : unref(View)
|
|
5704
5461
|
}, null, 8, ["icon"])
|
|
5705
5462
|
]),
|
|
@@ -5709,7 +5466,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5709
5466
|
_: 1
|
|
5710
5467
|
}, 8, ["content"])) : createCommentVNode("", true)
|
|
5711
5468
|
]),
|
|
5712
|
-
paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
5469
|
+
paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
5713
5470
|
key: 0,
|
|
5714
5471
|
name: "params",
|
|
5715
5472
|
model: _ctx.model,
|
|
@@ -5723,9 +5480,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
5723
5480
|
}
|
|
5724
5481
|
});
|
|
5725
5482
|
|
|
5726
|
-
const _hoisted_1$
|
|
5727
|
-
const _hoisted_2$
|
|
5728
|
-
const _sfc_main$
|
|
5483
|
+
const _hoisted_1$O = { class: "m-editor-data-source-fields" };
|
|
5484
|
+
const _hoisted_2$g = { class: "m-editor-data-source-fields-footer" };
|
|
5485
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
5729
5486
|
...{
|
|
5730
5487
|
name: "MFieldsDataSourceMocks"
|
|
5731
5488
|
},
|
|
@@ -5814,7 +5571,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5814
5571
|
const columns = [
|
|
5815
5572
|
{
|
|
5816
5573
|
type: "expand",
|
|
5817
|
-
component: _sfc_main$
|
|
5574
|
+
component: _sfc_main$1r,
|
|
5818
5575
|
props: (row) => ({
|
|
5819
5576
|
initValues: row.data,
|
|
5820
5577
|
language: "json",
|
|
@@ -5929,12 +5686,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5929
5686
|
const parentFloating = inject("parentFloating", ref(null));
|
|
5930
5687
|
const { boxPosition, calcBoxPosition } = useNextFloatBoxPosition(services?.uiService, parentFloating);
|
|
5931
5688
|
return (_ctx, _cache) => {
|
|
5932
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5689
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
5933
5690
|
createVNode(unref(MagicTable), {
|
|
5934
5691
|
data: _ctx.model[_ctx.name],
|
|
5935
5692
|
columns
|
|
5936
5693
|
}, null, 8, ["data"]),
|
|
5937
|
-
createElementVNode("div", _hoisted_2$
|
|
5694
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
5938
5695
|
createVNode(unref(TMagicButton), {
|
|
5939
5696
|
size: "small",
|
|
5940
5697
|
type: "primary",
|
|
@@ -5948,7 +5705,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5948
5705
|
_: 1
|
|
5949
5706
|
}, 8, ["disabled"])
|
|
5950
5707
|
]),
|
|
5951
|
-
createVNode(_sfc_main$
|
|
5708
|
+
createVNode(_sfc_main$1k, {
|
|
5952
5709
|
visible: addDialogVisible.value,
|
|
5953
5710
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => addDialogVisible.value = $event),
|
|
5954
5711
|
width: width.value,
|
|
@@ -5975,8 +5732,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5975
5732
|
}
|
|
5976
5733
|
});
|
|
5977
5734
|
|
|
5978
|
-
const _hoisted_1$
|
|
5979
|
-
const _sfc_main$
|
|
5735
|
+
const _hoisted_1$N = { class: "m-fields-data-source-select" };
|
|
5736
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
5980
5737
|
...{
|
|
5981
5738
|
name: "MFieldsDataSourceSelect"
|
|
5982
5739
|
},
|
|
@@ -6033,7 +5790,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
6033
5790
|
eventBus?.emit("edit-data-source", id);
|
|
6034
5791
|
};
|
|
6035
5792
|
return (_ctx, _cache) => {
|
|
6036
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5793
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
6037
5794
|
createVNode(unref(MSelect), {
|
|
6038
5795
|
model: _ctx.model,
|
|
6039
5796
|
name: _ctx.name,
|
|
@@ -6055,7 +5812,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
6055
5812
|
onClick: editHandler
|
|
6056
5813
|
}, {
|
|
6057
5814
|
default: withCtx(() => [
|
|
6058
|
-
createVNode(_sfc_main$
|
|
5815
|
+
createVNode(_sfc_main$1s, {
|
|
6059
5816
|
icon: !notEditable.value ? unref(Edit) : unref(View)
|
|
6060
5817
|
}, null, 8, ["icon"])
|
|
6061
5818
|
]),
|
|
@@ -6069,7 +5826,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
6069
5826
|
}
|
|
6070
5827
|
});
|
|
6071
5828
|
|
|
6072
|
-
const _sfc_main$
|
|
5829
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
6073
5830
|
...{
|
|
6074
5831
|
name: "m-fields-display-conds"
|
|
6075
5832
|
},
|
|
@@ -6101,7 +5858,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
6101
5858
|
{
|
|
6102
5859
|
type: "table",
|
|
6103
5860
|
name: "cond",
|
|
6104
|
-
operateColWidth:
|
|
5861
|
+
operateColWidth: 100,
|
|
5862
|
+
enableToggleMode: false,
|
|
6105
5863
|
items: [
|
|
6106
5864
|
parentFields.value.length ? {
|
|
6107
5865
|
type: "cascader",
|
|
@@ -6200,12 +5958,12 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
6200
5958
|
}
|
|
6201
5959
|
});
|
|
6202
5960
|
|
|
6203
|
-
const _hoisted_1$
|
|
6204
|
-
const _hoisted_2$
|
|
5961
|
+
const _hoisted_1$M = { class: "m-fields-event-select" };
|
|
5962
|
+
const _hoisted_2$f = {
|
|
6205
5963
|
key: 1,
|
|
6206
5964
|
class: "fullWidth"
|
|
6207
5965
|
};
|
|
6208
|
-
const _sfc_main$
|
|
5966
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
6209
5967
|
...{
|
|
6210
5968
|
name: "MFieldsEventSelect"
|
|
6211
5969
|
},
|
|
@@ -6481,7 +6239,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
6481
6239
|
const onChangeHandler = (v, eventData) => emit("change", props.model[props.name], eventData);
|
|
6482
6240
|
return (_ctx, _cache) => {
|
|
6483
6241
|
const _component_m_form_table = resolveComponent("m-form-table");
|
|
6484
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6242
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
6485
6243
|
isOldVersion.value ? (openBlock(), createBlock(_component_m_form_table, {
|
|
6486
6244
|
key: 0,
|
|
6487
6245
|
name: "events",
|
|
@@ -6490,7 +6248,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
6490
6248
|
model: _ctx.model,
|
|
6491
6249
|
config: tableConfig.value,
|
|
6492
6250
|
onChange: onChangeHandler
|
|
6493
|
-
}, null, 8, ["size", "disabled", "model", "config"])) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6251
|
+
}, null, 8, ["size", "disabled", "model", "config"])) : (openBlock(), createElementBlock("div", _hoisted_2$f, [
|
|
6494
6252
|
createVNode(unref(TMagicButton), {
|
|
6495
6253
|
class: "create-button",
|
|
6496
6254
|
type: "primary",
|
|
@@ -6542,29 +6300,29 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
6542
6300
|
}
|
|
6543
6301
|
});
|
|
6544
6302
|
|
|
6545
|
-
const _hoisted_1$
|
|
6303
|
+
const _hoisted_1$L = {
|
|
6546
6304
|
viewBox: "0 0 32 32",
|
|
6547
6305
|
version: "1.1",
|
|
6548
6306
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6549
6307
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
6550
6308
|
};
|
|
6551
|
-
const _sfc_main$
|
|
6309
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
6552
6310
|
...{
|
|
6553
6311
|
name: "MEditorCodeIcon"
|
|
6554
6312
|
},
|
|
6555
6313
|
__name: "CodeIcon",
|
|
6556
6314
|
setup(__props) {
|
|
6557
6315
|
return (_ctx, _cache) => {
|
|
6558
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
6316
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$L, _cache[0] || (_cache[0] = [
|
|
6559
6317
|
createStaticVNode('<defs><rect id="path-1" x="0" y="0" width="32" height="32"></rect></defs><g id="组件规范" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="03图标" transform="translate(-561.000000, -2356.000000)"><g id="icon/line/Universal/code" transform="translate(561.000000, 2356.000000)"><g id="路径"><mask id="mask-2" fill="white"><use xlink:href="#path-1"></use></mask><use id="蒙版" fill="#D8D8D8" opacity="0" xlink:href="#path-1"></use><path d="M21.9284587,7.9482233 L29.8079004,15.827665 C29.9055315,15.9252961 29.9055315,16.0835874 29.8079004,16.1812184 L21.9284587,24.0606602 C21.8308276,24.1582912 21.6725364,24.1582912 21.5749053,24.0606602 L20.3374684,22.8232233 C20.2419143,22.7276698 20.2398813,22.5740096 20.331369,22.4759832 L20.3374687,22.4696702 L26.8027181,16.0044417 L20.3374687,9.53921328 C20.2398372,9.44158265 20.2398369,9.2832914 20.3374679,9.18566017 L21.5749053,7.9482233 C21.6725364,7.85059223 21.8308276,7.85059223 21.9284587,7.9482233 Z M10.3999684,7.9482233 L11.6374053,9.18566017 C11.7329594,9.28121371 11.7349925,9.43487387 11.6435048,9.53290029 L11.637405,9.53921328 L5.17215562,16.0044417 L11.637405,22.4696702 C11.7329593,22.5652236 11.7349926,22.7188837 11.643505,22.8169103 L11.6374053,22.8232233 L10.3999684,24.0606602 C10.3023374,24.1582912 10.1440461,24.1582912 10.046415,24.0606602 L2.1669733,16.1812184 C2.06934223,16.0835874 2.06934223,15.9252961 2.1669733,15.827665 L10.046415,7.9482233 C10.1440461,7.85059223 10.3023374,7.85059223 10.3999684,7.9482233 Z M17.2612532,9.29310422 L18.9262468,9.83189578 C19.0576112,9.87440526 19.1296423,10.0153579 19.0871328,10.1467222 L15.0848232,22.514807 C15.0423138,22.6461714 14.9013612,22.7182025 14.7699968,22.675693 L13.1050032,22.1369014 C12.9736388,22.0943919 12.9016077,21.9534393 12.9441172,21.822075 L16.9464268,9.45399022 C16.9889362,9.32262585 17.1298888,9.25059474 17.2612532,9.29310422 Z" id="形状" fill="#1D1F24" mask="url(#mask-2)"></path></g></g><g id="icon切图" transform="translate(226.000000, 1782.000000)"></g></g></g>', 2)
|
|
6560
6318
|
]));
|
|
6561
6319
|
};
|
|
6562
6320
|
}
|
|
6563
6321
|
});
|
|
6564
6322
|
|
|
6565
|
-
const _hoisted_1$
|
|
6566
|
-
const _hoisted_2$
|
|
6567
|
-
const _sfc_main$
|
|
6323
|
+
const _hoisted_1$K = { class: "m-fields-key-value" };
|
|
6324
|
+
const _hoisted_2$e = { key: 0 };
|
|
6325
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
6568
6326
|
...{
|
|
6569
6327
|
name: "MFieldsKeyValue"
|
|
6570
6328
|
},
|
|
@@ -6626,8 +6384,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6626
6384
|
emit("change", v);
|
|
6627
6385
|
};
|
|
6628
6386
|
return (_ctx, _cache) => {
|
|
6629
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6630
|
-
!showCode.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6387
|
+
return openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
6388
|
+
!showCode.value ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
|
|
6631
6389
|
(openBlock(true), createElementBlock(Fragment, null, renderList(records.value, (item, index) => {
|
|
6632
6390
|
return openBlock(), createElementBlock("div", {
|
|
6633
6391
|
class: "m-fields-key-value-item",
|
|
@@ -6676,7 +6434,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6676
6434
|
_: 1
|
|
6677
6435
|
}, 8, ["size", "disabled", "icon"])
|
|
6678
6436
|
])) : createCommentVNode("", true),
|
|
6679
|
-
_ctx.config.advanced && showCode.value ? (openBlock(), createBlock(_sfc_main$
|
|
6437
|
+
_ctx.config.advanced && showCode.value ? (openBlock(), createBlock(_sfc_main$1r, {
|
|
6680
6438
|
key: 1,
|
|
6681
6439
|
height: "200px",
|
|
6682
6440
|
"init-values": _ctx.model[_ctx.name],
|
|
@@ -6692,7 +6450,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6692
6450
|
size: "default",
|
|
6693
6451
|
disabled: _ctx.disabled,
|
|
6694
6452
|
link: "",
|
|
6695
|
-
icon: _sfc_main$
|
|
6453
|
+
icon: _sfc_main$18,
|
|
6696
6454
|
onClick: _cache[0] || (_cache[0] = ($event) => showCode.value = !showCode.value)
|
|
6697
6455
|
}, null, 8, ["disabled"])) : createCommentVNode("", true)
|
|
6698
6456
|
]);
|
|
@@ -6700,9 +6458,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6700
6458
|
}
|
|
6701
6459
|
});
|
|
6702
6460
|
|
|
6703
|
-
const _hoisted_1$
|
|
6704
|
-
const _hoisted_2$
|
|
6705
|
-
const _sfc_main$
|
|
6461
|
+
const _hoisted_1$J = { class: "m-fields-page-fragment-select" };
|
|
6462
|
+
const _hoisted_2$d = { class: "page-fragment-select-container" };
|
|
6463
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
6706
6464
|
...{
|
|
6707
6465
|
name: "MFieldsPageFragmentSelect"
|
|
6708
6466
|
},
|
|
@@ -6748,8 +6506,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
6748
6506
|
};
|
|
6749
6507
|
return (_ctx, _cache) => {
|
|
6750
6508
|
const _component_m_form_container = resolveComponent("m-form-container");
|
|
6751
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
6752
|
-
createElementVNode("div", _hoisted_2$
|
|
6509
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
6510
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
6753
6511
|
createVNode(_component_m_form_container, {
|
|
6754
6512
|
class: "select",
|
|
6755
6513
|
config: selectConfig,
|
|
@@ -6757,7 +6515,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
6757
6515
|
size: _ctx.size,
|
|
6758
6516
|
onChange: changeHandler
|
|
6759
6517
|
}, null, 8, ["model", "size"]),
|
|
6760
|
-
_ctx.model[_ctx.name] ? (openBlock(), createBlock(_sfc_main$
|
|
6518
|
+
_ctx.model[_ctx.name] ? (openBlock(), createBlock(_sfc_main$1s, {
|
|
6761
6519
|
key: 0,
|
|
6762
6520
|
class: "icon",
|
|
6763
6521
|
icon: unref(Edit),
|
|
@@ -6769,16 +6527,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
6769
6527
|
}
|
|
6770
6528
|
});
|
|
6771
6529
|
|
|
6772
|
-
const _hoisted_1$
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
6778
|
-
...{
|
|
6779
|
-
name: "MFieldsUISelect"
|
|
6780
|
-
},
|
|
6781
|
-
__name: "UISelect",
|
|
6530
|
+
const _hoisted_1$I = { class: "background-position-container" };
|
|
6531
|
+
const _hoisted_2$c = { class: "presets-value-list" };
|
|
6532
|
+
const _hoisted_3$6 = { class: "custom-value" };
|
|
6533
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
6534
|
+
__name: "BackgroundPosition",
|
|
6782
6535
|
props: {
|
|
6783
6536
|
config: {},
|
|
6784
6537
|
model: {},
|
|
@@ -6792,54 +6545,1184 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
6792
6545
|
},
|
|
6793
6546
|
emits: ["change"],
|
|
6794
6547
|
setup(__props, { emit: __emit }) {
|
|
6795
|
-
const props = __props;
|
|
6796
6548
|
const emit = __emit;
|
|
6797
|
-
const
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
if (detail.nodeType) {
|
|
6810
|
-
id = getIdFromEl()(detail) || id;
|
|
6811
|
-
}
|
|
6812
|
-
if (id) {
|
|
6813
|
-
props.model[props.name] = id;
|
|
6814
|
-
emit("change", id);
|
|
6815
|
-
mForm?.$emit("field-change", props.prop, id);
|
|
6816
|
-
}
|
|
6817
|
-
if (cancelHandler) {
|
|
6818
|
-
cancelHandler();
|
|
6549
|
+
const horizontalList = [
|
|
6550
|
+
{
|
|
6551
|
+
value: "left",
|
|
6552
|
+
text: "左"
|
|
6553
|
+
},
|
|
6554
|
+
{
|
|
6555
|
+
value: "center",
|
|
6556
|
+
text: "中"
|
|
6557
|
+
},
|
|
6558
|
+
{
|
|
6559
|
+
value: "right",
|
|
6560
|
+
text: "右"
|
|
6819
6561
|
}
|
|
6820
|
-
|
|
6821
|
-
const
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
props.model[props.name] = "";
|
|
6834
|
-
emit("change", "");
|
|
6835
|
-
mForm?.$emit("field-change", props.prop, "");
|
|
6562
|
+
];
|
|
6563
|
+
const verticalList = [
|
|
6564
|
+
{
|
|
6565
|
+
value: "top",
|
|
6566
|
+
text: "上"
|
|
6567
|
+
},
|
|
6568
|
+
{
|
|
6569
|
+
value: "center",
|
|
6570
|
+
text: "中"
|
|
6571
|
+
},
|
|
6572
|
+
{
|
|
6573
|
+
value: "bottom",
|
|
6574
|
+
text: "下"
|
|
6836
6575
|
}
|
|
6576
|
+
];
|
|
6577
|
+
const list = verticalList.map(
|
|
6578
|
+
(vertical) => horizontalList.map((horizontal) => ({
|
|
6579
|
+
value: `${horizontal.value} ${vertical.value}`,
|
|
6580
|
+
tips: `${horizontal.text}${vertical.text}`,
|
|
6581
|
+
class: `${horizontal.value}-${vertical.value}`
|
|
6582
|
+
}))
|
|
6583
|
+
).flat();
|
|
6584
|
+
const changeHandler = (v) => {
|
|
6585
|
+
emit("change", v);
|
|
6837
6586
|
};
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6587
|
+
return (_ctx, _cache) => {
|
|
6588
|
+
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
6589
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
6590
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), (item, index) => {
|
|
6591
|
+
return openBlock(), createBlock(unref(TMagicButton), {
|
|
6592
|
+
key: index,
|
|
6593
|
+
link: "",
|
|
6594
|
+
class: normalizeClass(_ctx.model[_ctx.name] === item.value && "btn-active"),
|
|
6595
|
+
onClick: ($event) => changeHandler(item.value)
|
|
6596
|
+
}, {
|
|
6597
|
+
default: withCtx(() => [
|
|
6598
|
+
createElementVNode("div", {
|
|
6599
|
+
class: normalizeClass(["position-icon", item.class, _ctx.model[_ctx.name] === item.value && "active"])
|
|
6600
|
+
}, null, 2)
|
|
6601
|
+
]),
|
|
6602
|
+
_: 2
|
|
6603
|
+
}, 1032, ["class", "onClick"]);
|
|
6604
|
+
}), 128))
|
|
6605
|
+
]),
|
|
6606
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
6607
|
+
createVNode(unref(TMagicInput), {
|
|
6608
|
+
modelValue: _ctx.model[_ctx.name],
|
|
6609
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
6610
|
+
size: "small",
|
|
6611
|
+
placeholder: "自定义背景位置",
|
|
6612
|
+
clearable: "",
|
|
6613
|
+
onChange: changeHandler
|
|
6614
|
+
}, null, 8, ["modelValue"])
|
|
6615
|
+
])
|
|
6616
|
+
]);
|
|
6617
|
+
};
|
|
6618
|
+
}
|
|
6619
|
+
});
|
|
6620
|
+
|
|
6621
|
+
const _export_sfc = (sfc, props) => {
|
|
6622
|
+
const target = sfc.__vccOpts || sfc;
|
|
6623
|
+
for (const [key, val] of props) {
|
|
6624
|
+
target[key] = val;
|
|
6625
|
+
}
|
|
6626
|
+
return target;
|
|
6627
|
+
};
|
|
6628
|
+
|
|
6629
|
+
const _sfc_main$14 = {};
|
|
6630
|
+
|
|
6631
|
+
const _hoisted_1$H = {
|
|
6632
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6633
|
+
viewBox: "0 0 1024 1024"
|
|
6634
|
+
};
|
|
6635
|
+
|
|
6636
|
+
function _sfc_render$k(_ctx, _cache) {
|
|
6637
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$H, _cache[0] || (_cache[0] = [
|
|
6638
|
+
createStaticVNode("<path d=\"M884.736 102.4l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456C696.32 311.296 712.704 327.68 733.184 327.68l147.456 0c20.48 0 36.864-16.384 36.864-36.864L917.504 139.264C921.6 118.784 905.216 102.4 884.736 102.4zM884.736 290.816l-147.456 0L737.28 139.264l147.456 0L884.736 290.816z\"></path><path d=\"M884.736 696.32l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C921.6 712.704 905.216 696.32 884.736 696.32zM884.736 884.736l-147.456 0 0-147.456 147.456 0L884.736 884.736z\"></path><path d=\"M884.736 401.408l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C921.6 417.792 905.216 401.408 884.736 401.408zM884.736 585.728l-147.456 0 0-147.456 147.456 0L884.736 585.728z\"></path><path d=\"M585.728 401.408l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C622.592 417.792 606.208 401.408 585.728 401.408zM585.728 585.728l-147.456 0 0-147.456 147.456 0L585.728 585.728z\"></path><path d=\"M585.728 102.4l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864L622.592 139.264C622.592 118.784 606.208 102.4 585.728 102.4zM585.728 290.816l-147.456 0L438.272 139.264l147.456 0L585.728 290.816z\"></path><path d=\"M585.728 696.32l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C622.592 712.704 606.208 696.32 585.728 696.32zM585.728 884.736l-147.456 0 0-147.456 147.456 0L585.728 884.736z\"></path><path d=\"M290.816 696.32 139.264 696.32c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C327.68 712.704 311.296 696.32 290.816 696.32zM290.816 884.736 139.264 884.736l0-147.456 147.456 0L286.72 884.736z\"></path><path d=\"M290.816 401.408 139.264 401.408c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C327.68 417.792 311.296 401.408 290.816 401.408zM290.816 585.728 139.264 585.728l0-147.456 147.456 0L286.72 585.728z\"></path><path d=\"M290.816 102.4 139.264 102.4c-20.48 0-36.864 16.384-36.864 36.864l0 147.456C102.4 311.296 118.784 327.68 139.264 327.68l147.456 0C311.296 327.68 327.68 311.296 327.68 290.816L327.68 139.264C327.68 118.784 311.296 102.4 290.816 102.4zM290.816 290.816 139.264 290.816 139.264 139.264l147.456 0L286.72 290.816z\"></path>", 9)
|
|
6639
|
+
])))
|
|
6640
|
+
}
|
|
6641
|
+
const BackgroundRepeat = /*#__PURE__*/_export_sfc(_sfc_main$14, [['render',_sfc_render$k]]);
|
|
6642
|
+
|
|
6643
|
+
const _sfc_main$13 = {};
|
|
6644
|
+
|
|
6645
|
+
const _hoisted_1$G = {
|
|
6646
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6647
|
+
viewBox: "0 0 1024 1024"
|
|
6648
|
+
};
|
|
6649
|
+
|
|
6650
|
+
function _sfc_render$j(_ctx, _cache) {
|
|
6651
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$G, _cache[0] || (_cache[0] = [
|
|
6652
|
+
createElementVNode("path", {
|
|
6653
|
+
d: "M796.444444 170.666667h-227.555555v682.666666h227.555555V170.666667z m-56.888888 625.777777h-113.777778V227.555556h113.777778v568.888888zM455.111111 170.666667H227.555556v682.666666h227.555555V170.666667zM398.222222 796.444444H284.444444V227.555556h113.777778v568.888888zM910.222222 56.888889h56.888889v910.222222h-56.888889zM56.888889 56.888889h56.888889v910.222222H56.888889z",
|
|
6654
|
+
fill: "#333333"
|
|
6655
|
+
}, null, -1)
|
|
6656
|
+
])))
|
|
6657
|
+
}
|
|
6658
|
+
const BackgroundRepeatX = /*#__PURE__*/_export_sfc(_sfc_main$13, [['render',_sfc_render$j]]);
|
|
6659
|
+
|
|
6660
|
+
const _sfc_main$12 = {};
|
|
6661
|
+
|
|
6662
|
+
const _hoisted_1$F = {
|
|
6663
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6664
|
+
viewBox: "0 0 1024 1024"
|
|
6665
|
+
};
|
|
6666
|
+
|
|
6667
|
+
function _sfc_render$i(_ctx, _cache) {
|
|
6668
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$F, _cache[0] || (_cache[0] = [
|
|
6669
|
+
createElementVNode("path", {
|
|
6670
|
+
d: "M170.666667 227.555556v227.555555h682.666666V227.555556H170.666667z m625.777777 56.888888v113.777778H227.555556V284.444444h568.888888zM170.666667 568.888889v227.555555h682.666666v-227.555555H170.666667z m625.777777 56.888889v113.777778H227.555556v-113.777778h568.888888zM56.888889 56.888889h910.222222v56.888889H56.888889zM56.888889 910.222222h910.222222v56.888889H56.888889z",
|
|
6671
|
+
fill: "#333333"
|
|
6672
|
+
}, null, -1)
|
|
6673
|
+
])))
|
|
6674
|
+
}
|
|
6675
|
+
const BackgroundRepeatY = /*#__PURE__*/_export_sfc(_sfc_main$12, [['render',_sfc_render$i]]);
|
|
6676
|
+
|
|
6677
|
+
const _sfc_main$11 = {};
|
|
6678
|
+
|
|
6679
|
+
const _hoisted_1$E = {
|
|
6680
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6681
|
+
viewBox: "0 0 1024 1024"
|
|
6682
|
+
};
|
|
6683
|
+
|
|
6684
|
+
function _sfc_render$h(_ctx, _cache) {
|
|
6685
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$E, _cache[0] || (_cache[0] = [
|
|
6686
|
+
createElementVNode("path", {
|
|
6687
|
+
d: "M912.526651 867.741144 555.540144 510.712681l356.986507-357.000833c11.171434-11.18576 11.171434-29.257348 0-40.443108-11.20111-11.18576-29.272697-11.18576-40.444131 0L515.096013 470.267527 158.096203 113.267716c-11.187807-11.159154-29.258371-11.159154-40.444131 0-11.186783 11.186783-11.186783 29.286 0 40.47176L474.623229 510.712681 117.623419 867.741144c-11.159154 11.172457-11.159154 29.216415 0 40.443108 11.18576 11.17348 29.284977 11.17348 40.47176 0l357.000833-357.027439 356.985484 357.027439c11.171434 11.17348 29.243021 11.17348 40.444131 0C923.698085 896.957559 923.725714 878.913601 912.526651 867.741144z",
|
|
6688
|
+
fill: "#5D5D5D"
|
|
6689
|
+
}, null, -1)
|
|
6690
|
+
])))
|
|
6691
|
+
}
|
|
6692
|
+
const BackgroundNoRepeat = /*#__PURE__*/_export_sfc(_sfc_main$11, [['render',_sfc_render$h]]);
|
|
6693
|
+
|
|
6694
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
6695
|
+
__name: "Background",
|
|
6696
|
+
props: {
|
|
6697
|
+
values: {}
|
|
6698
|
+
},
|
|
6699
|
+
emits: ["change"],
|
|
6700
|
+
setup(__props, { emit: __emit }) {
|
|
6701
|
+
const emit = __emit;
|
|
6702
|
+
const config = {
|
|
6703
|
+
items: [
|
|
6704
|
+
{
|
|
6705
|
+
name: "backgroundColor",
|
|
6706
|
+
text: "背景色",
|
|
6707
|
+
labelWidth: "68px",
|
|
6708
|
+
type: "data-source-field-select",
|
|
6709
|
+
fieldConfig: {
|
|
6710
|
+
type: "colorPicker"
|
|
6711
|
+
}
|
|
6712
|
+
},
|
|
6713
|
+
{
|
|
6714
|
+
name: "backgroundImage",
|
|
6715
|
+
text: "背景图",
|
|
6716
|
+
labelWidth: "68px",
|
|
6717
|
+
type: "data-source-field-select",
|
|
6718
|
+
fieldConfig: {
|
|
6719
|
+
type: "img-upload"
|
|
6720
|
+
}
|
|
6721
|
+
},
|
|
6722
|
+
{
|
|
6723
|
+
name: "backgroundSize",
|
|
6724
|
+
text: "背景尺寸",
|
|
6725
|
+
type: "radioGroup",
|
|
6726
|
+
childType: "button",
|
|
6727
|
+
labelWidth: "68px",
|
|
6728
|
+
options: [
|
|
6729
|
+
{ value: "auto", text: "默认", tooltip: "默认 auto" },
|
|
6730
|
+
{ value: "contain", text: "等比填充", tooltip: "等比填充 contain" },
|
|
6731
|
+
{ value: "cover", text: "等比覆盖", tooltip: "等比覆盖 cover" }
|
|
6732
|
+
]
|
|
6733
|
+
},
|
|
6734
|
+
{
|
|
6735
|
+
name: "backgroundRepeat",
|
|
6736
|
+
text: "重复显示",
|
|
6737
|
+
type: "radioGroup",
|
|
6738
|
+
childType: "button",
|
|
6739
|
+
labelWidth: "68px",
|
|
6740
|
+
options: [
|
|
6741
|
+
{ value: "repeat", icon: markRaw(BackgroundRepeat), tooltip: "垂直和水平方向重复 repeat" },
|
|
6742
|
+
{ value: "repeat-x", icon: markRaw(BackgroundRepeatX), tooltip: "水平方向重复 repeat-x" },
|
|
6743
|
+
{ value: "repeat-y", icon: markRaw(BackgroundRepeatY), tooltip: "垂直方向重复 repeat-y" },
|
|
6744
|
+
{ value: "no-repeat", icon: markRaw(BackgroundNoRepeat), tooltip: "不重复 no-repeat" }
|
|
6745
|
+
]
|
|
6746
|
+
},
|
|
6747
|
+
{
|
|
6748
|
+
name: "backgroundPosition",
|
|
6749
|
+
text: "背景定位",
|
|
6750
|
+
type: "component",
|
|
6751
|
+
component: _sfc_main$15,
|
|
6752
|
+
labelWidth: "68px"
|
|
6753
|
+
}
|
|
6754
|
+
]
|
|
6755
|
+
};
|
|
6756
|
+
const change = (value, eventData) => {
|
|
6757
|
+
emit("change", value, eventData);
|
|
6758
|
+
};
|
|
6759
|
+
return (_ctx, _cache) => {
|
|
6760
|
+
return openBlock(), createBlock(unref(MContainer), {
|
|
6761
|
+
config,
|
|
6762
|
+
model: _ctx.values,
|
|
6763
|
+
onChange: change
|
|
6764
|
+
}, null, 8, ["model"]);
|
|
6765
|
+
};
|
|
6766
|
+
}
|
|
6767
|
+
});
|
|
6768
|
+
|
|
6769
|
+
const _sfc_main$$ = {};
|
|
6770
|
+
|
|
6771
|
+
const _hoisted_1$D = {
|
|
6772
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6773
|
+
viewBox: "0 0 1024 1024"
|
|
6774
|
+
};
|
|
6775
|
+
|
|
6776
|
+
function _sfc_render$g(_ctx, _cache) {
|
|
6777
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$D, _cache[0] || (_cache[0] = [
|
|
6778
|
+
createElementVNode("path", { d: "M128 810.666667h768v85.333333H128z m0-170.666667h512v85.333333H128z m0-170.666667h768v85.333334H128z m0-341.333333h768v85.333333H128z m0 170.666667h512v85.333333H128z" }, null, -1)
|
|
6779
|
+
])))
|
|
6780
|
+
}
|
|
6781
|
+
const AlignLeft = /*#__PURE__*/_export_sfc(_sfc_main$$, [['render',_sfc_render$g]]);
|
|
6782
|
+
|
|
6783
|
+
const _sfc_main$_ = {};
|
|
6784
|
+
|
|
6785
|
+
const _hoisted_1$C = {
|
|
6786
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6787
|
+
viewBox: "0 0 1024 1024"
|
|
6788
|
+
};
|
|
6789
|
+
|
|
6790
|
+
function _sfc_render$f(_ctx, _cache) {
|
|
6791
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$C, _cache[0] || (_cache[0] = [
|
|
6792
|
+
createElementVNode("path", { d: "M128 810.666667h768v85.333333H128z m128-170.666667h512v85.333333H256z m-128-170.666667h768v85.333334H128z m0-341.333333h768v85.333333H128z m128 170.666667h512v85.333333H256z" }, null, -1)
|
|
6793
|
+
])))
|
|
6794
|
+
}
|
|
6795
|
+
const AlignCenter = /*#__PURE__*/_export_sfc(_sfc_main$_, [['render',_sfc_render$f]]);
|
|
6796
|
+
|
|
6797
|
+
const _sfc_main$Z = {};
|
|
6798
|
+
|
|
6799
|
+
const _hoisted_1$B = {
|
|
6800
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6801
|
+
viewBox: "0 0 1024 1024"
|
|
6802
|
+
};
|
|
6803
|
+
|
|
6804
|
+
function _sfc_render$e(_ctx, _cache) {
|
|
6805
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$B, _cache[0] || (_cache[0] = [
|
|
6806
|
+
createElementVNode("path", { d: "M128 128h768v85.333333H128z m0 682.666667h768v85.333333H128z m213.333333-170.666667h554.666667v85.333333H341.333333z m-213.333333-170.666667h768v85.333334H128z m213.333333-170.666666h554.666667v85.333333H341.333333z" }, null, -1)
|
|
6807
|
+
])))
|
|
6808
|
+
}
|
|
6809
|
+
const AlignRight = /*#__PURE__*/_export_sfc(_sfc_main$Z, [['render',_sfc_render$e]]);
|
|
6810
|
+
|
|
6811
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
6812
|
+
__name: "Font",
|
|
6813
|
+
props: {
|
|
6814
|
+
values: {}
|
|
6815
|
+
},
|
|
6816
|
+
emits: ["change"],
|
|
6817
|
+
setup(__props, { emit: __emit }) {
|
|
6818
|
+
const emit = __emit;
|
|
6819
|
+
const config = {
|
|
6820
|
+
items: [
|
|
6821
|
+
{
|
|
6822
|
+
type: "row",
|
|
6823
|
+
items: [
|
|
6824
|
+
{
|
|
6825
|
+
labelWidth: "68px",
|
|
6826
|
+
name: "fontSize",
|
|
6827
|
+
text: "字号",
|
|
6828
|
+
type: "data-source-field-select",
|
|
6829
|
+
fieldConfig: {
|
|
6830
|
+
type: "text"
|
|
6831
|
+
}
|
|
6832
|
+
},
|
|
6833
|
+
{
|
|
6834
|
+
labelWidth: "68px",
|
|
6835
|
+
name: "lineHeight",
|
|
6836
|
+
text: "行高",
|
|
6837
|
+
type: "data-source-field-select",
|
|
6838
|
+
fieldConfig: {
|
|
6839
|
+
type: "text"
|
|
6840
|
+
}
|
|
6841
|
+
}
|
|
6842
|
+
]
|
|
6843
|
+
},
|
|
6844
|
+
{
|
|
6845
|
+
name: "fontWeight",
|
|
6846
|
+
text: "字重",
|
|
6847
|
+
labelWidth: "68px",
|
|
6848
|
+
type: "data-source-field-select",
|
|
6849
|
+
fieldConfig: {
|
|
6850
|
+
type: "select",
|
|
6851
|
+
options: ["normal", "bold"].concat(
|
|
6852
|
+
Array(7).fill(1).map((x, i) => `${i + 1}00`)
|
|
6853
|
+
).map((item) => ({
|
|
6854
|
+
value: item,
|
|
6855
|
+
text: item
|
|
6856
|
+
}))
|
|
6857
|
+
}
|
|
6858
|
+
},
|
|
6859
|
+
{
|
|
6860
|
+
labelWidth: "68px",
|
|
6861
|
+
name: "color",
|
|
6862
|
+
text: "颜色",
|
|
6863
|
+
type: "data-source-field-select",
|
|
6864
|
+
fieldConfig: {
|
|
6865
|
+
type: "colorPicker"
|
|
6866
|
+
}
|
|
6867
|
+
},
|
|
6868
|
+
{
|
|
6869
|
+
name: "textAlign",
|
|
6870
|
+
text: "对齐",
|
|
6871
|
+
type: "radioGroup",
|
|
6872
|
+
childType: "button",
|
|
6873
|
+
labelWidth: "68px",
|
|
6874
|
+
options: [
|
|
6875
|
+
{ value: "left", icon: markRaw(AlignLeft), tooltip: "左对齐 row" },
|
|
6876
|
+
{ value: "center", icon: markRaw(AlignCenter), tooltip: "居中对齐 center" },
|
|
6877
|
+
{ value: "right", icon: markRaw(AlignRight), tooltip: "右对齐 right" }
|
|
6878
|
+
]
|
|
6879
|
+
}
|
|
6880
|
+
]
|
|
6881
|
+
};
|
|
6882
|
+
const change = (value, eventData) => {
|
|
6883
|
+
emit("change", value, eventData);
|
|
6884
|
+
};
|
|
6885
|
+
return (_ctx, _cache) => {
|
|
6886
|
+
return openBlock(), createBlock(unref(MContainer), {
|
|
6887
|
+
config,
|
|
6888
|
+
model: _ctx.values,
|
|
6889
|
+
onChange: change
|
|
6890
|
+
}, null, 8, ["model"]);
|
|
6891
|
+
};
|
|
6892
|
+
}
|
|
6893
|
+
});
|
|
6894
|
+
|
|
6895
|
+
const _hoisted_1$A = { class: "layout-box-container" };
|
|
6896
|
+
const _hoisted_2$b = {
|
|
6897
|
+
key: 0,
|
|
6898
|
+
class: "help-txt"
|
|
6899
|
+
};
|
|
6900
|
+
const _hoisted_3$5 = { class: "next-input" };
|
|
6901
|
+
const _hoisted_4$4 = ["onUpdate:modelValue", "title", "onChange"];
|
|
6902
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
6903
|
+
__name: "Box",
|
|
6904
|
+
props: {
|
|
6905
|
+
model: {}
|
|
6906
|
+
},
|
|
6907
|
+
emits: ["change"],
|
|
6908
|
+
setup(__props, { emit: __emit }) {
|
|
6909
|
+
const list = [
|
|
6910
|
+
{
|
|
6911
|
+
name: "marginTop",
|
|
6912
|
+
class: "outer-top-border"
|
|
6913
|
+
},
|
|
6914
|
+
{
|
|
6915
|
+
name: "marginRight",
|
|
6916
|
+
class: "outer-right-border"
|
|
6917
|
+
},
|
|
6918
|
+
{
|
|
6919
|
+
name: "marginBottom",
|
|
6920
|
+
text: "MARGIN",
|
|
6921
|
+
class: "outer-bottom-border"
|
|
6922
|
+
},
|
|
6923
|
+
{
|
|
6924
|
+
name: "marginLeft",
|
|
6925
|
+
class: "outer-left-border"
|
|
6926
|
+
},
|
|
6927
|
+
{
|
|
6928
|
+
name: "paddingTop",
|
|
6929
|
+
class: "inner-top-border"
|
|
6930
|
+
},
|
|
6931
|
+
{
|
|
6932
|
+
name: "paddingRight",
|
|
6933
|
+
class: "inner-right-border"
|
|
6934
|
+
},
|
|
6935
|
+
{
|
|
6936
|
+
name: "paddingBottom",
|
|
6937
|
+
text: "PADDING",
|
|
6938
|
+
class: "inner-bottom-border"
|
|
6939
|
+
},
|
|
6940
|
+
{
|
|
6941
|
+
name: "paddingLeft",
|
|
6942
|
+
class: "inner-left-border"
|
|
6943
|
+
}
|
|
6944
|
+
];
|
|
6945
|
+
const emit = __emit;
|
|
6946
|
+
const change = (event, name) => {
|
|
6947
|
+
emit("change", event.target.value, {
|
|
6948
|
+
modifyKey: name
|
|
6949
|
+
});
|
|
6950
|
+
};
|
|
6951
|
+
return (_ctx, _cache) => {
|
|
6952
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
6953
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(list, (item, index) => {
|
|
6954
|
+
return createElementVNode("div", {
|
|
6955
|
+
key: index,
|
|
6956
|
+
class: normalizeClass(item.class)
|
|
6957
|
+
}, [
|
|
6958
|
+
item.text ? (openBlock(), createElementBlock("span", _hoisted_2$b, toDisplayString(item.text), 1)) : createCommentVNode("", true),
|
|
6959
|
+
createElementVNode("span", _hoisted_3$5, [
|
|
6960
|
+
withDirectives(createElementVNode("input", {
|
|
6961
|
+
"onUpdate:modelValue": ($event) => _ctx.model[item.name] = $event,
|
|
6962
|
+
title: _ctx.model[item.name],
|
|
6963
|
+
onChange: ($event) => change($event, item.name),
|
|
6964
|
+
placeholder: "0"
|
|
6965
|
+
}, null, 40, _hoisted_4$4), [
|
|
6966
|
+
[vModelText, _ctx.model[item.name]]
|
|
6967
|
+
])
|
|
6968
|
+
])
|
|
6969
|
+
], 2);
|
|
6970
|
+
}), 64))
|
|
6971
|
+
]);
|
|
6972
|
+
};
|
|
6973
|
+
}
|
|
6974
|
+
});
|
|
6975
|
+
|
|
6976
|
+
const _sfc_main$W = {};
|
|
6977
|
+
|
|
6978
|
+
const _hoisted_1$z = {
|
|
6979
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6980
|
+
viewBox: "0 0 1024 1024"
|
|
6981
|
+
};
|
|
6982
|
+
|
|
6983
|
+
function _sfc_render$d(_ctx, _cache) {
|
|
6984
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$z, _cache[0] || (_cache[0] = [
|
|
6985
|
+
createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192z m-96 64a32 32 0 0 1 32 32v448a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h704z" }, null, -1)
|
|
6986
|
+
])))
|
|
6987
|
+
}
|
|
6988
|
+
const DisplayBlock = /*#__PURE__*/_export_sfc(_sfc_main$W, [['render',_sfc_render$d]]);
|
|
6989
|
+
|
|
6990
|
+
const _sfc_main$V = {};
|
|
6991
|
+
|
|
6992
|
+
const _hoisted_1$y = {
|
|
6993
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6994
|
+
viewBox: "0 0 1024 1024"
|
|
6995
|
+
};
|
|
6996
|
+
|
|
6997
|
+
function _sfc_render$c(_ctx, _cache) {
|
|
6998
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$y, _cache[0] || (_cache[0] = [
|
|
6999
|
+
createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192zM352 256v512H160V256h192z m256 0v512h-192V256h192z m256 0v512h-192V256h192z" }, null, -1)
|
|
7000
|
+
])))
|
|
7001
|
+
}
|
|
7002
|
+
const DisplayFlex = /*#__PURE__*/_export_sfc(_sfc_main$V, [['render',_sfc_render$c]]);
|
|
7003
|
+
|
|
7004
|
+
const _sfc_main$U = {};
|
|
7005
|
+
|
|
7006
|
+
const _hoisted_1$x = {
|
|
7007
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7008
|
+
viewBox: "0 0 1024 1024"
|
|
7009
|
+
};
|
|
7010
|
+
|
|
7011
|
+
function _sfc_render$b(_ctx, _cache) {
|
|
7012
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$x, _cache[0] || (_cache[0] = [
|
|
7013
|
+
createElementVNode("path", { d: "M787.616 651.36a142.72 142.72 0 0 0 52.864 31.904 205.504 205.504 0 0 0 67.264 10.848 245.76 245.76 0 0 0 38.784-2.4c9.504-1.6 19.36-4 30.208-7.04 8.16-2.24 15.968-5.12 23.36-8.32l23.392-10.816V587.52h-8.736c-3.968 3.424-8.96 7.648-15.104 12.544a190.272 190.272 0 0 1-19.936 13.504 120.32 120.32 0 0 1-27.616 12.544 102.528 102.528 0 0 1-62.72-0.576 80 80 0 0 1-29.824-17.088 89.28 89.28 0 0 1-21.664-32.512c-5.696-13.664-8.64-30.784-8.64-51.296 0-19.744 2.72-36.384 7.968-50.08 5.248-13.664 12.384-24.896 20.992-33.056 9.12-8.832 18.816-14.816 29.632-18.816a101.824 101.824 0 0 1 63.68-0.736c9.408 3.136 18.08 7.04 26.112 11.68 13.024 7.808 25.28 16.768 36.672 26.784H1024v-78.72c-6.08-2.88-13.12-6.08-21.12-9.6a205.984 205.984 0 0 0-57.152-15.36 270.016 270.016 0 0 0-37.056-2.304c-24.864 0-47.744 4-68.704 11.84-20.992 7.776-38.432 18.784-52.64 33.6a144.256 144.256 0 0 0-33.632 54.176 207.68 207.68 0 0 0-12.48 70.176c0 27.84 3.968 52.352 12.16 73.568a146.08 146.08 0 0 0 34.176 53.184l0.064 0.416z m-186.112 34.656a122.912 122.912 0 0 0 42.784-21.504c11.2-8.32 20.224-19.296 26.24-31.936 6.56-13.664 9.888-28.704 9.664-43.904 0-22.784-6.272-41.024-18.912-54.72-12.544-13.92-29.664-23.04-51.104-27.36v-2.304c14.4-6.24 26.688-16.448 35.52-29.408 8.384-12.544 12.544-27.008 12.544-43.52 0-14.24-2.944-26.784-9.12-37.6a65.696 65.696 0 0 0-27.936-26.24 117.44 117.44 0 0 0-36.48-12.096A437.312 437.312 0 0 0 526.656 352h-127.552v340.384h143.392c23.84 0 43.52-2.112 59.008-6.4z m-118.112-271.584h7.968c16.544 0 29.472 0.128 38.656 0.352 9.248 0.576 16.864 1.728 23.04 4a26.24 26.24 0 0 1 14.4 13.12c2.656 5.28 4.064 11.072 4.128 16.96 0.16 6.656-1.056 13.248-3.52 19.392a28.064 28.064 0 0 1-15.04 13.696c-7.04 2.912-14.56 4.48-22.208 4.576-9.472 0.32-20.864 0.544-34.24 0.544h-13.184v-72.64z m6.144 215.52h-6.144v-84.8h18.464c12.64 0 24.736 0 36.384 0.256 9.216-0.16 18.432 0.896 27.36 3.2 9.696 2.848 16.544 7.232 20.512 13.12 4 5.92 6.08 14.24 6.08 25.088 0 8.192-1.728 15.488-4.992 21.824-3.232 6.336-9.696 11.392-18.24 15.392-8.544 4-18.24 5.696-28.48 6.272-10.304 0.224-27.392 0.224-51.328 0.224l0.384-0.576z m-378.56-6.016h124.672l23.36 68.416H348.8L224.32 353.728H124.416L0 692.384h87.52l23.488-68.416-0.064-0.032z m62.336-183.552l41.472 121.44h-82.88l41.408-121.44z" }, null, -1)
|
|
7014
|
+
])))
|
|
7015
|
+
}
|
|
7016
|
+
const DisplayInline = /*#__PURE__*/_export_sfc(_sfc_main$U, [['render',_sfc_render$b]]);
|
|
7017
|
+
|
|
7018
|
+
const _sfc_main$T = {};
|
|
7019
|
+
|
|
7020
|
+
const _hoisted_1$w = {
|
|
7021
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7022
|
+
viewBox: "0 0 1024 1024"
|
|
7023
|
+
};
|
|
7024
|
+
|
|
7025
|
+
function _sfc_render$a(_ctx, _cache) {
|
|
7026
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$w, _cache[0] || (_cache[0] = [
|
|
7027
|
+
createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192z m-131.936 158.496c65.984 1.824 109.024 32.512 129.184 92.064l-65.952 15.136-1.856-5.664c-9.984-27.52-30.432-42.112-61.376-43.84-46.72 2.784-71.456 35.296-74.208 97.6 1.856 63.2 26.56 96.64 74.24 100.32 37.536-0.928 59.52-23.36 65.92-67.328L960 559.36l-1.792 7.232c-16.96 63.872-60.352 95.84-130.144 95.84-93.44-4.608-142.464-56.8-147.04-156.672 4.576-98.048 53.6-149.792 147.04-155.296z m-568.928 4.128l114.08 302.336H297.6l-22.016-65.984H160.192L138.24 656.96H64l112.672-302.336h82.464z m278.976 0l7.68 0.32c62.816 3.36 96 27.104 99.52 71.136 0 35.744-19.712 59.552-59.104 71.456 42.144 9.184 65.952 32.544 71.456 70.08 0 59.552-37.568 89.344-112.672 89.344h-148.416v-302.336h141.536z m-4.128 173.152H465.28v81.088h67.328c33.92 0 51.296-13.76 52.224-41.248-2.752-25.632-19.68-38.912-50.848-39.84zM217.92 408.224h-1.376l-0.96 7.36c-1.184 7.232-3.168 13.92-5.92 20.128l-34.336 103.04h87.936l-38.464-104.416-2.624-9.024c-1.6-5.888-3.04-11.584-4.256-17.088z m309.184-2.752H465.28v71.456h61.824c29.344-0.928 44.448-13.76 45.376-38.464-0.96-22.016-16.032-32.992-45.376-32.992z" }, null, -1)
|
|
7028
|
+
])))
|
|
7029
|
+
}
|
|
7030
|
+
const DisplayInlineBlock = /*#__PURE__*/_export_sfc(_sfc_main$T, [['render',_sfc_render$a]]);
|
|
7031
|
+
|
|
7032
|
+
const _sfc_main$S = {};
|
|
7033
|
+
|
|
7034
|
+
const _hoisted_1$v = {
|
|
7035
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7036
|
+
viewBox: "0 0 1024 1024"
|
|
7037
|
+
};
|
|
7038
|
+
|
|
7039
|
+
function _sfc_render$9(_ctx, _cache) {
|
|
7040
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$v, _cache[0] || (_cache[0] = [
|
|
7041
|
+
createElementVNode("path", { d: "M931.37 477.14c-43.94-69.49-93.39-125.03-147.99-166.35L663.31 441.46c8.79 21.36 13.63 44.91 13.63 69.62 0 96.27-73.84 174.32-164.95 174.32-21.63 0-42.28-4.39-61.32-12.47l-94.09 102.52a455.097 455.097 0 0 0 155.41 26.2c172.62 0 312.43-85.54 419.59-256.63 12.83-20.43 12.72-47.45-0.21-67.88zM795.52 127.99L682.24 252.82C627.73 231 570.1 220.04 512.11 220.5c-171.15 0-310.99 85.66-419.48 256.75-12.93 20.43-13.04 47.33-0.2 67.78 46.95 75.15 100.3 133.68 160.01 175.82L131.9 853.65l38.9 42.36 663.6-725.76-38.88-42.26zM519.68 438.37c-3.72-0.59-7.46-0.81-11.27-0.81-45.63 0-82.43 39.03-82.43 87.16 0 4.97 0.42 9.81 1.14 14.54l-57.15 60.14-5.92 8.33c-13.15-24.94-20.5-53.68-20.5-84.28 0-96.3 73.84-174.45 164.95-174.45 27.2 0 52.76 6.93 75.4 19.29l-64.22 70.08z m52.05 135.53c21.74-23.26 27.17-55.48 16.31-81.39l-96.42 103.16c26.59 9.08 58.38 1.48 80.11-21.77z" }, null, -1)
|
|
7042
|
+
])))
|
|
7043
|
+
}
|
|
7044
|
+
const DisplayNone = /*#__PURE__*/_export_sfc(_sfc_main$S, [['render',_sfc_render$9]]);
|
|
7045
|
+
|
|
7046
|
+
const _sfc_main$R = {};
|
|
7047
|
+
|
|
7048
|
+
const _hoisted_1$u = {
|
|
7049
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7050
|
+
viewBox: "0 0 1024 1024"
|
|
7051
|
+
};
|
|
7052
|
+
|
|
7053
|
+
function _sfc_render$8(_ctx, _cache) {
|
|
7054
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$u, _cache[0] || (_cache[0] = [
|
|
7055
|
+
createElementVNode("path", { d: "M896 320H128V0h768v320z m0 320H128v-256h768v256z m-128 192l-256 192-256-192 192-0.032V704h128v128h192z" }, null, -1)
|
|
7056
|
+
])))
|
|
7057
|
+
}
|
|
7058
|
+
const FlexDirectionColumn = /*#__PURE__*/_export_sfc(_sfc_main$R, [['render',_sfc_render$8]]);
|
|
7059
|
+
|
|
7060
|
+
const _sfc_main$Q = {};
|
|
7061
|
+
|
|
7062
|
+
const _hoisted_1$t = {
|
|
7063
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7064
|
+
viewBox: "0 0 1024 1024"
|
|
7065
|
+
};
|
|
7066
|
+
|
|
7067
|
+
function _sfc_render$7(_ctx, _cache) {
|
|
7068
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$t, _cache[0] || (_cache[0] = [
|
|
7069
|
+
createElementVNode("path", { d: "M896 704H128v320h768V704z m0-320H128v256h768v-256z m-128-192l-256-192-256 192 192 0.032V320h128V192h192z" }, null, -1)
|
|
7070
|
+
])))
|
|
7071
|
+
}
|
|
7072
|
+
const FlexDirectionColumnReverse = /*#__PURE__*/_export_sfc(_sfc_main$Q, [['render',_sfc_render$7]]);
|
|
7073
|
+
|
|
7074
|
+
const _sfc_main$P = {};
|
|
7075
|
+
|
|
7076
|
+
const _hoisted_1$s = {
|
|
7077
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7078
|
+
viewBox: "0 0 1024 1024"
|
|
7079
|
+
};
|
|
7080
|
+
|
|
7081
|
+
function _sfc_render$6(_ctx, _cache) {
|
|
7082
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$s, _cache[0] || (_cache[0] = [
|
|
7083
|
+
createElementVNode("path", { d: "M320 128v768H0V128h320z m320 0v768h-256V128h256z m192 128l192 256-192 256-0.032-192H704v-128h128V256z" }, null, -1)
|
|
7084
|
+
])))
|
|
7085
|
+
}
|
|
7086
|
+
const FlexDirectionRow = /*#__PURE__*/_export_sfc(_sfc_main$P, [['render',_sfc_render$6]]);
|
|
7087
|
+
|
|
7088
|
+
const _sfc_main$O = {};
|
|
7089
|
+
|
|
7090
|
+
const _hoisted_1$r = {
|
|
7091
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7092
|
+
viewBox: "0 0 1024 1024"
|
|
7093
|
+
};
|
|
7094
|
+
|
|
7095
|
+
function _sfc_render$5(_ctx, _cache) {
|
|
7096
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$r, _cache[0] || (_cache[0] = [
|
|
7097
|
+
createElementVNode("path", { d: "M704 128v768h320V128H704zM384 128v768h256V128h-256zM192 256l-192 256 192 256 0.032-192H320v-128H192V256z" }, null, -1)
|
|
7098
|
+
])))
|
|
7099
|
+
}
|
|
7100
|
+
const FlexDirectionRowReverse = /*#__PURE__*/_export_sfc(_sfc_main$O, [['render',_sfc_render$5]]);
|
|
7101
|
+
|
|
7102
|
+
const _sfc_main$N = {};
|
|
7103
|
+
|
|
7104
|
+
const _hoisted_1$q = {
|
|
7105
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7106
|
+
viewBox: "0 0 1024 1024"
|
|
7107
|
+
};
|
|
7108
|
+
|
|
7109
|
+
function _sfc_render$4(_ctx, _cache) {
|
|
7110
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$q, _cache[0] || (_cache[0] = [
|
|
7111
|
+
createElementVNode("path", { d: "M480 1024V0h64v1024h-64z m128-64V64h320v896H608zM96 960V64h320v896H96z" }, null, -1)
|
|
7112
|
+
])))
|
|
7113
|
+
}
|
|
7114
|
+
const JustifyContentCenter = /*#__PURE__*/_export_sfc(_sfc_main$N, [['render',_sfc_render$4]]);
|
|
7115
|
+
|
|
7116
|
+
const _sfc_main$M = {};
|
|
7117
|
+
|
|
7118
|
+
const _hoisted_1$p = {
|
|
7119
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7120
|
+
viewBox: "0 0 1024 1024"
|
|
7121
|
+
};
|
|
7122
|
+
|
|
7123
|
+
function _sfc_render$3(_ctx, _cache) {
|
|
7124
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$p, _cache[0] || (_cache[0] = [
|
|
7125
|
+
createElementVNode("path", { d: "M416 160H96v704h320V160z m384 0H480v704h320V160z m128-160h-64v1024h64V0z" }, null, -1)
|
|
7126
|
+
])))
|
|
7127
|
+
}
|
|
7128
|
+
const JustifyContentFlexEnd = /*#__PURE__*/_export_sfc(_sfc_main$M, [['render',_sfc_render$3]]);
|
|
7129
|
+
|
|
7130
|
+
const _sfc_main$L = {};
|
|
7131
|
+
|
|
7132
|
+
const _hoisted_1$o = {
|
|
7133
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7134
|
+
viewBox: "0 0 1024 1024"
|
|
7135
|
+
};
|
|
7136
|
+
|
|
7137
|
+
function _sfc_render$2(_ctx, _cache) {
|
|
7138
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$o, _cache[0] || (_cache[0] = [
|
|
7139
|
+
createElementVNode("path", { d: "M608 160h320v704H608V160zM224 160h320v704H224V160zM96 0h64v1024H96V0z" }, null, -1)
|
|
7140
|
+
])))
|
|
7141
|
+
}
|
|
7142
|
+
const JustifyContentFlexStart = /*#__PURE__*/_export_sfc(_sfc_main$L, [['render',_sfc_render$2]]);
|
|
7143
|
+
|
|
7144
|
+
const _sfc_main$K = {};
|
|
7145
|
+
|
|
7146
|
+
const _hoisted_1$n = {
|
|
7147
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7148
|
+
viewBox: "0 0 1024 1024"
|
|
7149
|
+
};
|
|
7150
|
+
|
|
7151
|
+
function _sfc_render$1(_ctx, _cache) {
|
|
7152
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$n, _cache[0] || (_cache[0] = [
|
|
7153
|
+
createElementVNode("path", { d: "M320 864H192v160H128v-160H0V160h128V0h64v160h128v704z m704 0h-128v160h-64v-160h-128V160h128V0h64v160h128v704z" }, null, -1)
|
|
7154
|
+
])))
|
|
7155
|
+
}
|
|
7156
|
+
const JustifyContentSpaceAround = /*#__PURE__*/_export_sfc(_sfc_main$K, [['render',_sfc_render$1]]);
|
|
7157
|
+
|
|
7158
|
+
const _sfc_main$J = {};
|
|
7159
|
+
|
|
7160
|
+
const _hoisted_1$m = {
|
|
7161
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7162
|
+
viewBox: "0 0 1024 1024"
|
|
7163
|
+
};
|
|
7164
|
+
|
|
7165
|
+
function _sfc_render(_ctx, _cache) {
|
|
7166
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$m, _cache[0] || (_cache[0] = [
|
|
7167
|
+
createElementVNode("path", { d: "M64 1024H0V0h64v1024z m384-160H128V160h320v704z m448 0H576V160h320v704z m128 160h-64V0h64v1024z" }, null, -1)
|
|
7168
|
+
])))
|
|
7169
|
+
}
|
|
7170
|
+
const JustifyContentSpaceBetween = /*#__PURE__*/_export_sfc(_sfc_main$J, [['render',_sfc_render]]);
|
|
7171
|
+
|
|
7172
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
7173
|
+
__name: "Layout",
|
|
7174
|
+
props: {
|
|
7175
|
+
values: {}
|
|
7176
|
+
},
|
|
7177
|
+
emits: ["change"],
|
|
7178
|
+
setup(__props, { emit: __emit }) {
|
|
7179
|
+
const emit = __emit;
|
|
7180
|
+
const config = {
|
|
7181
|
+
items: [
|
|
7182
|
+
{
|
|
7183
|
+
name: "display",
|
|
7184
|
+
text: "模式",
|
|
7185
|
+
type: "radioGroup",
|
|
7186
|
+
childType: "button",
|
|
7187
|
+
labelWidth: "68px",
|
|
7188
|
+
options: [
|
|
7189
|
+
{ value: "inline", icon: markRaw(DisplayInline), tooltip: "内联布局 inline" },
|
|
7190
|
+
{ value: "flex", icon: markRaw(DisplayFlex), tooltip: "弹性布局 flex" },
|
|
7191
|
+
{ value: "block", icon: markRaw(DisplayBlock), tooltip: "块级布局 block" },
|
|
7192
|
+
{ value: "inline-block", icon: markRaw(DisplayInlineBlock), tooltip: "内联块布局 inline-block" },
|
|
7193
|
+
{ value: "none", icon: markRaw(DisplayNone), tooltip: "隐藏 none" }
|
|
7194
|
+
]
|
|
7195
|
+
},
|
|
7196
|
+
{
|
|
7197
|
+
name: "flexDirection",
|
|
7198
|
+
text: "主轴方向",
|
|
7199
|
+
type: "radioGroup",
|
|
7200
|
+
childType: "button",
|
|
7201
|
+
labelWidth: "68px",
|
|
7202
|
+
options: [
|
|
7203
|
+
{ value: "row", icon: markRaw(FlexDirectionRow), tooltip: "水平方向 起点在左侧 row" },
|
|
7204
|
+
{ value: "row-reverse", icon: markRaw(FlexDirectionRowReverse), tooltip: "水平方向 起点在右侧 row-reverse" },
|
|
7205
|
+
{ value: "column", icon: markRaw(FlexDirectionColumn), tooltip: "垂直方向 起点在上沿 column" },
|
|
7206
|
+
{
|
|
7207
|
+
value: "column-reverse",
|
|
7208
|
+
icon: markRaw(FlexDirectionColumnReverse),
|
|
7209
|
+
tooltip: "垂直方向 起点在下沿 column-reverse"
|
|
7210
|
+
}
|
|
7211
|
+
],
|
|
7212
|
+
display: (mForm, { model }) => model.display === "flex"
|
|
7213
|
+
},
|
|
7214
|
+
{
|
|
7215
|
+
name: "justifyContent",
|
|
7216
|
+
text: "主轴对齐",
|
|
7217
|
+
type: "radioGroup",
|
|
7218
|
+
childType: "button",
|
|
7219
|
+
labelWidth: "68px",
|
|
7220
|
+
options: [
|
|
7221
|
+
{ value: "flex-start", icon: markRaw(JustifyContentFlexStart), tooltip: "左对齐 flex-start" },
|
|
7222
|
+
{ value: "flex-end", icon: markRaw(JustifyContentFlexEnd), tooltip: "右对齐 flex-end" },
|
|
7223
|
+
{ value: "center", icon: markRaw(JustifyContentCenter), tooltip: "居中 center" },
|
|
7224
|
+
{ value: "space-between", icon: markRaw(JustifyContentSpaceBetween), tooltip: "两端对齐 space-between" },
|
|
7225
|
+
{ value: "space-around", icon: markRaw(JustifyContentSpaceAround), tooltip: "横向平分 space-around" }
|
|
7226
|
+
],
|
|
7227
|
+
display: (mForm, { model }) => model.display === "flex"
|
|
7228
|
+
},
|
|
7229
|
+
{
|
|
7230
|
+
name: "alignItems",
|
|
7231
|
+
text: "辅轴对齐",
|
|
7232
|
+
type: "radioGroup",
|
|
7233
|
+
childType: "button",
|
|
7234
|
+
labelWidth: "68px",
|
|
7235
|
+
options: [
|
|
7236
|
+
{ value: "flex-start", icon: markRaw(JustifyContentFlexStart), tooltip: "左对齐 flex-start" },
|
|
7237
|
+
{ value: "flex-end", icon: markRaw(JustifyContentFlexEnd), tooltip: "右对齐 flex-end" },
|
|
7238
|
+
{ value: "center", icon: markRaw(JustifyContentCenter), tooltip: "居中 center" },
|
|
7239
|
+
{ value: "space-between", icon: markRaw(JustifyContentSpaceBetween), tooltip: "两端对齐 space-between" },
|
|
7240
|
+
{ value: "space-around", icon: markRaw(JustifyContentSpaceAround), tooltip: "横向平分 space-around" }
|
|
7241
|
+
],
|
|
7242
|
+
display: (mForm, { model }) => model.display === "flex"
|
|
7243
|
+
},
|
|
7244
|
+
{
|
|
7245
|
+
name: "flexWrap",
|
|
7246
|
+
text: "换行",
|
|
7247
|
+
type: "radioGroup",
|
|
7248
|
+
childType: "button",
|
|
7249
|
+
labelWidth: "68px",
|
|
7250
|
+
options: [
|
|
7251
|
+
{ value: "nowrap", text: "不换行", tooltip: "不换行 nowrap" },
|
|
7252
|
+
{ value: "wrap", text: "正换行", tooltip: "第一行在上方 wrap" },
|
|
7253
|
+
{ value: "wrap-reverse", text: "逆换行", tooltip: "第一行在下方 wrap-reverse" }
|
|
7254
|
+
],
|
|
7255
|
+
display: (mForm, { model }) => model.display === "flex"
|
|
7256
|
+
},
|
|
7257
|
+
{
|
|
7258
|
+
type: "row",
|
|
7259
|
+
items: [
|
|
7260
|
+
{
|
|
7261
|
+
name: "width",
|
|
7262
|
+
text: "宽度",
|
|
7263
|
+
labelWidth: "68px",
|
|
7264
|
+
type: "data-source-field-select",
|
|
7265
|
+
fieldConfig: {
|
|
7266
|
+
type: "text"
|
|
7267
|
+
}
|
|
7268
|
+
},
|
|
7269
|
+
{
|
|
7270
|
+
name: "height",
|
|
7271
|
+
text: "宽度",
|
|
7272
|
+
labelWidth: "68px",
|
|
7273
|
+
type: "data-source-field-select",
|
|
7274
|
+
fieldConfig: {
|
|
7275
|
+
type: "text"
|
|
7276
|
+
}
|
|
7277
|
+
}
|
|
7278
|
+
]
|
|
7279
|
+
},
|
|
7280
|
+
{
|
|
7281
|
+
type: "data-source-field-select",
|
|
7282
|
+
text: "overflow",
|
|
7283
|
+
name: "overflow",
|
|
7284
|
+
checkStrictly: false,
|
|
7285
|
+
dataSourceFieldType: ["string"],
|
|
7286
|
+
fieldConfig: {
|
|
7287
|
+
type: "select",
|
|
7288
|
+
clearable: true,
|
|
7289
|
+
allowCreate: true,
|
|
7290
|
+
options: [
|
|
7291
|
+
{ text: "visible", value: "visible" },
|
|
7292
|
+
{ text: "hidden", value: "hidden" },
|
|
7293
|
+
{ text: "clip", value: "clip" },
|
|
7294
|
+
{ text: "scroll", value: "scroll" },
|
|
7295
|
+
{ text: "auto", value: "auto" },
|
|
7296
|
+
{ text: "overlay", value: "overlay" },
|
|
7297
|
+
{ text: "initial", value: "initial" }
|
|
7298
|
+
]
|
|
7299
|
+
}
|
|
7300
|
+
}
|
|
7301
|
+
]
|
|
7302
|
+
};
|
|
7303
|
+
const change = (value, eventData) => {
|
|
7304
|
+
emit("change", value, eventData);
|
|
7305
|
+
};
|
|
7306
|
+
return (_ctx, _cache) => {
|
|
7307
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
7308
|
+
createVNode(unref(MContainer), {
|
|
7309
|
+
config,
|
|
7310
|
+
model: _ctx.values,
|
|
7311
|
+
onChange: change
|
|
7312
|
+
}, null, 8, ["model"]),
|
|
7313
|
+
createVNode(_sfc_main$X, {
|
|
7314
|
+
model: _ctx.values,
|
|
7315
|
+
onChange: change
|
|
7316
|
+
}, null, 8, ["model"])
|
|
7317
|
+
], 64);
|
|
7318
|
+
};
|
|
7319
|
+
}
|
|
7320
|
+
});
|
|
7321
|
+
|
|
7322
|
+
const _hoisted_1$l = { class: "layout-box-container" };
|
|
7323
|
+
const _hoisted_2$a = { class: "next-input" };
|
|
7324
|
+
const _hoisted_3$4 = ["onUpdate:modelValue", "title", "onChange"];
|
|
7325
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
7326
|
+
__name: "Position",
|
|
7327
|
+
props: {
|
|
7328
|
+
model: {}
|
|
7329
|
+
},
|
|
7330
|
+
emits: ["change"],
|
|
7331
|
+
setup(__props, { emit: __emit }) {
|
|
7332
|
+
const list = [
|
|
7333
|
+
{
|
|
7334
|
+
name: "top",
|
|
7335
|
+
class: "outer-top-border"
|
|
7336
|
+
},
|
|
7337
|
+
{
|
|
7338
|
+
name: "right",
|
|
7339
|
+
class: "outer-right-border"
|
|
7340
|
+
},
|
|
7341
|
+
{
|
|
7342
|
+
name: "bottom",
|
|
7343
|
+
class: "outer-bottom-border"
|
|
7344
|
+
},
|
|
7345
|
+
{
|
|
7346
|
+
name: "left",
|
|
7347
|
+
class: "outer-left-border"
|
|
7348
|
+
}
|
|
7349
|
+
];
|
|
7350
|
+
const emit = __emit;
|
|
7351
|
+
const change = (event, name) => {
|
|
7352
|
+
emit("change", event.target.value, {
|
|
7353
|
+
modifyKey: name
|
|
7354
|
+
});
|
|
7355
|
+
};
|
|
7356
|
+
return (_ctx, _cache) => {
|
|
7357
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
7358
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(list, (item, index) => {
|
|
7359
|
+
return createElementVNode("div", {
|
|
7360
|
+
key: index,
|
|
7361
|
+
class: normalizeClass(item.class)
|
|
7362
|
+
}, [
|
|
7363
|
+
createElementVNode("span", _hoisted_2$a, [
|
|
7364
|
+
withDirectives(createElementVNode("input", {
|
|
7365
|
+
"onUpdate:modelValue": ($event) => _ctx.model[item.name] = $event,
|
|
7366
|
+
title: _ctx.model[item.name],
|
|
7367
|
+
onChange: ($event) => change($event, item.name),
|
|
7368
|
+
placeholder: "0"
|
|
7369
|
+
}, null, 40, _hoisted_3$4), [
|
|
7370
|
+
[vModelText, _ctx.model[item.name]]
|
|
7371
|
+
])
|
|
7372
|
+
])
|
|
7373
|
+
], 2);
|
|
7374
|
+
}), 64))
|
|
7375
|
+
]);
|
|
7376
|
+
};
|
|
7377
|
+
}
|
|
7378
|
+
});
|
|
7379
|
+
|
|
7380
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
7381
|
+
__name: "Position",
|
|
7382
|
+
props: {
|
|
7383
|
+
values: {}
|
|
7384
|
+
},
|
|
7385
|
+
emits: ["change"],
|
|
7386
|
+
setup(__props, { emit: __emit }) {
|
|
7387
|
+
const emit = __emit;
|
|
7388
|
+
const config = {
|
|
7389
|
+
items: [
|
|
7390
|
+
{
|
|
7391
|
+
name: "position",
|
|
7392
|
+
text: "定位",
|
|
7393
|
+
labelWidth: "68px",
|
|
7394
|
+
type: "data-source-field-select",
|
|
7395
|
+
fieldConfig: {
|
|
7396
|
+
type: "select",
|
|
7397
|
+
options: ["static", "relative", "absolute", "fixed", "sticky"].map((item) => ({
|
|
7398
|
+
value: item,
|
|
7399
|
+
text: item
|
|
7400
|
+
}))
|
|
7401
|
+
}
|
|
7402
|
+
},
|
|
7403
|
+
{
|
|
7404
|
+
labelWidth: "68px",
|
|
7405
|
+
name: "zIndex",
|
|
7406
|
+
text: "zIndex",
|
|
7407
|
+
type: "data-source-field-select",
|
|
7408
|
+
fieldConfig: {
|
|
7409
|
+
type: "text"
|
|
7410
|
+
}
|
|
7411
|
+
}
|
|
7412
|
+
]
|
|
7413
|
+
};
|
|
7414
|
+
const change = (value, eventData) => {
|
|
7415
|
+
emit("change", value, eventData);
|
|
7416
|
+
};
|
|
7417
|
+
return (_ctx, _cache) => {
|
|
7418
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
7419
|
+
createVNode(unref(MContainer), {
|
|
7420
|
+
config,
|
|
7421
|
+
model: _ctx.values,
|
|
7422
|
+
onChange: change
|
|
7423
|
+
}, null, 8, ["model"]),
|
|
7424
|
+
withDirectives(createVNode(_sfc_main$H, {
|
|
7425
|
+
model: _ctx.values,
|
|
7426
|
+
onChange: change
|
|
7427
|
+
}, null, 8, ["model"]), [
|
|
7428
|
+
[vShow, _ctx.values["position"] !== "static"]
|
|
7429
|
+
])
|
|
7430
|
+
], 64);
|
|
7431
|
+
};
|
|
7432
|
+
}
|
|
7433
|
+
});
|
|
7434
|
+
|
|
7435
|
+
const _hoisted_1$k = { class: "border-box-container" };
|
|
7436
|
+
const _hoisted_2$9 = { class: "border-icon-container" };
|
|
7437
|
+
const _hoisted_3$3 = { class: "border-icon-container-row" };
|
|
7438
|
+
const _hoisted_4$3 = { class: "border-icon-container-row" };
|
|
7439
|
+
const _hoisted_5$1 = { class: "border-icon-container-row" };
|
|
7440
|
+
const _hoisted_6 = { class: "border-value-container" };
|
|
7441
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
7442
|
+
__name: "Border",
|
|
7443
|
+
props: {
|
|
7444
|
+
model: {}
|
|
7445
|
+
},
|
|
7446
|
+
emits: ["change"],
|
|
7447
|
+
setup(__props, { emit: __emit }) {
|
|
7448
|
+
const direction = ref("");
|
|
7449
|
+
const config = computed(() => ({
|
|
7450
|
+
items: [
|
|
7451
|
+
{
|
|
7452
|
+
name: `border${direction.value}Width`,
|
|
7453
|
+
text: "边框宽度",
|
|
7454
|
+
labelWidth: "68px",
|
|
7455
|
+
type: "data-source-field-select",
|
|
7456
|
+
fieldConfig: {
|
|
7457
|
+
type: "text"
|
|
7458
|
+
}
|
|
7459
|
+
},
|
|
7460
|
+
{
|
|
7461
|
+
name: `border${direction.value}Color`,
|
|
7462
|
+
text: "边框颜色",
|
|
7463
|
+
labelWidth: "68px",
|
|
7464
|
+
type: "data-source-field-select",
|
|
7465
|
+
fieldConfig: {
|
|
7466
|
+
type: "colorPicker"
|
|
7467
|
+
}
|
|
7468
|
+
},
|
|
7469
|
+
{
|
|
7470
|
+
name: `border${direction.value}Style`,
|
|
7471
|
+
text: "边框样式",
|
|
7472
|
+
labelWidth: "68px",
|
|
7473
|
+
type: "data-source-field-select",
|
|
7474
|
+
fieldConfig: {
|
|
7475
|
+
type: "select",
|
|
7476
|
+
options: ["solid", "dashed", "dotted"].map((item) => ({
|
|
7477
|
+
value: item,
|
|
7478
|
+
text: item
|
|
7479
|
+
}))
|
|
7480
|
+
}
|
|
7481
|
+
}
|
|
7482
|
+
]
|
|
7483
|
+
}));
|
|
7484
|
+
const selectDirection = (d) => direction.value = d || "";
|
|
7485
|
+
const emit = __emit;
|
|
7486
|
+
const change = (value, eventData) => {
|
|
7487
|
+
eventData.changeRecords?.forEach((record) => {
|
|
7488
|
+
emit("change", record.value, {
|
|
7489
|
+
modifyKey: record.propPath
|
|
7490
|
+
});
|
|
7491
|
+
});
|
|
7492
|
+
};
|
|
7493
|
+
return (_ctx, _cache) => {
|
|
7494
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
7495
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
7496
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
7497
|
+
createElementVNode("div", {
|
|
7498
|
+
class: normalizeClass(["border-icon border-icon-top", { active: direction.value === "Top" }]),
|
|
7499
|
+
onClick: _cache[0] || (_cache[0] = ($event) => selectDirection("Top"))
|
|
7500
|
+
}, null, 2)
|
|
7501
|
+
]),
|
|
7502
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
7503
|
+
createElementVNode("div", {
|
|
7504
|
+
class: normalizeClass(["border-icon border-icon-left", { active: direction.value === "Left" }]),
|
|
7505
|
+
onClick: _cache[1] || (_cache[1] = ($event) => selectDirection("Left"))
|
|
7506
|
+
}, null, 2),
|
|
7507
|
+
createElementVNode("div", {
|
|
7508
|
+
class: normalizeClass(["border-icon", { active: direction.value === "" }]),
|
|
7509
|
+
onClick: _cache[2] || (_cache[2] = ($event) => selectDirection())
|
|
7510
|
+
}, null, 2),
|
|
7511
|
+
createElementVNode("div", {
|
|
7512
|
+
class: normalizeClass(["border-icon border-icon-right", { active: direction.value === "Right" }]),
|
|
7513
|
+
onClick: _cache[3] || (_cache[3] = ($event) => selectDirection("Right"))
|
|
7514
|
+
}, null, 2)
|
|
7515
|
+
]),
|
|
7516
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
7517
|
+
createElementVNode("div", {
|
|
7518
|
+
class: normalizeClass(["border-icon border-icon-bottom", { active: direction.value === "Bottom" }]),
|
|
7519
|
+
onClick: _cache[4] || (_cache[4] = ($event) => selectDirection("Bottom"))
|
|
7520
|
+
}, null, 2)
|
|
7521
|
+
])
|
|
7522
|
+
]),
|
|
7523
|
+
createElementVNode("div", _hoisted_6, [
|
|
7524
|
+
createVNode(unref(MContainer), {
|
|
7525
|
+
config: config.value,
|
|
7526
|
+
model: _ctx.model,
|
|
7527
|
+
onChange: change
|
|
7528
|
+
}, null, 8, ["config", "model"])
|
|
7529
|
+
])
|
|
7530
|
+
]);
|
|
7531
|
+
};
|
|
7532
|
+
}
|
|
7533
|
+
});
|
|
7534
|
+
|
|
7535
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
7536
|
+
__name: "Border",
|
|
7537
|
+
props: {
|
|
7538
|
+
values: {}
|
|
7539
|
+
},
|
|
7540
|
+
emits: ["change"],
|
|
7541
|
+
setup(__props, { emit: __emit }) {
|
|
7542
|
+
const emit = __emit;
|
|
7543
|
+
const config = {
|
|
7544
|
+
items: [
|
|
7545
|
+
{
|
|
7546
|
+
labelWidth: "68px",
|
|
7547
|
+
name: "borderRadius",
|
|
7548
|
+
text: "圆角",
|
|
7549
|
+
type: "data-source-field-select",
|
|
7550
|
+
fieldConfig: {
|
|
7551
|
+
type: "text"
|
|
7552
|
+
}
|
|
7553
|
+
}
|
|
7554
|
+
]
|
|
7555
|
+
};
|
|
7556
|
+
const change = (value, eventData) => {
|
|
7557
|
+
emit("change", value, eventData);
|
|
7558
|
+
};
|
|
7559
|
+
return (_ctx, _cache) => {
|
|
7560
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
7561
|
+
createVNode(unref(MContainer), {
|
|
7562
|
+
config,
|
|
7563
|
+
model: _ctx.values,
|
|
7564
|
+
onChange: change
|
|
7565
|
+
}, null, 8, ["model"]),
|
|
7566
|
+
createVNode(_sfc_main$F, {
|
|
7567
|
+
model: _ctx.values,
|
|
7568
|
+
onChange: change
|
|
7569
|
+
}, null, 8, ["model"])
|
|
7570
|
+
], 64);
|
|
7571
|
+
};
|
|
7572
|
+
}
|
|
7573
|
+
});
|
|
7574
|
+
|
|
7575
|
+
const _hoisted_1$j = { class: "m-fields-style-setter" };
|
|
7576
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
7577
|
+
...{
|
|
7578
|
+
name: "MFieldsStyleSetter"
|
|
7579
|
+
},
|
|
7580
|
+
__name: "Index",
|
|
7581
|
+
props: {
|
|
7582
|
+
config: {},
|
|
7583
|
+
model: {},
|
|
7584
|
+
initValues: {},
|
|
7585
|
+
values: {},
|
|
7586
|
+
name: {},
|
|
7587
|
+
prop: {},
|
|
7588
|
+
disabled: { type: Boolean },
|
|
7589
|
+
size: {},
|
|
7590
|
+
lastValues: {}
|
|
7591
|
+
},
|
|
7592
|
+
emits: ["change"],
|
|
7593
|
+
setup(__props, { emit: __emit }) {
|
|
7594
|
+
const emit = __emit;
|
|
7595
|
+
const list = [
|
|
7596
|
+
{
|
|
7597
|
+
name: "font",
|
|
7598
|
+
title: "布局",
|
|
7599
|
+
component: _sfc_main$I
|
|
7600
|
+
},
|
|
7601
|
+
{
|
|
7602
|
+
title: "位置",
|
|
7603
|
+
component: _sfc_main$G
|
|
7604
|
+
},
|
|
7605
|
+
{
|
|
7606
|
+
title: "背景",
|
|
7607
|
+
component: _sfc_main$10
|
|
7608
|
+
},
|
|
7609
|
+
{
|
|
7610
|
+
title: "文字",
|
|
7611
|
+
component: _sfc_main$Y
|
|
7612
|
+
},
|
|
7613
|
+
{
|
|
7614
|
+
title: "边框与圆角",
|
|
7615
|
+
component: _sfc_main$E
|
|
7616
|
+
}
|
|
7617
|
+
];
|
|
7618
|
+
const collapseValue = shallowRef(
|
|
7619
|
+
Array(list.length).fill(1).map((x, i) => `${i}`)
|
|
7620
|
+
);
|
|
7621
|
+
const change = (v, eventData) => {
|
|
7622
|
+
emit("change", v, eventData);
|
|
7623
|
+
};
|
|
7624
|
+
return (_ctx, _cache) => {
|
|
7625
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
7626
|
+
createVNode(unref(TMagicCollapse), { "model-value": collapseValue.value }, {
|
|
7627
|
+
default: withCtx(() => [
|
|
7628
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(list, (item, index) => {
|
|
7629
|
+
return createVNode(unref(TMagicCollapseItem), {
|
|
7630
|
+
key: index,
|
|
7631
|
+
name: `${index}`
|
|
7632
|
+
}, {
|
|
7633
|
+
title: withCtx(() => [
|
|
7634
|
+
createVNode(_sfc_main$1s, { icon: unref(Grid) }, null, 8, ["icon"]),
|
|
7635
|
+
createTextVNode(toDisplayString(item.title), 1)
|
|
7636
|
+
]),
|
|
7637
|
+
default: withCtx(() => [
|
|
7638
|
+
item.component ? (openBlock(), createBlock(resolveDynamicComponent(item.component), {
|
|
7639
|
+
key: 0,
|
|
7640
|
+
values: _ctx.model[_ctx.name],
|
|
7641
|
+
onChange: change
|
|
7642
|
+
}, null, 40, ["values"])) : createCommentVNode("", true)
|
|
7643
|
+
]),
|
|
7644
|
+
_: 2
|
|
7645
|
+
}, 1032, ["name"]);
|
|
7646
|
+
}), 64))
|
|
7647
|
+
]),
|
|
7648
|
+
_: 1
|
|
7649
|
+
}, 8, ["model-value"])
|
|
7650
|
+
]);
|
|
7651
|
+
};
|
|
7652
|
+
}
|
|
7653
|
+
});
|
|
7654
|
+
|
|
7655
|
+
const _hoisted_1$i = {
|
|
7656
|
+
key: 1,
|
|
7657
|
+
class: "m-fields-ui-select",
|
|
7658
|
+
style: { "display": "flex" }
|
|
7659
|
+
};
|
|
7660
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
7661
|
+
...{
|
|
7662
|
+
name: "MFieldsUISelect"
|
|
7663
|
+
},
|
|
7664
|
+
__name: "UISelect",
|
|
7665
|
+
props: {
|
|
7666
|
+
config: {},
|
|
7667
|
+
model: {},
|
|
7668
|
+
initValues: {},
|
|
7669
|
+
values: {},
|
|
7670
|
+
name: {},
|
|
7671
|
+
prop: {},
|
|
7672
|
+
disabled: { type: Boolean },
|
|
7673
|
+
size: {},
|
|
7674
|
+
lastValues: {}
|
|
7675
|
+
},
|
|
7676
|
+
emits: ["change"],
|
|
7677
|
+
setup(__props, { emit: __emit }) {
|
|
7678
|
+
const props = __props;
|
|
7679
|
+
const emit = __emit;
|
|
7680
|
+
const services = inject("services");
|
|
7681
|
+
const mForm = inject("mForm");
|
|
7682
|
+
const val = computed(() => props.model[props.name]);
|
|
7683
|
+
const uiSelectMode = ref(false);
|
|
7684
|
+
const cancelHandler = () => {
|
|
7685
|
+
if (!services?.uiService) return;
|
|
7686
|
+
services.uiService.set("uiSelectMode", false);
|
|
7687
|
+
uiSelectMode.value = false;
|
|
7688
|
+
globalThis.document.removeEventListener(UI_SELECT_MODE_EVENT_NAME, clickHandler);
|
|
7689
|
+
};
|
|
7690
|
+
const clickHandler = ({ detail }) => {
|
|
7691
|
+
let { id } = detail;
|
|
7692
|
+
if (detail.nodeType) {
|
|
7693
|
+
id = getIdFromEl()(detail) || id;
|
|
7694
|
+
}
|
|
7695
|
+
if (id) {
|
|
7696
|
+
props.model[props.name] = id;
|
|
7697
|
+
emit("change", id);
|
|
7698
|
+
mForm?.$emit("field-change", props.prop, id);
|
|
7699
|
+
}
|
|
7700
|
+
if (cancelHandler) {
|
|
7701
|
+
cancelHandler();
|
|
7702
|
+
}
|
|
7703
|
+
};
|
|
7704
|
+
const toName = computed(() => {
|
|
7705
|
+
const config = services?.editorService.getNodeById(val.value);
|
|
7706
|
+
return config?.name || "";
|
|
7707
|
+
});
|
|
7708
|
+
const startSelect = () => {
|
|
7709
|
+
if (!services?.uiService) return;
|
|
7710
|
+
services.uiService.set("uiSelectMode", true);
|
|
7711
|
+
uiSelectMode.value = true;
|
|
7712
|
+
globalThis.document.addEventListener(UI_SELECT_MODE_EVENT_NAME, clickHandler);
|
|
7713
|
+
};
|
|
7714
|
+
const deleteHandler = () => {
|
|
7715
|
+
if (props.model) {
|
|
7716
|
+
props.model[props.name] = "";
|
|
7717
|
+
emit("change", "");
|
|
7718
|
+
mForm?.$emit("field-change", props.prop, "");
|
|
7719
|
+
}
|
|
7720
|
+
};
|
|
7721
|
+
const selectNode = async (id) => {
|
|
7722
|
+
if (!services) return;
|
|
7723
|
+
await services.editorService.select(id);
|
|
7724
|
+
services.editorService.get("stage")?.select(id);
|
|
7725
|
+
services.stageOverlayService.get("stage")?.select(id);
|
|
6843
7726
|
};
|
|
6844
7727
|
const highlight = throttle((id) => {
|
|
6845
7728
|
if (!services) return;
|
|
@@ -7211,7 +8094,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
7211
8094
|
disabled: disabled.value
|
|
7212
8095
|
}, {
|
|
7213
8096
|
default: withCtx(() => [
|
|
7214
|
-
_ctx.data.icon ? (openBlock(), createBlock(_sfc_main$
|
|
8097
|
+
_ctx.data.icon ? (openBlock(), createBlock(_sfc_main$1s, {
|
|
7215
8098
|
key: 0,
|
|
7216
8099
|
icon: _ctx.data.icon
|
|
7217
8100
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -7229,7 +8112,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
7229
8112
|
title: _ctx.data.text
|
|
7230
8113
|
}, {
|
|
7231
8114
|
default: withCtx(() => [
|
|
7232
|
-
_ctx.data.icon ? (openBlock(), createBlock(_sfc_main$
|
|
8115
|
+
_ctx.data.icon ? (openBlock(), createBlock(_sfc_main$1s, {
|
|
7233
8116
|
key: 0,
|
|
7234
8117
|
icon: _ctx.data.icon
|
|
7235
8118
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -7313,7 +8196,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
7313
8196
|
return showAddPageButton.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
7314
8197
|
createVNode(unref(TMagicPopover), { "popper-class": "data-source-list-panel-add-menu" }, {
|
|
7315
8198
|
reference: withCtx(() => [
|
|
7316
|
-
createVNode(_sfc_main$
|
|
8199
|
+
createVNode(_sfc_main$1s, { icon: unref(Plus) }, null, 8, ["icon"])
|
|
7317
8200
|
]),
|
|
7318
8201
|
default: withCtx(() => [
|
|
7319
8202
|
createVNode(_sfc_main$z, {
|
|
@@ -7481,14 +8364,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7481
8364
|
class: "m-editor-page-bar-item m-editor-page-bar-item-icon m-editor-page-bar-item-left-icon",
|
|
7482
8365
|
onClick: _cache[0] || (_cache[0] = ($event) => scroll("left"))
|
|
7483
8366
|
}, [
|
|
7484
|
-
createVNode(_sfc_main$
|
|
8367
|
+
createVNode(_sfc_main$1s, { icon: unref(ArrowLeftBold) }, null, 8, ["icon"])
|
|
7485
8368
|
])) : createCommentVNode("", true),
|
|
7486
8369
|
canScroll.value ? (openBlock(), createElementBlock("div", {
|
|
7487
8370
|
key: 2,
|
|
7488
8371
|
class: "m-editor-page-bar-item m-editor-page-bar-item-icon m-editor-page-bar-item-right-icon",
|
|
7489
8372
|
onClick: _cache[1] || (_cache[1] = ($event) => scroll("right"))
|
|
7490
8373
|
}, [
|
|
7491
|
-
createVNode(_sfc_main$
|
|
8374
|
+
createVNode(_sfc_main$1s, { icon: unref(ArrowRightBold) }, null, 8, ["icon"])
|
|
7492
8375
|
])) : createCommentVNode("", true)
|
|
7493
8376
|
], 512);
|
|
7494
8377
|
};
|
|
@@ -7598,7 +8481,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
7598
8481
|
};
|
|
7599
8482
|
return (_ctx, _cache) => {
|
|
7600
8483
|
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
7601
|
-
createVNode(_sfc_main$
|
|
8484
|
+
createVNode(_sfc_main$1s, {
|
|
7602
8485
|
icon: unref(Search),
|
|
7603
8486
|
onClick: _cache[0] || (_cache[0] = ($event) => visible.value = !visible.value),
|
|
7604
8487
|
class: normalizeClass({ "icon-active": visible.value })
|
|
@@ -7822,7 +8705,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
7822
8705
|
onClick: _cache[0] || (_cache[0] = ($event) => clickHandler(unref(NodeType).PAGE))
|
|
7823
8706
|
}, [
|
|
7824
8707
|
createElementVNode("div", null, [
|
|
7825
|
-
createVNode(_sfc_main$
|
|
8708
|
+
createVNode(_sfc_main$1s, { icon: unref(Plus) }, null, 8, ["icon"])
|
|
7826
8709
|
]),
|
|
7827
8710
|
_cache[2] || (_cache[2] = createElementVNode("p", null, "新增页面", -1))
|
|
7828
8711
|
]),
|
|
@@ -7832,7 +8715,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
7832
8715
|
onClick: _cache[1] || (_cache[1] = ($event) => clickHandler(unref(NodeType).PAGE_FRAGMENT))
|
|
7833
8716
|
}, [
|
|
7834
8717
|
createElementVNode("div", null, [
|
|
7835
|
-
createVNode(_sfc_main$
|
|
8718
|
+
createVNode(_sfc_main$1s, { icon: unref(Plus) }, null, 8, ["icon"])
|
|
7836
8719
|
]),
|
|
7837
8720
|
_cache[3] || (_cache[3] = createElementVNode("p", null, "新增页面片", -1))
|
|
7838
8721
|
])) : createCommentVNode("", true)
|
|
@@ -7924,7 +8807,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
7924
8807
|
renderSlot(_ctx.$slots, "nav"),
|
|
7925
8808
|
renderSlot(_ctx.$slots, "content-before"),
|
|
7926
8809
|
showSrc.value ? renderSlot(_ctx.$slots, "src-code", { key: 0 }, () => [
|
|
7927
|
-
createVNode(_sfc_main$
|
|
8810
|
+
createVNode(_sfc_main$1r, {
|
|
7928
8811
|
class: "m-editor-content",
|
|
7929
8812
|
"init-values": root.value,
|
|
7930
8813
|
options: unref(codeOptions),
|
|
@@ -8222,7 +9105,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
8222
9105
|
});
|
|
8223
9106
|
const internalInstance = getCurrentInstance();
|
|
8224
9107
|
onMounted(() => {
|
|
8225
|
-
emit("mounted", internalInstance);
|
|
9108
|
+
emit("mounted", internalInstance?.proxy);
|
|
8226
9109
|
});
|
|
8227
9110
|
const submit = async (v, eventData) => {
|
|
8228
9111
|
try {
|
|
@@ -8270,11 +9153,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
8270
9153
|
onClick: _cache[0] || (_cache[0] = ($event) => showSrc.value = !showSrc.value)
|
|
8271
9154
|
}, {
|
|
8272
9155
|
default: withCtx(() => [
|
|
8273
|
-
createVNode(_sfc_main$
|
|
9156
|
+
createVNode(_sfc_main$1s, { icon: unref(Document) }, null, 8, ["icon"])
|
|
8274
9157
|
]),
|
|
8275
9158
|
_: 1
|
|
8276
9159
|
}, 8, ["type"])) : createCommentVNode("", true),
|
|
8277
|
-
showSrc.value ? (openBlock(), createBlock(_sfc_main$
|
|
9160
|
+
showSrc.value ? (openBlock(), createBlock(_sfc_main$1r, {
|
|
8278
9161
|
key: 1,
|
|
8279
9162
|
class: "m-editor-props-panel-src-code",
|
|
8280
9163
|
height: `${unref(editorContentHeight)}px`,
|
|
@@ -8312,7 +9195,10 @@ const useStylePanel = (services) => {
|
|
|
8312
9195
|
};
|
|
8313
9196
|
};
|
|
8314
9197
|
|
|
8315
|
-
const _hoisted_1$a = {
|
|
9198
|
+
const _hoisted_1$a = {
|
|
9199
|
+
ref: "propsPanel",
|
|
9200
|
+
class: "m-editor-props-panel"
|
|
9201
|
+
};
|
|
8316
9202
|
const _hoisted_2$4 = { class: "m-editor-props-style-panel-title" };
|
|
8317
9203
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
8318
9204
|
...{
|
|
@@ -8356,7 +9242,18 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8356
9242
|
if (!v.id) {
|
|
8357
9243
|
v.id = values.value.id;
|
|
8358
9244
|
}
|
|
8359
|
-
|
|
9245
|
+
const newValue = {
|
|
9246
|
+
...v,
|
|
9247
|
+
style: {}
|
|
9248
|
+
};
|
|
9249
|
+
if (v.style) {
|
|
9250
|
+
Object.entries(v.style).forEach(([key, value]) => {
|
|
9251
|
+
if (value !== "" && newValue.style) {
|
|
9252
|
+
newValue.style[key] = value;
|
|
9253
|
+
}
|
|
9254
|
+
});
|
|
9255
|
+
}
|
|
9256
|
+
services?.editorService.update(newValue, { changeRecords: eventData?.changeRecords });
|
|
8360
9257
|
} catch (e) {
|
|
8361
9258
|
emit("submit-error", e);
|
|
8362
9259
|
}
|
|
@@ -8367,6 +9264,16 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8367
9264
|
const mountedHandler = (e) => {
|
|
8368
9265
|
emit("mounted", e);
|
|
8369
9266
|
};
|
|
9267
|
+
const propsPanelEl = useTemplateRef("propsPanel");
|
|
9268
|
+
const widthChange = ({ deltaX }) => {
|
|
9269
|
+
if (!propsPanelEl.value) {
|
|
9270
|
+
return;
|
|
9271
|
+
}
|
|
9272
|
+
const width = globalThis.parseFloat(
|
|
9273
|
+
getComputedStyle(propsPanelEl.value).getPropertyValue("--props-style-panel-width")
|
|
9274
|
+
);
|
|
9275
|
+
propsPanelEl.value.style.setProperty("--props-style-panel-width", `${width - deltaX}px`);
|
|
9276
|
+
};
|
|
8370
9277
|
const { showStylePanel, showStylePanelHandler, closeStylePanelHandler } = useStylePanel(services);
|
|
8371
9278
|
const propertyFormPanelRef = useTemplateRef("propertyFormPanel");
|
|
8372
9279
|
__expose({
|
|
@@ -8390,8 +9297,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8390
9297
|
onFormError: errorHandler,
|
|
8391
9298
|
onMounted: mountedHandler
|
|
8392
9299
|
}, null, 8, ["class", "config", "values", "disabledShowSrc", "extendState"]),
|
|
8393
|
-
unref(showStylePanel) ? (openBlock(), createBlock(_sfc_main$
|
|
9300
|
+
unref(showStylePanel) ? (openBlock(), createBlock(_sfc_main$B, {
|
|
8394
9301
|
key: 0,
|
|
9302
|
+
onChange: widthChange
|
|
9303
|
+
})) : createCommentVNode("", true),
|
|
9304
|
+
unref(showStylePanel) ? (openBlock(), createBlock(_sfc_main$q, {
|
|
9305
|
+
key: 1,
|
|
8395
9306
|
class: "m-editor-props-style-panel",
|
|
8396
9307
|
"label-position": "top",
|
|
8397
9308
|
"code-value-key": "style",
|
|
@@ -8413,7 +9324,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8413
9324
|
onClick: unref(closeStylePanelHandler)
|
|
8414
9325
|
}, {
|
|
8415
9326
|
default: withCtx(() => [
|
|
8416
|
-
createVNode(_sfc_main$
|
|
9327
|
+
createVNode(_sfc_main$1s, { icon: unref(Close) }, null, 8, ["icon"])
|
|
8417
9328
|
]),
|
|
8418
9329
|
_: 1
|
|
8419
9330
|
}, 8, ["onClick"])
|
|
@@ -8423,14 +9334,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8423
9334
|
_: 1
|
|
8424
9335
|
}, 8, ["values", "disabledShowSrc", "extendState"])) : createCommentVNode("", true),
|
|
8425
9336
|
!unref(showStylePanel) ? (openBlock(), createBlock(unref(TMagicButton), {
|
|
8426
|
-
key:
|
|
9337
|
+
key: 2,
|
|
8427
9338
|
class: "m-editor-props-panel-style-icon",
|
|
8428
9339
|
circle: "",
|
|
8429
9340
|
type: unref(showStylePanel) ? "primary" : "",
|
|
8430
9341
|
onClick: unref(showStylePanelHandler)
|
|
8431
9342
|
}, {
|
|
8432
9343
|
default: withCtx(() => [
|
|
8433
|
-
createVNode(_sfc_main$
|
|
9344
|
+
createVNode(_sfc_main$1s, { icon: unref(Sugar) }, null, 8, ["icon"])
|
|
8434
9345
|
]),
|
|
8435
9346
|
_: 1
|
|
8436
9347
|
}, 8, ["type", "onClick"])) : createCommentVNode("", true)
|
|
@@ -8730,7 +9641,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8730
9641
|
onContextmenu: nodeContentmenuHandler,
|
|
8731
9642
|
onMouseenter: mouseenterHandler
|
|
8732
9643
|
}, [
|
|
8733
|
-
createVNode(_sfc_main$
|
|
9644
|
+
createVNode(_sfc_main$1s, {
|
|
8734
9645
|
class: "expand-icon",
|
|
8735
9646
|
style: normalizeStyle(hasChildren.value ? "" : "color: transparent; cursor: default"),
|
|
8736
9647
|
icon: expanded.value ? unref(ArrowDown) : unref(ArrowRight),
|
|
@@ -8980,7 +9891,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8980
9891
|
placement: "bottom"
|
|
8981
9892
|
}, {
|
|
8982
9893
|
default: withCtx(() => [
|
|
8983
|
-
createVNode(_sfc_main$
|
|
9894
|
+
createVNode(_sfc_main$1s, {
|
|
8984
9895
|
icon: editable.value ? unref(Edit) : unref(View),
|
|
8985
9896
|
class: "edit-icon",
|
|
8986
9897
|
onClick: withModifiers(($event) => editCode(`${data.key}`), ["stop"])
|
|
@@ -8995,7 +9906,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8995
9906
|
placement: "bottom"
|
|
8996
9907
|
}, {
|
|
8997
9908
|
default: withCtx(() => [
|
|
8998
|
-
createVNode(_sfc_main$
|
|
9909
|
+
createVNode(_sfc_main$1s, {
|
|
8999
9910
|
icon: unref(Close),
|
|
9000
9911
|
class: "edit-icon",
|
|
9001
9912
|
onClick: withModifiers(($event) => deleteCode(`${data.key}`), ["stop"])
|
|
@@ -9156,7 +10067,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
9156
10067
|
]),
|
|
9157
10068
|
_: 3
|
|
9158
10069
|
}),
|
|
9159
|
-
unref(codeConfig) ? (openBlock(), createBlock(_sfc_main$
|
|
10070
|
+
unref(codeConfig) ? (openBlock(), createBlock(_sfc_main$1f, {
|
|
9160
10071
|
key: 0,
|
|
9161
10072
|
ref_key: "codeBlockEditor",
|
|
9162
10073
|
ref: codeBlockEditor,
|
|
@@ -9256,7 +10167,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9256
10167
|
}
|
|
9257
10168
|
});
|
|
9258
10169
|
return (_ctx, _cache) => {
|
|
9259
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10170
|
+
return openBlock(), createBlock(_sfc_main$1k, {
|
|
9260
10171
|
visible: boxVisible.value,
|
|
9261
10172
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => boxVisible.value = $event),
|
|
9262
10173
|
width: width.value,
|
|
@@ -9420,7 +10331,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9420
10331
|
placement: "bottom"
|
|
9421
10332
|
}, {
|
|
9422
10333
|
default: withCtx(() => [
|
|
9423
|
-
createVNode(_sfc_main$
|
|
10334
|
+
createVNode(_sfc_main$1s, {
|
|
9424
10335
|
icon: editable.value ? unref(Edit) : unref(View),
|
|
9425
10336
|
class: "edit-icon",
|
|
9426
10337
|
onClick: withModifiers(($event) => editHandler(`${data.key}`), ["stop"])
|
|
@@ -9435,7 +10346,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9435
10346
|
placement: "bottom"
|
|
9436
10347
|
}, {
|
|
9437
10348
|
default: withCtx(() => [
|
|
9438
|
-
createVNode(_sfc_main$
|
|
10349
|
+
createVNode(_sfc_main$1s, {
|
|
9439
10350
|
icon: unref(Close),
|
|
9440
10351
|
class: "edit-icon",
|
|
9441
10352
|
onClick: withModifiers(($event) => removeHandler(`${data.key}`), ["stop"])
|
|
@@ -9874,12 +10785,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
9874
10785
|
};
|
|
9875
10786
|
return (_ctx, _cache) => {
|
|
9876
10787
|
return _ctx.data.type !== "page" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
9877
|
-
_ctx.data.visible === false ? (openBlock(), createBlock(_sfc_main$
|
|
10788
|
+
_ctx.data.visible === false ? (openBlock(), createBlock(_sfc_main$1s, {
|
|
9878
10789
|
key: 0,
|
|
9879
10790
|
icon: unref(Hide),
|
|
9880
10791
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => setNodeVisible(true), ["stop"])),
|
|
9881
10792
|
title: "点击显示"
|
|
9882
|
-
}, null, 8, ["icon"])) : (openBlock(), createBlock(_sfc_main$
|
|
10793
|
+
}, null, 8, ["icon"])) : (openBlock(), createBlock(_sfc_main$1s, {
|
|
9883
10794
|
key: 1,
|
|
9884
10795
|
icon: unref(View),
|
|
9885
10796
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => setNodeVisible(false), ["stop"])),
|
|
@@ -10540,7 +11451,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
10540
11451
|
name: `${index}`
|
|
10541
11452
|
}, {
|
|
10542
11453
|
title: withCtx(() => [
|
|
10543
|
-
createVNode(_sfc_main$
|
|
11454
|
+
createVNode(_sfc_main$1s, { icon: unref(Grid) }, null, 8, ["icon"]),
|
|
10544
11455
|
createTextVNode(toDisplayString(group.title), 1)
|
|
10545
11456
|
]),
|
|
10546
11457
|
default: withCtx(() => [
|
|
@@ -10561,7 +11472,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
10561
11472
|
content: item.desc
|
|
10562
11473
|
}, {
|
|
10563
11474
|
default: withCtx(() => [
|
|
10564
|
-
createVNode(_sfc_main$
|
|
11475
|
+
createVNode(_sfc_main$1s, {
|
|
10565
11476
|
icon: item.icon
|
|
10566
11477
|
}, null, 8, ["icon"])
|
|
10567
11478
|
]),
|
|
@@ -10752,7 +11663,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
10752
11663
|
(...args) => unref(dragstartHandler) && unref(dragstartHandler)(...args)),
|
|
10753
11664
|
onDragend: ($event) => unref(dragendHandler)(config.$key, $event)
|
|
10754
11665
|
}, [
|
|
10755
|
-
config.icon ? (openBlock(), createBlock(_sfc_main$
|
|
11666
|
+
config.icon ? (openBlock(), createBlock(_sfc_main$1s, {
|
|
10756
11667
|
key: 0,
|
|
10757
11668
|
icon: config.icon
|
|
10758
11669
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -10898,7 +11809,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
10898
11809
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
10899
11810
|
(openBlock(true), createElementBlock(Fragment, null, renderList(sideBarItems.value, (config, index) => {
|
|
10900
11811
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
10901
|
-
unref(floatBoxStates)[config.$key]?.status ? (openBlock(), createBlock(_sfc_main$
|
|
11812
|
+
unref(floatBoxStates)[config.$key]?.status ? (openBlock(), createBlock(_sfc_main$1k, {
|
|
10902
11813
|
key: config.$key ?? index,
|
|
10903
11814
|
visible: unref(floatBoxStates)[config.$key].status,
|
|
10904
11815
|
"onUpdate:visible": ($event) => unref(floatBoxStates)[config.$key].status = $event,
|
|
@@ -11201,7 +12112,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11201
12112
|
]),
|
|
11202
12113
|
_: 1
|
|
11203
12114
|
})) : createCommentVNode("", true),
|
|
11204
|
-
page.value && unref(nodeStatusMap) && buttonVisible.value ? (openBlock(), createBlock(_sfc_main$
|
|
12115
|
+
page.value && unref(nodeStatusMap) && buttonVisible.value ? (openBlock(), createBlock(_sfc_main$1k, {
|
|
11205
12116
|
key: 1,
|
|
11206
12117
|
ref_key: "box",
|
|
11207
12118
|
ref: box,
|
|
@@ -13379,25 +14290,26 @@ const index = {
|
|
|
13379
14290
|
app.config.globalProperties.$TMAGIC_EDITOR = option;
|
|
13380
14291
|
setEditorConfig(option);
|
|
13381
14292
|
app.component(`${_sfc_main.name || "MEditor"}`, _sfc_main);
|
|
13382
|
-
app.component("magic-code-editor", _sfc_main$
|
|
14293
|
+
app.component("magic-code-editor", _sfc_main$1r);
|
|
13383
14294
|
app.component("m-fields-ui-select", _sfc_main$C);
|
|
13384
|
-
app.component("m-fields-code-link", _sfc_main$
|
|
13385
|
-
app.component("m-fields-vs-code", _sfc_main$
|
|
13386
|
-
app.component("m-fields-code-select", _sfc_main$
|
|
13387
|
-
app.component("m-fields-code-select-col", _sfc_main$
|
|
13388
|
-
app.component("m-fields-event-select", _sfc_main$
|
|
13389
|
-
app.component("m-fields-data-source-fields", _sfc_main$
|
|
13390
|
-
app.component("m-fields-data-source-mocks", _sfc_main$
|
|
13391
|
-
app.component("m-fields-key-value", _sfc_main$
|
|
13392
|
-
app.component("m-fields-data-source-input", _sfc_main$
|
|
13393
|
-
app.component("m-fields-data-source-select", _sfc_main$
|
|
13394
|
-
app.component("m-fields-data-source-methods", _sfc_main$
|
|
13395
|
-
app.component("m-fields-data-source-method-select", _sfc_main$
|
|
13396
|
-
app.component("m-fields-data-source-field-select", _sfc_main$
|
|
13397
|
-
app.component("m-fields-page-fragment-select", _sfc_main$
|
|
13398
|
-
app.component("m-fields-display-conds", _sfc_main$
|
|
13399
|
-
app.component("m-fields-cond-op-select", _sfc_main$
|
|
14295
|
+
app.component("m-fields-code-link", _sfc_main$1p);
|
|
14296
|
+
app.component("m-fields-vs-code", _sfc_main$1q);
|
|
14297
|
+
app.component("m-fields-code-select", _sfc_main$1o);
|
|
14298
|
+
app.component("m-fields-code-select-col", _sfc_main$1m);
|
|
14299
|
+
app.component("m-fields-event-select", _sfc_main$19);
|
|
14300
|
+
app.component("m-fields-data-source-fields", _sfc_main$1j);
|
|
14301
|
+
app.component("m-fields-data-source-mocks", _sfc_main$1c);
|
|
14302
|
+
app.component("m-fields-key-value", _sfc_main$17);
|
|
14303
|
+
app.component("m-fields-data-source-input", _sfc_main$1g);
|
|
14304
|
+
app.component("m-fields-data-source-select", _sfc_main$1b);
|
|
14305
|
+
app.component("m-fields-data-source-methods", _sfc_main$1e);
|
|
14306
|
+
app.component("m-fields-data-source-method-select", _sfc_main$1d);
|
|
14307
|
+
app.component("m-fields-data-source-field-select", _sfc_main$1h);
|
|
14308
|
+
app.component("m-fields-page-fragment-select", _sfc_main$16);
|
|
14309
|
+
app.component("m-fields-display-conds", _sfc_main$1a);
|
|
14310
|
+
app.component("m-fields-cond-op-select", _sfc_main$1l);
|
|
14311
|
+
app.component("m-form-style-setter", _sfc_main$D);
|
|
13400
14312
|
}
|
|
13401
14313
|
};
|
|
13402
14314
|
|
|
13403
|
-
export { CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, _sfc_main$
|
|
14315
|
+
export { CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, _sfc_main$1f as CodeBlockEditor, _sfc_main$k as CodeBlockList, _sfc_main$j as CodeBlockListPanel, CodeDeleteErrorType, _sfc_main$1o as CodeSelect, _sfc_main$1m as CodeSelectCol, ColumnLayout, _sfc_main$b as ComponentListPanel, _sfc_main$1l as CondOpSelect, _sfc_main$o as ContentMenu, _sfc_main$i as DataSourceConfigPanel, _sfc_main$1h as DataSourceFieldSelect, _sfc_main$1j as DataSourceFields, _sfc_main$1g as DataSourceInput, _sfc_main$1d as DataSourceMethodSelect, _sfc_main$1e as DataSourceMethods, _sfc_main$1c as DataSourceMocks, _sfc_main$1b as DataSourceSelect, _sfc_main$1a as DisplayConds, DragType, _sfc_main$19 as EventSelect, Fixed2Other, _sfc_main$1k as FloatingBox, H_GUIDE_LINE_STORAGE_KEY, _sfc_main$1s as Icon, IdleTask, KeyBindingCommand, _sfc_main$17 as KeyValue, Keys, LayerOffset, _sfc_main$c as LayerPanel, Layout, _sfc_main$A as LayoutContainer, _sfc_main$16 as PageFragmentSelect, _sfc_main$q as PropsFormPanel, _sfc_main$p as PropsPanel, _sfc_main$B as Resizer, ScrollViewer, SideItemKey, _sfc_main$A as SplitView, _sfc_main$D as StyleSetter, _sfc_main$1r as TMagicCodeEditor, _sfc_main as TMagicEditor, _sfc_main$z as ToolButton, _sfc_main$l as Tree, _sfc_main$m as TreeNode, UI_SELECT_MODE_EVENT_NAME, UndoRedo, V_GUIDE_LINE_STORAGE_KEY, advancedTabConfig, arrayOptions, beforePaste, change2Fixed, codeBlockService, dataSourceService, debug, index as default, depService, displayTabConfig, editorService, eqOptions, error, eventTabConfig, eventsService, fillConfig$1 as fillConfig, fixNodeLeft, fixNodePosition, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getDefaultConfig, getDisplayField, getEditorConfig, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, historyService, info, isIncludeDataSource, log, moveItemsInContainer, numberOptions, propsService, removeDataSourceFieldPrefix, serializeConfig, setChildrenLayout, setEditorConfig, setLayout, stageOverlayService, storageService, styleTabConfig, uiService, updateStatus, useCodeBlockEdit, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useNextFloatBoxPosition, useNodeStatus$1 as useNodeStatus, useStage, useWindowRect, warn };
|