@web-utils/component 2.7.12 → 2.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{ConfigSelect.vue_vue_type_template_lang.e7a9d5b7.js → ConfigSelect.vue_vue_type_template_lang.dfc91f07.js} +20 -15
- package/dist/chunks/{ConfigTable.vue_vue_type_template_lang.e9060616.js → ConfigTable.vue_vue_type_template_lang.b27540fd.js} +1 -1
- package/dist/chunks/{ConfigUpload.vue_vue_type_template_lang.48dd814b.js → ConfigUpload.vue_vue_type_template_lang.129c0ced.js} +18 -13
- package/dist/chunks/{WidgetConfig.vue_vue_type_template_lang.d3cd0479.js → WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js} +16 -16
- package/dist/chunks/{WidgetForm.vue_vue_type_template_lang.fbb7d6b7.js → WidgetForm.vue_vue_type_template_lang.d4b05679.js} +10 -10
- package/dist/chunks/{WidgetFormGroup.vue_vue_type_template_lang.47789aae.js → WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js} +13 -13
- package/dist/chunks/{WidgetFormTable.vue_vue_type_template_lang.30625146.js → WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js} +4 -3
- package/dist/chunks/{dataformat.d3fd2d1b.js → dataformat.65b92bfe.js} +36 -35
- package/dist/chunks/detail.d67573b1.js +28 -0
- package/dist/chunks/dic.70feb9b4.js +135 -0
- package/dist/chunks/{event.43b42228.js → event.dd6f522d.js} +3 -3
- package/dist/chunks/{init.3b47bb80.js → init.7c58eb34.js} +10 -10
- package/dist/chunks/{monaco.1dbdc960.js → monaco.cefcb9f5.js} +92 -85
- package/dist/chunks/{packages.6f252850.js → packages.1fc9ccba.js} +1 -1
- package/dist/chunks/slot.4b391395.js +27 -0
- package/dist/chunks/util.23fe58fb.js +261 -0
- package/dist/components/afd-column/index.js +1 -1
- package/dist/components/affix/index.js +2 -2
- package/dist/components/base.css +1 -1
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/chat/index.js +9 -9
- package/dist/components/column/index.js +25 -25
- package/dist/components/column-default/index.js +3 -2
- package/dist/components/column-dynamic/index.js +1 -1
- package/dist/components/column-menu/index.js +11 -11
- package/dist/components/column-slot/index.js +54 -53
- package/dist/components/config-custom/index.js +3 -3
- package/dist/components/config-event/index.js +5 -5
- package/dist/components/config-rate/index.js +1 -1
- package/dist/components/config-rate/style.css +1 -1
- package/dist/components/config-select/index.js +3 -3
- package/dist/components/config-switch/index.js +5 -5
- package/dist/components/config-switch/style.css +1 -1
- package/dist/components/config-table/index.js +3 -3
- package/dist/components/config-tree/index.js +3 -3
- package/dist/components/config-tree/style.css +1 -1
- package/dist/components/config-upload/index.js +1 -1
- package/dist/components/dialog-excel/index.js +37 -40
- package/dist/components/dialog-filter/index.js +19 -19
- package/dist/components/dialog-form/index.js +1 -1
- package/dist/components/element-dialog/index.js +2 -2
- package/dist/components/element-dialog/style.css +1 -1
- package/dist/components/flow/index.js +17 -18
- package/dist/components/flow-node/index.js +1 -1
- package/dist/components/form-temp/index.js +3 -3
- package/dist/components/fy-array/index.js +2 -2
- package/dist/components/fy-cascader/index.js +13 -13
- package/dist/components/fy-checkbox/index.js +4 -4
- package/dist/components/fy-code/index.js +1 -1
- package/dist/components/fy-curd/index.js +68 -69
- package/dist/components/fy-date/index.js +1 -1
- package/dist/components/fy-dialog-form/index.js +11 -11
- package/dist/components/fy-draggable/index.js +5 -7
- package/dist/components/fy-dynamic/index.js +32 -28
- package/dist/components/fy-empty/index.js +1 -1
- package/dist/components/fy-form/index.js +153 -141
- package/dist/components/fy-form-design/index.js +31 -31
- package/dist/components/fy-input/index.js +60 -46
- package/dist/components/fy-input-color/index.js +34 -29
- package/dist/components/fy-input-icon/index.js +1 -1
- package/dist/components/fy-input-map/index.js +14 -14
- package/dist/components/fy-input-number/index.js +1 -1
- package/dist/components/fy-input-table/index.js +2 -2
- package/dist/components/fy-input-tree/index.js +12 -12
- package/dist/components/fy-radio/index.js +1 -1
- package/dist/components/fy-rate/index.js +1 -1
- package/dist/components/fy-select/index.js +3 -3
- package/dist/components/fy-slider/index.js +2 -2
- package/dist/components/fy-switch/index.js +1 -1
- package/dist/components/fy-tabs/index.js +2 -2
- package/dist/components/fy-time/index.js +2 -2
- package/dist/components/fy-title/index.js +1 -1
- package/dist/components/fy-tree/index.js +3 -3
- package/dist/components/fy-u-editor/index.js +26 -24
- package/dist/components/fy-upload/index.js +198 -312
- package/dist/components/header-menu/index.js +2 -2
- package/dist/components/header-search/index.js +16 -15
- package/dist/components/image-cropper/index.js +299 -0
- package/dist/components/image-cropper/style.css +1 -0
- package/dist/components/image-preview/index.js +346 -0
- package/dist/components/image-preview/style.css +1 -0
- package/dist/components/keyboard/index.js +58 -63
- package/dist/components/license/index.js +7 -7
- package/dist/components/login/index.js +37 -32
- package/dist/components/name-avatar/index.js +1 -1
- package/dist/components/pageable-table/index.js +1 -1
- package/dist/components/pageable-view/index.js +26 -26
- package/dist/components/photo-swipe/index.js +71 -166
- package/dist/components/queue/index.js +6 -6
- package/dist/components/record-video/index.js +18 -18
- package/dist/components/search/index.js +3 -3
- package/dist/components/sign/index.js +64 -59
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/table-page/index.js +5 -5
- package/dist/components/text-ellipsis/index.js +11 -10
- package/dist/components/verify/index.js +25 -25
- package/dist/components/widget-config/index.js +8 -8
- package/dist/components/widget-form/index.js +7 -7
- package/dist/components/widget-form-group/index.js +8 -8
- package/dist/components/widget-form-item/index.js +14 -13
- package/dist/components/widget-form-table/index.js +14 -14
- package/dist/index.css +109 -40
- package/dist/index.es.js +4069 -3731
- package/package.json +6 -56
- package/web-types.json +28 -10
- package/dist/chunks/detail.ac4d421a.js +0 -28
- package/dist/chunks/dic.79d9f595.js +0 -133
- package/dist/chunks/slot.1b8d2b1b.js +0 -27
- package/dist/chunks/util.80e28481.js +0 -250
- package/dist/components/photo-swipe/style.css +0 -1
|
@@ -271,18 +271,23 @@ var c = function() {
|
|
|
271
271
|
attrs: {
|
|
272
272
|
label: "是否可拖拽",
|
|
273
273
|
"label-width": "110px"
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
274
|
+
},
|
|
275
|
+
scopedSlots: a._u([{
|
|
276
|
+
key: "label",
|
|
277
|
+
fn: function() {
|
|
278
|
+
return [t("ElLink", {
|
|
279
|
+
attrs: {
|
|
280
|
+
underline: !1,
|
|
281
|
+
href: "https://avuejs.com/form/form-select.html#%E6%8B%96%E6%8B%BD",
|
|
282
|
+
target: "_blank"
|
|
283
|
+
}
|
|
284
|
+
}, [a._v(" 是否可拖拽 "), t("i", {
|
|
285
|
+
staticClass: "el-icon-question"
|
|
286
|
+
})])];
|
|
287
|
+
},
|
|
288
|
+
proxy: !0
|
|
289
|
+
}], null, !1, 2120444940)
|
|
290
|
+
}, [t("ElSwitch", {
|
|
286
291
|
model: {
|
|
287
292
|
value: a.data.drag,
|
|
288
293
|
callback: function(e) {
|
|
@@ -290,7 +295,7 @@ var c = function() {
|
|
|
290
295
|
},
|
|
291
296
|
expression: "data.drag"
|
|
292
297
|
}
|
|
293
|
-
})],
|
|
298
|
+
})], 1) : a._e(), a.data.multiple ? t("ElFormItem", {
|
|
294
299
|
attrs: {
|
|
295
300
|
label: "多选数量限制",
|
|
296
301
|
"label-width": "110px"
|
|
@@ -476,8 +481,8 @@ var c = function() {
|
|
|
476
481
|
label: "mini"
|
|
477
482
|
}
|
|
478
483
|
}, [a._v(" 超小 ")])], 1)], 1) : a._e()], 2);
|
|
479
|
-
},
|
|
484
|
+
}, r = [];
|
|
480
485
|
export {
|
|
481
486
|
c as r,
|
|
482
|
-
|
|
487
|
+
r as s
|
|
483
488
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as o, r as s, f as n } from "./AfdColumn.vue_vue_type_template_lang.768f2ed2.js";
|
|
2
|
-
import { d } from "./util.
|
|
2
|
+
import { d } from "./util.23fe58fb.js";
|
|
3
3
|
import { n as i } from "./vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
const c = {
|
|
5
5
|
name: "AfdColumn",
|
|
@@ -36,18 +36,23 @@ var s = function() {
|
|
|
36
36
|
})], 1), t("ElFormItem", {
|
|
37
37
|
attrs: {
|
|
38
38
|
label: "OSS"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
},
|
|
40
|
+
scopedSlots: a._u([{
|
|
41
|
+
key: "label",
|
|
42
|
+
fn: function() {
|
|
43
|
+
return [t("ElLink", {
|
|
44
|
+
attrs: {
|
|
45
|
+
underline: !1,
|
|
46
|
+
href: "https://avuejs.com/form/form-upload.html#%E9%98%BF%E9%87%8C%E4%BA%91oss%E4%B8%8A%E4%BC%A0",
|
|
47
|
+
target: "_blank"
|
|
48
|
+
}
|
|
49
|
+
}, [a._v(" OSS "), t("i", {
|
|
50
|
+
staticClass: "el-icon-question"
|
|
51
|
+
})])];
|
|
52
|
+
},
|
|
53
|
+
proxy: !0
|
|
54
|
+
}])
|
|
55
|
+
}, [t("ElSelect", {
|
|
51
56
|
staticStyle: {
|
|
52
57
|
width: "100%"
|
|
53
58
|
},
|
|
@@ -72,7 +77,7 @@ var s = function() {
|
|
|
72
77
|
label: "七牛",
|
|
73
78
|
value: "qiniu"
|
|
74
79
|
}
|
|
75
|
-
})], 1)],
|
|
80
|
+
})], 1)], 1), t("ElFormItem", {
|
|
76
81
|
attrs: {
|
|
77
82
|
label: "拖拽上传",
|
|
78
83
|
"label-width": "110px"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MonacoEditor } from "./monaco.
|
|
1
|
+
import { M as MonacoEditor } from "./monaco.cefcb9f5.js";
|
|
2
2
|
import { s as staticRenderFns$1, r as render$1 } from "./ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js";
|
|
3
3
|
import { n as normalizeComponent } from "./vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
import { s as staticRenderFns$2, r as render$2 } from "./ConfigInput.vue_vue_type_template_lang.cc1eb052.js";
|
|
@@ -10,17 +10,17 @@ import { s as staticRenderFns$7, r as render$7 } from "./ConfigRate.vue_vue_type
|
|
|
10
10
|
import { s as staticRenderFns$8, r as render$8 } from "./ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js";
|
|
11
11
|
import { s as staticRenderFns$9, r as render$9 } from "./ConfigColor.vue_vue_type_template_lang.cd880091.js";
|
|
12
12
|
import Draggable from "vuedraggable";
|
|
13
|
-
import { s as staticRenderFns$a, r as render$a } from "./ConfigSelect.vue_vue_type_template_lang.
|
|
13
|
+
import { s as staticRenderFns$a, r as render$a } from "./ConfigSelect.vue_vue_type_template_lang.dfc91f07.js";
|
|
14
14
|
import { s as staticRenderFns$b, r as render$b } from "./ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.89ec5376.js";
|
|
15
15
|
import { s as staticRenderFns$c, r as render$c } from "./ConfigDate.vue_vue_type_template_lang.116fbad4.js";
|
|
16
|
-
import { s as staticRenderFns$d, r as render$d } from "./ConfigUpload.vue_vue_type_template_lang.
|
|
16
|
+
import { s as staticRenderFns$d, r as render$d } from "./ConfigUpload.vue_vue_type_template_lang.129c0ced.js";
|
|
17
17
|
import { s as staticRenderFns$e, r as render$e } from "./ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js";
|
|
18
18
|
import { s as staticRenderFns$f, r as render$f } from "./ConfigMap.vue_vue_type_template_lang.daee4d38.js";
|
|
19
19
|
import { s as staticRenderFns$g, r as render$g } from "./ConfigGroup.vue_vue_type_template_lang.44117322.js";
|
|
20
20
|
import { s as staticRenderFns$h, r as render$h } from "./ConfigArray.vue_vue_type_template_lang.66483daa.js";
|
|
21
21
|
import { s as staticRenderFns$i, r as render$i } from "./ConfigTitle.vue_vue_type_template_lang.57d9deb5.js";
|
|
22
22
|
import { s as staticRenderFns$j, r as render$j } from "./ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js";
|
|
23
|
-
import { s as staticRenderFns$k, r as render$k, A as AfdColumn } from "./ConfigTable.vue_vue_type_template_lang.
|
|
23
|
+
import { s as staticRenderFns$k, r as render$k, A as AfdColumn } from "./ConfigTable.vue_vue_type_template_lang.b27540fd.js";
|
|
24
24
|
const fields = [
|
|
25
25
|
{
|
|
26
26
|
title: "布局字段",
|
|
@@ -454,13 +454,13 @@ const fields = [
|
|
|
454
454
|
},
|
|
455
455
|
params(val) {
|
|
456
456
|
try {
|
|
457
|
-
this.data.params = eval(
|
|
457
|
+
this.data.params = eval(`(${val})`);
|
|
458
458
|
} catch (t) {
|
|
459
459
|
}
|
|
460
460
|
},
|
|
461
461
|
event(val) {
|
|
462
462
|
try {
|
|
463
|
-
this.data.event = eval(
|
|
463
|
+
this.data.event = eval(`(${val})`);
|
|
464
464
|
} catch (t) {
|
|
465
465
|
}
|
|
466
466
|
}
|
|
@@ -588,7 +588,7 @@ var __component__$e = /* @__PURE__ */ normalizeComponent(
|
|
|
588
588
|
staticRenderFns$6,
|
|
589
589
|
!1,
|
|
590
590
|
__vue2_injectStyles$e,
|
|
591
|
-
"
|
|
591
|
+
"2c9c8280",
|
|
592
592
|
null,
|
|
593
593
|
null
|
|
594
594
|
);
|
|
@@ -653,7 +653,7 @@ var __component__$d = /* @__PURE__ */ normalizeComponent(
|
|
|
653
653
|
staticRenderFns$7,
|
|
654
654
|
!1,
|
|
655
655
|
__vue2_injectStyles$d,
|
|
656
|
-
"
|
|
656
|
+
"64e64f97",
|
|
657
657
|
null,
|
|
658
658
|
null
|
|
659
659
|
);
|
|
@@ -739,7 +739,7 @@ const ConfigColor = /* @__PURE__ */ function() {
|
|
|
739
739
|
"data.prop": {
|
|
740
740
|
handler() {
|
|
741
741
|
const { dicFormatter: t } = this.data;
|
|
742
|
-
this.dicFormatter = t ? t
|
|
742
|
+
this.dicFormatter = t ? `${t}` : `(res) => {\r
|
|
743
743
|
return res.data\r
|
|
744
744
|
}`;
|
|
745
745
|
},
|
|
@@ -831,7 +831,7 @@ const ConfigSelect = /* @__PURE__ */ function() {
|
|
|
831
831
|
handler() {
|
|
832
832
|
this.$set(this.data, "cascader", this.data.cascaderItem), this.$delete(this.data, "cascaderItem");
|
|
833
833
|
const { dicFormatter: t } = this.data;
|
|
834
|
-
this.dicFormatter = t ? t
|
|
834
|
+
this.dicFormatter = t ? `${t}` : `(res) => {\r
|
|
835
835
|
return res.data\r
|
|
836
836
|
}`;
|
|
837
837
|
},
|
|
@@ -893,7 +893,7 @@ var __component__$9 = /* @__PURE__ */ normalizeComponent(
|
|
|
893
893
|
staticRenderFns$b,
|
|
894
894
|
!1,
|
|
895
895
|
__vue2_injectStyles$9,
|
|
896
|
-
"
|
|
896
|
+
"42ed5e40",
|
|
897
897
|
null,
|
|
898
898
|
null
|
|
899
899
|
);
|
|
@@ -1130,13 +1130,13 @@ const ConfigTitle = /* @__PURE__ */ function() {
|
|
|
1130
1130
|
"data.prop": {
|
|
1131
1131
|
handler() {
|
|
1132
1132
|
const { change: t, click: l, focus: a, blur: s } = this.data;
|
|
1133
|
-
this.$set(this, "change", t ? t
|
|
1133
|
+
this.$set(this, "change", t ? `${t}` : `({value}) => {\r
|
|
1134
1134
|
\r
|
|
1135
|
-
}`), this.$set(this, "click", l ? l
|
|
1135
|
+
}`), this.$set(this, "click", l ? `${l}` : `({value}) => {\r
|
|
1136
1136
|
\r
|
|
1137
|
-
}`), this.$set(this, "focus", a ? a
|
|
1137
|
+
}`), this.$set(this, "focus", a ? `${a}` : `({value}) => {\r
|
|
1138
1138
|
\r
|
|
1139
|
-
}`), this.$set(this, "blur", s ? s
|
|
1139
|
+
}`), this.$set(this, "blur", s ? `${s}` : `({value}) => {\r
|
|
1140
1140
|
\r
|
|
1141
1141
|
}`);
|
|
1142
1142
|
},
|
|
@@ -1195,7 +1195,7 @@ const ConfigEvent = /* @__PURE__ */ function() {
|
|
|
1195
1195
|
"data.prop": {
|
|
1196
1196
|
handler() {
|
|
1197
1197
|
const { onLoad: t, formatter: l } = this.data;
|
|
1198
|
-
this.onLoad = t ? t
|
|
1198
|
+
this.onLoad = t ? `${t}` : "", this.formatter = l ? `${l}` : "";
|
|
1199
1199
|
},
|
|
1200
1200
|
immediate: !0
|
|
1201
1201
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as r } from "./WidgetFormTable.vue_vue_type_template_lang.
|
|
2
|
-
import { s as o, r as d, W as h } from "./WidgetFormGroup.vue_vue_type_template_lang.
|
|
1
|
+
import { W as r } from "./WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js";
|
|
2
|
+
import { s as o, r as d, W as h } from "./WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js";
|
|
3
3
|
import p from "vuedraggable";
|
|
4
|
-
import { d as n } from "./util.
|
|
4
|
+
import { d as n } from "./util.23fe58fb.js";
|
|
5
5
|
import { n as g } from "./vueComponentNormalizer.71e2aa87.js";
|
|
6
6
|
const m = {
|
|
7
7
|
name: "WidgetFormGroup",
|
|
@@ -41,9 +41,9 @@ const m = {
|
|
|
41
41
|
});
|
|
42
42
|
},
|
|
43
43
|
handleWidgetCloneTable(e) {
|
|
44
|
-
|
|
45
|
-
i.prop =
|
|
46
|
-
t.prop =
|
|
44
|
+
const i = n(this.data.column[e]);
|
|
45
|
+
i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, i.children.column.forEach((t) => {
|
|
46
|
+
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
|
|
47
47
|
}), this.data.column.splice(e, 0, i), this.$nextTick(() => {
|
|
48
48
|
this.handleSelectWidget(e + 1), this.$emit("change");
|
|
49
49
|
});
|
|
@@ -53,7 +53,7 @@ const m = {
|
|
|
53
53
|
},
|
|
54
54
|
handleWidgetTableClone(e, i) {
|
|
55
55
|
const t = n(i);
|
|
56
|
-
t.prop =
|
|
56
|
+
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(e.children.column, e.children.column.length, { ...t }), this.$nextTick(() => {
|
|
57
57
|
this.selectWidget = e.children.column[e.children.column.length - 1], this.$emit("change");
|
|
58
58
|
});
|
|
59
59
|
},
|
|
@@ -70,7 +70,7 @@ const m = {
|
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
const l = n(i.children.column[t]);
|
|
73
|
-
l.prop || (l.prop =
|
|
73
|
+
l.prop || (l.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete l.icon, l.type === "dynamic" ? l.span = 24 : l.span = 12, this.$set(i.children.column, t, { ...l }), this.selectWidget = i.children.column[t], this.$emit("change");
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}, c = {};
|
|
@@ -189,10 +189,10 @@ var C = function() {
|
|
|
189
189
|
class: [{
|
|
190
190
|
active: e.selectWidget.prop === a.prop,
|
|
191
191
|
required: a.required
|
|
192
|
-
},
|
|
192
|
+
}, `avue-form__item--${a.labelPosition}` || ""],
|
|
193
193
|
attrs: {
|
|
194
194
|
label: a.label,
|
|
195
|
-
"label-width": a.labelWidth && a.labelWidth
|
|
195
|
+
"label-width": a.labelWidth && `${a.labelWidth}px`,
|
|
196
196
|
prop: a.prop
|
|
197
197
|
},
|
|
198
198
|
nativeOn: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s, r, W as d } from "./WidgetFormTable.vue_vue_type_template_lang.
|
|
1
|
+
import { s, r, W as d } from "./WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js";
|
|
2
2
|
import h from "vuedraggable";
|
|
3
|
-
import { d as c } from "./util.
|
|
3
|
+
import { d as c } from "./util.23fe58fb.js";
|
|
4
4
|
import { n as p } from "./vueComponentNormalizer.71e2aa87.js";
|
|
5
5
|
const g = {
|
|
6
6
|
name: "WidgetFormTable",
|
|
@@ -40,9 +40,9 @@ const g = {
|
|
|
40
40
|
});
|
|
41
41
|
},
|
|
42
42
|
handleWidgetCloneTable(e) {
|
|
43
|
-
|
|
44
|
-
i.prop =
|
|
45
|
-
t.prop =
|
|
43
|
+
const i = c(this.data.column[e]);
|
|
44
|
+
i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, i.children.column.forEach((t) => {
|
|
45
|
+
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
|
|
46
46
|
}), this.data.column.splice(e, 0, i), this.$nextTick(() => {
|
|
47
47
|
this.handleSelectWidget(e + 1), this.$emit("change");
|
|
48
48
|
});
|
|
@@ -55,14 +55,14 @@ const g = {
|
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
const n = c(i.children.column[t]);
|
|
58
|
-
n.prop || (n.prop =
|
|
58
|
+
n.prop || (n.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), n.subfield = !0, delete n.icon, this.$set(i.children.column, t, { ...n }), this.selectWidget = i.children.column[t], this.$emit("change");
|
|
59
59
|
},
|
|
60
60
|
handleWidgetTableSelect(e) {
|
|
61
61
|
this.selectWidget = e;
|
|
62
62
|
},
|
|
63
63
|
handleWidgetTableClone(e, i) {
|
|
64
64
|
const t = c(i);
|
|
65
|
-
t.prop =
|
|
65
|
+
t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(e.children.column, e.children.column.length, { ...t }), this.$nextTick(() => {
|
|
66
66
|
this.selectWidget = e.children.column[e.children.column.length - 1], this.$emit("change");
|
|
67
67
|
});
|
|
68
68
|
},
|
|
@@ -87,10 +87,10 @@ function m(e) {
|
|
|
87
87
|
for (let i in o)
|
|
88
88
|
this[i] = o[i];
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const b = /* @__PURE__ */ function() {
|
|
91
91
|
return u.exports;
|
|
92
92
|
}();
|
|
93
|
-
var
|
|
93
|
+
var C = function() {
|
|
94
94
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
95
95
|
return t("div", [t("h4", {
|
|
96
96
|
directives: [{
|
|
@@ -263,9 +263,9 @@ var w = function() {
|
|
|
263
263
|
}, [t("i", {
|
|
264
264
|
staticClass: "iconfont icon-copy"
|
|
265
265
|
})]) : e._e()], 1);
|
|
266
|
-
},
|
|
266
|
+
}, w = [];
|
|
267
267
|
export {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
b as W,
|
|
269
|
+
C as r,
|
|
270
|
+
w as s
|
|
271
271
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as s } from "./util.
|
|
1
|
+
import { d as s } from "./util.23fe58fb.js";
|
|
2
2
|
import { s as o, r as c } from "./WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js";
|
|
3
3
|
import { n as d } from "./vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
const u = {
|
|
@@ -39,7 +39,8 @@ const u = {
|
|
|
39
39
|
},
|
|
40
40
|
methods: {
|
|
41
41
|
getComponent(e, n) {
|
|
42
|
-
|
|
42
|
+
const i = "fy-";
|
|
43
|
+
let t = "input";
|
|
43
44
|
return n || (["array", "img", "url"].includes(e) ? t = "array" : e === "select" ? t = "select" : e === "radio" ? t = "radio" : e === "checkbox" ? t = "checkbox" : ["time", "timerange"].includes(e) ? t = "time" : ["dates", "date", "datetime", "datetimerange", "daterange", "week", "month", "year"].includes(e) ? t = "date" : e === "cascader" ? t = "cascader" : e === "number" ? t = "input-number" : e === "password" ? t = "input" : e === "switch" ? t = "switch" : e === "rate" ? t = "rate" : e === "upload" ? t = "upload" : e === "slider" ? t = "slider" : e === "dynamic" ? t = "dynamic" : e === "icon" ? t = "input-icon" : e === "color" ? t = "input-color" : e === "map" && (t = "input-map"), i + t);
|
|
44
45
|
},
|
|
45
46
|
getPlaceholder(e) {
|
|
@@ -169,7 +170,7 @@ var b = function() {
|
|
|
169
170
|
},
|
|
170
171
|
attrs: {
|
|
171
172
|
size: "50",
|
|
172
|
-
|
|
173
|
+
desc: "拖拽字段至此"
|
|
173
174
|
}
|
|
174
175
|
})]], 2), e.selectWidget.prop === e.column.prop ? i("ElButton", {
|
|
175
176
|
staticClass: "widget-action-delete",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isBlank as
|
|
2
|
-
import { f as E, M as f, A as h, R as T, a as u, b as m, K as A, c as I, S as L, D as S, e as B, I as _ } from "./util.
|
|
1
|
+
import { isBlank as l } from "@web-utils/core";
|
|
2
|
+
import { f as E, M as f, A as h, R as T, a as u, b as m, K as A, c as I, S as L, D as S, e as B, I as _ } from "./util.23fe58fb.js";
|
|
3
3
|
const P = {
|
|
4
4
|
common: {
|
|
5
5
|
condition: "条件",
|
|
@@ -82,25 +82,25 @@ const P = {
|
|
|
82
82
|
}, k = (e, n) => {
|
|
83
83
|
n = n || "";
|
|
84
84
|
const t = n.split(".");
|
|
85
|
-
let a = e,
|
|
86
|
-
for (let
|
|
87
|
-
const
|
|
85
|
+
let a = e, i = null;
|
|
86
|
+
for (let c = 0, o = t.length; c < o; c++) {
|
|
87
|
+
const d = t[c];
|
|
88
88
|
if (!a)
|
|
89
89
|
break;
|
|
90
|
-
if (
|
|
91
|
-
|
|
90
|
+
if (c === o - 1) {
|
|
91
|
+
i = a[d];
|
|
92
92
|
break;
|
|
93
93
|
}
|
|
94
|
-
a = a[
|
|
94
|
+
a = a[d];
|
|
95
95
|
}
|
|
96
|
-
return
|
|
96
|
+
return i;
|
|
97
97
|
}, p = (e) => k(P, e), R = (e = []) => (e.forEach((n) => {
|
|
98
|
-
|
|
99
|
-
if (!
|
|
100
|
-
|
|
101
|
-
t.forEach((
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
const t = n.cascader;
|
|
99
|
+
if (!l(t)) {
|
|
100
|
+
const a = n.prop;
|
|
101
|
+
t.forEach((i) => {
|
|
102
|
+
const c = E(e, i);
|
|
103
|
+
c !== -1 && (c.parentProp = a);
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
}), e);
|
|
@@ -109,12 +109,13 @@ const C = (e, n = 12, t = !1) => {
|
|
|
109
109
|
t && (r = 0);
|
|
110
110
|
const a = 24;
|
|
111
111
|
return r = r + (e.span || n) + (e.offset || 0), r === a ? r = 0 : r > a ? r = (e.span || n) + (e.offset || 0) : e.row && r !== a && (e.count = a - r, r = 0), e;
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
},
|
|
112
|
+
}, $ = (e, n) => {
|
|
113
|
+
const { type: t, multiple: a, dataType: i, separator: c = S, alone: o, emitPath: d, range: y } = n;
|
|
114
|
+
let s = e;
|
|
115
|
+
return f.includes(t) && a === !0 || h.includes(t) && d !== !1 || T.includes(t) && y === !0 ? (Array.isArray(s) || (l(s) ? s = [] : s = `${s}`.split(c) || []), s.forEach((b, g) => {
|
|
116
|
+
s[g] = u(b, i);
|
|
117
|
+
}), m.includes(t) && l(s) && o && (s = [""])) : s = u(s, i), s;
|
|
118
|
+
}, v = (e) => {
|
|
118
119
|
const n = e.type, t = e.searchRange;
|
|
119
120
|
let a = n;
|
|
120
121
|
if (e.searchType)
|
|
@@ -122,36 +123,36 @@ const C = (e, n = 12, t = !1) => {
|
|
|
122
123
|
if (["radio", "checkbox", "switch"].includes(n))
|
|
123
124
|
a = "select";
|
|
124
125
|
else if (B.includes(n)) {
|
|
125
|
-
|
|
126
|
-
t ? n.includes(
|
|
126
|
+
const i = "range";
|
|
127
|
+
t ? n.includes(i) ? a = n : a = n + i : a = n.replace(i, "");
|
|
127
128
|
} else
|
|
128
129
|
["textarea"].includes(n) && (a = "input");
|
|
129
130
|
return a;
|
|
130
|
-
},
|
|
131
|
+
}, N = (e, n) => {
|
|
131
132
|
let t = e || "input";
|
|
132
|
-
if (
|
|
133
|
-
m.includes(e) ? t = "array" : ["time", "timerange"].includes(e) ? t = "time" : B.includes(e) ? t = "date" : ["password", "textarea", "search"].includes(e) ? t = "input" : _.includes(e) && (t =
|
|
133
|
+
if (l(n))
|
|
134
|
+
m.includes(e) ? t = "array" : ["time", "timerange"].includes(e) ? t = "time" : B.includes(e) ? t = "date" : ["password", "textarea", "search"].includes(e) ? t = "input" : _.includes(e) && (t = `input-${e}`);
|
|
134
135
|
else
|
|
135
136
|
return n;
|
|
136
137
|
return A + t;
|
|
137
|
-
},
|
|
138
|
+
}, M = (e = []) => {
|
|
138
139
|
let n = {};
|
|
139
140
|
return e.forEach((t) => {
|
|
140
|
-
h.includes(t.type) && t.emitPath !== !1 || f.includes(t.type) && t.multiple || t.dataType === "array" ? n[t.prop] = [] : T.includes(t.type) && t.range === !0 ? n[t.prop] = [0, 0] : ["rate", "slider", "number"].includes(t.type) || t.dataType === "number" ? n[t.prop] = void 0 : n[t.prop] = "", t.bind && (n = I(n, t.bind)),
|
|
141
|
+
h.includes(t.type) && t.emitPath !== !1 || f.includes(t.type) && t.multiple || t.dataType === "array" ? n[t.prop] = [] : T.includes(t.type) && t.range === !0 ? n[t.prop] = [0, 0] : ["rate", "slider", "number"].includes(t.type) || t.dataType === "number" ? n[t.prop] = void 0 : n[t.prop] = "", t.bind && (n = I(n, t.bind)), l(t.value) || (n[t.prop] = t.value);
|
|
141
142
|
}), {
|
|
142
143
|
tableForm: n
|
|
143
144
|
};
|
|
144
|
-
},
|
|
145
|
+
}, O = function(e) {
|
|
145
146
|
const n = e.placeholder, t = e.label;
|
|
146
|
-
return
|
|
147
|
+
return l(n) ? L.includes(e.type) ? `${p("tip.select")} ${t}` : `${p("tip.input")} ${t}` : n;
|
|
147
148
|
};
|
|
148
149
|
export {
|
|
149
|
-
|
|
150
|
+
O as a,
|
|
150
151
|
R as b,
|
|
151
152
|
C as c,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
v as d,
|
|
154
|
+
M as f,
|
|
155
|
+
N as g,
|
|
156
|
+
$ as i,
|
|
156
157
|
p as t
|
|
157
158
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { isBlank as T, formatDate as f } from "@web-utils/core";
|
|
2
|
+
import { i as Y, M as I, A as L, D as n, m as _, b as S, n as o, p as $, e as b, q as h } from "./util.23fe58fb.js";
|
|
3
|
+
const P = (r = {}, t = {}, l = {}, A = []) => {
|
|
4
|
+
let e = r[t.prop];
|
|
5
|
+
const a = t.type, s = t.separator;
|
|
6
|
+
if (t.bind && (e = Y(r, t.bind)), T(e))
|
|
7
|
+
e = "";
|
|
8
|
+
else {
|
|
9
|
+
const g = I.includes(t.type) && t.multiple, D = L.includes(t.type);
|
|
10
|
+
if ((["string", "number"].includes(t.dataType) || g || D) && !Array.isArray(e) && (e = `${e}`.split(s || n), t.dataType === "number" && (e = _(e))), S.includes(a))
|
|
11
|
+
Array.isArray(e) ? e = e.join(s || o) : e = e.split(s || n).join(s || o);
|
|
12
|
+
else if (a === "password")
|
|
13
|
+
e = $(e, "*");
|
|
14
|
+
else if (b.includes(a) && t.format) {
|
|
15
|
+
const d = t.format.replace("dd", "DD").replace("yyyy", "YYYY"), y = f(Date.now(), "YYYY-MM-DD");
|
|
16
|
+
if (a.indexOf("range") !== -1) {
|
|
17
|
+
let i = e[0] || "", p = e[1] || "";
|
|
18
|
+
a === "timerange" && i.length <= 8 && p.length < 8 && (i = `${y} ${i}`, p = `${y} ${p}`), e = [f(i, d), f(p, d)].join(t.separator || "~");
|
|
19
|
+
} else
|
|
20
|
+
a === "time" && e.length <= 8 && (e = `${y} ${e}`), e = f(e, d);
|
|
21
|
+
}
|
|
22
|
+
e = h(A, e, t.props || l.props);
|
|
23
|
+
}
|
|
24
|
+
return t.formatter && typeof t.formatter == "function" && (e = t.formatter(r, r[t.prop], e, t)), e;
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
P as d
|
|
28
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { isBlank as w } from "@web-utils/core";
|
|
2
|
+
import { t as D, v as x } from "./util.23fe58fb.js";
|
|
3
|
+
const F = (d, t = []) => new Promise((i, o) => {
|
|
4
|
+
const c = [], a = [], s = {};
|
|
5
|
+
d.forEach((e) => {
|
|
6
|
+
e.parentProp && c.push(e);
|
|
7
|
+
}), t.forEach((e, n) => {
|
|
8
|
+
c.forEach((r) => {
|
|
9
|
+
r.hide !== !0 && r.dicFlag !== !1 && a.push(
|
|
10
|
+
new Promise((u) => {
|
|
11
|
+
w(e[r.parentProp]) ? u({
|
|
12
|
+
prop: r.prop,
|
|
13
|
+
data: [],
|
|
14
|
+
index: n
|
|
15
|
+
}) : r.dicUrl && g({
|
|
16
|
+
url: `${r.dicUrl.replace("{{key}}", e[r.parentProp])}`,
|
|
17
|
+
props: r.props,
|
|
18
|
+
method: r.dicMethod,
|
|
19
|
+
headers: r.dicHeaders,
|
|
20
|
+
formatter: r.dicFormatter,
|
|
21
|
+
query: r.dicQuery,
|
|
22
|
+
form: e
|
|
23
|
+
}).then((l) => {
|
|
24
|
+
u({
|
|
25
|
+
prop: r.prop,
|
|
26
|
+
data: l,
|
|
27
|
+
index: n
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
})
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
}), Promise.all(a).then((e) => {
|
|
34
|
+
e.forEach((n) => {
|
|
35
|
+
w(s[n.index]) && (s[n.index] = {}), s[n.index][n.prop] = n.data;
|
|
36
|
+
}), i(s);
|
|
37
|
+
});
|
|
38
|
+
}), U = (d) => {
|
|
39
|
+
let t = [];
|
|
40
|
+
return new Promise((i, o) => {
|
|
41
|
+
t = E(d).ajaxdic, k(t).then((a) => {
|
|
42
|
+
i(a);
|
|
43
|
+
}).catch((a) => {
|
|
44
|
+
o(a);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
}, K = (d) => {
|
|
48
|
+
const t = {}, i = d.dicData || {};
|
|
49
|
+
return d.column.forEach((o) => {
|
|
50
|
+
o.dicData && (t[o.prop] = D(o.dicData, o.props, o.dataType));
|
|
51
|
+
}), Object.assign(i, t);
|
|
52
|
+
};
|
|
53
|
+
function E(d) {
|
|
54
|
+
const t = d.column || [], i = [], o = {};
|
|
55
|
+
let c = [];
|
|
56
|
+
return t.forEach((a) => {
|
|
57
|
+
const s = a.dicData, e = a.dicUrl, n = a.prop, r = a.parentProp;
|
|
58
|
+
c = c.concat(a.cascader || []), Array.isArray(s) && (o[n] = s), !(a.dicFlag === !1 || a.lazy === !0 || c.includes(n)) && e && !r && i.push({
|
|
59
|
+
url: e,
|
|
60
|
+
name: n,
|
|
61
|
+
method: a.dicMethod,
|
|
62
|
+
headers: t.dicHeaders,
|
|
63
|
+
formatter: a.dicFormatter,
|
|
64
|
+
props: a.props,
|
|
65
|
+
dataType: a.dataType,
|
|
66
|
+
resKey: (a.props || {}).res,
|
|
67
|
+
query: a.dicQuery || {}
|
|
68
|
+
});
|
|
69
|
+
}), {
|
|
70
|
+
ajaxdic: i,
|
|
71
|
+
locationdic: o
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function k(d) {
|
|
75
|
+
const t = {}, i = [];
|
|
76
|
+
return new Promise((o) => {
|
|
77
|
+
d.forEach((c) => {
|
|
78
|
+
i.push(
|
|
79
|
+
new Promise((a) => {
|
|
80
|
+
g(Object.assign(c, {
|
|
81
|
+
url: `${c.url.replace("{{key}}", "")}`
|
|
82
|
+
})).then((s) => {
|
|
83
|
+
s = D(s, c.props, c.dataType), a(s);
|
|
84
|
+
}).catch(() => {
|
|
85
|
+
a([]);
|
|
86
|
+
});
|
|
87
|
+
})
|
|
88
|
+
);
|
|
89
|
+
}), Promise.all(i).then((c) => {
|
|
90
|
+
d.forEach((a, s) => {
|
|
91
|
+
t[a.name] = c[s];
|
|
92
|
+
}), o(t);
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
const g = (d) => {
|
|
97
|
+
let { url: t, query: i, method: o, resKey: c, props: a, formatter: s, headers: e = {}, value: n = "", column: r, form: u = {} } = d;
|
|
98
|
+
r && (t = r.dicUrl, o = r.dicMethod, e = r.headers || {}, i = r.dicQuery || {}, s = r.dicFormatter, a = r.props);
|
|
99
|
+
const l = "key";
|
|
100
|
+
t = t || "";
|
|
101
|
+
let y = [];
|
|
102
|
+
const m = {};
|
|
103
|
+
return y = t.match(/[^{}]+(?=})/g) || [], y.forEach((p) => {
|
|
104
|
+
const f = `{{${p}}}`, h = u[p];
|
|
105
|
+
p === l ? t = t.replace(f, n) : t = t.replace(f, h);
|
|
106
|
+
}), o === "post" && (y = Object.keys(i), y.forEach((p) => {
|
|
107
|
+
const f = i[p];
|
|
108
|
+
typeof f == "string" && f.match(/\{{|}}/g) ? m[p] = u[f.replace(/\{{|}}/g, "")] : m[p] = f;
|
|
109
|
+
})), a && (c = (a || {}).res || c), new Promise((p) => {
|
|
110
|
+
const f = (h) => {
|
|
111
|
+
let P = [];
|
|
112
|
+
typeof s == "function" ? P = s(h.data) : P = x(h.data, c), p(P);
|
|
113
|
+
};
|
|
114
|
+
o === "post" ? window.axios.post(t, m, {
|
|
115
|
+
headers: e
|
|
116
|
+
}).then(function(h) {
|
|
117
|
+
f(h);
|
|
118
|
+
}).catch(() => [
|
|
119
|
+
p([])
|
|
120
|
+
]) : window.axios.get(t, {
|
|
121
|
+
params: i,
|
|
122
|
+
headers: e
|
|
123
|
+
}).then(function(h) {
|
|
124
|
+
f(h);
|
|
125
|
+
}).catch(() => [
|
|
126
|
+
p([])
|
|
127
|
+
]);
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
export {
|
|
131
|
+
U as a,
|
|
132
|
+
F as b,
|
|
133
|
+
K as l,
|
|
134
|
+
g as s
|
|
135
|
+
};
|