@web-utils/component 3.8.3 → 4.0.1
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/index.mjs +13 -13
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/index.mjs +2 -2
- 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/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
- 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/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
- package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
- 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/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
- package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
- 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/index.mjs +30 -32
- package/flow-designer/index.mjs +344 -375
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +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 +60 -64
- 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 +43 -77
- package/form-view/style.css +1 -1
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +12 -17
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +5 -7
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +14 -16
- package/fy-empty/index.mjs +1 -1
- package/fy-empty/style.css +1 -1
- package/fy-form/index.mjs +117 -136
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +319 -345
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -2
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +21 -26
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +10 -12
- package/fy-input-tree/index.mjs +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +4 -4
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +0 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/index.mjs +3 -3
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/index.mjs +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/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +44 -74
- package/name-avatar/style.css +1 -1
- package/package.json +18 -17
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +354 -226
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +63 -106
- 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/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/index.mjs +2 -2
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +2 -2
- 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 +112 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +178 -135
- 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/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +48 -66
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +3 -3
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +36 -67
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3843
- 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;
|
|
@@ -569,9 +545,8 @@ const E = [
|
|
|
569
545
|
},
|
|
570
546
|
methods: {
|
|
571
547
|
getComponent(l, e) {
|
|
572
|
-
const t = "fy-";
|
|
573
548
|
let a = "input";
|
|
574
|
-
return e || (["array", "img", "url"].includes(l) ? a = "array" : l === "select" ? a = "select" : l === "radio" ? a = "radio" : l === "checkbox" ? a = "checkbox" : ["time", "timerange"].includes(l) ? a = "time" : ["dates", "date", "datetime", "datetimerange", "daterange", "week", "month", "year"].includes(l) ? a = "date" : l === "cascader" ? a = "cascader" : l === "number" ? a = "input-number" : l === "password" ? a = "input" : l === "switch" ? a = "switch" : l === "rate" ? a = "rate" : l === "upload" ? a = "upload" : l === "slider" ? a = "slider" : l === "dynamic" ? a = "dynamic" : l === "icon" ? a = "input-icon" : l === "color" ? a = "input-color" : l === "map" && (a = "input-map"),
|
|
549
|
+
return e || (["array", "img", "url"].includes(l) ? a = "array" : l === "select" ? a = "select" : l === "radio" ? a = "radio" : l === "checkbox" ? a = "checkbox" : ["time", "timerange"].includes(l) ? a = "time" : ["dates", "date", "datetime", "datetimerange", "daterange", "week", "month", "year"].includes(l) ? a = "date" : l === "cascader" ? a = "cascader" : l === "number" ? a = "input-number" : l === "password" ? a = "input" : l === "switch" ? a = "switch" : l === "rate" ? a = "rate" : l === "upload" ? a = "upload" : l === "slider" ? a = "slider" : l === "dynamic" ? a = "dynamic" : l === "icon" ? a = "input-icon" : l === "color" ? a = "input-color" : l === "map" && (a = "input-map"), "fy-" + a);
|
|
575
550
|
},
|
|
576
551
|
getPlaceholder(l) {
|
|
577
552
|
const e = l.label;
|
|
@@ -595,20 +570,20 @@ const E = [
|
|
|
595
570
|
}
|
|
596
571
|
}
|
|
597
572
|
};
|
|
598
|
-
var
|
|
573
|
+
var F = function() {
|
|
599
574
|
var e = this, t = e._self._c;
|
|
600
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);
|
|
601
|
-
},
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
576
|
+
}, S = [], A = /* @__PURE__ */ c(
|
|
577
|
+
I,
|
|
578
|
+
F,
|
|
579
|
+
S,
|
|
605
580
|
!1,
|
|
606
581
|
null,
|
|
607
582
|
null
|
|
608
583
|
);
|
|
609
|
-
const
|
|
584
|
+
const y = A.exports, O = {
|
|
610
585
|
name: "WidgetFormTable",
|
|
611
|
-
components: { WidgetFormItem:
|
|
586
|
+
components: { WidgetFormItem: y, Draggable: b },
|
|
612
587
|
props: {
|
|
613
588
|
data: Object,
|
|
614
589
|
column: Object,
|
|
@@ -644,7 +619,7 @@ const x = P.exports, D = {
|
|
|
644
619
|
});
|
|
645
620
|
},
|
|
646
621
|
handleWidgetCloneTable(l) {
|
|
647
|
-
const e =
|
|
622
|
+
const e = p(this.data.column[l]);
|
|
648
623
|
e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, e.children.column.forEach((t) => {
|
|
649
624
|
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
|
|
650
625
|
}), this.data.column.splice(l, 0, e), this.$nextTick(() => {
|
|
@@ -658,15 +633,15 @@ const x = P.exports, D = {
|
|
|
658
633
|
e.children.column.splice(t, 1);
|
|
659
634
|
return;
|
|
660
635
|
}
|
|
661
|
-
const i =
|
|
662
|
-
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");
|
|
663
638
|
},
|
|
664
639
|
handleWidgetTableSelect(l) {
|
|
665
640
|
this.selectWidget = l;
|
|
666
641
|
},
|
|
667
642
|
handleWidgetTableClone(l, e) {
|
|
668
|
-
const t =
|
|
669
|
-
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(() => {
|
|
670
645
|
this.selectWidget = l.children.column[l.children.column.length - 1], this.$emit("change");
|
|
671
646
|
});
|
|
672
647
|
},
|
|
@@ -677,7 +652,7 @@ const x = P.exports, D = {
|
|
|
677
652
|
}
|
|
678
653
|
}
|
|
679
654
|
};
|
|
680
|
-
var
|
|
655
|
+
var B = function() {
|
|
681
656
|
var e = this, t = e._self._c;
|
|
682
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) {
|
|
683
658
|
return e.handleWidgetTableAdd(a, e.column);
|
|
@@ -701,17 +676,17 @@ var M = function() {
|
|
|
701
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) {
|
|
702
677
|
return a.stopPropagation(), e.handleWidgetCloneTable(e.index);
|
|
703
678
|
} } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1);
|
|
704
|
-
},
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
679
|
+
}, W = [], T = /* @__PURE__ */ c(
|
|
680
|
+
O,
|
|
681
|
+
B,
|
|
682
|
+
W,
|
|
708
683
|
!1,
|
|
709
684
|
null,
|
|
710
685
|
null
|
|
711
686
|
);
|
|
712
|
-
const
|
|
687
|
+
const x = T.exports, z = {
|
|
713
688
|
name: "WidgetFormGroup",
|
|
714
|
-
components: { WidgetFormItem:
|
|
689
|
+
components: { WidgetFormItem: y, WidgetFormTable: x, Draggable: b },
|
|
715
690
|
props: {
|
|
716
691
|
data: Object,
|
|
717
692
|
column: Object,
|
|
@@ -747,7 +722,7 @@ const w = j.exports, K = {
|
|
|
747
722
|
});
|
|
748
723
|
},
|
|
749
724
|
handleWidgetCloneTable(l) {
|
|
750
|
-
const e =
|
|
725
|
+
const e = p(this.data.column[l]);
|
|
751
726
|
e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, e.children.column.forEach((t) => {
|
|
752
727
|
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
|
|
753
728
|
}), this.data.column.splice(l, 0, e), this.$nextTick(() => {
|
|
@@ -758,8 +733,8 @@ const w = j.exports, K = {
|
|
|
758
733
|
this.selectWidget = l;
|
|
759
734
|
},
|
|
760
735
|
handleWidgetTableClone(l, e) {
|
|
761
|
-
const t =
|
|
762
|
-
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(() => {
|
|
763
738
|
this.selectWidget = l.children.column[l.children.column.length - 1], this.$emit("change");
|
|
764
739
|
});
|
|
765
740
|
},
|
|
@@ -775,12 +750,12 @@ const w = j.exports, K = {
|
|
|
775
750
|
e.children.column.splice(t, 1);
|
|
776
751
|
return;
|
|
777
752
|
}
|
|
778
|
-
const i =
|
|
779
|
-
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");
|
|
780
755
|
}
|
|
781
756
|
}
|
|
782
757
|
};
|
|
783
|
-
var
|
|
758
|
+
var R = function() {
|
|
784
759
|
var e = this, t = e._self._c;
|
|
785
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) {
|
|
786
761
|
return e.handleWidgetGroupAdd(a, e.column);
|
|
@@ -807,17 +782,17 @@ var N = function() {
|
|
|
807
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) {
|
|
808
783
|
return a.stopPropagation(), e.handleWidgetCloneTable(e.index);
|
|
809
784
|
} } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1);
|
|
810
|
-
},
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
785
|
+
}, P = [], D = /* @__PURE__ */ c(
|
|
786
|
+
z,
|
|
787
|
+
R,
|
|
788
|
+
P,
|
|
814
789
|
!1,
|
|
815
790
|
null,
|
|
816
791
|
null
|
|
817
792
|
);
|
|
818
|
-
const
|
|
793
|
+
const M = D.exports, Q = {
|
|
819
794
|
name: "WidgetForm",
|
|
820
|
-
components: { Draggable:
|
|
795
|
+
components: { Draggable: b, WidgetFormItem: y, WidgetFormTable: x, WidgetFormGroup: M },
|
|
821
796
|
props: {
|
|
822
797
|
data: Object,
|
|
823
798
|
select: Object
|
|
@@ -844,7 +819,7 @@ const L = q.exports, G = {
|
|
|
844
819
|
this.selectWidget = this.data.column[l];
|
|
845
820
|
},
|
|
846
821
|
handleWidgetAdd(l) {
|
|
847
|
-
const e = l.newIndex, t =
|
|
822
|
+
const e = l.newIndex, t = p(this.data.column[e]);
|
|
848
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");
|
|
849
824
|
},
|
|
850
825
|
handleWidgetDelete(l) {
|
|
@@ -853,14 +828,14 @@ const L = q.exports, G = {
|
|
|
853
828
|
});
|
|
854
829
|
},
|
|
855
830
|
handleWidgetClone(l) {
|
|
856
|
-
const e =
|
|
831
|
+
const e = p(this.data.column[l]);
|
|
857
832
|
e.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.data.column.push(e), this.$nextTick(() => {
|
|
858
833
|
this.handleSelectWidget(this.data.column.length - 1), this.$emit("change");
|
|
859
834
|
});
|
|
860
835
|
}
|
|
861
836
|
}
|
|
862
837
|
};
|
|
863
|
-
var
|
|
838
|
+
var K = function() {
|
|
864
839
|
var e = this, t = e._self._c;
|
|
865
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) {
|
|
866
841
|
return e.$emit("change");
|
|
@@ -885,21 +860,21 @@ var H = function() {
|
|
|
885
860
|
return s.stopPropagation(), e.handleWidgetClone(i);
|
|
886
861
|
} } }, [t("i", { staticClass: "iconfont icon-copy" })]) : e._e()], 1)], 1)];
|
|
887
862
|
})], 2)], 1)], 1)], 1);
|
|
888
|
-
},
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
863
|
+
}, j = [], N = /* @__PURE__ */ c(
|
|
864
|
+
Q,
|
|
865
|
+
K,
|
|
866
|
+
j,
|
|
892
867
|
!1,
|
|
893
868
|
null,
|
|
894
869
|
null
|
|
895
870
|
);
|
|
896
|
-
const
|
|
871
|
+
const V = N.exports, q = {
|
|
897
872
|
name: "FormConfig",
|
|
898
873
|
props: {
|
|
899
874
|
data: Object
|
|
900
875
|
}
|
|
901
876
|
};
|
|
902
|
-
var
|
|
877
|
+
var L = function() {
|
|
903
878
|
var e = this, t = e._self._c;
|
|
904
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) {
|
|
905
880
|
e.$set(e.data, "labelPosition", a);
|
|
@@ -928,17 +903,17 @@ var Z = function() {
|
|
|
928
903
|
}, expression: "data.readonly" } })], 1), t("ElFormItem", { attrs: { label: "全局禁用" } }, [t("ElSwitch", { model: { value: e.data.disabled, callback: function(a) {
|
|
929
904
|
e.$set(e.data, "disabled", a);
|
|
930
905
|
}, expression: "data.disabled" } })], 1)], 1)], 1);
|
|
931
|
-
},
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
906
|
+
}, G = [], H = /* @__PURE__ */ c(
|
|
907
|
+
q,
|
|
908
|
+
L,
|
|
909
|
+
G,
|
|
935
910
|
!1,
|
|
936
911
|
null,
|
|
937
912
|
null
|
|
938
913
|
);
|
|
939
|
-
const
|
|
914
|
+
const U = H.exports, J = {
|
|
940
915
|
name: "ConfigCustom",
|
|
941
|
-
components: { MonacoEditor:
|
|
916
|
+
components: { MonacoEditor: f },
|
|
942
917
|
props: {
|
|
943
918
|
data: Object
|
|
944
919
|
},
|
|
@@ -963,40 +938,40 @@ const ae = te.exports, le = {
|
|
|
963
938
|
},
|
|
964
939
|
params(l) {
|
|
965
940
|
try {
|
|
966
|
-
this.data.params =
|
|
967
|
-
} catch
|
|
941
|
+
this.data.params = u(`(${l})`);
|
|
942
|
+
} catch {
|
|
968
943
|
}
|
|
969
944
|
},
|
|
970
945
|
event(l) {
|
|
971
946
|
try {
|
|
972
|
-
this.data.event =
|
|
973
|
-
} catch
|
|
947
|
+
this.data.event = u(`(${l})`);
|
|
948
|
+
} catch {
|
|
974
949
|
}
|
|
975
950
|
}
|
|
976
951
|
}
|
|
977
952
|
};
|
|
978
|
-
var
|
|
953
|
+
var Y = function() {
|
|
979
954
|
var e = this, t = e._self._c;
|
|
980
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) {
|
|
981
956
|
e.params = a;
|
|
982
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) {
|
|
983
958
|
e.event = a;
|
|
984
959
|
}, expression: "event" } })], 1)])]);
|
|
985
|
-
},
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
960
|
+
}, X = [], Z = /* @__PURE__ */ c(
|
|
961
|
+
J,
|
|
962
|
+
Y,
|
|
963
|
+
X,
|
|
989
964
|
!1,
|
|
990
965
|
null,
|
|
991
966
|
null
|
|
992
967
|
);
|
|
993
|
-
const
|
|
968
|
+
const ee = Z.exports, te = {
|
|
994
969
|
name: "ConfigInput",
|
|
995
970
|
props: {
|
|
996
971
|
data: Object
|
|
997
972
|
}
|
|
998
973
|
};
|
|
999
|
-
var
|
|
974
|
+
var ae = function() {
|
|
1000
975
|
var e = this, t = e._self._c;
|
|
1001
976
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1002
977
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1011,21 +986,21 @@ var ce = function() {
|
|
|
1011
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) {
|
|
1012
987
|
e.$set(e.data, "showPassword", a);
|
|
1013
988
|
}, expression: "data.showPassword" } })], 1) : e._e()], 1);
|
|
1014
|
-
},
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
989
|
+
}, le = [], ie = /* @__PURE__ */ c(
|
|
990
|
+
te,
|
|
991
|
+
ae,
|
|
992
|
+
le,
|
|
1018
993
|
!1,
|
|
1019
994
|
null,
|
|
1020
995
|
null
|
|
1021
996
|
);
|
|
1022
|
-
const
|
|
997
|
+
const se = ie.exports, oe = {
|
|
1023
998
|
name: "ConfigTextarea",
|
|
1024
999
|
props: {
|
|
1025
1000
|
data: Object
|
|
1026
1001
|
}
|
|
1027
1002
|
};
|
|
1028
|
-
var
|
|
1003
|
+
var ne = function() {
|
|
1029
1004
|
var e = this, t = e._self._c;
|
|
1030
1005
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { type: "textarea", autosize: "", clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1031
1006
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1038,21 +1013,21 @@ var he = function() {
|
|
|
1038
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) {
|
|
1039
1014
|
e.$set(e.data, "maxRows", a);
|
|
1040
1015
|
}, expression: "data.maxRows" } })], 1)], 1);
|
|
1041
|
-
},
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1016
|
+
}, re = [], ce = /* @__PURE__ */ c(
|
|
1017
|
+
oe,
|
|
1018
|
+
ne,
|
|
1019
|
+
re,
|
|
1045
1020
|
!1,
|
|
1046
1021
|
null,
|
|
1047
1022
|
null
|
|
1048
1023
|
);
|
|
1049
|
-
const
|
|
1024
|
+
const de = ce.exports, pe = {
|
|
1050
1025
|
name: "ConfigNumber",
|
|
1051
1026
|
props: {
|
|
1052
1027
|
data: Object
|
|
1053
1028
|
}
|
|
1054
1029
|
};
|
|
1055
|
-
var
|
|
1030
|
+
var ue = function() {
|
|
1056
1031
|
var e = this, t = e._self._c;
|
|
1057
1032
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1058
1033
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1071,21 +1046,21 @@ var _e = function() {
|
|
|
1071
1046
|
}, expression: "data.controlsPosition" } }, [e._v(" 默认 ")]), t("ElRadio", { attrs: { label: "right" }, model: { value: e.data.controlsPosition, callback: function(a) {
|
|
1072
1047
|
e.$set(e.data, "controlsPosition", a);
|
|
1073
1048
|
}, expression: "data.controlsPosition" } }, [e._v(" 右 ")])], 1) : e._e()], 1);
|
|
1074
|
-
},
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1049
|
+
}, me = [], he = /* @__PURE__ */ c(
|
|
1050
|
+
pe,
|
|
1051
|
+
ue,
|
|
1052
|
+
me,
|
|
1078
1053
|
!1,
|
|
1079
1054
|
null,
|
|
1080
1055
|
null
|
|
1081
1056
|
);
|
|
1082
|
-
const
|
|
1057
|
+
const fe = he.exports, be = {
|
|
1083
1058
|
name: "ConfigDynamic",
|
|
1084
1059
|
props: {
|
|
1085
1060
|
data: Object
|
|
1086
1061
|
}
|
|
1087
1062
|
};
|
|
1088
|
-
var
|
|
1063
|
+
var ge = function() {
|
|
1089
1064
|
var e = this, t = e._self._c;
|
|
1090
1065
|
return t("div", [t("ElFormItem", { attrs: { label: "对齐方式" } }, [t("ElSelect", { attrs: { placeholder: "对齐方式", clearable: "" }, model: { value: e.data.children.align, callback: function(a) {
|
|
1091
1066
|
e.$set(e.data.children, "align", a);
|
|
@@ -1100,15 +1075,15 @@ var $e = function() {
|
|
|
1100
1075
|
}, expression: "data.children.addBtn" } })], 1), t("ElFormItem", { attrs: { label: "删除按钮" } }, [t("ElSwitch", { model: { value: e.data.children.delBtn, callback: function(a) {
|
|
1101
1076
|
e.$set(e.data.children, "delBtn", a);
|
|
1102
1077
|
}, expression: "data.children.delBtn" } })], 1)], 1);
|
|
1103
|
-
},
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1078
|
+
}, ve = [], _e = /* @__PURE__ */ c(
|
|
1079
|
+
be,
|
|
1080
|
+
ge,
|
|
1081
|
+
ve,
|
|
1107
1082
|
!1,
|
|
1108
1083
|
null,
|
|
1109
1084
|
null
|
|
1110
1085
|
);
|
|
1111
|
-
const
|
|
1086
|
+
const ye = _e.exports, Ee = {
|
|
1112
1087
|
name: "ConfigSwitch",
|
|
1113
1088
|
props: {
|
|
1114
1089
|
data: Object
|
|
@@ -1122,7 +1097,7 @@ const Ie = we.exports, Fe = {
|
|
|
1122
1097
|
}
|
|
1123
1098
|
}
|
|
1124
1099
|
};
|
|
1125
|
-
var
|
|
1100
|
+
var xe = function() {
|
|
1126
1101
|
var e = this, t = e._self._c;
|
|
1127
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) {
|
|
1128
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) {
|
|
@@ -1131,15 +1106,15 @@ var Se = function() {
|
|
|
1131
1106
|
e.$set(a, "value", s);
|
|
1132
1107
|
}, expression: "item.value" } })], 1);
|
|
1133
1108
|
})], 2)], 1);
|
|
1134
|
-
},
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1109
|
+
}, ke = [], $e = /* @__PURE__ */ c(
|
|
1110
|
+
Ee,
|
|
1111
|
+
xe,
|
|
1112
|
+
ke,
|
|
1138
1113
|
!1,
|
|
1139
1114
|
null,
|
|
1140
1115
|
"31aa4f25"
|
|
1141
1116
|
);
|
|
1142
|
-
const
|
|
1117
|
+
const Ce = $e.exports, we = {
|
|
1143
1118
|
name: "ConfigRate",
|
|
1144
1119
|
props: {
|
|
1145
1120
|
data: Object
|
|
@@ -1185,7 +1160,7 @@ const Be = Oe.exports, We = {
|
|
|
1185
1160
|
// }
|
|
1186
1161
|
}
|
|
1187
1162
|
};
|
|
1188
|
-
var
|
|
1163
|
+
var Ie = function() {
|
|
1189
1164
|
var e = this, t = e._self._c;
|
|
1190
1165
|
return t("div", [t("ElFormItem", { attrs: { label: "最大星数" } }, [t("ElInputNumber", { attrs: { "controls-position": "right", placeholder: "最大星数" }, model: { value: e.data.max, callback: function(a) {
|
|
1191
1166
|
e.$set(e.data, "max", a);
|
|
@@ -1206,21 +1181,21 @@ var Te = function() {
|
|
|
1206
1181
|
}), t("ElColorPicker", { staticClass: "color-picker", attrs: { size: "mini" }, on: { change: e.handleColorConfirm }, model: { value: e.colorValue, callback: function(a) {
|
|
1207
1182
|
e.colorValue = a;
|
|
1208
1183
|
}, expression: "colorValue" } })], 2)], 1);
|
|
1209
|
-
},
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1184
|
+
}, Fe = [], Se = /* @__PURE__ */ c(
|
|
1185
|
+
we,
|
|
1186
|
+
Ie,
|
|
1187
|
+
Fe,
|
|
1213
1188
|
!1,
|
|
1214
1189
|
null,
|
|
1215
1190
|
"befe1506"
|
|
1216
1191
|
);
|
|
1217
|
-
const
|
|
1192
|
+
const Ae = Se.exports, Oe = {
|
|
1218
1193
|
name: "ConfigSlider",
|
|
1219
1194
|
props: {
|
|
1220
1195
|
data: Object
|
|
1221
1196
|
}
|
|
1222
1197
|
};
|
|
1223
|
-
var
|
|
1198
|
+
var Be = function() {
|
|
1224
1199
|
var e = this, t = e._self._c;
|
|
1225
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) {
|
|
1226
1201
|
e.$set(e.data, "min", a);
|
|
@@ -1235,36 +1210,36 @@ var Me = function() {
|
|
|
1235
1210
|
}, expression: "data.showInput" } })], 1), t("ElFormItem", { attrs: { label: "范围" } }, [t("ElSwitch", { model: { value: e.data.range, callback: function(a) {
|
|
1236
1211
|
e.$set(e.data, "range", a);
|
|
1237
1212
|
}, expression: "data.range" } })], 1)], 1);
|
|
1238
|
-
},
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1213
|
+
}, We = [], Te = /* @__PURE__ */ c(
|
|
1214
|
+
Oe,
|
|
1215
|
+
Be,
|
|
1216
|
+
We,
|
|
1242
1217
|
!1,
|
|
1243
1218
|
null,
|
|
1244
1219
|
null
|
|
1245
1220
|
);
|
|
1246
|
-
const
|
|
1221
|
+
const ze = Te.exports, Re = {
|
|
1247
1222
|
name: "ConfigColor",
|
|
1248
1223
|
props: {
|
|
1249
1224
|
data: Object
|
|
1250
1225
|
}
|
|
1251
1226
|
};
|
|
1252
|
-
var
|
|
1227
|
+
var Pe = function() {
|
|
1253
1228
|
var e = this, t = e._self._c;
|
|
1254
1229
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1255
1230
|
e.$set(e.data, "placeholder", a);
|
|
1256
1231
|
}, expression: "data.placeholder" } })], 1)], 1);
|
|
1257
|
-
},
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1232
|
+
}, De = [], Me = /* @__PURE__ */ c(
|
|
1233
|
+
Re,
|
|
1234
|
+
Pe,
|
|
1235
|
+
De,
|
|
1261
1236
|
!1,
|
|
1262
1237
|
null,
|
|
1263
1238
|
null
|
|
1264
1239
|
);
|
|
1265
|
-
const
|
|
1240
|
+
const Qe = Me.exports, Ke = {
|
|
1266
1241
|
name: "ConfigSelect",
|
|
1267
|
-
components: { Draggable:
|
|
1242
|
+
components: { Draggable: b, MonacoEditor: f },
|
|
1268
1243
|
props: {
|
|
1269
1244
|
data: Object
|
|
1270
1245
|
},
|
|
@@ -1306,8 +1281,8 @@ const Ge = Le.exports, He = {
|
|
|
1306
1281
|
dicFormatter: {
|
|
1307
1282
|
handler(l) {
|
|
1308
1283
|
try {
|
|
1309
|
-
this.data.dicFormatter =
|
|
1310
|
-
} catch
|
|
1284
|
+
this.data.dicFormatter = u(l);
|
|
1285
|
+
} catch {
|
|
1311
1286
|
}
|
|
1312
1287
|
}
|
|
1313
1288
|
}
|
|
@@ -1331,7 +1306,7 @@ const Ge = Le.exports, He = {
|
|
|
1331
1306
|
}
|
|
1332
1307
|
}
|
|
1333
1308
|
};
|
|
1334
|
-
var
|
|
1309
|
+
var je = function() {
|
|
1335
1310
|
var e = this, t = e._self._c;
|
|
1336
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) {
|
|
1337
1312
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1390,17 +1365,17 @@ var Ue = function() {
|
|
|
1390
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) {
|
|
1391
1366
|
e.$set(e.data, "size", a);
|
|
1392
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);
|
|
1393
|
-
},
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1368
|
+
}, Ne = [], Ve = /* @__PURE__ */ c(
|
|
1369
|
+
Ke,
|
|
1370
|
+
je,
|
|
1371
|
+
Ne,
|
|
1397
1372
|
!1,
|
|
1398
1373
|
null,
|
|
1399
1374
|
null
|
|
1400
1375
|
);
|
|
1401
|
-
const
|
|
1376
|
+
const qe = Ve.exports, Le = {
|
|
1402
1377
|
name: "ConfigTree",
|
|
1403
|
-
components: { MonacoEditor:
|
|
1378
|
+
components: { MonacoEditor: f, Draggable: b },
|
|
1404
1379
|
props: {
|
|
1405
1380
|
data: Object
|
|
1406
1381
|
},
|
|
@@ -1452,8 +1427,8 @@ const Xe = Ye.exports, Ze = {
|
|
|
1452
1427
|
dicFormatter: {
|
|
1453
1428
|
handler(l) {
|
|
1454
1429
|
try {
|
|
1455
|
-
this.data.dicFormatter =
|
|
1456
|
-
} catch
|
|
1430
|
+
this.data.dicFormatter = u(l);
|
|
1431
|
+
} catch {
|
|
1457
1432
|
}
|
|
1458
1433
|
}
|
|
1459
1434
|
}
|
|
@@ -1498,7 +1473,7 @@ const Xe = Ye.exports, Ze = {
|
|
|
1498
1473
|
}
|
|
1499
1474
|
}
|
|
1500
1475
|
};
|
|
1501
|
-
var
|
|
1476
|
+
var Ge = function() {
|
|
1502
1477
|
var e = this, t = e._self._c;
|
|
1503
1478
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1504
1479
|
e.$set(e.data, "placeholder", a);
|
|
@@ -1559,21 +1534,21 @@ var et = function() {
|
|
|
1559
1534
|
}, proxy: !0 }]), model: { value: e.dialogForm.value, callback: function(a) {
|
|
1560
1535
|
e.$set(e.dialogForm, "value", a);
|
|
1561
1536
|
}, expression: "dialogForm.value" } })], 1)], 1)], 1)], 2);
|
|
1562
|
-
},
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1537
|
+
}, He = [], Ue = /* @__PURE__ */ c(
|
|
1538
|
+
Le,
|
|
1539
|
+
Ge,
|
|
1540
|
+
He,
|
|
1566
1541
|
!1,
|
|
1567
1542
|
null,
|
|
1568
|
-
"
|
|
1543
|
+
"8d588d56"
|
|
1569
1544
|
);
|
|
1570
|
-
const
|
|
1545
|
+
const Je = Ue.exports, Ye = {
|
|
1571
1546
|
name: "ConfigDate",
|
|
1572
1547
|
props: {
|
|
1573
1548
|
data: Object
|
|
1574
1549
|
}
|
|
1575
1550
|
};
|
|
1576
|
-
var
|
|
1551
|
+
var Xe = function() {
|
|
1577
1552
|
var e = this, t = e._self._c;
|
|
1578
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) {
|
|
1579
1554
|
e.$set(e.data, "startPlaceholder", a);
|
|
@@ -1588,15 +1563,15 @@ var st = function() {
|
|
|
1588
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) {
|
|
1589
1564
|
e.$set(e.data, "unlinkPanels", a);
|
|
1590
1565
|
}, expression: "data.unlinkPanels" } })], 1) : e._e()], 2);
|
|
1591
|
-
},
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1566
|
+
}, Ze = [], et = /* @__PURE__ */ c(
|
|
1567
|
+
Ye,
|
|
1568
|
+
Xe,
|
|
1569
|
+
Ze,
|
|
1595
1570
|
!1,
|
|
1596
1571
|
null,
|
|
1597
1572
|
null
|
|
1598
1573
|
);
|
|
1599
|
-
const
|
|
1574
|
+
const tt = et.exports, at = {
|
|
1600
1575
|
name: "ConfigUpload",
|
|
1601
1576
|
props: {
|
|
1602
1577
|
data: Object
|
|
@@ -1625,9 +1600,9 @@ const rt = nt.exports, ct = {
|
|
|
1625
1600
|
},
|
|
1626
1601
|
immediate: !0
|
|
1627
1602
|
},
|
|
1628
|
-
"data.drag"
|
|
1603
|
+
"data.drag"() {
|
|
1629
1604
|
},
|
|
1630
|
-
"data.dragFile"
|
|
1605
|
+
"data.dragFile"(l) {
|
|
1631
1606
|
l && this.$delete(this.data, "listType");
|
|
1632
1607
|
},
|
|
1633
1608
|
"data.showCanvas"(l) {
|
|
@@ -1635,7 +1610,7 @@ const rt = nt.exports, ct = {
|
|
|
1635
1610
|
}
|
|
1636
1611
|
}
|
|
1637
1612
|
};
|
|
1638
|
-
var
|
|
1613
|
+
var lt = function() {
|
|
1639
1614
|
var e = this, t = e._self._c;
|
|
1640
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) {
|
|
1641
1616
|
e.$set(e.data, "action", a);
|
|
@@ -1694,26 +1669,26 @@ var dt = function() {
|
|
|
1694
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) {
|
|
1695
1670
|
e.$set(e.data.canvasOption, "ratio", a);
|
|
1696
1671
|
}, expression: "data.canvasOption.ratio" } })], 1)]) : e._e()], 1);
|
|
1697
|
-
},
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1672
|
+
}, it = [], st = /* @__PURE__ */ c(
|
|
1673
|
+
at,
|
|
1674
|
+
lt,
|
|
1675
|
+
it,
|
|
1701
1676
|
!1,
|
|
1702
1677
|
null,
|
|
1703
1678
|
null
|
|
1704
1679
|
);
|
|
1705
|
-
const
|
|
1680
|
+
const ot = st.exports, nt = {
|
|
1706
1681
|
name: "ConfigUEditor",
|
|
1707
1682
|
props: {
|
|
1708
1683
|
data: Object
|
|
1709
1684
|
},
|
|
1710
1685
|
watch: {
|
|
1711
|
-
"data.options.oss"
|
|
1686
|
+
"data.options.oss"(l) {
|
|
1712
1687
|
l === "ali" ? this.data.options.qiniu = {} : l === "qiniu" && (this.data.options.ali = {});
|
|
1713
1688
|
}
|
|
1714
1689
|
}
|
|
1715
1690
|
};
|
|
1716
|
-
var
|
|
1691
|
+
var rt = function() {
|
|
1717
1692
|
var e = this, t = e._self._c;
|
|
1718
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) {
|
|
1719
1694
|
e.$set(e.data.options, "action", a);
|
|
@@ -1744,34 +1719,34 @@ var ft = function() {
|
|
|
1744
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) {
|
|
1745
1720
|
e.$set(e.data.options.ali, "bucket", a);
|
|
1746
1721
|
}, expression: "data.options.ali.bucket" } })], 1)])] : e._e()], 2);
|
|
1747
|
-
},
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1722
|
+
}, ct = [], dt = /* @__PURE__ */ c(
|
|
1723
|
+
nt,
|
|
1724
|
+
rt,
|
|
1725
|
+
ct,
|
|
1751
1726
|
!1,
|
|
1752
1727
|
null,
|
|
1753
1728
|
null
|
|
1754
1729
|
);
|
|
1755
|
-
const
|
|
1730
|
+
const pt = dt.exports, ut = {
|
|
1756
1731
|
name: "ConfigMap",
|
|
1757
1732
|
props: {
|
|
1758
1733
|
data: Object
|
|
1759
1734
|
}
|
|
1760
1735
|
};
|
|
1761
|
-
var
|
|
1736
|
+
var mt = function() {
|
|
1762
1737
|
var e = this, t = e._self._c;
|
|
1763
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) {
|
|
1764
1739
|
e.$set(e.data, "value", a);
|
|
1765
1740
|
}, expression: "data.value" } })], 1)], 1);
|
|
1766
|
-
},
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1741
|
+
}, ht = [], ft = /* @__PURE__ */ c(
|
|
1742
|
+
ut,
|
|
1743
|
+
mt,
|
|
1744
|
+
ht,
|
|
1770
1745
|
!1,
|
|
1771
1746
|
null,
|
|
1772
1747
|
null
|
|
1773
1748
|
);
|
|
1774
|
-
const
|
|
1749
|
+
const bt = ft.exports, gt = {
|
|
1775
1750
|
name: "ConfigGroup",
|
|
1776
1751
|
props: {
|
|
1777
1752
|
data: Object
|
|
@@ -1787,7 +1762,7 @@ const kt = xt.exports, $t = {
|
|
|
1787
1762
|
};
|
|
1788
1763
|
}
|
|
1789
1764
|
};
|
|
1790
|
-
var
|
|
1765
|
+
var vt = function() {
|
|
1791
1766
|
var e = this, t = e._self._c;
|
|
1792
1767
|
return t("div", [t("ElFormItem", { attrs: { label: "图标" } }, [t("FyInputIcon", { attrs: { "icon-list": e.iconList, placeholder: "图标" }, model: { value: e.data.icon, callback: function(a) {
|
|
1793
1768
|
e.$set(e.data, "icon", a);
|
|
@@ -1796,36 +1771,36 @@ var Ct = function() {
|
|
|
1796
1771
|
}, expression: "data.arrow" } })], 1), e.data.arrow ? t("ElFormItem", { attrs: { label: "默认展开" } }, [t("ElSwitch", { model: { value: e.data.collapse, callback: function(a) {
|
|
1797
1772
|
e.$set(e.data, "collapse", a);
|
|
1798
1773
|
}, expression: "data.collapse" } })], 1) : e._e()], 1);
|
|
1799
|
-
},
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1774
|
+
}, _t = [], yt = /* @__PURE__ */ c(
|
|
1775
|
+
gt,
|
|
1776
|
+
vt,
|
|
1777
|
+
_t,
|
|
1803
1778
|
!1,
|
|
1804
1779
|
null,
|
|
1805
1780
|
null
|
|
1806
1781
|
);
|
|
1807
|
-
const
|
|
1782
|
+
const Et = yt.exports, xt = {
|
|
1808
1783
|
name: "ConfigArray",
|
|
1809
1784
|
props: {
|
|
1810
1785
|
data: Object
|
|
1811
1786
|
}
|
|
1812
1787
|
};
|
|
1813
|
-
var
|
|
1788
|
+
var kt = function() {
|
|
1814
1789
|
var e = this, t = e._self._c;
|
|
1815
1790
|
return t("div", [t("ElFormItem", { attrs: { label: "占位内容" } }, [t("ElInput", { attrs: { clearable: "", placeholder: "占位内容" }, model: { value: e.data.placeholder, callback: function(a) {
|
|
1816
1791
|
e.$set(e.data, "placeholder", a);
|
|
1817
1792
|
}, expression: "data.placeholder" } })], 1), t("ElFormItem", { attrs: { label: "尺寸" } }, [t("ElRadioGroup", { attrs: { size: "mini" }, model: { value: e.data.size, callback: function(a) {
|
|
1818
1793
|
e.$set(e.data, "size", a);
|
|
1819
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);
|
|
1820
|
-
},
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1795
|
+
}, $t = [], Ct = /* @__PURE__ */ c(
|
|
1796
|
+
xt,
|
|
1797
|
+
kt,
|
|
1798
|
+
$t,
|
|
1824
1799
|
!1,
|
|
1825
1800
|
null,
|
|
1826
1801
|
null
|
|
1827
1802
|
);
|
|
1828
|
-
const
|
|
1803
|
+
const wt = Ct.exports, It = {
|
|
1829
1804
|
name: "ConfigTitle",
|
|
1830
1805
|
props: {
|
|
1831
1806
|
data: Object
|
|
@@ -1836,7 +1811,7 @@ const Wt = Bt.exports, Tt = {
|
|
|
1836
1811
|
};
|
|
1837
1812
|
}
|
|
1838
1813
|
};
|
|
1839
|
-
var
|
|
1814
|
+
var Ft = function() {
|
|
1840
1815
|
var e = this, t = e._self._c;
|
|
1841
1816
|
return t("div", [t("ElFormItem", { attrs: { label: "文本对齐" } }, [t("ElRadioGroup", { model: { value: e.data.styles.textAlign, callback: function(a) {
|
|
1842
1817
|
e.$set(e.data.styles, "textAlign", a);
|
|
@@ -1849,17 +1824,17 @@ var zt = function() {
|
|
|
1849
1824
|
}, expression: "data.styles.fontWeight" } }, e._l(e.options, function(a) {
|
|
1850
1825
|
return t("ElOption", { key: a, attrs: { label: a, value: a } });
|
|
1851
1826
|
}), 1)], 1)], 1);
|
|
1852
|
-
},
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1827
|
+
}, St = [], At = /* @__PURE__ */ c(
|
|
1828
|
+
It,
|
|
1829
|
+
Ft,
|
|
1830
|
+
St,
|
|
1856
1831
|
!1,
|
|
1857
1832
|
null,
|
|
1858
1833
|
null
|
|
1859
1834
|
);
|
|
1860
|
-
const
|
|
1835
|
+
const Ot = At.exports, Bt = {
|
|
1861
1836
|
name: "ConfigEvent",
|
|
1862
|
-
components: { MonacoEditor:
|
|
1837
|
+
components: { MonacoEditor: f },
|
|
1863
1838
|
props: {
|
|
1864
1839
|
data: Object
|
|
1865
1840
|
},
|
|
@@ -1899,15 +1874,15 @@ const Dt = Pt.exports, Mt = {
|
|
|
1899
1874
|
["change", "click", "focus", "blur"].forEach((e) => {
|
|
1900
1875
|
this.$watch(`${e}`, (t) => {
|
|
1901
1876
|
try {
|
|
1902
|
-
this.$set(this.data, e,
|
|
1903
|
-
} catch
|
|
1877
|
+
this.$set(this.data, e, u(t));
|
|
1878
|
+
} catch {
|
|
1904
1879
|
}
|
|
1905
1880
|
});
|
|
1906
1881
|
});
|
|
1907
1882
|
});
|
|
1908
1883
|
}
|
|
1909
1884
|
};
|
|
1910
|
-
var
|
|
1885
|
+
var Wt = function() {
|
|
1911
1886
|
var e = this, t = e._self._c;
|
|
1912
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) {
|
|
1913
1888
|
e.change = a;
|
|
@@ -1918,15 +1893,15 @@ var Qt = function() {
|
|
|
1918
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) {
|
|
1919
1894
|
e.blur = a;
|
|
1920
1895
|
}, expression: "blur" } })], 1)])]);
|
|
1921
|
-
},
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1896
|
+
}, Tt = [], zt = /* @__PURE__ */ c(
|
|
1897
|
+
Bt,
|
|
1898
|
+
Wt,
|
|
1899
|
+
Tt,
|
|
1925
1900
|
!1,
|
|
1926
1901
|
null,
|
|
1927
1902
|
null
|
|
1928
1903
|
);
|
|
1929
|
-
const
|
|
1904
|
+
const Rt = zt.exports, Pt = [
|
|
1930
1905
|
{
|
|
1931
1906
|
label: "输入框",
|
|
1932
1907
|
value: "input"
|
|
@@ -2019,7 +1994,7 @@ const Nt = Kt.exports, Vt = [
|
|
|
2019
1994
|
label: "年",
|
|
2020
1995
|
value: "year"
|
|
2021
1996
|
}
|
|
2022
|
-
],
|
|
1997
|
+
], Dt = {
|
|
2023
1998
|
name: "AfdColumn",
|
|
2024
1999
|
props: {
|
|
2025
2000
|
column: {
|
|
@@ -2030,7 +2005,7 @@ const Nt = Kt.exports, Vt = [
|
|
|
2030
2005
|
emits: ["submit"],
|
|
2031
2006
|
data() {
|
|
2032
2007
|
return {
|
|
2033
|
-
fields:
|
|
2008
|
+
fields: Pt,
|
|
2034
2009
|
visible: !1,
|
|
2035
2010
|
list: []
|
|
2036
2011
|
};
|
|
@@ -2046,14 +2021,14 @@ const Nt = Kt.exports, Vt = [
|
|
|
2046
2021
|
},
|
|
2047
2022
|
methods: {
|
|
2048
2023
|
handleSubmit() {
|
|
2049
|
-
this.$emit("submit",
|
|
2024
|
+
this.$emit("submit", p(this.list)), this.visible = !1;
|
|
2050
2025
|
},
|
|
2051
2026
|
handleDic(l) {
|
|
2052
2027
|
console.log(l), this.$message.error("暂未实现");
|
|
2053
2028
|
}
|
|
2054
2029
|
}
|
|
2055
2030
|
};
|
|
2056
|
-
var
|
|
2031
|
+
var Mt = function() {
|
|
2057
2032
|
var e = this, t = e._self._c;
|
|
2058
2033
|
return t("ElDrawer", { attrs: { visible: e.visible, size: "80%", "append-to-body": "" }, on: { "update:visible": function(a) {
|
|
2059
2034
|
e.visible = a;
|
|
@@ -2090,17 +2065,17 @@ var Lt = function() {
|
|
|
2090
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) {
|
|
2091
2066
|
e.visible = !1;
|
|
2092
2067
|
} } }, [e._v("取消")])], 1)], 1);
|
|
2093
|
-
},
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2068
|
+
}, Qt = [], Kt = /* @__PURE__ */ c(
|
|
2069
|
+
Dt,
|
|
2070
|
+
Mt,
|
|
2071
|
+
Qt,
|
|
2097
2072
|
!1,
|
|
2098
2073
|
null,
|
|
2099
2074
|
null
|
|
2100
2075
|
);
|
|
2101
|
-
const
|
|
2076
|
+
const jt = Kt.exports, Nt = {
|
|
2102
2077
|
name: "ConfigTable",
|
|
2103
|
-
components: { MonacoEditor:
|
|
2078
|
+
components: { MonacoEditor: f, AfdColumn: jt },
|
|
2104
2079
|
props: {
|
|
2105
2080
|
data: Object
|
|
2106
2081
|
},
|
|
@@ -2133,7 +2108,7 @@ const Ut = Ht.exports, Jt = {
|
|
|
2133
2108
|
onLoad: {
|
|
2134
2109
|
handler(l) {
|
|
2135
2110
|
try {
|
|
2136
|
-
this.data.onLoad =
|
|
2111
|
+
this.data.onLoad = u(l);
|
|
2137
2112
|
} catch (e) {
|
|
2138
2113
|
console.error(e);
|
|
2139
2114
|
}
|
|
@@ -2145,21 +2120,21 @@ const Ut = Ht.exports, Jt = {
|
|
|
2145
2120
|
this.data.children.column = l;
|
|
2146
2121
|
},
|
|
2147
2122
|
handleOnLoad(l) {
|
|
2148
|
-
const { url: e, method: t, needPage: a, currentPageKey: i, pageSizeKey: s, totalKey: o, recordsKey: r, resKey: n, auto:
|
|
2149
|
-
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;
|
|
2150
2125
|
if (!e) {
|
|
2151
2126
|
this.onLoad = "(res, cb) => { }";
|
|
2152
2127
|
return;
|
|
2153
2128
|
}
|
|
2154
2129
|
let { props: d } = this.data;
|
|
2155
2130
|
d || (d = { label: "label", value: "value" });
|
|
2156
|
-
const { value:
|
|
2131
|
+
const { value: h } = d, k = `(res, cb) => {
|
|
2157
2132
|
let { page, value, data } = res
|
|
2158
2133
|
if (!page) page = { currentPage: 1, pageSize: 10 }
|
|
2159
2134
|
const { currentPage, pageSize } = page
|
|
2160
2135
|
let params = { ...data, ${i || "current"}: currentPage, ${s || "page"}: pageSize }
|
|
2161
2136
|
|
|
2162
|
-
if (value) params['${
|
|
2137
|
+
if (value) params['${h}'] = value
|
|
2163
2138
|
|
|
2164
2139
|
if ('${t || "get"}' == 'get') params = { params: { ...params } }
|
|
2165
2140
|
|
|
@@ -2188,15 +2163,15 @@ const Ut = Ht.exports, Jt = {
|
|
|
2188
2163
|
if (value) {
|
|
2189
2164
|
const records = result.data
|
|
2190
2165
|
if (records && records.length > 0) cb(records[0])
|
|
2191
|
-
else this.$message.error('根据${
|
|
2166
|
+
else this.$message.error('根据${h}: ' + value + ' 查询不到结果')
|
|
2192
2167
|
} else cb(result)
|
|
2193
2168
|
})
|
|
2194
2169
|
}`;
|
|
2195
|
-
this.onLoad =
|
|
2170
|
+
this.onLoad = k;
|
|
2196
2171
|
}
|
|
2197
2172
|
}
|
|
2198
2173
|
};
|
|
2199
|
-
var
|
|
2174
|
+
var Vt = function() {
|
|
2200
2175
|
var e = this, t = e._self._c;
|
|
2201
2176
|
return t("div", [t("ElFormItem", { attrs: { label: "字段配置" } }, [t("ElButton", { attrs: { type: "primary", size: "small" }, on: { click: function(a) {
|
|
2202
2177
|
e.$refs.column.visible = !0;
|
|
@@ -2231,37 +2206,37 @@ var Yt = function() {
|
|
|
2231
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) {
|
|
2232
2207
|
e.formatter = a;
|
|
2233
2208
|
}, expression: "formatter" } })], 1)])]), t("AfdColumn", { ref: "column", attrs: { column: e.data.children.column }, on: { submit: e.handleColumn } })], 1);
|
|
2234
|
-
},
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2209
|
+
}, qt = [], Lt = /* @__PURE__ */ c(
|
|
2210
|
+
Nt,
|
|
2211
|
+
Vt,
|
|
2212
|
+
qt,
|
|
2238
2213
|
!1,
|
|
2239
2214
|
null,
|
|
2240
2215
|
null
|
|
2241
2216
|
);
|
|
2242
|
-
const
|
|
2217
|
+
const Gt = Lt.exports, Ht = ["year", "month", "week", "date", "datetime", "time", "daterange", "timerange", "datetimerange", "dates"], Ut = {
|
|
2243
2218
|
name: "WidgetConfig",
|
|
2244
2219
|
components: {
|
|
2245
|
-
ConfigCustom:
|
|
2246
|
-
ConfigInput:
|
|
2247
|
-
ConfigTextarea:
|
|
2248
|
-
ConfigNumber:
|
|
2249
|
-
ConfigDynamic:
|
|
2250
|
-
ConfigSwitch:
|
|
2251
|
-
ConfigRate:
|
|
2252
|
-
ConfigSlider:
|
|
2253
|
-
ConfigColor:
|
|
2254
|
-
ConfigSelect:
|
|
2255
|
-
ConfigTree:
|
|
2256
|
-
ConfigDate:
|
|
2257
|
-
ConfigUpload:
|
|
2258
|
-
ConfigUEditor:
|
|
2259
|
-
ConfigMap:
|
|
2260
|
-
ConfigGroup:
|
|
2261
|
-
ConfigArray:
|
|
2262
|
-
ConfigTitle:
|
|
2263
|
-
ConfigEvent:
|
|
2264
|
-
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
|
|
2265
2240
|
},
|
|
2266
2241
|
props: {
|
|
2267
2242
|
data: Object,
|
|
@@ -2269,7 +2244,7 @@ const ea = Zt.exports, ta = ["year", "month", "week", "date", "datetime", "time"
|
|
|
2269
2244
|
},
|
|
2270
2245
|
data() {
|
|
2271
2246
|
return {
|
|
2272
|
-
fields:
|
|
2247
|
+
fields: _,
|
|
2273
2248
|
collapse: ["1", "2", "3"],
|
|
2274
2249
|
validator: {
|
|
2275
2250
|
type: null,
|
|
@@ -2285,7 +2260,7 @@ const ea = Zt.exports, ta = ["year", "month", "week", "date", "datetime", "time"
|
|
|
2285
2260
|
if ((!e || t) && e !== "u-editor")
|
|
2286
2261
|
return `${l}custom`;
|
|
2287
2262
|
let a = "input";
|
|
2288
|
-
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;
|
|
2289
2264
|
}
|
|
2290
2265
|
},
|
|
2291
2266
|
watch: {
|
|
@@ -2314,7 +2289,7 @@ const ea = Zt.exports, ta = ["year", "month", "week", "date", "datetime", "time"
|
|
|
2314
2289
|
}
|
|
2315
2290
|
}
|
|
2316
2291
|
};
|
|
2317
|
-
var
|
|
2292
|
+
var Jt = function() {
|
|
2318
2293
|
var e = this, t = e._self._c;
|
|
2319
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) {
|
|
2320
2295
|
e.collapse = a;
|
|
@@ -2373,18 +2348,18 @@ var la = function() {
|
|
|
2373
2348
|
}, expression: "data.required" } }), e.data.required ? t("ElInput", { attrs: { placeholder: "正则表达式" }, model: { value: e.data.pattern, callback: function(a) {
|
|
2374
2349
|
e.$set(e.data, "pattern", a);
|
|
2375
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);
|
|
2376
|
-
},
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2351
|
+
}, Yt = [], Xt = /* @__PURE__ */ c(
|
|
2352
|
+
Ut,
|
|
2353
|
+
Jt,
|
|
2354
|
+
Yt,
|
|
2380
2355
|
!1,
|
|
2381
2356
|
null,
|
|
2382
2357
|
null
|
|
2383
2358
|
);
|
|
2384
|
-
const
|
|
2359
|
+
const Zt = Xt.exports, ea = {
|
|
2385
2360
|
name: "FyFormDesign",
|
|
2386
|
-
components: { Draggable:
|
|
2387
|
-
mixins: [
|
|
2361
|
+
components: { Draggable: b, WidgetForm: V, FormConfig: U, WidgetConfig: Zt, MonacoEditor: f },
|
|
2362
|
+
mixins: [w],
|
|
2388
2363
|
props: {
|
|
2389
2364
|
options: {
|
|
2390
2365
|
type: [Object, String],
|
|
@@ -2417,7 +2392,7 @@ const oa = sa.exports, na = {
|
|
|
2417
2392
|
type: Array,
|
|
2418
2393
|
default: () => {
|
|
2419
2394
|
const l = [];
|
|
2420
|
-
return
|
|
2395
|
+
return _.forEach((e) => {
|
|
2421
2396
|
e.list.forEach((t) => {
|
|
2422
2397
|
l.push(t.type);
|
|
2423
2398
|
});
|
|
@@ -2433,8 +2408,8 @@ const oa = sa.exports, na = {
|
|
|
2433
2408
|
},
|
|
2434
2409
|
data() {
|
|
2435
2410
|
return {
|
|
2436
|
-
widgetEmpty:
|
|
2437
|
-
fields:
|
|
2411
|
+
widgetEmpty: $,
|
|
2412
|
+
fields: _,
|
|
2438
2413
|
widgetForm: {
|
|
2439
2414
|
column: [],
|
|
2440
2415
|
labelPosition: "left",
|
|
@@ -2478,12 +2453,12 @@ const oa = sa.exports, na = {
|
|
|
2478
2453
|
let e = l;
|
|
2479
2454
|
if (typeof e == "string")
|
|
2480
2455
|
try {
|
|
2481
|
-
e =
|
|
2482
|
-
} catch
|
|
2456
|
+
e = u(`(${e})`);
|
|
2457
|
+
} catch {
|
|
2483
2458
|
console.error("非法配置"), e = { column: [] };
|
|
2484
2459
|
}
|
|
2485
2460
|
this.transAvueOptionsToFormDesigner(e).then((t) => {
|
|
2486
|
-
this.widgetForm =
|
|
2461
|
+
this.widgetForm = { ...this.widgetForm, ...t };
|
|
2487
2462
|
});
|
|
2488
2463
|
},
|
|
2489
2464
|
deep: !0
|
|
@@ -2500,24 +2475,22 @@ const oa = sa.exports, na = {
|
|
|
2500
2475
|
},
|
|
2501
2476
|
methods: {
|
|
2502
2477
|
// 组件初始化时加载本地存储中的options(需开启storage),若不存在则读取用户配置的options
|
|
2503
|
-
handleLoadStorage() {
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
}));
|
|
2520
|
-
});
|
|
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
|
+
}));
|
|
2521
2494
|
},
|
|
2522
2495
|
undoRedoHandler(l) {
|
|
2523
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());
|
|
@@ -2564,9 +2537,10 @@ const oa = sa.exports, na = {
|
|
|
2564
2537
|
this.transformToAvueOptions(this.widgetForm).then((l) => {
|
|
2565
2538
|
this.configOption.generateType && this.configOption.generateType === "string" ? this.$emit(
|
|
2566
2539
|
"submit",
|
|
2567
|
-
|
|
2568
|
-
minify: !0
|
|
2569
|
-
|
|
2540
|
+
v(l, {
|
|
2541
|
+
minify: !0,
|
|
2542
|
+
...this.configOption
|
|
2543
|
+
})
|
|
2570
2544
|
) : this.$emit("submit", l);
|
|
2571
2545
|
});
|
|
2572
2546
|
},
|
|
@@ -2574,9 +2548,10 @@ const oa = sa.exports, na = {
|
|
|
2574
2548
|
handleCopy() {
|
|
2575
2549
|
this.transformToAvueOptions(this.widgetForm).then((l) => {
|
|
2576
2550
|
this.$Clipboard({
|
|
2577
|
-
text:
|
|
2578
|
-
minify: !0
|
|
2579
|
-
|
|
2551
|
+
text: v(l, {
|
|
2552
|
+
minify: !0,
|
|
2553
|
+
...this.configOption
|
|
2554
|
+
})
|
|
2580
2555
|
}).then(() => {
|
|
2581
2556
|
this.$message.success("复制成功");
|
|
2582
2557
|
}).catch(() => {
|
|
@@ -2615,15 +2590,15 @@ const oa = sa.exports, na = {
|
|
|
2615
2590
|
transformToAvueOptions(l, e = !1) {
|
|
2616
2591
|
return new Promise((t, a) => {
|
|
2617
2592
|
try {
|
|
2618
|
-
const i =
|
|
2593
|
+
const i = p(l);
|
|
2619
2594
|
for (const s in i)
|
|
2620
|
-
|
|
2595
|
+
E(i[s]) && delete i[s];
|
|
2621
2596
|
for (let s = 0; s < i.column.length; s++) {
|
|
2622
2597
|
const o = i.column[s];
|
|
2623
2598
|
if (e && (["change", "blur", "click", "focus"].forEach((n) => {
|
|
2624
|
-
o[n] && (o[n] =
|
|
2599
|
+
o[n] && (o[n] = u(`${o[n]}`.replace(/this/g, "_this")));
|
|
2625
2600
|
}), o.event && Object.keys(o.event).forEach((n) => {
|
|
2626
|
-
o.event[n] =
|
|
2601
|
+
o.event[n] = u(`${o.event[n]}`.replace(/this/g, "_this"));
|
|
2627
2602
|
})), o.type === "dynamic" && o.children && o.children.column && o.children.column.length > 0)
|
|
2628
2603
|
o.children.column.forEach((n) => {
|
|
2629
2604
|
delete n.subfield;
|
|
@@ -2646,19 +2621,19 @@ const oa = sa.exports, na = {
|
|
|
2646
2621
|
} else if (["checkbox", "radio", "tree", "cascader", "select"].includes(o.type)) {
|
|
2647
2622
|
if (o.dicOption === "static") {
|
|
2648
2623
|
delete o.dicUrl, delete o.dicMethod, delete o.dicQuery, delete o.dicQueryConfig;
|
|
2649
|
-
const { label: r, value: n, desc:
|
|
2624
|
+
const { label: r, value: n, desc: m } = o.props;
|
|
2650
2625
|
o.dicData.forEach((d) => {
|
|
2651
2626
|
if (d.label) {
|
|
2652
|
-
const
|
|
2653
|
-
delete d.label, d[r] =
|
|
2627
|
+
const h = d.label;
|
|
2628
|
+
delete d.label, d[r] = h;
|
|
2654
2629
|
}
|
|
2655
2630
|
if (d.value) {
|
|
2656
|
-
const
|
|
2657
|
-
delete d.value, d[n] =
|
|
2631
|
+
const h = d.value;
|
|
2632
|
+
delete d.value, d[n] = h;
|
|
2658
2633
|
}
|
|
2659
2634
|
if (d.desc) {
|
|
2660
|
-
const
|
|
2661
|
-
delete d.desc, d[
|
|
2635
|
+
const h = d.desc;
|
|
2636
|
+
delete d.desc, d[m] = h;
|
|
2662
2637
|
}
|
|
2663
2638
|
});
|
|
2664
2639
|
} else if (o.dicOption === "remote")
|
|
@@ -2685,7 +2660,7 @@ const oa = sa.exports, na = {
|
|
|
2685
2660
|
delete o.dataConfig;
|
|
2686
2661
|
}
|
|
2687
2662
|
for (const r in o)
|
|
2688
|
-
|
|
2663
|
+
E(o[r]) && delete o[r];
|
|
2689
2664
|
}
|
|
2690
2665
|
t(i);
|
|
2691
2666
|
} catch (i) {
|
|
@@ -2695,8 +2670,8 @@ const oa = sa.exports, na = {
|
|
|
2695
2670
|
},
|
|
2696
2671
|
// Avue配置项 转化为 表单设计器配置项
|
|
2697
2672
|
transAvueOptionsToFormDesigner(l) {
|
|
2698
|
-
typeof l == "string" && (l =
|
|
2699
|
-
const e =
|
|
2673
|
+
typeof l == "string" && (l = u(l));
|
|
2674
|
+
const e = p(l);
|
|
2700
2675
|
return new Promise((t, a) => {
|
|
2701
2676
|
try {
|
|
2702
2677
|
if (e.column && e.column.length > 0 && e.column.forEach((i) => {
|
|
@@ -2720,16 +2695,16 @@ const oa = sa.exports, na = {
|
|
|
2720
2695
|
i.dicUrl ? i.dicOption = "remote" : i.dicOption = "static", i.dicData ? i.props && i.dicData.forEach((s) => {
|
|
2721
2696
|
const { label: o, value: r, desc: n } = i.props;
|
|
2722
2697
|
if (o) {
|
|
2723
|
-
const
|
|
2724
|
-
delete s[o], s.label =
|
|
2698
|
+
const m = s[o];
|
|
2699
|
+
delete s[o], s.label = m;
|
|
2725
2700
|
}
|
|
2726
2701
|
if (r) {
|
|
2727
|
-
const
|
|
2728
|
-
delete s[r], s.value =
|
|
2702
|
+
const m = s[r];
|
|
2703
|
+
delete s[r], s.value = m;
|
|
2729
2704
|
}
|
|
2730
2705
|
if (n) {
|
|
2731
|
-
const
|
|
2732
|
-
delete s[n], s.desc =
|
|
2706
|
+
const m = s[n];
|
|
2707
|
+
delete s[n], s.desc = m;
|
|
2733
2708
|
}
|
|
2734
2709
|
}) : i.dicData = [];
|
|
2735
2710
|
} else if (["upload"].includes(i.type)) {
|
|
@@ -2778,17 +2753,16 @@ const oa = sa.exports, na = {
|
|
|
2778
2753
|
}
|
|
2779
2754
|
});
|
|
2780
2755
|
},
|
|
2781
|
-
getData() {
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
});
|
|
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);
|
|
2792
2766
|
},
|
|
2793
2767
|
parseJson(l) {
|
|
2794
2768
|
for (const e in l) {
|
|
@@ -2798,7 +2772,7 @@ const oa = sa.exports, na = {
|
|
|
2798
2772
|
}
|
|
2799
2773
|
}
|
|
2800
2774
|
};
|
|
2801
|
-
var
|
|
2775
|
+
var ta = function() {
|
|
2802
2776
|
var e = this, t = e._self._c;
|
|
2803
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) {
|
|
2804
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) {
|
|
@@ -2865,15 +2839,15 @@ var ra = function() {
|
|
|
2865
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) {
|
|
2866
2840
|
e.form = a;
|
|
2867
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);
|
|
2868
|
-
},
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2842
|
+
}, aa = [], la = /* @__PURE__ */ c(
|
|
2843
|
+
ea,
|
|
2844
|
+
ta,
|
|
2845
|
+
aa,
|
|
2872
2846
|
!1,
|
|
2873
2847
|
null,
|
|
2874
2848
|
null
|
|
2875
2849
|
);
|
|
2876
|
-
const
|
|
2850
|
+
const ma = la.exports;
|
|
2877
2851
|
export {
|
|
2878
|
-
|
|
2852
|
+
ma as default
|
|
2879
2853
|
};
|