@web-utils/component 2.7.3 → 2.7.4
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/AfdColumn.vue_vue_type_template_lang.768f2ed2.js +302 -0
- package/dist/chunks/ConfigArray.vue_vue_type_template_lang.66483daa.js +51 -0
- package/dist/chunks/ConfigColor.vue_vue_type_template_lang.cd880091.js +24 -0
- package/dist/chunks/ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js +52 -0
- package/dist/chunks/ConfigDate.vue_vue_type_template_lang.420fa897.js +104 -0
- package/dist/chunks/ConfigDynamic.vue_vue_type_template_lang.82d24ab0.js +133 -0
- package/dist/chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js +96 -0
- package/dist/chunks/ConfigGroup.vue_vue_type_template_lang.44117322.js +48 -0
- package/dist/chunks/ConfigInput.vue_vue_type_template_lang.cc1eb052.js +96 -0
- package/dist/chunks/ConfigMap.vue_vue_type_template_lang.daee4d38.js +31 -0
- package/dist/chunks/ConfigNumber.vue_vue_type_template_lang.d60231d7.js +130 -0
- package/dist/chunks/ConfigRate.vue_vue_type_style_index_0_scoped_true_lang.cf5d437d.js +125 -0
- package/dist/chunks/ConfigSelect.vue_vue_type_template_lang.7db7e57f.js +483 -0
- package/dist/chunks/ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js +99 -0
- package/dist/chunks/ConfigSwitch.vue_vue_type_style_index_0_scoped_true_lang.4caf1bd0.js +54 -0
- package/dist/chunks/ConfigTable.vue_vue_type_template_lang.3e8136d9.js +341 -0
- package/dist/chunks/ConfigTextarea.vue_vue_type_template_lang.5cddf41c.js +88 -0
- package/dist/chunks/ConfigTitle.vue_vue_type_template_lang.57d9deb5.js +87 -0
- package/dist/chunks/ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.3770c37e.js +464 -0
- package/dist/chunks/ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js +240 -0
- package/dist/chunks/ConfigUpload.vue_vue_type_template_lang.531a9b2a.js +471 -0
- package/dist/chunks/FormConfig.vue_vue_type_template_lang.85b4ee87.js +232 -0
- package/dist/chunks/WidgetConfig.vue_vue_type_template_lang.f903c9b2.js +1765 -0
- package/dist/chunks/WidgetForm.vue_vue_type_template_lang.82248338.js +242 -0
- package/dist/chunks/WidgetFormGroup.vue_vue_type_template_lang.c636aabd.js +266 -0
- package/dist/chunks/WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js +24 -0
- package/dist/chunks/WidgetFormTable.vue_vue_type_template_lang.30625146.js +228 -0
- package/dist/chunks/{dataformat.3cfcf62c.js → dataformat.d3fd2d1b.js} +25 -24
- package/dist/chunks/{detail.a3249549.js → detail.ac4d421a.js} +7 -7
- package/dist/chunks/{dic.5f7e3523.js → dic.79d9f595.js} +28 -27
- package/dist/chunks/{event.b76c568a.js → event.43b42228.js} +7 -6
- package/dist/chunks/{init.352281f5.js → init.3b47bb80.js} +8 -7
- package/dist/chunks/{packages.5d7a86c4.js → packages.6f252850.js} +5 -61
- package/dist/chunks/{util.5053d54e.js → util.80e28481.js} +37 -51
- package/dist/components/afd-column/index.js +54 -0
- package/dist/components/chat/index.js +1 -1
- package/dist/components/code/index.js +1 -1
- package/dist/components/column/index.js +8 -7
- package/dist/components/column-default/index.js +1 -1
- package/dist/components/column-dynamic/index.js +1 -1
- package/dist/components/column-menu/index.js +1 -1
- package/dist/components/column-slot/index.js +27 -26
- package/dist/components/config-array/index.js +26 -0
- package/dist/components/config-color/index.js +26 -0
- package/dist/components/config-custom/index.js +60 -0
- package/dist/components/config-date/index.js +26 -0
- package/dist/components/config-dynamic/index.js +26 -0
- package/dist/components/config-event/index.js +72 -0
- package/dist/components/config-group/index.js +34 -0
- package/dist/components/config-input/index.js +26 -0
- package/dist/components/config-map/index.js +26 -0
- package/dist/components/config-number/index.js +26 -0
- package/dist/components/config-rate/index.js +69 -0
- package/dist/components/config-rate/style.css +1 -0
- package/dist/components/config-select/index.js +88 -0
- package/dist/components/config-slider/index.js +26 -0
- package/dist/components/config-switch/index.js +31 -0
- package/dist/components/config-switch/style.css +1 -0
- package/dist/components/config-table/index.js +120 -0
- package/dist/components/config-textarea/index.js +26 -0
- package/dist/components/config-title/index.js +31 -0
- package/dist/components/config-tree/index.js +120 -0
- package/dist/components/config-tree/style.css +1 -0
- package/dist/components/config-u-editor/index.js +32 -0
- package/dist/components/config-upload/index.js +56 -0
- package/dist/components/custom-scrollbar/index.js +6 -1
- package/dist/components/dialog-excel/index.js +2 -2
- package/dist/components/dialog-filter/index.js +1 -1
- package/dist/components/dialog-form/index.js +8 -7
- package/dist/components/flex-item/index.js +4 -1
- package/dist/components/flow/index.js +1 -1
- package/dist/components/flow-node/index.js +1 -1
- package/dist/components/form-config/index.js +26 -0
- package/dist/components/form-group/index.js +1 -1
- package/dist/components/form-temp/index.js +2 -2
- package/dist/components/{array → fy-array}/index.js +5 -5
- package/dist/components/{array → fy-array}/style.css +0 -0
- package/dist/components/fy-cascader/index.js +1 -1
- package/dist/components/fy-checkbox/index.js +1 -1
- package/dist/components/fy-curd/index.js +7 -6
- package/dist/components/fy-date/index.js +1 -1
- package/dist/components/fy-dialog-form/index.js +9 -8
- package/dist/components/{draggable → fy-draggable}/index.js +2 -2
- package/dist/components/{draggable → fy-draggable}/style.css +0 -0
- package/dist/components/fy-dynamic/index.js +2 -2
- package/dist/components/{empty → fy-empty}/index.js +6 -6
- package/dist/components/{empty → fy-empty}/style.css +0 -0
- package/dist/components/fy-form/index.js +9 -8
- package/dist/components/fy-form-design/index.js +1371 -0
- package/dist/components/fy-form-design/style.css +1 -0
- package/dist/components/fy-input/index.js +1 -1
- package/dist/components/fy-input-color/index.js +1 -1
- package/dist/components/fy-input-icon/index.js +1 -1
- package/dist/components/fy-input-map/index.js +4 -4
- package/dist/components/fy-input-number/index.js +1 -1
- package/dist/components/fy-input-table/index.js +4 -4
- package/dist/components/fy-input-tree/index.js +2 -2
- 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 +18 -17
- package/dist/components/fy-slider/index.js +2 -2
- package/dist/components/fy-switch/index.js +1 -1
- 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 +7 -6
- package/dist/components/fy-upload/index.js +11 -10
- package/dist/components/header-menu/index.js +1 -1
- package/dist/components/header-search/index.js +2 -2
- package/dist/components/license/index.js +5 -5
- package/dist/components/login/index.js +9 -8
- package/dist/components/record-video/index.js +1 -1
- package/dist/components/search/index.js +10 -9
- package/dist/components/sign/index.js +1 -1
- package/dist/components/table-column/index.js +4 -1
- package/dist/components/table-page/index.js +1 -1
- package/dist/components/text-ellipsis/index.js +1 -1
- package/dist/components/verify/index.js +1 -1
- package/dist/components/watermark/index.js +5 -1
- package/dist/components/widget-config/index.js +107 -0
- package/dist/components/widget-form/index.js +68 -0
- package/dist/components/widget-form-group/index.js +91 -0
- package/dist/components/widget-form-item/index.js +70 -0
- package/dist/components/widget-form-table/index.js +90 -0
- package/dist/index.css +761 -201
- package/dist/index.es.js +23971 -16542
- package/package.json +5 -3
- package/web-types.json +1880 -1781
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { s as e, r as t } from "../../chunks/ConfigGroup.vue_vue_type_template_lang.44117322.js";
|
|
2
|
+
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const s = {
|
|
4
|
+
name: "ConfigGroup",
|
|
5
|
+
props: ["data"],
|
|
6
|
+
data() {
|
|
7
|
+
return {
|
|
8
|
+
iconList: [{
|
|
9
|
+
label: "element-ui",
|
|
10
|
+
list: ["el-icon-info", "el-icon-error", "el-icon-success", "el-icon-warning", "el-icon-question"]
|
|
11
|
+
}]
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}, o = {};
|
|
15
|
+
var i = /* @__PURE__ */ r(
|
|
16
|
+
s,
|
|
17
|
+
t,
|
|
18
|
+
e,
|
|
19
|
+
!1,
|
|
20
|
+
l,
|
|
21
|
+
null,
|
|
22
|
+
null,
|
|
23
|
+
null
|
|
24
|
+
);
|
|
25
|
+
function l(c) {
|
|
26
|
+
for (let n in o)
|
|
27
|
+
this[n] = o[n];
|
|
28
|
+
}
|
|
29
|
+
const _ = /* @__PURE__ */ function() {
|
|
30
|
+
return i.exports;
|
|
31
|
+
}();
|
|
32
|
+
export {
|
|
33
|
+
_ as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { s as o, r as e } from "../../chunks/ConfigInput.vue_vue_type_template_lang.cc1eb052.js";
|
|
2
|
+
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const r = {
|
|
4
|
+
name: "ConfigInput",
|
|
5
|
+
props: ["data", "defaultValues"]
|
|
6
|
+
}, t = {};
|
|
7
|
+
var a = /* @__PURE__ */ s(
|
|
8
|
+
r,
|
|
9
|
+
e,
|
|
10
|
+
o,
|
|
11
|
+
!1,
|
|
12
|
+
l,
|
|
13
|
+
null,
|
|
14
|
+
null,
|
|
15
|
+
null
|
|
16
|
+
);
|
|
17
|
+
function l(u) {
|
|
18
|
+
for (let n in t)
|
|
19
|
+
this[n] = t[n];
|
|
20
|
+
}
|
|
21
|
+
const c = /* @__PURE__ */ function() {
|
|
22
|
+
return a.exports;
|
|
23
|
+
}();
|
|
24
|
+
export {
|
|
25
|
+
c as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { s as t, r as e } from "../../chunks/ConfigMap.vue_vue_type_template_lang.daee4d38.js";
|
|
2
|
+
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const r = {
|
|
4
|
+
name: "ConfigMap",
|
|
5
|
+
props: ["data"]
|
|
6
|
+
}, o = {};
|
|
7
|
+
var a = /* @__PURE__ */ s(
|
|
8
|
+
r,
|
|
9
|
+
e,
|
|
10
|
+
t,
|
|
11
|
+
!1,
|
|
12
|
+
i,
|
|
13
|
+
null,
|
|
14
|
+
null,
|
|
15
|
+
null
|
|
16
|
+
);
|
|
17
|
+
function i(l) {
|
|
18
|
+
for (let n in o)
|
|
19
|
+
this[n] = o[n];
|
|
20
|
+
}
|
|
21
|
+
const p = /* @__PURE__ */ function() {
|
|
22
|
+
return a.exports;
|
|
23
|
+
}();
|
|
24
|
+
export {
|
|
25
|
+
p as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { s as t, r as e } from "../../chunks/ConfigNumber.vue_vue_type_template_lang.d60231d7.js";
|
|
2
|
+
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const s = {
|
|
4
|
+
name: "ConfigNumber",
|
|
5
|
+
props: ["data"]
|
|
6
|
+
}, o = {};
|
|
7
|
+
var a = /* @__PURE__ */ r(
|
|
8
|
+
s,
|
|
9
|
+
e,
|
|
10
|
+
t,
|
|
11
|
+
!1,
|
|
12
|
+
i,
|
|
13
|
+
null,
|
|
14
|
+
null,
|
|
15
|
+
null
|
|
16
|
+
);
|
|
17
|
+
function i(l) {
|
|
18
|
+
for (let n in o)
|
|
19
|
+
this[n] = o[n];
|
|
20
|
+
}
|
|
21
|
+
const c = /* @__PURE__ */ function() {
|
|
22
|
+
return a.exports;
|
|
23
|
+
}();
|
|
24
|
+
export {
|
|
25
|
+
c as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { s as o, r as i } from "../../chunks/ConfigRate.vue_vue_type_style_index_0_scoped_true_lang.cf5d437d.js";
|
|
2
|
+
import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const l = {
|
|
4
|
+
name: "ConfigRate",
|
|
5
|
+
props: ["data"],
|
|
6
|
+
data() {
|
|
7
|
+
return {
|
|
8
|
+
textVisible: !1,
|
|
9
|
+
textValue: "",
|
|
10
|
+
colorVisible: !1,
|
|
11
|
+
colorValue: "",
|
|
12
|
+
iconVisible: !1,
|
|
13
|
+
iconValue: ""
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
methods: {
|
|
17
|
+
handleTextClose(t) {
|
|
18
|
+
this.data.texts.splice(this.data.texts.indexOf(t), 1);
|
|
19
|
+
},
|
|
20
|
+
showTextInput() {
|
|
21
|
+
this.textVisible = !0, this.$nextTick(() => {
|
|
22
|
+
this.$refs.textTag.$refs.input.focus();
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
handleTextConfirm() {
|
|
26
|
+
this.textValue && this.data.texts.push(this.textValue), this.textVisible = !1, this.textValue = "";
|
|
27
|
+
},
|
|
28
|
+
handleColorClose(t) {
|
|
29
|
+
this.data.colors.splice(this.data.colors.indexOf(t), 1);
|
|
30
|
+
},
|
|
31
|
+
handleColorConfirm() {
|
|
32
|
+
this.colorValue && this.data.colors.push(this.colorValue), this.colorValue = "";
|
|
33
|
+
}
|
|
34
|
+
// handleIconClose(tag) {
|
|
35
|
+
// this.data.iconClasses.splice(this.data.iconClasses.indexOf(tag), 1);
|
|
36
|
+
// },
|
|
37
|
+
// showIconInput() {
|
|
38
|
+
// this.iconVisible = true;
|
|
39
|
+
// this.$nextTick(() => {
|
|
40
|
+
// this.$refs.iconTag.$refs.input.focus();
|
|
41
|
+
// });
|
|
42
|
+
// },
|
|
43
|
+
// handleIconConfirm() {
|
|
44
|
+
// if (this.iconValue) this.data.iconClasses.push(this.iconValue);
|
|
45
|
+
// this.iconVisible = false;
|
|
46
|
+
// this.iconValue = '';
|
|
47
|
+
// }
|
|
48
|
+
}
|
|
49
|
+
}, s = {};
|
|
50
|
+
var n = /* @__PURE__ */ a(
|
|
51
|
+
l,
|
|
52
|
+
i,
|
|
53
|
+
o,
|
|
54
|
+
!1,
|
|
55
|
+
r,
|
|
56
|
+
"0922df2b",
|
|
57
|
+
null,
|
|
58
|
+
null
|
|
59
|
+
);
|
|
60
|
+
function r(t) {
|
|
61
|
+
for (let e in s)
|
|
62
|
+
this[e] = s[e];
|
|
63
|
+
}
|
|
64
|
+
const u = /* @__PURE__ */ function() {
|
|
65
|
+
return n.exports;
|
|
66
|
+
}();
|
|
67
|
+
export {
|
|
68
|
+
u as default
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.el-tag[data-v-0922df2b]{vertical-align:top}.el-tag+.el-tag[data-v-0922df2b]{margin-left:5px}.input-new-tag[data-v-0922df2b]{width:90px;margin-left:5px;vertical-align:bottom}.color-picker[data-v-0922df2b]{left:10px;vertical-align:top}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import Draggable from "vuedraggable";
|
|
2
|
+
import MonacoEditor from "../../form-design/utils/monaco-editor";
|
|
3
|
+
import { s as staticRenderFns, r as render } from "../../chunks/ConfigSelect.vue_vue_type_template_lang.7db7e57f.js";
|
|
4
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
5
|
+
const __vue2_script = {
|
|
6
|
+
name: "ConfigSelect",
|
|
7
|
+
components: { Draggable, MonacoEditor },
|
|
8
|
+
props: ["data"],
|
|
9
|
+
data() {
|
|
10
|
+
return {
|
|
11
|
+
option: {
|
|
12
|
+
column: [{
|
|
13
|
+
type: "input",
|
|
14
|
+
prop: "key",
|
|
15
|
+
label: "key"
|
|
16
|
+
}, {
|
|
17
|
+
type: "input",
|
|
18
|
+
prop: "value",
|
|
19
|
+
label: "value"
|
|
20
|
+
}]
|
|
21
|
+
},
|
|
22
|
+
options: {
|
|
23
|
+
fullScreen: !0,
|
|
24
|
+
minimap: {
|
|
25
|
+
enabled: !1
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
dicFormatter: ""
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
watch: {
|
|
32
|
+
"data.prop": {
|
|
33
|
+
handler() {
|
|
34
|
+
const { dicFormatter: e } = this.data;
|
|
35
|
+
this.dicFormatter = e ? e + "" : `(res) => {\r
|
|
36
|
+
return res.data\r
|
|
37
|
+
}`;
|
|
38
|
+
},
|
|
39
|
+
immediate: !0
|
|
40
|
+
},
|
|
41
|
+
dicFormatter: {
|
|
42
|
+
handler(val) {
|
|
43
|
+
try {
|
|
44
|
+
this.data.dicFormatter = eval(val);
|
|
45
|
+
} catch (e) {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
methods: {
|
|
51
|
+
handleRemoveFields(e) {
|
|
52
|
+
this.data.dicData.splice(e, 1);
|
|
53
|
+
},
|
|
54
|
+
handleAddFields() {
|
|
55
|
+
const e = Math.ceil(Math.random() * 99999);
|
|
56
|
+
this.data.dicData.push({ label: `字段${e}`, value: `col_${e}` });
|
|
57
|
+
},
|
|
58
|
+
handleRemoveCascaderItemFields(e) {
|
|
59
|
+
this.data.cascader.splice(e, 1);
|
|
60
|
+
},
|
|
61
|
+
handleAddCascaderItemFields() {
|
|
62
|
+
this.data.cascader || (this.$set(this.data, "cascader", []), delete this.data.cascaderItem), this.data.cascader.push("");
|
|
63
|
+
},
|
|
64
|
+
handleTabClick({ name: e }) {
|
|
65
|
+
e == "remote" && !this.data.dicQueryConfig && (this.data.dicQueryConfig = []);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, __cssModules = {};
|
|
69
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
70
|
+
__vue2_script,
|
|
71
|
+
render,
|
|
72
|
+
staticRenderFns,
|
|
73
|
+
!1,
|
|
74
|
+
__vue2_injectStyles,
|
|
75
|
+
null,
|
|
76
|
+
null,
|
|
77
|
+
null
|
|
78
|
+
);
|
|
79
|
+
function __vue2_injectStyles(e) {
|
|
80
|
+
for (let t in __cssModules)
|
|
81
|
+
this[t] = __cssModules[t];
|
|
82
|
+
}
|
|
83
|
+
const ConfigSelect = /* @__PURE__ */ function() {
|
|
84
|
+
return __component__.exports;
|
|
85
|
+
}();
|
|
86
|
+
export {
|
|
87
|
+
ConfigSelect as default
|
|
88
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { s as t, r as e } from "../../chunks/ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js";
|
|
2
|
+
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const s = {
|
|
4
|
+
name: "ConfigSlider",
|
|
5
|
+
props: ["data"]
|
|
6
|
+
}, o = {};
|
|
7
|
+
var i = /* @__PURE__ */ r(
|
|
8
|
+
s,
|
|
9
|
+
e,
|
|
10
|
+
t,
|
|
11
|
+
!1,
|
|
12
|
+
l,
|
|
13
|
+
null,
|
|
14
|
+
null,
|
|
15
|
+
null
|
|
16
|
+
);
|
|
17
|
+
function l(a) {
|
|
18
|
+
for (let n in o)
|
|
19
|
+
this[n] = o[n];
|
|
20
|
+
}
|
|
21
|
+
const u = /* @__PURE__ */ function() {
|
|
22
|
+
return i.exports;
|
|
23
|
+
}();
|
|
24
|
+
export {
|
|
25
|
+
u as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { s as n, r as o } from "../../chunks/ConfigSwitch.vue_vue_type_style_index_0_scoped_true_lang.4caf1bd0.js";
|
|
2
|
+
import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const s = {
|
|
4
|
+
name: "ConfigSwitch",
|
|
5
|
+
props: ["data"],
|
|
6
|
+
methods: {
|
|
7
|
+
handleDicClear() {
|
|
8
|
+
this.data.dicData = [{ label: "", value: "0" }, { label: "", value: "1" }];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}, e = {};
|
|
12
|
+
var l = /* @__PURE__ */ a(
|
|
13
|
+
s,
|
|
14
|
+
o,
|
|
15
|
+
n,
|
|
16
|
+
!1,
|
|
17
|
+
r,
|
|
18
|
+
"24459f96",
|
|
19
|
+
null,
|
|
20
|
+
null
|
|
21
|
+
);
|
|
22
|
+
function r(i) {
|
|
23
|
+
for (let t in e)
|
|
24
|
+
this[t] = e[t];
|
|
25
|
+
}
|
|
26
|
+
const u = /* @__PURE__ */ function() {
|
|
27
|
+
return l.exports;
|
|
28
|
+
}();
|
|
29
|
+
export {
|
|
30
|
+
u as default
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.dic[data-v-24459f96]{display:flex;margin-bottom:5px}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import MonacoEditor from "../../form-design/utils/monaco-editor";
|
|
2
|
+
import { s as staticRenderFns, r as render, A as AfdColumn } from "../../chunks/ConfigTable.vue_vue_type_template_lang.3e8136d9.js";
|
|
3
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
|
+
const __vue2_script = {
|
|
5
|
+
name: "ConfigTable",
|
|
6
|
+
components: { MonacoEditor, AfdColumn },
|
|
7
|
+
props: ["data"],
|
|
8
|
+
data() {
|
|
9
|
+
return {
|
|
10
|
+
options: {
|
|
11
|
+
fullScreen: !0,
|
|
12
|
+
minimap: {
|
|
13
|
+
enabled: !1
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
onLoad: "",
|
|
17
|
+
formatter: ""
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
watch: {
|
|
21
|
+
"data.prop": {
|
|
22
|
+
handler() {
|
|
23
|
+
const { onLoad: e, formatter: t } = this.data;
|
|
24
|
+
this.onLoad = e ? e + "" : "", this.formatter = t ? t + "" : "";
|
|
25
|
+
},
|
|
26
|
+
immediate: !0
|
|
27
|
+
},
|
|
28
|
+
"data.children.props": {
|
|
29
|
+
handler(e) {
|
|
30
|
+
this.handleOnLoad(e);
|
|
31
|
+
},
|
|
32
|
+
deep: !0
|
|
33
|
+
},
|
|
34
|
+
onLoad: {
|
|
35
|
+
handler(val) {
|
|
36
|
+
try {
|
|
37
|
+
this.data.onLoad = eval(val);
|
|
38
|
+
} catch (e) {
|
|
39
|
+
console.error(e);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
handleColumn(e) {
|
|
46
|
+
this.data.children.column = e;
|
|
47
|
+
},
|
|
48
|
+
handleOnLoad(e) {
|
|
49
|
+
const { url: t, method: r, needPage: o, currentPageKey: n, pageSizeKey: l, totalKey: i, recordsKey: d, resKey: c, auto: u } = e;
|
|
50
|
+
if (!u)
|
|
51
|
+
return;
|
|
52
|
+
if (!t) {
|
|
53
|
+
this.onLoad = "(res, cb) => { }";
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
let { props: a } = this.data;
|
|
57
|
+
a || (a = { label: "label", value: "value" });
|
|
58
|
+
const { value: s } = a, p = `(res, cb) => {
|
|
59
|
+
let { page, value, data } = res
|
|
60
|
+
if (!page) page = { currentPage: 1, pageSize: 10 }
|
|
61
|
+
const { currentPage, pageSize } = page
|
|
62
|
+
let params = { ...data, ${n || "current"}: currentPage, ${l || "page"}: pageSize }
|
|
63
|
+
|
|
64
|
+
if (value) params['${s}'] = value
|
|
65
|
+
|
|
66
|
+
if ('${r || "get"}' == 'get') params = { params: { ...params } }
|
|
67
|
+
|
|
68
|
+
this.$axios['${r}']('${t}', params).then(res => {
|
|
69
|
+
const response = this.getAsVal(res, '${c || "data.data"}')
|
|
70
|
+
if (!response) this.$message.error('未查询到数据或者返回层级配置错误')
|
|
71
|
+
|
|
72
|
+
let result = {}
|
|
73
|
+
if (${o}) {
|
|
74
|
+
const total = this.getAsVal(response, '${i || "total"}')
|
|
75
|
+
if (total || total == 0) {
|
|
76
|
+
result.total = total
|
|
77
|
+
} else {
|
|
78
|
+
this.$message.error('总条数配置错误')
|
|
79
|
+
return
|
|
80
|
+
}
|
|
81
|
+
const records = this.getAsVal(response, '${d || "records"}')
|
|
82
|
+
if (records) {
|
|
83
|
+
result.data = records
|
|
84
|
+
} else {
|
|
85
|
+
this.$message.error('列表配置错误')
|
|
86
|
+
return
|
|
87
|
+
}
|
|
88
|
+
} else result = { total: response.length, data: response }
|
|
89
|
+
|
|
90
|
+
if (value) {
|
|
91
|
+
const records = result.data
|
|
92
|
+
if (records && records.length > 0) cb(records[0])
|
|
93
|
+
else this.$message.error('根据${s}: ' + value + ' 查询不到结果')
|
|
94
|
+
} else cb(result)
|
|
95
|
+
})
|
|
96
|
+
}`;
|
|
97
|
+
this.onLoad = p;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}, __cssModules = {};
|
|
101
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
102
|
+
__vue2_script,
|
|
103
|
+
render,
|
|
104
|
+
staticRenderFns,
|
|
105
|
+
!1,
|
|
106
|
+
__vue2_injectStyles,
|
|
107
|
+
null,
|
|
108
|
+
null,
|
|
109
|
+
null
|
|
110
|
+
);
|
|
111
|
+
function __vue2_injectStyles(e) {
|
|
112
|
+
for (let t in __cssModules)
|
|
113
|
+
this[t] = __cssModules[t];
|
|
114
|
+
}
|
|
115
|
+
const ConfigTable = /* @__PURE__ */ function() {
|
|
116
|
+
return __component__.exports;
|
|
117
|
+
}();
|
|
118
|
+
export {
|
|
119
|
+
ConfigTable as default
|
|
120
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { s as e, r as o } from "../../chunks/ConfigTextarea.vue_vue_type_template_lang.5cddf41c.js";
|
|
2
|
+
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const s = {
|
|
4
|
+
name: "ConfigTextarea",
|
|
5
|
+
props: ["data"]
|
|
6
|
+
}, t = {};
|
|
7
|
+
var a = /* @__PURE__ */ r(
|
|
8
|
+
s,
|
|
9
|
+
o,
|
|
10
|
+
e,
|
|
11
|
+
!1,
|
|
12
|
+
i,
|
|
13
|
+
null,
|
|
14
|
+
null,
|
|
15
|
+
null
|
|
16
|
+
);
|
|
17
|
+
function i(l) {
|
|
18
|
+
for (let n in t)
|
|
19
|
+
this[n] = t[n];
|
|
20
|
+
}
|
|
21
|
+
const u = /* @__PURE__ */ function() {
|
|
22
|
+
return a.exports;
|
|
23
|
+
}();
|
|
24
|
+
export {
|
|
25
|
+
u as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { s as e, r as o } from "../../chunks/ConfigTitle.vue_vue_type_template_lang.57d9deb5.js";
|
|
2
|
+
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const i = {
|
|
4
|
+
name: "ConfigTitle",
|
|
5
|
+
props: ["data"],
|
|
6
|
+
data() {
|
|
7
|
+
return {
|
|
8
|
+
options: ["100", "200", "300", "400", "500", "600", "700", "800", "900", "blod", "bloder", "inherit", "initial", "lighter", "normal", "revert", "unset"]
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
}, n = {};
|
|
12
|
+
var s = /* @__PURE__ */ r(
|
|
13
|
+
i,
|
|
14
|
+
o,
|
|
15
|
+
e,
|
|
16
|
+
!1,
|
|
17
|
+
l,
|
|
18
|
+
null,
|
|
19
|
+
null,
|
|
20
|
+
null
|
|
21
|
+
);
|
|
22
|
+
function l(a) {
|
|
23
|
+
for (let t in n)
|
|
24
|
+
this[t] = n[t];
|
|
25
|
+
}
|
|
26
|
+
const c = /* @__PURE__ */ function() {
|
|
27
|
+
return s.exports;
|
|
28
|
+
}();
|
|
29
|
+
export {
|
|
30
|
+
c as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import MonacoEditor from "../../form-design/utils/monaco-editor";
|
|
2
|
+
import Draggable from "vuedraggable";
|
|
3
|
+
import { s as staticRenderFns, r as render } from "../../chunks/ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.3770c37e.js";
|
|
4
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
5
|
+
const __vue2_script = {
|
|
6
|
+
name: "ConfigTree",
|
|
7
|
+
components: { MonacoEditor, Draggable },
|
|
8
|
+
props: ["data"],
|
|
9
|
+
data() {
|
|
10
|
+
return {
|
|
11
|
+
dialogForm: {},
|
|
12
|
+
dialogVisible: !1,
|
|
13
|
+
dialogRules: {
|
|
14
|
+
label: { required: !0, message: "请输入label" },
|
|
15
|
+
value: { required: !0, message: "请输入value" }
|
|
16
|
+
},
|
|
17
|
+
dialogStatus: "add",
|
|
18
|
+
selectData: void 0,
|
|
19
|
+
dialogInputType: "text",
|
|
20
|
+
option: {
|
|
21
|
+
column: [{
|
|
22
|
+
type: "input",
|
|
23
|
+
prop: "key",
|
|
24
|
+
label: "key"
|
|
25
|
+
}, {
|
|
26
|
+
type: "input",
|
|
27
|
+
prop: "value",
|
|
28
|
+
label: "value"
|
|
29
|
+
}]
|
|
30
|
+
},
|
|
31
|
+
options: {
|
|
32
|
+
fullScreen: !0,
|
|
33
|
+
minimap: {
|
|
34
|
+
enabled: !1
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
dicFormatter: ""
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
watch: {
|
|
41
|
+
"data.prop": {
|
|
42
|
+
handler() {
|
|
43
|
+
this.$set(this.data, "cascader", this.data.cascaderItem), this.$delete(this.data, "cascaderItem");
|
|
44
|
+
const { dicFormatter: e } = this.data;
|
|
45
|
+
this.dicFormatter = e ? e + "" : `(res) => {\r
|
|
46
|
+
return res.data\r
|
|
47
|
+
}`;
|
|
48
|
+
},
|
|
49
|
+
immediate: !0
|
|
50
|
+
},
|
|
51
|
+
dicFormatter: {
|
|
52
|
+
handler(val) {
|
|
53
|
+
try {
|
|
54
|
+
this.data.dicFormatter = eval(val);
|
|
55
|
+
} catch (e) {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
handleRemoveCascaderItemFields(e) {
|
|
62
|
+
this.data.cascader.splice(e, 1);
|
|
63
|
+
},
|
|
64
|
+
handleAddCascaderItemFields() {
|
|
65
|
+
this.data.cascader || (this.$set(this.data, "cascader", []), delete this.data.cascaderItem), this.data.cascader.push("");
|
|
66
|
+
},
|
|
67
|
+
handleTabClick({ name: e }) {
|
|
68
|
+
e == "remote" && !this.data.dicQueryConfig && (this.data.dicQueryConfig = []);
|
|
69
|
+
},
|
|
70
|
+
handleParentNodeAdd() {
|
|
71
|
+
this.selectData = void 0, this.dialogStatus = "add", this.dialogVisible = !0;
|
|
72
|
+
},
|
|
73
|
+
handleNodeAdd(e) {
|
|
74
|
+
this.selectData = e, this.dialogStatus = "add", this.dialogVisible = !0;
|
|
75
|
+
},
|
|
76
|
+
handleNodeRemove(e, t) {
|
|
77
|
+
const a = e.parent, d = a.data.children || a.data, i = d.findIndex((s) => s.id === t.id);
|
|
78
|
+
d.splice(i, 1);
|
|
79
|
+
},
|
|
80
|
+
handleDialogAdd() {
|
|
81
|
+
this.$refs.dialogForm.validate((e) => {
|
|
82
|
+
if (e) {
|
|
83
|
+
const { label: t, value: a } = this.dialogForm;
|
|
84
|
+
if (this.$refs.tree.getNode(a))
|
|
85
|
+
this.$message.error("value重复");
|
|
86
|
+
else {
|
|
87
|
+
const i = this.selectData, s = {
|
|
88
|
+
label: t,
|
|
89
|
+
value: this.dialogInputType == "number" ? new Number(a) : a
|
|
90
|
+
};
|
|
91
|
+
i ? (i.children || this.$set(i, "children", []), i.children.push(s)) : this.$set(this.data.dicData, this.data.dicData.length, s), this.beforeClose();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
},
|
|
96
|
+
beforeClose() {
|
|
97
|
+
this.$refs.dialogForm.clearValidate(), this.dialogForm = {}, this.dialogVisible = !1;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}, __cssModules = {};
|
|
101
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
102
|
+
__vue2_script,
|
|
103
|
+
render,
|
|
104
|
+
staticRenderFns,
|
|
105
|
+
!1,
|
|
106
|
+
__vue2_injectStyles,
|
|
107
|
+
"9953620c",
|
|
108
|
+
null,
|
|
109
|
+
null
|
|
110
|
+
);
|
|
111
|
+
function __vue2_injectStyles(e) {
|
|
112
|
+
for (let t in __cssModules)
|
|
113
|
+
this[t] = __cssModules[t];
|
|
114
|
+
}
|
|
115
|
+
const ConfigTree = /* @__PURE__ */ function() {
|
|
116
|
+
return __component__.exports;
|
|
117
|
+
}();
|
|
118
|
+
export {
|
|
119
|
+
ConfigTree as default
|
|
120
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.custom-tree-node[data-v-9953620c]{flex:1;display:flex;align-items:center;justify-content:space-between;font-size:14px;padding-right:8px}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { s as i, r as s } from "../../chunks/ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js";
|
|
2
|
+
import { n as e } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const a = {
|
|
4
|
+
name: "ConfigUEditor",
|
|
5
|
+
props: ["data"],
|
|
6
|
+
watch: {
|
|
7
|
+
"data.options.oss": function(t) {
|
|
8
|
+
debugger;
|
|
9
|
+
t == "ali" ? this.data.options.qiniu = {} : t == "qiniu" && (this.data.options.ali = {});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}, o = {};
|
|
13
|
+
var r = /* @__PURE__ */ e(
|
|
14
|
+
a,
|
|
15
|
+
s,
|
|
16
|
+
i,
|
|
17
|
+
!1,
|
|
18
|
+
l,
|
|
19
|
+
null,
|
|
20
|
+
null,
|
|
21
|
+
null
|
|
22
|
+
);
|
|
23
|
+
function l(t) {
|
|
24
|
+
for (let n in o)
|
|
25
|
+
this[n] = o[n];
|
|
26
|
+
}
|
|
27
|
+
const f = /* @__PURE__ */ function() {
|
|
28
|
+
return r.exports;
|
|
29
|
+
}();
|
|
30
|
+
export {
|
|
31
|
+
f as default
|
|
32
|
+
};
|