@web-utils/component 4.0.0 → 4.0.2
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/awesome-button/index.mjs +25 -55
- package/base.css +1 -1
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/dictionary.DsN-2ukC.mjs +70 -0
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow-designer/index.mjs +343 -374
- package/flow-designer/style.css +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +54 -40
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +37 -69
- package/form-view/style.css +1 -1
- package/fy-curd/index.mjs +131 -140
- package/fy-curd/style.css +1 -1
- package/fy-draggable/index.mjs +16 -26
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +48 -57
- package/fy-empty/style.css +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +314 -339
- package/fy-form-design/style.css +1 -1
- package/fy-input-map/index.mjs +40 -50
- package/fy-input-map/style.css +1 -1
- package/fy-input-table/index.mjs +31 -41
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/monaco-editor/index.mjs +43 -71
- package/name-avatar/style.css +1 -1
- package/package.json +5 -4
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +385 -218
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +56 -95
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +1 -1
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +166 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +177 -132
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/vue-cron/index.mjs +47 -65
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +13 -24
- package/vue-tags-input/index.mjs +10 -21
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +34 -63
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3840
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
package/fy-form-design/index.mjs
CHANGED
|
@@ -1,40 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var S = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var $ = (l, e, t) => e in l ? F(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, p = (l, e) => {
|
|
5
|
-
for (var t in e || (e = {}))
|
|
6
|
-
S.call(e, t) && $(l, t, e[t]);
|
|
7
|
-
if (k)
|
|
8
|
-
for (var t of k(e))
|
|
9
|
-
A.call(e, t) && $(l, t, e[t]);
|
|
10
|
-
return l;
|
|
11
|
-
};
|
|
12
|
-
var y = (l, e, t) => new Promise((a, i) => {
|
|
13
|
-
var s = (n) => {
|
|
14
|
-
try {
|
|
15
|
-
r(t.next(n));
|
|
16
|
-
} catch (u) {
|
|
17
|
-
i(u);
|
|
18
|
-
}
|
|
19
|
-
}, o = (n) => {
|
|
20
|
-
try {
|
|
21
|
-
r(t.throw(n));
|
|
22
|
-
} catch (u) {
|
|
23
|
-
i(u);
|
|
24
|
-
}
|
|
25
|
-
}, r = (n) => n.done ? a(n.value) : Promise.resolve(n.value).then(s, o);
|
|
26
|
-
r((t = t.apply(l, e)).next());
|
|
27
|
-
});
|
|
28
|
-
import { isBlank as C } from "@web-utils/core";
|
|
29
|
-
import b from "../monaco-editor/index.mjs";
|
|
1
|
+
import { isBlank as E } from "@web-utils/core";
|
|
2
|
+
import f from "../monaco-editor/index.mjs";
|
|
30
3
|
import "../monaco-editor/style.css";
|
|
31
|
-
import
|
|
32
|
-
import { c as
|
|
33
|
-
import { d as
|
|
34
|
-
import { cloneDeep as
|
|
4
|
+
import b from "vuedraggable";
|
|
5
|
+
import { c as v } from "../chunks/json-beautifier.Bp3GslGm.mjs";
|
|
6
|
+
import { d as p, z as u } from "../chunks/util.DqFv_pWg.mjs";
|
|
7
|
+
import { cloneDeep as g } from "@web-utils/integrations/lodash";
|
|
35
8
|
import "../fy-u-editor/style.css";
|
|
36
9
|
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
37
|
-
const
|
|
10
|
+
const _ = [
|
|
38
11
|
{
|
|
39
12
|
title: "布局字段",
|
|
40
13
|
list: [
|
|
@@ -493,7 +466,7 @@ const E = [
|
|
|
493
466
|
}
|
|
494
467
|
]
|
|
495
468
|
}
|
|
496
|
-
],
|
|
469
|
+
], $ = "data:image/png;base64,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", C = (l) => new Function(`return ${l}`)(), w = {
|
|
497
470
|
data() {
|
|
498
471
|
return {
|
|
499
472
|
historySteps: {
|
|
@@ -507,7 +480,7 @@ const E = [
|
|
|
507
480
|
watch: {
|
|
508
481
|
historySteps: {
|
|
509
482
|
handler(l) {
|
|
510
|
-
l.storage ? localStorage.setItem("avue-form-history",
|
|
483
|
+
l.storage ? localStorage.setItem("avue-form-history", v(l)) : localStorage.removeItem("avue-form-history");
|
|
511
484
|
},
|
|
512
485
|
deep: !0
|
|
513
486
|
}
|
|
@@ -517,26 +490,29 @@ const E = [
|
|
|
517
490
|
if (l.storage) {
|
|
518
491
|
const a = localStorage.getItem("avue-form-history");
|
|
519
492
|
if (a) {
|
|
520
|
-
this.historySteps =
|
|
493
|
+
this.historySteps = C(a);
|
|
521
494
|
const { index: i, steps: s } = this.historySteps;
|
|
522
|
-
return
|
|
495
|
+
return g(s[i]);
|
|
523
496
|
}
|
|
524
497
|
}
|
|
525
|
-
this.historySteps =
|
|
498
|
+
this.historySteps = {
|
|
499
|
+
...this.historySteps,
|
|
500
|
+
...l
|
|
501
|
+
};
|
|
526
502
|
const { index: e, steps: t } = this.historySteps;
|
|
527
|
-
return
|
|
503
|
+
return g(t[e]);
|
|
528
504
|
},
|
|
529
505
|
handleHistoryChange(l) {
|
|
530
|
-
this.historySteps.index === this.historySteps.maxStep - 1 ? this.historySteps.steps.shift() : this.historySteps.index++, this.historySteps.steps[this.historySteps.index] =
|
|
506
|
+
this.historySteps.index === this.historySteps.maxStep - 1 ? this.historySteps.steps.shift() : this.historySteps.index++, this.historySteps.steps[this.historySteps.index] = g(l), this.historySteps.index < this.historySteps.steps.length - 1 && (this.historySteps.steps = this.historySteps.steps.slice(0, this.historySteps.index + 1));
|
|
531
507
|
},
|
|
532
508
|
handleUndo() {
|
|
533
|
-
return this.historySteps.index !== 0 && this.historySteps.index--,
|
|
509
|
+
return this.historySteps.index !== 0 && this.historySteps.index--, g(this.historySteps.steps[this.historySteps.index]);
|
|
534
510
|
},
|
|
535
511
|
handleRedo() {
|
|
536
|
-
return this.historySteps.index !== this.historySteps.steps.length - 1 && this.historySteps.index++,
|
|
512
|
+
return this.historySteps.index !== this.historySteps.steps.length - 1 && this.historySteps.index++, g(this.historySteps.steps[this.historySteps.index]);
|
|
537
513
|
}
|
|
538
514
|
}
|
|
539
|
-
},
|
|
515
|
+
}, I = {
|
|
540
516
|
name: "WidgetFormItem",
|
|
541
517
|
components: { FyUEditor: () => import("../fy-u-editor/index.mjs") },
|
|
542
518
|
props: {
|
|
@@ -551,7 +527,7 @@ const E = [
|
|
|
551
527
|
},
|
|
552
528
|
computed: {
|
|
553
529
|
vBind() {
|
|
554
|
-
const l = Object.assign(
|
|
530
|
+
const l = Object.assign(p(this.item), this.params, {
|
|
555
531
|
size: this.item.size || "small",
|
|
556
532
|
dic: this.item.dicData ? this.item.dicData.map((t) => {
|
|
557
533
|
if (!this.item.props) return t;
|
|
@@ -594,20 +570,20 @@ const E = [
|
|
|
594
570
|
}
|
|
595
571
|
}
|
|
596
572
|
};
|
|
597
|
-
var
|
|
573
|
+
var F = function() {
|
|
598
574
|
var e = this, t = e._self._c;
|
|
599
575
|
return t("div", [e.item.type === "title" ? t("div", { staticStyle: { "margin-left": "5px" }, style: e.item.styles }, [e._v(" " + e._s(e.item.value) + " ")]) : t(e.getComponent(e.item.type, e.item.component), e._b({ tag: "Component", attrs: { multiple: !1, placeholder: e.item.placeholder || e.getPlaceholder(e.item), value: ["time", "timerange", "checkbox"].includes(e.item.type) ? e.item.dicData : void 0 } }, "Component", e.vBind, !1), [e.params.html ? t("span", { domProps: { innerHTML: e._s(e.params.html) } }) : e._e()])], 1);
|
|
600
|
-
},
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
576
|
+
}, S = [], A = /* @__PURE__ */ c(
|
|
577
|
+
I,
|
|
578
|
+
F,
|
|
579
|
+
S,
|
|
604
580
|
!1,
|
|
605
581
|
null,
|
|
606
582
|
null
|
|
607
583
|
);
|
|
608
|
-
const
|
|
584
|
+
const y = A.exports, O = {
|
|
609
585
|
name: "WidgetFormTable",
|
|
610
|
-
components: { WidgetFormItem:
|
|
586
|
+
components: { WidgetFormItem: y, Draggable: b },
|
|
611
587
|
props: {
|
|
612
588
|
data: Object,
|
|
613
589
|
column: Object,
|
|
@@ -643,7 +619,7 @@ const x = P.exports, D = {
|
|
|
643
619
|
});
|
|
644
620
|
},
|
|
645
621
|
handleWidgetCloneTable(l) {
|
|
646
|
-
const e =
|
|
622
|
+
const e = p(this.data.column[l]);
|
|
647
623
|
e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, e.children.column.forEach((t) => {
|
|
648
624
|
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
|
|
649
625
|
}), this.data.column.splice(l, 0, e), this.$nextTick(() => {
|
|
@@ -657,15 +633,15 @@ const x = P.exports, D = {
|
|
|
657
633
|
e.children.column.splice(t, 1);
|
|
658
634
|
return;
|
|
659
635
|
}
|
|
660
|
-
const i =
|
|
661
|
-
i.prop || (i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), i.subfield = !0, delete i.icon, this.$set(e.children.column, t,
|
|
636
|
+
const i = p(e.children.column[t]);
|
|
637
|
+
i.prop || (i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), i.subfield = !0, delete i.icon, this.$set(e.children.column, t, { ...i }), this.selectWidget = e.children.column[t], this.$emit("change");
|
|
662
638
|
},
|
|
663
639
|
handleWidgetTableSelect(l) {
|
|
664
640
|
this.selectWidget = l;
|
|
665
641
|
},
|
|
666
642
|
handleWidgetTableClone(l, e) {
|
|
667
|
-
const t =
|
|
668
|
-
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(l.children.column, l.children.column.length,
|
|
643
|
+
const t = p(e);
|
|
644
|
+
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(l.children.column, l.children.column.length, { ...t }), this.$nextTick(() => {
|
|
669
645
|
this.selectWidget = l.children.column[l.children.column.length - 1], this.$emit("change");
|
|
670
646
|
});
|
|
671
647
|
},
|
|
@@ -676,7 +652,7 @@ const x = P.exports, D = {
|
|
|
676
652
|
}
|
|
677
653
|
}
|
|
678
654
|
};
|
|
679
|
-
var
|
|
655
|
+
var B = function() {
|
|
680
656
|
var e = this, t = e._self._c;
|
|
681
657
|
return t("div", [t("h3", { directives: [{ name: "show", rawName: "v-show", value: e.column.label, expression: "column.label" }], staticStyle: { margin: "10px" } }, [e._v(" " + e._s(e.column.label) + " ")]), t("Draggable", { staticClass: "widget-form-table__content", attrs: { list: e.column.children.column, group: { name: "form" }, "ghost-class": "ghost", animation: 200, handle: ".widget-form-table__item" }, on: { add: function(a) {
|
|
682
658
|
return e.handleWidgetTableAdd(a, e.column);
|
|
@@ -700,17 +676,17 @@ var M = function() {
|
|
|
700
676
|
} } }, [t("i", { staticClass: "iconfont icon-clear" })]) : e._e(), e.selectWidget.prop === e.column.prop ? t("ElButton", { staticClass: "widget-action-clone", attrs: { title: "复制", circle: "", plain: "", size: "small", type: "primary" }, on: { click: function(a) {
|
|
701
677
|
return a.stopPropagation(), e.handleWidgetCloneTable(e.index);
|
|
702
678
|
} } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1);
|
|
703
|
-
},
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
679
|
+
}, W = [], T = /* @__PURE__ */ c(
|
|
680
|
+
O,
|
|
681
|
+
B,
|
|
682
|
+
W,
|
|
707
683
|
!1,
|
|
708
684
|
null,
|
|
709
685
|
null
|
|
710
686
|
);
|
|
711
|
-
const
|
|
687
|
+
const x = T.exports, z = {
|
|
712
688
|
name: "WidgetFormGroup",
|
|
713
|
-
components: { WidgetFormItem:
|
|
689
|
+
components: { WidgetFormItem: y, WidgetFormTable: x, Draggable: b },
|
|
714
690
|
props: {
|
|
715
691
|
data: Object,
|
|
716
692
|
column: Object,
|
|
@@ -746,7 +722,7 @@ const w = K.exports, j = {
|
|
|
746
722
|
});
|
|
747
723
|
},
|
|
748
724
|
handleWidgetCloneTable(l) {
|
|
749
|
-
const e =
|
|
725
|
+
const e = p(this.data.column[l]);
|
|
750
726
|
e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, e.children.column.forEach((t) => {
|
|
751
727
|
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
|
|
752
728
|
}), this.data.column.splice(l, 0, e), this.$nextTick(() => {
|
|
@@ -757,8 +733,8 @@ const w = K.exports, j = {
|
|
|
757
733
|
this.selectWidget = l;
|
|
758
734
|
},
|
|
759
735
|
handleWidgetTableClone(l, e) {
|
|
760
|
-
const t =
|
|
761
|
-
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(l.children.column, l.children.column.length,
|
|
736
|
+
const t = p(e);
|
|
737
|
+
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(l.children.column, l.children.column.length, { ...t }), this.$nextTick(() => {
|
|
762
738
|
this.selectWidget = l.children.column[l.children.column.length - 1], this.$emit("change");
|
|
763
739
|
});
|
|
764
740
|
},
|
|
@@ -774,12 +750,12 @@ const w = K.exports, j = {
|
|
|
774
750
|
e.children.column.splice(t, 1);
|
|
775
751
|
return;
|
|
776
752
|
}
|
|
777
|
-
const i =
|
|
778
|
-
i.prop || (i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete i.icon, i.type === "dynamic" ? i.span = 24 : i.span = 12, this.$set(e.children.column, t,
|
|
753
|
+
const i = p(e.children.column[t]);
|
|
754
|
+
i.prop || (i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete i.icon, i.type === "dynamic" ? i.span = 24 : i.span = 12, this.$set(e.children.column, t, { ...i }), this.selectWidget = e.children.column[t], this.$emit("change");
|
|
779
755
|
}
|
|
780
756
|
}
|
|
781
757
|
};
|
|
782
|
-
var
|
|
758
|
+
var R = function() {
|
|
783
759
|
var e = this, t = e._self._c;
|
|
784
760
|
return t("div", [t("h4", { directives: [{ name: "show", rawName: "v-show", value: e.column.label, expression: "column.label" }], staticClass: "widget-form-group__head" }, [t("i", { directives: [{ name: "show", rawName: "v-show", value: e.column.icon, expression: "column.icon" }], class: e.column.icon, staticStyle: { "margin-right": "10px" } }), e._v(e._s(e.column.label) + " ")]), t("Draggable", { staticClass: "widget-form-group__body", attrs: { list: e.column.children.column, group: { name: "form" }, "ghost-class": "ghost", animation: 200 }, on: { add: function(a) {
|
|
785
761
|
return e.handleWidgetGroupAdd(a, e.column);
|
|
@@ -806,17 +782,17 @@ var N = function() {
|
|
|
806
782
|
} } }, [t("i", { staticClass: "iconfont icon-clear" })]) : e._e(), e.selectWidget.prop === e.column.prop ? t("ElButton", { staticClass: "widget-action-clone", attrs: { title: "复制", circle: "", plain: "", size: "small", type: "primary" }, on: { click: function(a) {
|
|
807
783
|
return a.stopPropagation(), e.handleWidgetCloneTable(e.index);
|
|
808
784
|
} } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1);
|
|
809
|
-
},
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
785
|
+
}, P = [], D = /* @__PURE__ */ c(
|
|
786
|
+
z,
|
|
787
|
+
R,
|
|
788
|
+
P,
|
|
813
789
|
!1,
|
|
814
790
|
null,
|
|
815
791
|
null
|
|
816
792
|
);
|
|
817
|
-
const
|
|
793
|
+
const M = D.exports, Q = {
|
|
818
794
|
name: "WidgetForm",
|
|
819
|
-
components: { Draggable:
|
|
795
|
+
components: { Draggable: b, WidgetFormItem: y, WidgetFormTable: x, WidgetFormGroup: M },
|
|
820
796
|
props: {
|
|
821
797
|
data: Object,
|
|
822
798
|
select: Object
|
|
@@ -843,7 +819,7 @@ const L = q.exports, G = {
|
|
|
843
819
|
this.selectWidget = this.data.column[l];
|
|
844
820
|
},
|
|
845
821
|
handleWidgetAdd(l) {
|
|
846
|
-
const e = l.newIndex, t =
|
|
822
|
+
const e = l.newIndex, t = p(this.data.column[e]);
|
|
847
823
|
t.prop || (t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete t.icon, delete t.subfield, t.type === "title" && (delete t.label, this.form[t.prop] = t.value), this.$set(this.data.column, e, t), this.handleSelectWidget(e), this.$emit("change");
|
|
848
824
|
},
|
|
849
825
|
handleWidgetDelete(l) {
|
|
@@ -852,14 +828,14 @@ const L = q.exports, G = {
|
|
|
852
828
|
});
|
|
853
829
|
},
|
|
854
830
|
handleWidgetClone(l) {
|
|
855
|
-
const e =
|
|
831
|
+
const e = p(this.data.column[l]);
|
|
856
832
|
e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.data.column.push(e), this.$nextTick(() => {
|
|
857
833
|
this.handleSelectWidget(this.data.column.length - 1), this.$emit("change");
|
|
858
834
|
});
|
|
859
835
|
}
|
|
860
836
|
}
|
|
861
837
|
};
|
|
862
|
-
var
|
|
838
|
+
var K = function() {
|
|
863
839
|
var e = this, t = e._self._c;
|
|
864
840
|
return t("div", { staticClass: "widget-form-container" }, [t("ElForm", { ref: "widgetForm", attrs: { "label-position": e.data.labelPosition || "left", "label-width": e.data.labelWidth ? `${e.data.labelWidth}px` : "100px", "label-suffix": e.data.labelSuffix, model: e.form, size: "small" } }, [t("ElRow", { attrs: { gutter: e.data.gutter } }, [t("Draggable", { staticClass: "widget-form-list", attrs: { list: e.data.column, group: { name: "form" }, "ghost-class": "ghost", animation: 300 }, on: { add: e.handleWidgetAdd, end: function(a) {
|
|
865
841
|
return e.$emit("change");
|
|
@@ -884,21 +860,21 @@ var H = function() {
|
|
|
884
860
|
return s.stopPropagation(), e.handleWidgetClone(i);
|
|
885
861
|
} } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1)], 1)];
|
|
886
862
|
})], 2)], 1)], 1)], 1);
|
|
887
|
-
},
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
863
|
+
}, j = [], N = /* @__PURE__ */ c(
|
|
864
|
+
Q,
|
|
865
|
+
K,
|
|
866
|
+
j,
|
|
891
867
|
!1,
|
|
892
868
|
null,
|
|
893
869
|
null
|
|
894
870
|
);
|
|
895
|
-
const
|
|
871
|
+
const V = N.exports, q = {
|
|
896
872
|
name: "FormConfig",
|
|
897
873
|
props: {
|
|
898
874
|
data: Object
|
|
899
875
|
}
|
|
900
876
|
};
|
|
901
|
-
var
|
|
877
|
+
var L = function() {
|
|
902
878
|
var e = this, t = e._self._c;
|
|
903
879
|
return t("div", { staticClass: "form-config-container" }, [t("ElForm", { attrs: { "label-position": "left", "label-suffix": ":", "label-width": "130px", size: "small" } }, [t("ElFormItem", { attrs: { label: "标签对齐方式" } }, [t("ElSelect", { attrs: { placeholder: "标签对齐方式" }, model: { value: e.data.labelPosition, callback: function(a) {
|
|
904
880
|
e.$set(e.data, "labelPosition", a);
|
|
@@ -927,17 +903,17 @@ var Z = function() {
|
|
|
927
903
|
}, expression: "data.readonly" } })], 1), t("ElFormItem", { attrs: { label: "全局禁用" } }, [t("ElSwitch", { model: { value: e.data.disabled, callback: function(a) {
|
|
928
904
|
e.$set(e.data, "disabled", a);
|
|
929
905
|
}, expression: "data.disabled" } })], 1)], 1)], 1);
|
|
930
|
-
},
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
906
|
+
}, G = [], H = /* @__PURE__ */ c(
|
|
907
|
+
q,
|
|
908
|
+
L,
|
|
909
|
+
G,
|
|
934
910
|
!1,
|
|
935
911
|
null,
|
|
936
912
|
null
|
|
937
913
|
);
|
|
938
|
-
const
|
|
914
|
+
const U = H.exports, J = {
|
|
939
915
|
name: "ConfigCustom",
|
|
940
|
-
components: { MonacoEditor:
|
|
916
|
+
components: { MonacoEditor: f },
|
|
941
917
|
props: {
|
|
942
918
|
data: Object
|
|
943
919
|
},
|
|
@@ -962,40 +938,40 @@ const ae = te.exports, le = {
|
|
|
962
938
|
},
|
|
963
939
|
params(l) {
|
|
964
940
|
try {
|
|
965
|
-
this.data.params =
|
|
966
|
-
} catch
|
|
941
|
+
this.data.params = u(`(${l})`);
|
|
942
|
+
} catch {
|
|
967
943
|
}
|
|
968
944
|
},
|
|
969
945
|
event(l) {
|
|
970
946
|
try {
|
|
971
|
-
this.data.event =
|
|
972
|
-
} catch
|
|
947
|
+
this.data.event = u(`(${l})`);
|
|
948
|
+
} catch {
|
|
973
949
|
}
|
|
974
950
|
}
|
|
975
951
|
}
|
|
976
952
|
};
|
|
977
|
-
var
|
|
953
|
+
var Y = function() {
|
|
978
954
|
var e = this, t = e._self._c;
|
|
979
955
|
return t("div", [t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("自定义属性:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "300", "key-index": e.data.prop, options: e.options }, model: { value: e.params, callback: function(a) {
|
|
980
956
|
e.params = a;
|
|
981
957
|
}, expression: "params" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("自定义事件:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "300", "key-index": e.data.prop, options: e.options }, model: { value: e.event, callback: function(a) {
|
|
982
958
|
e.event = a;
|
|
983
959
|
}, expression: "event" } })], 1)])]);
|
|
984
|
-
},
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
960
|
+
}, X = [], Z = /* @__PURE__ */ c(
|
|
961
|
+
J,
|
|
962
|
+
Y,
|
|
963
|
+
X,
|
|
988
964
|
!1,
|
|
989
965
|
null,
|
|
990
966
|
null
|
|
991
967
|
);
|
|
992
|
-
const
|
|
968
|
+
const ee = Z.exports, te = {
|
|
993
969
|
name: "ConfigInput",
|
|
994
970
|
props: {
|
|
995
971
|
data: Object
|
|
996
972
|
}
|
|
997
973
|
};
|
|
998
|
-
var
|
|
974
|
+
var ae = function() {
|
|
999
975
|
var e = this, t = e._self._c;
|
|
1000
976
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1001
977
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1010,21 +986,21 @@ var ce = function() {
|
|
|
1010
986
|
}, expression: "data.showWordLimit" } })], 1) : e._e(), e.data.type === "password" ? t("ElFormItem", { attrs: { label: "显示密码" } }, [t("ElSwitch", { model: { value: e.data.showPassword, callback: function(a) {
|
|
1011
987
|
e.$set(e.data, "showPassword", a);
|
|
1012
988
|
}, expression: "data.showPassword" } })], 1) : e._e()], 1);
|
|
1013
|
-
},
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
989
|
+
}, le = [], ie = /* @__PURE__ */ c(
|
|
990
|
+
te,
|
|
991
|
+
ae,
|
|
992
|
+
le,
|
|
1017
993
|
!1,
|
|
1018
994
|
null,
|
|
1019
995
|
null
|
|
1020
996
|
);
|
|
1021
|
-
const
|
|
997
|
+
const se = ie.exports, oe = {
|
|
1022
998
|
name: "ConfigTextarea",
|
|
1023
999
|
props: {
|
|
1024
1000
|
data: Object
|
|
1025
1001
|
}
|
|
1026
1002
|
};
|
|
1027
|
-
var
|
|
1003
|
+
var ne = function() {
|
|
1028
1004
|
var e = this, t = e._self._c;
|
|
1029
1005
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { type: "textarea", autosize: "", clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1030
1006
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1037,21 +1013,21 @@ var he = function() {
|
|
|
1037
1013
|
}, expression: "data.minRows" } })], 1), t("ElFormItem", { attrs: { label: "最大行" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最大行", min: 2 }, model: { value: e.data.maxRows, callback: function(a) {
|
|
1038
1014
|
e.$set(e.data, "maxRows", a);
|
|
1039
1015
|
}, expression: "data.maxRows" } })], 1)], 1);
|
|
1040
|
-
},
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1016
|
+
}, re = [], ce = /* @__PURE__ */ c(
|
|
1017
|
+
oe,
|
|
1018
|
+
ne,
|
|
1019
|
+
re,
|
|
1044
1020
|
!1,
|
|
1045
1021
|
null,
|
|
1046
1022
|
null
|
|
1047
1023
|
);
|
|
1048
|
-
const
|
|
1024
|
+
const de = ce.exports, pe = {
|
|
1049
1025
|
name: "ConfigNumber",
|
|
1050
1026
|
props: {
|
|
1051
1027
|
data: Object
|
|
1052
1028
|
}
|
|
1053
1029
|
};
|
|
1054
|
-
var
|
|
1030
|
+
var ue = function() {
|
|
1055
1031
|
var e = this, t = e._self._c;
|
|
1056
1032
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1057
1033
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1070,21 +1046,21 @@ var _e = function() {
|
|
|
1070
1046
|
}, expression: "data.controlsPosition" } }, [e._v(" 默认 ")]), t("ElRadio", { attrs: { label: "right" }, model: { value: e.data.controlsPosition, callback: function(a) {
|
|
1071
1047
|
e.$set(e.data, "controlsPosition", a);
|
|
1072
1048
|
}, expression: "data.controlsPosition" } }, [e._v(" 右 ")])], 1) : e._e()], 1);
|
|
1073
|
-
},
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1049
|
+
}, me = [], he = /* @__PURE__ */ c(
|
|
1050
|
+
pe,
|
|
1051
|
+
ue,
|
|
1052
|
+
me,
|
|
1077
1053
|
!1,
|
|
1078
1054
|
null,
|
|
1079
1055
|
null
|
|
1080
1056
|
);
|
|
1081
|
-
const
|
|
1057
|
+
const fe = he.exports, be = {
|
|
1082
1058
|
name: "ConfigDynamic",
|
|
1083
1059
|
props: {
|
|
1084
1060
|
data: Object
|
|
1085
1061
|
}
|
|
1086
1062
|
};
|
|
1087
|
-
var
|
|
1063
|
+
var ge = function() {
|
|
1088
1064
|
var e = this, t = e._self._c;
|
|
1089
1065
|
return t("div", [t("ElFormItem", { attrs: { label: "对齐方式" } }, [t("ElSelect", { attrs: { placeholder: "对齐方式", clearable: "" }, model: { value: e.data.children.align, callback: function(a) {
|
|
1090
1066
|
e.$set(e.data.children, "align", a);
|
|
@@ -1099,15 +1075,15 @@ var $e = function() {
|
|
|
1099
1075
|
}, expression: "data.children.addBtn" } })], 1), t("ElFormItem", { attrs: { label: "删除按钮" } }, [t("ElSwitch", { model: { value: e.data.children.delBtn, callback: function(a) {
|
|
1100
1076
|
e.$set(e.data.children, "delBtn", a);
|
|
1101
1077
|
}, expression: "data.children.delBtn" } })], 1)], 1);
|
|
1102
|
-
},
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1078
|
+
}, ve = [], _e = /* @__PURE__ */ c(
|
|
1079
|
+
be,
|
|
1080
|
+
ge,
|
|
1081
|
+
ve,
|
|
1106
1082
|
!1,
|
|
1107
1083
|
null,
|
|
1108
1084
|
null
|
|
1109
1085
|
);
|
|
1110
|
-
const
|
|
1086
|
+
const ye = _e.exports, Ee = {
|
|
1111
1087
|
name: "ConfigSwitch",
|
|
1112
1088
|
props: {
|
|
1113
1089
|
data: Object
|
|
@@ -1121,7 +1097,7 @@ const Ie = we.exports, Fe = {
|
|
|
1121
1097
|
}
|
|
1122
1098
|
}
|
|
1123
1099
|
};
|
|
1124
|
-
var
|
|
1100
|
+
var xe = function() {
|
|
1125
1101
|
var e = this, t = e._self._c;
|
|
1126
1102
|
return t("div", [t("ElFormItem", { attrs: { label: "自定义" } }, [t("ElButton", { staticClass: "danger", attrs: { type: "text" }, on: { click: e.handleDicClear } }, [e._v(" 清空 ")]), e._l(e.data.dicData, function(a, i) {
|
|
1127
1103
|
return t("div", { key: i, staticClass: "dic" }, [t("ElInput", { staticStyle: { "margin-right": "5px" }, attrs: { size: "mini", placeholder: "自定义文字", clearable: "" }, model: { value: a.label, callback: function(s) {
|
|
@@ -1130,15 +1106,15 @@ var Se = function() {
|
|
|
1130
1106
|
e.$set(a, "value", s);
|
|
1131
1107
|
}, expression: "item.value" } })], 1);
|
|
1132
1108
|
})], 2)], 1);
|
|
1133
|
-
},
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1109
|
+
}, ke = [], $e = /* @__PURE__ */ c(
|
|
1110
|
+
Ee,
|
|
1111
|
+
xe,
|
|
1112
|
+
ke,
|
|
1137
1113
|
!1,
|
|
1138
1114
|
null,
|
|
1139
1115
|
"31aa4f25"
|
|
1140
1116
|
);
|
|
1141
|
-
const
|
|
1117
|
+
const Ce = $e.exports, we = {
|
|
1142
1118
|
name: "ConfigRate",
|
|
1143
1119
|
props: {
|
|
1144
1120
|
data: Object
|
|
@@ -1184,7 +1160,7 @@ const Be = Oe.exports, We = {
|
|
|
1184
1160
|
// }
|
|
1185
1161
|
}
|
|
1186
1162
|
};
|
|
1187
|
-
var
|
|
1163
|
+
var Ie = function() {
|
|
1188
1164
|
var e = this, t = e._self._c;
|
|
1189
1165
|
return t("div", [t("ElFormItem", { attrs: { label: "最大星数" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最大星数" }, model: { value: e.data.max, callback: function(a) {
|
|
1190
1166
|
e.$set(e.data, "max", a);
|
|
@@ -1205,21 +1181,21 @@ var Te = function() {
|
|
|
1205
1181
|
}), t("ElColorPicker", { staticClass: "color-picker", attrs: { size: "mini" }, on: { change: e.handleColorConfirm }, model: { value: e.colorValue, callback: function(a) {
|
|
1206
1182
|
e.colorValue = a;
|
|
1207
1183
|
}, expression: "colorValue" } })], 2)], 1);
|
|
1208
|
-
},
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1184
|
+
}, Fe = [], Se = /* @__PURE__ */ c(
|
|
1185
|
+
we,
|
|
1186
|
+
Ie,
|
|
1187
|
+
Fe,
|
|
1212
1188
|
!1,
|
|
1213
1189
|
null,
|
|
1214
1190
|
"befe1506"
|
|
1215
1191
|
);
|
|
1216
|
-
const
|
|
1192
|
+
const Ae = Se.exports, Oe = {
|
|
1217
1193
|
name: "ConfigSlider",
|
|
1218
1194
|
props: {
|
|
1219
1195
|
data: Object
|
|
1220
1196
|
}
|
|
1221
1197
|
};
|
|
1222
|
-
var
|
|
1198
|
+
var Be = function() {
|
|
1223
1199
|
var e = this, t = e._self._c;
|
|
1224
1200
|
return t("div", [t("ElFormItem", { attrs: { label: "最小值" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最小值", max: e.data.max - 1, min: 0 }, model: { value: e.data.min, callback: function(a) {
|
|
1225
1201
|
e.$set(e.data, "min", a);
|
|
@@ -1234,36 +1210,36 @@ var Me = function() {
|
|
|
1234
1210
|
}, expression: "data.showInput" } })], 1), t("ElFormItem", { attrs: { label: "范围" } }, [t("ElSwitch", { model: { value: e.data.range, callback: function(a) {
|
|
1235
1211
|
e.$set(e.data, "range", a);
|
|
1236
1212
|
}, expression: "data.range" } })], 1)], 1);
|
|
1237
|
-
},
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1213
|
+
}, We = [], Te = /* @__PURE__ */ c(
|
|
1214
|
+
Oe,
|
|
1215
|
+
Be,
|
|
1216
|
+
We,
|
|
1241
1217
|
!1,
|
|
1242
1218
|
null,
|
|
1243
1219
|
null
|
|
1244
1220
|
);
|
|
1245
|
-
const
|
|
1221
|
+
const ze = Te.exports, Re = {
|
|
1246
1222
|
name: "ConfigColor",
|
|
1247
1223
|
props: {
|
|
1248
1224
|
data: Object
|
|
1249
1225
|
}
|
|
1250
1226
|
};
|
|
1251
|
-
var
|
|
1227
|
+
var Pe = function() {
|
|
1252
1228
|
var e = this, t = e._self._c;
|
|
1253
1229
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1254
1230
|
e.$set(e.data, "placeholder", a);
|
|
1255
1231
|
}, expression: "data.placeholder" } })], 1)], 1);
|
|
1256
|
-
},
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1232
|
+
}, De = [], Me = /* @__PURE__ */ c(
|
|
1233
|
+
Re,
|
|
1234
|
+
Pe,
|
|
1235
|
+
De,
|
|
1260
1236
|
!1,
|
|
1261
1237
|
null,
|
|
1262
1238
|
null
|
|
1263
1239
|
);
|
|
1264
|
-
const
|
|
1240
|
+
const Qe = Me.exports, Ke = {
|
|
1265
1241
|
name: "ConfigSelect",
|
|
1266
|
-
components: { Draggable:
|
|
1242
|
+
components: { Draggable: b, MonacoEditor: f },
|
|
1267
1243
|
props: {
|
|
1268
1244
|
data: Object
|
|
1269
1245
|
},
|
|
@@ -1305,8 +1281,8 @@ const Ge = Le.exports, He = {
|
|
|
1305
1281
|
dicFormatter: {
|
|
1306
1282
|
handler(l) {
|
|
1307
1283
|
try {
|
|
1308
|
-
this.data.dicFormatter =
|
|
1309
|
-
} catch
|
|
1284
|
+
this.data.dicFormatter = u(l);
|
|
1285
|
+
} catch {
|
|
1310
1286
|
}
|
|
1311
1287
|
}
|
|
1312
1288
|
}
|
|
@@ -1330,7 +1306,7 @@ const Ge = Le.exports, He = {
|
|
|
1330
1306
|
}
|
|
1331
1307
|
}
|
|
1332
1308
|
};
|
|
1333
|
-
var
|
|
1309
|
+
var je = function() {
|
|
1334
1310
|
var e = this, t = e._self._c;
|
|
1335
1311
|
return t("div", [e.data.type === "select" ? t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1336
1312
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1389,17 +1365,17 @@ var Ue = function() {
|
|
|
1389
1365
|
}, expression: "data.button" } })], 1)] : e._e(), e.data.border || e.data.button ? t("ElFormItem", { attrs: { label: "尺寸" } }, [t("ElRadioGroup", { attrs: { size: "mini" }, model: { value: e.data.size, callback: function(a) {
|
|
1390
1366
|
e.$set(e.data, "size", a);
|
|
1391
1367
|
}, expression: "data.size" } }, [t("ElRadioButton", { attrs: { label: "medium" } }, [e._v(" 正常 ")]), t("ElRadioButton", { attrs: { label: "small" } }, [e._v(" 小 ")]), t("ElRadioButton", { attrs: { label: "mini" } }, [e._v(" 超小 ")])], 1)], 1) : e._e()], 2);
|
|
1392
|
-
},
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1368
|
+
}, Ne = [], Ve = /* @__PURE__ */ c(
|
|
1369
|
+
Ke,
|
|
1370
|
+
je,
|
|
1371
|
+
Ne,
|
|
1396
1372
|
!1,
|
|
1397
1373
|
null,
|
|
1398
1374
|
null
|
|
1399
1375
|
);
|
|
1400
|
-
const
|
|
1376
|
+
const qe = Ve.exports, Le = {
|
|
1401
1377
|
name: "ConfigTree",
|
|
1402
|
-
components: { MonacoEditor:
|
|
1378
|
+
components: { MonacoEditor: f, Draggable: b },
|
|
1403
1379
|
props: {
|
|
1404
1380
|
data: Object
|
|
1405
1381
|
},
|
|
@@ -1451,8 +1427,8 @@ const Xe = Ye.exports, Ze = {
|
|
|
1451
1427
|
dicFormatter: {
|
|
1452
1428
|
handler(l) {
|
|
1453
1429
|
try {
|
|
1454
|
-
this.data.dicFormatter =
|
|
1455
|
-
} catch
|
|
1430
|
+
this.data.dicFormatter = u(l);
|
|
1431
|
+
} catch {
|
|
1456
1432
|
}
|
|
1457
1433
|
}
|
|
1458
1434
|
}
|
|
@@ -1497,7 +1473,7 @@ const Xe = Ye.exports, Ze = {
|
|
|
1497
1473
|
}
|
|
1498
1474
|
}
|
|
1499
1475
|
};
|
|
1500
|
-
var
|
|
1476
|
+
var Ge = function() {
|
|
1501
1477
|
var e = this, t = e._self._c;
|
|
1502
1478
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1503
1479
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1558,21 +1534,21 @@ var et = function() {
|
|
|
1558
1534
|
}, proxy: !0 }]), model: { value: e.dialogForm.value, callback: function(a) {
|
|
1559
1535
|
e.$set(e.dialogForm, "value", a);
|
|
1560
1536
|
}, expression: "dialogForm.value" } })], 1)], 1)], 1)], 2);
|
|
1561
|
-
},
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1537
|
+
}, He = [], Ue = /* @__PURE__ */ c(
|
|
1538
|
+
Le,
|
|
1539
|
+
Ge,
|
|
1540
|
+
He,
|
|
1565
1541
|
!1,
|
|
1566
1542
|
null,
|
|
1567
1543
|
"8d588d56"
|
|
1568
1544
|
);
|
|
1569
|
-
const
|
|
1545
|
+
const Je = Ue.exports, Ye = {
|
|
1570
1546
|
name: "ConfigDate",
|
|
1571
1547
|
props: {
|
|
1572
1548
|
data: Object
|
|
1573
1549
|
}
|
|
1574
1550
|
};
|
|
1575
|
-
var
|
|
1551
|
+
var Xe = function() {
|
|
1576
1552
|
var e = this, t = e._self._c;
|
|
1577
1553
|
return t("div", [e.data.type.indexOf("range") !== -1 ? [t("ElFormItem", { attrs: { label: "开始占位内容", "label-width": "110px" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "开始占位内容" }, model: { value: e.data.startPlaceholder, callback: function(a) {
|
|
1578
1554
|
e.$set(e.data, "startPlaceholder", a);
|
|
@@ -1587,15 +1563,15 @@ var st = function() {
|
|
|
1587
1563
|
}, expression: "data.valueFormat" } })], 1), ["timerange", "daterange", "datetimerange"].includes(e.data.type) ? t("ElFormItem", { attrs: { label: "取消范围联动", "label-width": "110px" } }, [t("ElSwitch", { model: { value: e.data.unlinkPanels, callback: function(a) {
|
|
1588
1564
|
e.$set(e.data, "unlinkPanels", a);
|
|
1589
1565
|
}, expression: "data.unlinkPanels" } })], 1) : e._e()], 2);
|
|
1590
|
-
},
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1566
|
+
}, Ze = [], et = /* @__PURE__ */ c(
|
|
1567
|
+
Ye,
|
|
1568
|
+
Xe,
|
|
1569
|
+
Ze,
|
|
1594
1570
|
!1,
|
|
1595
1571
|
null,
|
|
1596
1572
|
null
|
|
1597
1573
|
);
|
|
1598
|
-
const
|
|
1574
|
+
const tt = et.exports, at = {
|
|
1599
1575
|
name: "ConfigUpload",
|
|
1600
1576
|
props: {
|
|
1601
1577
|
data: Object
|
|
@@ -1634,7 +1610,7 @@ const rt = nt.exports, ct = {
|
|
|
1634
1610
|
}
|
|
1635
1611
|
}
|
|
1636
1612
|
};
|
|
1637
|
-
var
|
|
1613
|
+
var lt = function() {
|
|
1638
1614
|
var e = this, t = e._self._c;
|
|
1639
1615
|
return t("div", [e.data.oss ? e._e() : t("ElFormItem", { attrs: { label: "上传地址" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "上传地址" }, model: { value: e.data.action, callback: function(a) {
|
|
1640
1616
|
e.$set(e.data, "action", a);
|
|
@@ -1693,15 +1669,15 @@ var dt = function() {
|
|
|
1693
1669
|
}, expression: "data.canvasOption.right" } }), e._v(" 压缩图片比率"), t("br"), t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "压缩图片比率", step: 0.1, min: 0, max: 1, size: "small" }, model: { value: e.data.canvasOption.ratio, callback: function(a) {
|
|
1694
1670
|
e.$set(e.data.canvasOption, "ratio", a);
|
|
1695
1671
|
}, expression: "data.canvasOption.ratio" } })], 1)]) : e._e()], 1);
|
|
1696
|
-
},
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1672
|
+
}, it = [], st = /* @__PURE__ */ c(
|
|
1673
|
+
at,
|
|
1674
|
+
lt,
|
|
1675
|
+
it,
|
|
1700
1676
|
!1,
|
|
1701
1677
|
null,
|
|
1702
1678
|
null
|
|
1703
1679
|
);
|
|
1704
|
-
const
|
|
1680
|
+
const ot = st.exports, nt = {
|
|
1705
1681
|
name: "ConfigUEditor",
|
|
1706
1682
|
props: {
|
|
1707
1683
|
data: Object
|
|
@@ -1712,7 +1688,7 @@ const mt = ut.exports, ht = {
|
|
|
1712
1688
|
}
|
|
1713
1689
|
}
|
|
1714
1690
|
};
|
|
1715
|
-
var
|
|
1691
|
+
var rt = function() {
|
|
1716
1692
|
var e = this, t = e._self._c;
|
|
1717
1693
|
return t("div", [t("ElFormItem", { attrs: { label: "图片上传地址", "label-width": "110px" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "图片上传地址" }, model: { value: e.data.options.action, callback: function(a) {
|
|
1718
1694
|
e.$set(e.data.options, "action", a);
|
|
@@ -1743,34 +1719,34 @@ var ft = function() {
|
|
|
1743
1719
|
}, expression: "data.options.ali.accessKeySecret" } }), e._v(" bucket: "), t("ElInput", { attrs: { size: "small", clearable: "", placeholder: "bucket " }, model: { value: e.data.options.ali.bucket, callback: function(a) {
|
|
1744
1720
|
e.$set(e.data.options.ali, "bucket", a);
|
|
1745
1721
|
}, expression: "data.options.ali.bucket" } })], 1)])] : e._e()], 2);
|
|
1746
|
-
},
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1722
|
+
}, ct = [], dt = /* @__PURE__ */ c(
|
|
1723
|
+
nt,
|
|
1724
|
+
rt,
|
|
1725
|
+
ct,
|
|
1750
1726
|
!1,
|
|
1751
1727
|
null,
|
|
1752
1728
|
null
|
|
1753
1729
|
);
|
|
1754
|
-
const
|
|
1730
|
+
const pt = dt.exports, ut = {
|
|
1755
1731
|
name: "ConfigMap",
|
|
1756
1732
|
props: {
|
|
1757
1733
|
data: Object
|
|
1758
1734
|
}
|
|
1759
1735
|
};
|
|
1760
|
-
var
|
|
1736
|
+
var mt = function() {
|
|
1761
1737
|
var e = this, t = e._self._c;
|
|
1762
1738
|
return t("div", [t("ElFormItem", { attrs: { label: "默认值" } }, [t("a", { staticStyle: { color: "#409eff" }, attrs: { href: "https://avuejs.com/form/form-input-map.html", target: "_blank" } }, [e._v("详细文档")]), t("br"), t("ElInput", { attrs: { placeholder: "默认值" }, model: { value: e.data.value, callback: function(a) {
|
|
1763
1739
|
e.$set(e.data, "value", a);
|
|
1764
1740
|
}, expression: "data.value" } })], 1)], 1);
|
|
1765
|
-
},
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1741
|
+
}, ht = [], ft = /* @__PURE__ */ c(
|
|
1742
|
+
ut,
|
|
1743
|
+
mt,
|
|
1744
|
+
ht,
|
|
1769
1745
|
!1,
|
|
1770
1746
|
null,
|
|
1771
1747
|
null
|
|
1772
1748
|
);
|
|
1773
|
-
const
|
|
1749
|
+
const bt = ft.exports, gt = {
|
|
1774
1750
|
name: "ConfigGroup",
|
|
1775
1751
|
props: {
|
|
1776
1752
|
data: Object
|
|
@@ -1786,7 +1762,7 @@ const kt = xt.exports, $t = {
|
|
|
1786
1762
|
};
|
|
1787
1763
|
}
|
|
1788
1764
|
};
|
|
1789
|
-
var
|
|
1765
|
+
var vt = function() {
|
|
1790
1766
|
var e = this, t = e._self._c;
|
|
1791
1767
|
return t("div", [t("ElFormItem", { attrs: { label: "图标" } }, [t("FyInputIcon", { attrs: { "icon-list": e.iconList, placeholder: "图标" }, model: { value: e.data.icon, callback: function(a) {
|
|
1792
1768
|
e.$set(e.data, "icon", a);
|
|
@@ -1795,36 +1771,36 @@ var Ct = function() {
|
|
|
1795
1771
|
}, expression: "data.arrow" } })], 1), e.data.arrow ? t("ElFormItem", { attrs: { label: "默认展开" } }, [t("ElSwitch", { model: { value: e.data.collapse, callback: function(a) {
|
|
1796
1772
|
e.$set(e.data, "collapse", a);
|
|
1797
1773
|
}, expression: "data.collapse" } })], 1) : e._e()], 1);
|
|
1798
|
-
},
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1774
|
+
}, _t = [], yt = /* @__PURE__ */ c(
|
|
1775
|
+
gt,
|
|
1776
|
+
vt,
|
|
1777
|
+
_t,
|
|
1802
1778
|
!1,
|
|
1803
1779
|
null,
|
|
1804
1780
|
null
|
|
1805
1781
|
);
|
|
1806
|
-
const
|
|
1782
|
+
const Et = yt.exports, xt = {
|
|
1807
1783
|
name: "ConfigArray",
|
|
1808
1784
|
props: {
|
|
1809
1785
|
data: Object
|
|
1810
1786
|
}
|
|
1811
1787
|
};
|
|
1812
|
-
var
|
|
1788
|
+
var kt = function() {
|
|
1813
1789
|
var e = this, t = e._self._c;
|
|
1814
1790
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1815
1791
|
e.$set(e.data, "placeholder", a);
|
|
1816
1792
|
}, expression: "data.placeholder" } })], 1), t("ElFormItem", { attrs: { label: "尺寸" } }, [t("ElRadioGroup", { attrs: { size: "mini" }, model: { value: e.data.size, callback: function(a) {
|
|
1817
1793
|
e.$set(e.data, "size", a);
|
|
1818
1794
|
}, expression: "data.size" } }, [t("ElRadioButton", { attrs: { label: "medium" } }, [e._v(" 正常 ")]), t("ElRadioButton", { attrs: { label: "small" } }, [e._v(" 小 ")]), t("ElRadioButton", { attrs: { label: "mini" } }, [e._v(" 超小 ")])], 1)], 1)], 1);
|
|
1819
|
-
},
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1795
|
+
}, $t = [], Ct = /* @__PURE__ */ c(
|
|
1796
|
+
xt,
|
|
1797
|
+
kt,
|
|
1798
|
+
$t,
|
|
1823
1799
|
!1,
|
|
1824
1800
|
null,
|
|
1825
1801
|
null
|
|
1826
1802
|
);
|
|
1827
|
-
const
|
|
1803
|
+
const wt = Ct.exports, It = {
|
|
1828
1804
|
name: "ConfigTitle",
|
|
1829
1805
|
props: {
|
|
1830
1806
|
data: Object
|
|
@@ -1835,7 +1811,7 @@ const Wt = Bt.exports, Tt = {
|
|
|
1835
1811
|
};
|
|
1836
1812
|
}
|
|
1837
1813
|
};
|
|
1838
|
-
var
|
|
1814
|
+
var Ft = function() {
|
|
1839
1815
|
var e = this, t = e._self._c;
|
|
1840
1816
|
return t("div", [t("ElFormItem", { attrs: { label: "文本对齐" } }, [t("ElRadioGroup", { model: { value: e.data.styles.textAlign, callback: function(a) {
|
|
1841
1817
|
e.$set(e.data.styles, "textAlign", a);
|
|
@@ -1848,17 +1824,17 @@ var zt = function() {
|
|
|
1848
1824
|
}, expression: "data.styles.fontWeight" } }, e._l(e.options, function(a) {
|
|
1849
1825
|
return t("ElOption", { key: a, attrs: { label: a, value: a } });
|
|
1850
1826
|
}), 1)], 1)], 1);
|
|
1851
|
-
},
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1827
|
+
}, St = [], At = /* @__PURE__ */ c(
|
|
1828
|
+
It,
|
|
1829
|
+
Ft,
|
|
1830
|
+
St,
|
|
1855
1831
|
!1,
|
|
1856
1832
|
null,
|
|
1857
1833
|
null
|
|
1858
1834
|
);
|
|
1859
|
-
const
|
|
1835
|
+
const Ot = At.exports, Bt = {
|
|
1860
1836
|
name: "ConfigEvent",
|
|
1861
|
-
components: { MonacoEditor:
|
|
1837
|
+
components: { MonacoEditor: f },
|
|
1862
1838
|
props: {
|
|
1863
1839
|
data: Object
|
|
1864
1840
|
},
|
|
@@ -1898,15 +1874,15 @@ const Dt = Pt.exports, Mt = {
|
|
|
1898
1874
|
["change", "click", "focus", "blur"].forEach((e) => {
|
|
1899
1875
|
this.$watch(`${e}`, (t) => {
|
|
1900
1876
|
try {
|
|
1901
|
-
this.$set(this.data, e,
|
|
1902
|
-
} catch
|
|
1877
|
+
this.$set(this.data, e, u(t));
|
|
1878
|
+
} catch {
|
|
1903
1879
|
}
|
|
1904
1880
|
});
|
|
1905
1881
|
});
|
|
1906
1882
|
});
|
|
1907
1883
|
}
|
|
1908
1884
|
};
|
|
1909
|
-
var
|
|
1885
|
+
var Wt = function() {
|
|
1910
1886
|
var e = this, t = e._self._c;
|
|
1911
1887
|
return t("div", [t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("change:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "300", "key-index": `event-change-${e.data.prop}`, options: e.options }, model: { value: e.change, callback: function(a) {
|
|
1912
1888
|
e.change = a;
|
|
@@ -1917,15 +1893,15 @@ var Qt = function() {
|
|
|
1917
1893
|
}, expression: "focus" } })], 1)]), t("div", { staticClass: "el-form-item el-form-item--small el-form--label-top" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("blur:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "200", "key-index": `event-blur-${e.data.prop}`, options: e.options }, model: { value: e.blur, callback: function(a) {
|
|
1918
1894
|
e.blur = a;
|
|
1919
1895
|
}, expression: "blur" } })], 1)])]);
|
|
1920
|
-
},
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1896
|
+
}, Tt = [], zt = /* @__PURE__ */ c(
|
|
1897
|
+
Bt,
|
|
1898
|
+
Wt,
|
|
1899
|
+
Tt,
|
|
1924
1900
|
!1,
|
|
1925
1901
|
null,
|
|
1926
1902
|
null
|
|
1927
1903
|
);
|
|
1928
|
-
const
|
|
1904
|
+
const Rt = zt.exports, Pt = [
|
|
1929
1905
|
{
|
|
1930
1906
|
label: "输入框",
|
|
1931
1907
|
value: "input"
|
|
@@ -2018,7 +1994,7 @@ const Nt = jt.exports, Vt = [
|
|
|
2018
1994
|
label: "年",
|
|
2019
1995
|
value: "year"
|
|
2020
1996
|
}
|
|
2021
|
-
],
|
|
1997
|
+
], Dt = {
|
|
2022
1998
|
name: "AfdColumn",
|
|
2023
1999
|
props: {
|
|
2024
2000
|
column: {
|
|
@@ -2029,7 +2005,7 @@ const Nt = jt.exports, Vt = [
|
|
|
2029
2005
|
emits: ["submit"],
|
|
2030
2006
|
data() {
|
|
2031
2007
|
return {
|
|
2032
|
-
fields:
|
|
2008
|
+
fields: Pt,
|
|
2033
2009
|
visible: !1,
|
|
2034
2010
|
list: []
|
|
2035
2011
|
};
|
|
@@ -2045,14 +2021,14 @@ const Nt = jt.exports, Vt = [
|
|
|
2045
2021
|
},
|
|
2046
2022
|
methods: {
|
|
2047
2023
|
handleSubmit() {
|
|
2048
|
-
this.$emit("submit",
|
|
2024
|
+
this.$emit("submit", p(this.list)), this.visible = !1;
|
|
2049
2025
|
},
|
|
2050
2026
|
handleDic(l) {
|
|
2051
2027
|
console.log(l), this.$message.error("暂未实现");
|
|
2052
2028
|
}
|
|
2053
2029
|
}
|
|
2054
2030
|
};
|
|
2055
|
-
var
|
|
2031
|
+
var Mt = function() {
|
|
2056
2032
|
var e = this, t = e._self._c;
|
|
2057
2033
|
return t("ElDrawer", { attrs: { visible: e.visible, size: "80%", "append-to-body": "" }, on: { "update:visible": function(a) {
|
|
2058
2034
|
e.visible = a;
|
|
@@ -2089,17 +2065,17 @@ var Lt = function() {
|
|
|
2089
2065
|
} }]) })], 1), t("span", { staticClass: "afd-drawer-foot" }, [t("ElButton", { attrs: { type: "primary" }, on: { click: e.handleSubmit } }, [e._v("确定")]), t("ElButton", { on: { click: function(a) {
|
|
2090
2066
|
e.visible = !1;
|
|
2091
2067
|
} } }, [e._v("取消")])], 1)], 1);
|
|
2092
|
-
},
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2068
|
+
}, Qt = [], Kt = /* @__PURE__ */ c(
|
|
2069
|
+
Dt,
|
|
2070
|
+
Mt,
|
|
2071
|
+
Qt,
|
|
2096
2072
|
!1,
|
|
2097
2073
|
null,
|
|
2098
2074
|
null
|
|
2099
2075
|
);
|
|
2100
|
-
const
|
|
2076
|
+
const jt = Kt.exports, Nt = {
|
|
2101
2077
|
name: "ConfigTable",
|
|
2102
|
-
components: { MonacoEditor:
|
|
2078
|
+
components: { MonacoEditor: f, AfdColumn: jt },
|
|
2103
2079
|
props: {
|
|
2104
2080
|
data: Object
|
|
2105
2081
|
},
|
|
@@ -2132,7 +2108,7 @@ const Ut = Ht.exports, Jt = {
|
|
|
2132
2108
|
onLoad: {
|
|
2133
2109
|
handler(l) {
|
|
2134
2110
|
try {
|
|
2135
|
-
this.data.onLoad =
|
|
2111
|
+
this.data.onLoad = u(l);
|
|
2136
2112
|
} catch (e) {
|
|
2137
2113
|
console.error(e);
|
|
2138
2114
|
}
|
|
@@ -2144,21 +2120,21 @@ const Ut = Ht.exports, Jt = {
|
|
|
2144
2120
|
this.data.children.column = l;
|
|
2145
2121
|
},
|
|
2146
2122
|
handleOnLoad(l) {
|
|
2147
|
-
const { url: e, method: t, needPage: a, currentPageKey: i, pageSizeKey: s, totalKey: o, recordsKey: r, resKey: n, auto:
|
|
2148
|
-
if (!
|
|
2123
|
+
const { url: e, method: t, needPage: a, currentPageKey: i, pageSizeKey: s, totalKey: o, recordsKey: r, resKey: n, auto: m } = l;
|
|
2124
|
+
if (!m) return;
|
|
2149
2125
|
if (!e) {
|
|
2150
2126
|
this.onLoad = "(res, cb) => { }";
|
|
2151
2127
|
return;
|
|
2152
2128
|
}
|
|
2153
2129
|
let { props: d } = this.data;
|
|
2154
2130
|
d || (d = { label: "label", value: "value" });
|
|
2155
|
-
const { value:
|
|
2131
|
+
const { value: h } = d, k = `(res, cb) => {
|
|
2156
2132
|
let { page, value, data } = res
|
|
2157
2133
|
if (!page) page = { currentPage: 1, pageSize: 10 }
|
|
2158
2134
|
const { currentPage, pageSize } = page
|
|
2159
2135
|
let params = { ...data, ${i || "current"}: currentPage, ${s || "page"}: pageSize }
|
|
2160
2136
|
|
|
2161
|
-
if (value) params['${
|
|
2137
|
+
if (value) params['${h}'] = value
|
|
2162
2138
|
|
|
2163
2139
|
if ('${t || "get"}' == 'get') params = { params: { ...params } }
|
|
2164
2140
|
|
|
@@ -2187,15 +2163,15 @@ const Ut = Ht.exports, Jt = {
|
|
|
2187
2163
|
if (value) {
|
|
2188
2164
|
const records = result.data
|
|
2189
2165
|
if (records && records.length > 0) cb(records[0])
|
|
2190
|
-
else this.$message.error('根据${
|
|
2166
|
+
else this.$message.error('根据${h}: ' + value + ' 查询不到结果')
|
|
2191
2167
|
} else cb(result)
|
|
2192
2168
|
})
|
|
2193
2169
|
}`;
|
|
2194
|
-
this.onLoad =
|
|
2170
|
+
this.onLoad = k;
|
|
2195
2171
|
}
|
|
2196
2172
|
}
|
|
2197
2173
|
};
|
|
2198
|
-
var
|
|
2174
|
+
var Vt = function() {
|
|
2199
2175
|
var e = this, t = e._self._c;
|
|
2200
2176
|
return t("div", [t("ElFormItem", { attrs: { label: "字段配置" } }, [t("ElButton", { attrs: { type: "primary", size: "small" }, on: { click: function(a) {
|
|
2201
2177
|
e.$refs.column.visible = !0;
|
|
@@ -2230,37 +2206,37 @@ var Yt = function() {
|
|
|
2230
2206
|
}, expression: "onLoad" } })], 1)]), t("div", { staticClass: "el-form-item" }, [t("label", { staticClass: "el-form-item__label", staticStyle: { padding: "0" } }, [e._v("formatter:")]), t("div", { staticClass: "el-form-item__content" }, [t("MonacoEditor", { attrs: { height: "200", "key-index": `table-formatter-${e.data.prop}`, options: e.options }, model: { value: e.formatter, callback: function(a) {
|
|
2231
2207
|
e.formatter = a;
|
|
2232
2208
|
}, expression: "formatter" } })], 1)])]), t("AfdColumn", { ref: "column", attrs: { column: e.data.children.column }, on: { submit: e.handleColumn } })], 1);
|
|
2233
|
-
},
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2209
|
+
}, qt = [], Lt = /* @__PURE__ */ c(
|
|
2210
|
+
Nt,
|
|
2211
|
+
Vt,
|
|
2212
|
+
qt,
|
|
2237
2213
|
!1,
|
|
2238
2214
|
null,
|
|
2239
2215
|
null
|
|
2240
2216
|
);
|
|
2241
|
-
const
|
|
2217
|
+
const Gt = Lt.exports, Ht = ["year", "month", "week", "date", "datetime", "time", "daterange", "timerange", "datetimerange", "dates"], Ut = {
|
|
2242
2218
|
name: "WidgetConfig",
|
|
2243
2219
|
components: {
|
|
2244
|
-
ConfigCustom:
|
|
2245
|
-
ConfigInput:
|
|
2246
|
-
ConfigTextarea:
|
|
2247
|
-
ConfigNumber:
|
|
2248
|
-
ConfigDynamic:
|
|
2249
|
-
ConfigSwitch:
|
|
2250
|
-
ConfigRate:
|
|
2251
|
-
ConfigSlider:
|
|
2252
|
-
ConfigColor:
|
|
2253
|
-
ConfigSelect:
|
|
2254
|
-
ConfigTree:
|
|
2255
|
-
ConfigDate:
|
|
2256
|
-
ConfigUpload:
|
|
2257
|
-
ConfigUEditor:
|
|
2258
|
-
ConfigMap:
|
|
2259
|
-
ConfigGroup:
|
|
2260
|
-
ConfigArray:
|
|
2261
|
-
ConfigTitle:
|
|
2262
|
-
ConfigEvent:
|
|
2263
|
-
ConfigTable:
|
|
2220
|
+
ConfigCustom: ee,
|
|
2221
|
+
ConfigInput: se,
|
|
2222
|
+
ConfigTextarea: de,
|
|
2223
|
+
ConfigNumber: fe,
|
|
2224
|
+
ConfigDynamic: ye,
|
|
2225
|
+
ConfigSwitch: Ce,
|
|
2226
|
+
ConfigRate: Ae,
|
|
2227
|
+
ConfigSlider: ze,
|
|
2228
|
+
ConfigColor: Qe,
|
|
2229
|
+
ConfigSelect: qe,
|
|
2230
|
+
ConfigTree: Je,
|
|
2231
|
+
ConfigDate: tt,
|
|
2232
|
+
ConfigUpload: ot,
|
|
2233
|
+
ConfigUEditor: pt,
|
|
2234
|
+
ConfigMap: bt,
|
|
2235
|
+
ConfigGroup: Et,
|
|
2236
|
+
ConfigArray: wt,
|
|
2237
|
+
ConfigTitle: Ot,
|
|
2238
|
+
ConfigEvent: Rt,
|
|
2239
|
+
ConfigTable: Gt
|
|
2264
2240
|
},
|
|
2265
2241
|
props: {
|
|
2266
2242
|
data: Object,
|
|
@@ -2268,7 +2244,7 @@ const ea = Zt.exports, ta = ["year", "month", "week", "date", "datetime", "time"
|
|
|
2268
2244
|
},
|
|
2269
2245
|
data() {
|
|
2270
2246
|
return {
|
|
2271
|
-
fields:
|
|
2247
|
+
fields: _,
|
|
2272
2248
|
collapse: ["1", "2", "3"],
|
|
2273
2249
|
validator: {
|
|
2274
2250
|
type: null,
|
|
@@ -2284,7 +2260,7 @@ const ea = Zt.exports, ta = ["year", "month", "week", "date", "datetime", "time"
|
|
|
2284
2260
|
if ((!e || t) && e !== "u-editor")
|
|
2285
2261
|
return `${l}custom`;
|
|
2286
2262
|
let a = "input";
|
|
2287
|
-
return [void 0, "input", "password", "url"].includes(e) ? a = "input" :
|
|
2263
|
+
return [void 0, "input", "password", "url"].includes(e) ? a = "input" : Ht.includes(e) ? a = "date" : ["array", "img"].includes(e) ? a = "array" : ["tree", "cascader"].includes(e) ? a = "tree" : ["radio", "checkbox", "select"].includes(e) ? a = "select" : a = e, l + a;
|
|
2288
2264
|
}
|
|
2289
2265
|
},
|
|
2290
2266
|
watch: {
|
|
@@ -2313,7 +2289,7 @@ const ea = Zt.exports, ta = ["year", "month", "week", "date", "datetime", "time"
|
|
|
2313
2289
|
}
|
|
2314
2290
|
}
|
|
2315
2291
|
};
|
|
2316
|
-
var
|
|
2292
|
+
var Jt = function() {
|
|
2317
2293
|
var e = this, t = e._self._c;
|
|
2318
2294
|
return t("div", { staticClass: "widget-config" }, [e.data && Object.keys(e.data).length > 0 ? t("ElForm", { attrs: { "label-suffix": ":", "label-position": "left", "label-width": "90px", size: "small" } }, [t("ElCollapse", { model: { value: e.collapse, callback: function(a) {
|
|
2319
2295
|
e.collapse = a;
|
|
@@ -2372,18 +2348,18 @@ var la = function() {
|
|
|
2372
2348
|
}, expression: "data.required" } }), e.data.required ? t("ElInput", { attrs: { placeholder: "正则表达式" }, model: { value: e.data.pattern, callback: function(a) {
|
|
2373
2349
|
e.$set(e.data, "pattern", a);
|
|
2374
2350
|
}, expression: "data.pattern" } }) : e._e()], 1)], 1), t("ElCollapseItem", { attrs: { name: "2", title: "组件属性" } }, [t(e.getComponent, { tag: "Component", attrs: { data: e.data, "default-values": e.defaultValues } })], 1), ["group"].includes(e.data.type) ? e._e() : t("ElCollapseItem", { attrs: { name: "3", title: "事件属性" } }, [t("ConfigEvent", { attrs: { data: e.data } })], 1)], 1)], 1) : [t("FyEmpty", { staticStyle: { "margin-top": "100%" }, attrs: { desc: "拖拽字段进行配置" } })]], 2);
|
|
2375
|
-
},
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2351
|
+
}, Yt = [], Xt = /* @__PURE__ */ c(
|
|
2352
|
+
Ut,
|
|
2353
|
+
Jt,
|
|
2354
|
+
Yt,
|
|
2379
2355
|
!1,
|
|
2380
2356
|
null,
|
|
2381
2357
|
null
|
|
2382
2358
|
);
|
|
2383
|
-
const
|
|
2359
|
+
const Zt = Xt.exports, ea = {
|
|
2384
2360
|
name: "FyFormDesign",
|
|
2385
|
-
components: { Draggable:
|
|
2386
|
-
mixins: [
|
|
2361
|
+
components: { Draggable: b, WidgetForm: V, FormConfig: U, WidgetConfig: Zt, MonacoEditor: f },
|
|
2362
|
+
mixins: [w],
|
|
2387
2363
|
props: {
|
|
2388
2364
|
options: {
|
|
2389
2365
|
type: [Object, String],
|
|
@@ -2416,7 +2392,7 @@ const oa = sa.exports, na = {
|
|
|
2416
2392
|
type: Array,
|
|
2417
2393
|
default: () => {
|
|
2418
2394
|
const l = [];
|
|
2419
|
-
return
|
|
2395
|
+
return _.forEach((e) => {
|
|
2420
2396
|
e.list.forEach((t) => {
|
|
2421
2397
|
l.push(t.type);
|
|
2422
2398
|
});
|
|
@@ -2432,8 +2408,8 @@ const oa = sa.exports, na = {
|
|
|
2432
2408
|
},
|
|
2433
2409
|
data() {
|
|
2434
2410
|
return {
|
|
2435
|
-
widgetEmpty:
|
|
2436
|
-
fields:
|
|
2411
|
+
widgetEmpty: $,
|
|
2412
|
+
fields: _,
|
|
2437
2413
|
widgetForm: {
|
|
2438
2414
|
column: [],
|
|
2439
2415
|
labelPosition: "left",
|
|
@@ -2477,12 +2453,12 @@ const oa = sa.exports, na = {
|
|
|
2477
2453
|
let e = l;
|
|
2478
2454
|
if (typeof e == "string")
|
|
2479
2455
|
try {
|
|
2480
|
-
e =
|
|
2481
|
-
} catch
|
|
2456
|
+
e = u(`(${e})`);
|
|
2457
|
+
} catch {
|
|
2482
2458
|
console.error("非法配置"), e = { column: [] };
|
|
2483
2459
|
}
|
|
2484
2460
|
this.transAvueOptionsToFormDesigner(e).then((t) => {
|
|
2485
|
-
this.widgetForm =
|
|
2461
|
+
this.widgetForm = { ...this.widgetForm, ...t };
|
|
2486
2462
|
});
|
|
2487
2463
|
},
|
|
2488
2464
|
deep: !0
|
|
@@ -2499,24 +2475,22 @@ const oa = sa.exports, na = {
|
|
|
2499
2475
|
},
|
|
2500
2476
|
methods: {
|
|
2501
2477
|
// 组件初始化时加载本地存储中的options(需开启storage),若不存在则读取用户配置的options
|
|
2502
|
-
handleLoadStorage() {
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
}));
|
|
2519
|
-
});
|
|
2478
|
+
async handleLoadStorage() {
|
|
2479
|
+
let l = this.options;
|
|
2480
|
+
if (typeof l == "string")
|
|
2481
|
+
try {
|
|
2482
|
+
l = u(l);
|
|
2483
|
+
} catch {
|
|
2484
|
+
console.error("非法配置"), l = { column: [] };
|
|
2485
|
+
}
|
|
2486
|
+
l.column || (l.column = []), this.widgetForm = this.initHistory({
|
|
2487
|
+
index: 0,
|
|
2488
|
+
maxStep: 20,
|
|
2489
|
+
steps: [await this.transAvueOptionsToFormDesigner({ ...this.widgetForm, ...l })],
|
|
2490
|
+
storage: this.storage
|
|
2491
|
+
}), this.undoRedo && (window.addEventListener("keydown", this.undoRedoHandler, !1), this.$once("hook:beforeDestroy", () => {
|
|
2492
|
+
document.removeEventListener("click", this.undoRedoHandler);
|
|
2493
|
+
}));
|
|
2520
2494
|
},
|
|
2521
2495
|
undoRedoHandler(l) {
|
|
2522
2496
|
(l.metaKey && !l.shiftKey && l.keyCode === 90 || l.ctrlKey && !l.shiftKey && l.keyCode === 90) && (this.widgetForm = this.handleUndo()), (l.metaKey && l.shiftKey && l.keyCode === 90 || l.ctrlKey && l.shiftKey && l.keyCode === 90 || l.ctrlKey && l.keyCode === 89) && (this.widgetForm = this.handleRedo());
|
|
@@ -2563,9 +2537,10 @@ const oa = sa.exports, na = {
|
|
|
2563
2537
|
this.transformToAvueOptions(this.widgetForm).then((l) => {
|
|
2564
2538
|
this.configOption.generateType && this.configOption.generateType === "string" ? this.$emit(
|
|
2565
2539
|
"submit",
|
|
2566
|
-
|
|
2567
|
-
minify: !0
|
|
2568
|
-
|
|
2540
|
+
v(l, {
|
|
2541
|
+
minify: !0,
|
|
2542
|
+
...this.configOption
|
|
2543
|
+
})
|
|
2569
2544
|
) : this.$emit("submit", l);
|
|
2570
2545
|
});
|
|
2571
2546
|
},
|
|
@@ -2573,9 +2548,10 @@ const oa = sa.exports, na = {
|
|
|
2573
2548
|
handleCopy() {
|
|
2574
2549
|
this.transformToAvueOptions(this.widgetForm).then((l) => {
|
|
2575
2550
|
this.$Clipboard({
|
|
2576
|
-
text:
|
|
2577
|
-
minify: !0
|
|
2578
|
-
|
|
2551
|
+
text: v(l, {
|
|
2552
|
+
minify: !0,
|
|
2553
|
+
...this.configOption
|
|
2554
|
+
})
|
|
2579
2555
|
}).then(() => {
|
|
2580
2556
|
this.$message.success("复制成功");
|
|
2581
2557
|
}).catch(() => {
|
|
@@ -2614,15 +2590,15 @@ const oa = sa.exports, na = {
|
|
|
2614
2590
|
transformToAvueOptions(l, e = !1) {
|
|
2615
2591
|
return new Promise((t, a) => {
|
|
2616
2592
|
try {
|
|
2617
|
-
const i =
|
|
2593
|
+
const i = p(l);
|
|
2618
2594
|
for (const s in i)
|
|
2619
|
-
|
|
2595
|
+
E(i[s]) && delete i[s];
|
|
2620
2596
|
for (let s = 0; s < i.column.length; s++) {
|
|
2621
2597
|
const o = i.column[s];
|
|
2622
2598
|
if (e && (["change", "blur", "click", "focus"].forEach((n) => {
|
|
2623
|
-
o[n] && (o[n] =
|
|
2599
|
+
o[n] && (o[n] = u(`${o[n]}`.replace(/this/g, "_this")));
|
|
2624
2600
|
}), o.event && Object.keys(o.event).forEach((n) => {
|
|
2625
|
-
o.event[n] =
|
|
2601
|
+
o.event[n] = u(`${o.event[n]}`.replace(/this/g, "_this"));
|
|
2626
2602
|
})), o.type === "dynamic" && o.children && o.children.column && o.children.column.length > 0)
|
|
2627
2603
|
o.children.column.forEach((n) => {
|
|
2628
2604
|
delete n.subfield;
|
|
@@ -2645,19 +2621,19 @@ const oa = sa.exports, na = {
|
|
|
2645
2621
|
} else if (["checkbox", "radio", "tree", "cascader", "select"].includes(o.type)) {
|
|
2646
2622
|
if (o.dicOption === "static") {
|
|
2647
2623
|
delete o.dicUrl, delete o.dicMethod, delete o.dicQuery, delete o.dicQueryConfig;
|
|
2648
|
-
const { label: r, value: n, desc:
|
|
2624
|
+
const { label: r, value: n, desc: m } = o.props;
|
|
2649
2625
|
o.dicData.forEach((d) => {
|
|
2650
2626
|
if (d.label) {
|
|
2651
|
-
const
|
|
2652
|
-
delete d.label, d[r] =
|
|
2627
|
+
const h = d.label;
|
|
2628
|
+
delete d.label, d[r] = h;
|
|
2653
2629
|
}
|
|
2654
2630
|
if (d.value) {
|
|
2655
|
-
const
|
|
2656
|
-
delete d.value, d[n] =
|
|
2631
|
+
const h = d.value;
|
|
2632
|
+
delete d.value, d[n] = h;
|
|
2657
2633
|
}
|
|
2658
2634
|
if (d.desc) {
|
|
2659
|
-
const
|
|
2660
|
-
delete d.desc, d[
|
|
2635
|
+
const h = d.desc;
|
|
2636
|
+
delete d.desc, d[m] = h;
|
|
2661
2637
|
}
|
|
2662
2638
|
});
|
|
2663
2639
|
} else if (o.dicOption === "remote")
|
|
@@ -2684,7 +2660,7 @@ const oa = sa.exports, na = {
|
|
|
2684
2660
|
delete o.dataConfig;
|
|
2685
2661
|
}
|
|
2686
2662
|
for (const r in o)
|
|
2687
|
-
|
|
2663
|
+
E(o[r]) && delete o[r];
|
|
2688
2664
|
}
|
|
2689
2665
|
t(i);
|
|
2690
2666
|
} catch (i) {
|
|
@@ -2694,8 +2670,8 @@ const oa = sa.exports, na = {
|
|
|
2694
2670
|
},
|
|
2695
2671
|
// Avue配置项 转化为 表单设计器配置项
|
|
2696
2672
|
transAvueOptionsToFormDesigner(l) {
|
|
2697
|
-
typeof l == "string" && (l =
|
|
2698
|
-
const e =
|
|
2673
|
+
typeof l == "string" && (l = u(l));
|
|
2674
|
+
const e = p(l);
|
|
2699
2675
|
return new Promise((t, a) => {
|
|
2700
2676
|
try {
|
|
2701
2677
|
if (e.column && e.column.length > 0 && e.column.forEach((i) => {
|
|
@@ -2719,16 +2695,16 @@ const oa = sa.exports, na = {
|
|
|
2719
2695
|
i.dicUrl ? i.dicOption = "remote" : i.dicOption = "static", i.dicData ? i.props && i.dicData.forEach((s) => {
|
|
2720
2696
|
const { label: o, value: r, desc: n } = i.props;
|
|
2721
2697
|
if (o) {
|
|
2722
|
-
const
|
|
2723
|
-
delete s[o], s.label =
|
|
2698
|
+
const m = s[o];
|
|
2699
|
+
delete s[o], s.label = m;
|
|
2724
2700
|
}
|
|
2725
2701
|
if (r) {
|
|
2726
|
-
const
|
|
2727
|
-
delete s[r], s.value =
|
|
2702
|
+
const m = s[r];
|
|
2703
|
+
delete s[r], s.value = m;
|
|
2728
2704
|
}
|
|
2729
2705
|
if (n) {
|
|
2730
|
-
const
|
|
2731
|
-
delete s[n], s.desc =
|
|
2706
|
+
const m = s[n];
|
|
2707
|
+
delete s[n], s.desc = m;
|
|
2732
2708
|
}
|
|
2733
2709
|
}) : i.dicData = [];
|
|
2734
2710
|
} else if (["upload"].includes(i.type)) {
|
|
@@ -2777,17 +2753,16 @@ const oa = sa.exports, na = {
|
|
|
2777
2753
|
}
|
|
2778
2754
|
});
|
|
2779
2755
|
},
|
|
2780
|
-
getData() {
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
});
|
|
2756
|
+
async getData(l = "json", e = {}) {
|
|
2757
|
+
if (l === "string")
|
|
2758
|
+
return v(await this.transformToAvueOptions(this.widgetForm), {
|
|
2759
|
+
minify: !0,
|
|
2760
|
+
...e
|
|
2761
|
+
});
|
|
2762
|
+
if (l === "app") {
|
|
2763
|
+
const t = await this.transformToAvueOptions(this.widgetForm);
|
|
2764
|
+
return this.parseJson(t), t;
|
|
2765
|
+
} else return await this.transformToAvueOptions(this.widgetForm);
|
|
2791
2766
|
},
|
|
2792
2767
|
parseJson(l) {
|
|
2793
2768
|
for (const e in l) {
|
|
@@ -2797,7 +2772,7 @@ const oa = sa.exports, na = {
|
|
|
2797
2772
|
}
|
|
2798
2773
|
}
|
|
2799
2774
|
};
|
|
2800
|
-
var
|
|
2775
|
+
var ta = function() {
|
|
2801
2776
|
var e = this, t = e._self._c;
|
|
2802
2777
|
return t("ElContainer", { staticClass: "form-designer" }, [t("ElAside", { attrs: { width: e.leftWidth } }, [t("div", { staticClass: "fields-list" }, [e.customFields && e.customFields.length > 0 ? [e.customFields[0].title && e.customFields[0].list && e.customFields[0].list.length > 0 ? [e._l(e.customFields, function(a, i) {
|
|
2803
2778
|
return [t("div", { key: `f_${i}`, staticClass: "field-title" }, [e._v(" " + e._s(a.title) + " ")]), t("Draggable", { key: `d_${i}`, attrs: { tag: "ul", list: a.list, group: { name: "form", pull: "clone", put: !1 }, "ghost-class": "ghost", sort: !1 } }, [e._l(a.list, function(s, o) {
|
|
@@ -2864,15 +2839,15 @@ var ra = function() {
|
|
|
2864
2839
|
} } }, [e.previewVisible ? t("FyForm", { ref: "form", staticClass: "afd-preview-form", attrs: { option: e.option }, on: { submit: e.handlePreviewSubmit }, model: { value: e.form, callback: function(a) {
|
|
2865
2840
|
e.form = a;
|
|
2866
2841
|
}, expression: "form" } }) : e._e(), t("div", { staticClass: "afd-drawer-foot" }, [t("ElButton", { attrs: { size: "medium", type: "primary" }, on: { click: e.handlePreviewSubmit } }, [e._v(" 确定 ")]), t("ElButton", { attrs: { size: "medium", type: "danger" }, on: { click: e.handleBeforeClose } }, [e._v(" 取消 ")])], 1)], 1)], 1);
|
|
2867
|
-
},
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2842
|
+
}, aa = [], la = /* @__PURE__ */ c(
|
|
2843
|
+
ea,
|
|
2844
|
+
ta,
|
|
2845
|
+
aa,
|
|
2871
2846
|
!1,
|
|
2872
2847
|
null,
|
|
2873
2848
|
null
|
|
2874
2849
|
);
|
|
2875
|
-
const
|
|
2850
|
+
const ma = la.exports;
|
|
2876
2851
|
export {
|
|
2877
|
-
|
|
2852
|
+
ma as default
|
|
2878
2853
|
};
|