@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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isBlank, getObjType } from "@web-utils/core";
|
|
1
2
|
const KEY_COMPONENT_NAME = "fy-", DIC_PROPS = {
|
|
2
3
|
rowKey: "id",
|
|
3
4
|
rowParentKey: "parentId",
|
|
@@ -33,7 +34,7 @@ const KEY_COMPONENT_NAME = "fy-", DIC_PROPS = {
|
|
|
33
34
|
img: /\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,
|
|
34
35
|
video: /\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,
|
|
35
36
|
audio: /\.(mp3|wav|MP3|WAV)/
|
|
36
|
-
},
|
|
37
|
+
}, isMediaType = (e, r) => {
|
|
37
38
|
if (!isBlank(e))
|
|
38
39
|
return typeList.audio.test(e) || r === "audio" ? "audio" : typeList.video.test(e) || r === "video" ? "video" : typeList.img.test(e) || r === "img" ? "img" : !1;
|
|
39
40
|
};
|
|
@@ -79,23 +80,23 @@ function strCorNum(e) {
|
|
|
79
80
|
}), e;
|
|
80
81
|
}
|
|
81
82
|
function extend() {
|
|
82
|
-
var e = arguments[0] || {}, r = !1, n = Array.prototype.slice.call(arguments), t = 1, a, i, l,
|
|
83
|
+
var e = arguments[0] || {}, r = !1, n = Array.prototype.slice.call(arguments), t = 1, a, i, l, s, o = !1;
|
|
83
84
|
for (typeof e == "boolean" && (r = e, t++, e = arguments[1]); t < n.length; t++)
|
|
84
85
|
if ((a = n[t]) != null)
|
|
85
86
|
for (l in a)
|
|
86
|
-
|
|
87
|
+
s = a[l], i = e[l], r && (toString.call(s) === "[object Object]" || (o = toString.call(s) === "[object Array]")) ? (o ? i = toString.call(i) === "[object Array]" ? i : [] : i = toString.call(i) === "[object Object]" ? i : {}, e[l] = extend(r, i, s)) : s !== void 0 && s !== i && (e[l] = s);
|
|
87
88
|
return e;
|
|
88
89
|
}
|
|
89
90
|
function createObj(e, r) {
|
|
90
91
|
let n = r.split("."), t = n.splice(0, 1)[0], a = {};
|
|
91
92
|
if (a[t] = {}, n.length >= 2) {
|
|
92
|
-
let i = "{", l = "}",
|
|
93
|
-
n.forEach((
|
|
94
|
-
|
|
95
|
-
}),
|
|
96
|
-
for (let
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
let i = "{", l = "}", s = "";
|
|
94
|
+
n.forEach((o) => {
|
|
95
|
+
s = `${s}${i}"${o}":`;
|
|
96
|
+
}), s = `${s}""`;
|
|
97
|
+
for (let o = 0; o < n.length; o++)
|
|
98
|
+
s = `${s}${l}`;
|
|
99
|
+
s = JSON.parse(s), a[t] = s;
|
|
99
100
|
}
|
|
100
101
|
return e = extend(!0, e, a), e;
|
|
101
102
|
}
|
|
@@ -125,21 +126,7 @@ function randomId() {
|
|
|
125
126
|
n += e.charAt(Math.floor(Math.random() * r));
|
|
126
127
|
return n;
|
|
127
128
|
}
|
|
128
|
-
const
|
|
129
|
-
var r = Object.prototype.toString, n = {
|
|
130
|
-
"[object Boolean]": "boolean",
|
|
131
|
-
"[object Number]": "number",
|
|
132
|
-
"[object String]": "string",
|
|
133
|
-
"[object Function]": "function",
|
|
134
|
-
"[object Array]": "array",
|
|
135
|
-
"[object Date]": "date",
|
|
136
|
-
"[object RegExp]": "regExp",
|
|
137
|
-
"[object Undefined]": "undefined",
|
|
138
|
-
"[object Null]": "null",
|
|
139
|
-
"[object Object]": "object"
|
|
140
|
-
};
|
|
141
|
-
return e instanceof Element ? "element" : n[r.call(e)];
|
|
142
|
-
}, deepClone = (e) => {
|
|
129
|
+
const deepClone = (e) => {
|
|
143
130
|
var r = getObjType(e), n;
|
|
144
131
|
if (r === "array")
|
|
145
132
|
n = [];
|
|
@@ -181,10 +168,10 @@ const getObjType = (e) => {
|
|
|
181
168
|
let a;
|
|
182
169
|
t || (e = detailDicGroup(e, n));
|
|
183
170
|
let i = (l) => {
|
|
184
|
-
const
|
|
171
|
+
const s = n.label || DIC_PROPS.label, o = n.value || DIC_PROPS.value, f = n.children || DIC_PROPS.children;
|
|
185
172
|
for (let u = 0; u < l.length; u++) {
|
|
186
173
|
const c = l[u], d = c[f] || [];
|
|
187
|
-
c[
|
|
174
|
+
c[o] === r ? a = t ? c : c[s] : i(d);
|
|
188
175
|
}
|
|
189
176
|
};
|
|
190
177
|
return i(e), a;
|
|
@@ -227,38 +214,37 @@ function uploadFun(e = {}, r) {
|
|
|
227
214
|
}
|
|
228
215
|
export {
|
|
229
216
|
ARRAY_VALUE_LIST as A,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
DIC_HTTP_PROPS as D,
|
|
217
|
+
dataURLtoFile as B,
|
|
218
|
+
DIC_SPLIT as D,
|
|
233
219
|
INPUT_LIST as I,
|
|
234
220
|
KEY_COMPONENT_NAME as K,
|
|
235
221
|
MULTIPLE_LIST as M,
|
|
236
222
|
RANGE_LIST as R,
|
|
237
223
|
SELECT_LIST as S,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
224
|
+
detailDataType as a,
|
|
225
|
+
ARRAY_LIST as b,
|
|
226
|
+
createObj as c,
|
|
227
|
+
deepClone as d,
|
|
228
|
+
DATE_LIST as e,
|
|
243
229
|
findObject as f,
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
230
|
+
getFixed as g,
|
|
231
|
+
setAsVal as h,
|
|
232
|
+
getAsVal as i,
|
|
233
|
+
filterParams as j,
|
|
234
|
+
DIC_PROPS as k,
|
|
235
|
+
clearVal as l,
|
|
236
|
+
strCorNum as m,
|
|
237
|
+
DIC_SHOW_SPLIT as n,
|
|
252
238
|
optVal as o,
|
|
253
|
-
|
|
254
|
-
|
|
239
|
+
getPasswordChar as p,
|
|
240
|
+
findByValue as q,
|
|
255
241
|
randomId as r,
|
|
256
242
|
setPx as s,
|
|
257
|
-
|
|
243
|
+
detailDic as t,
|
|
258
244
|
uploadFun as u,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
245
|
+
getObjValue as v,
|
|
246
|
+
downFile as w,
|
|
247
|
+
isMediaType as x,
|
|
248
|
+
DIC_HTTP_PROPS as y,
|
|
249
|
+
arraySort as z
|
|
264
250
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { s as n, r as o, f as i } from "../../chunks/AfdColumn.vue_vue_type_template_lang.768f2ed2.js";
|
|
2
|
+
import { d as l } from "../../chunks/util.80e28481.js";
|
|
3
|
+
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
|
+
const m = {
|
|
5
|
+
name: "AfdColumn",
|
|
6
|
+
props: {
|
|
7
|
+
column: []
|
|
8
|
+
},
|
|
9
|
+
emits: ["submit"],
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
fields: i,
|
|
13
|
+
visible: !1,
|
|
14
|
+
list: []
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
watch: {
|
|
18
|
+
column: {
|
|
19
|
+
handler(e) {
|
|
20
|
+
this.list = e;
|
|
21
|
+
},
|
|
22
|
+
deep: !0,
|
|
23
|
+
immediate: !0
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
methods: {
|
|
27
|
+
handleSubmit() {
|
|
28
|
+
this.$emit("submit", l(this.list)), this.visible = !1;
|
|
29
|
+
},
|
|
30
|
+
handleDic(e) {
|
|
31
|
+
console.log(e), this.$message.error("暂未实现");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, s = {};
|
|
35
|
+
var a = /* @__PURE__ */ r(
|
|
36
|
+
m,
|
|
37
|
+
o,
|
|
38
|
+
n,
|
|
39
|
+
!1,
|
|
40
|
+
u,
|
|
41
|
+
null,
|
|
42
|
+
null,
|
|
43
|
+
null
|
|
44
|
+
);
|
|
45
|
+
function u(e) {
|
|
46
|
+
for (let t in s)
|
|
47
|
+
this[t] = s[t];
|
|
48
|
+
}
|
|
49
|
+
const p = /* @__PURE__ */ function() {
|
|
50
|
+
return a.exports;
|
|
51
|
+
}();
|
|
52
|
+
export {
|
|
53
|
+
p as default
|
|
54
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { formatDate as d } from "@web-utils/core";
|
|
2
|
-
import { s as l } from "../../chunks/util.
|
|
2
|
+
import { s as l } from "../../chunks/util.80e28481.js";
|
|
3
3
|
import { n as u } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var m = function() {
|
|
5
5
|
var t = this, o = t.$createElement, e = t._self._c || o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import s from "element-ui/lib/scrollbar";
|
|
2
|
-
import { s as o } from "../../chunks/util.
|
|
2
|
+
import { s as o } from "../../chunks/util.80e28481.js";
|
|
3
3
|
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var i = function() {
|
|
5
5
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as s, k as l } from "../../chunks/util.80e28481.js";
|
|
2
|
+
import { isBlank as p } from "@web-utils/core";
|
|
2
3
|
import { n as c } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
4
|
var d = function() {
|
|
4
5
|
var t = this, n = t.$createElement, e = t._self._c || n;
|
|
@@ -32,8 +33,8 @@ var d = function() {
|
|
|
32
33
|
})], null, !0)
|
|
33
34
|
})];
|
|
34
35
|
}), t._t("footer")], 2);
|
|
35
|
-
},
|
|
36
|
-
const
|
|
36
|
+
}, f = [];
|
|
37
|
+
const a = {
|
|
37
38
|
name: "Column",
|
|
38
39
|
inject: ["crud"],
|
|
39
40
|
provide() {
|
|
@@ -93,9 +94,9 @@ const f = {
|
|
|
93
94
|
}
|
|
94
95
|
}, u = {};
|
|
95
96
|
var h = /* @__PURE__ */ c(
|
|
96
|
-
f,
|
|
97
|
-
d,
|
|
98
97
|
a,
|
|
98
|
+
d,
|
|
99
|
+
f,
|
|
99
100
|
!1,
|
|
100
101
|
_,
|
|
101
102
|
null,
|
|
@@ -106,9 +107,9 @@ function _(t) {
|
|
|
106
107
|
for (let n in u)
|
|
107
108
|
this[n] = u[n];
|
|
108
109
|
}
|
|
109
|
-
const
|
|
110
|
+
const C = /* @__PURE__ */ function() {
|
|
110
111
|
return h.exports;
|
|
111
112
|
}();
|
|
112
113
|
export {
|
|
113
|
-
|
|
114
|
+
C as default
|
|
114
115
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as r } from "../../chunks/config.46422d7f.js";
|
|
2
|
-
import { o as d } from "../../chunks/util.
|
|
2
|
+
import { o as d } from "../../chunks/util.80e28481.js";
|
|
3
3
|
import { n as c } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var a = function() {
|
|
5
5
|
var e = this, n = e.$createElement, t = e._self._c || n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as u } from "../../chunks/config.46422d7f.js";
|
|
2
2
|
import { p as d } from "../../chunks/permission.ce5d2121.js";
|
|
3
|
-
import { o as a } from "../../chunks/util.
|
|
3
|
+
import { o as a } from "../../chunks/util.80e28481.js";
|
|
4
4
|
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
5
5
|
var m = function() {
|
|
6
6
|
var e = this, o = e.$createElement, r = e._self._c || o;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { d as h } from "../../chunks/detail.
|
|
2
|
-
import {
|
|
3
|
-
import { s as C } from "../../chunks/dic.
|
|
1
|
+
import { d as h } from "../../chunks/detail.ac4d421a.js";
|
|
2
|
+
import { o as f, u as b, x as g, k as p, n as y, d as _ } from "../../chunks/util.80e28481.js";
|
|
3
|
+
import { s as C } from "../../chunks/dic.79d9f595.js";
|
|
4
|
+
import { isBlank as a } from "@web-utils/core";
|
|
4
5
|
import { n as $ } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
5
6
|
var v = function() {
|
|
6
7
|
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
@@ -39,26 +40,26 @@ var v = function() {
|
|
|
39
40
|
}, {
|
|
40
41
|
key: "default",
|
|
41
42
|
fn: function(n) {
|
|
42
|
-
var r = n.row,
|
|
43
|
+
var r = n.row, i = n.$index;
|
|
43
44
|
return [r.$cellEdit && e.column.cell ? l("ElFormItem", {
|
|
44
45
|
attrs: {
|
|
45
|
-
prop: e.crud.isTree ? "" : `list.${
|
|
46
|
+
prop: e.crud.isTree ? "" : `list.${i}.${e.column.prop}`,
|
|
46
47
|
label: e.vaildLabel(e.column, r, " "),
|
|
47
48
|
"label-width": e.vaildLabel(e.column, r, "1px"),
|
|
48
49
|
rules: e.column.rules
|
|
49
50
|
}
|
|
50
51
|
}, [l("ElTooltip", {
|
|
51
52
|
attrs: {
|
|
52
|
-
content: (e.crud.listError[`list.${
|
|
53
|
-
disabled: !(e.crud.listError[`list.${
|
|
53
|
+
content: (e.crud.listError[`list.${i}.${e.column.prop}`] || {}).msg,
|
|
54
|
+
disabled: !(e.crud.listError[`list.${i}.${e.column.prop}`] || {}).valid,
|
|
54
55
|
placement: "top"
|
|
55
56
|
}
|
|
56
57
|
}, [e.crud.getSlotName(e.column, "F", e.crud.$scopedSlots) ? e._t(e.crud.getSlotName(e.column, "F"), null, null, {
|
|
57
58
|
row: r,
|
|
58
59
|
dic: e.crud.DIC[e.column.prop],
|
|
59
60
|
size: e.crud.isMediumSize,
|
|
60
|
-
index:
|
|
61
|
-
disabled: e.crud.btnDisabledList[
|
|
61
|
+
index: i,
|
|
62
|
+
disabled: e.crud.btnDisabledList[i],
|
|
62
63
|
label: e.handleDetail(r, e.column),
|
|
63
64
|
$cell: r.$cellEdit
|
|
64
65
|
}) : l("FormTemp", e._b({
|
|
@@ -66,20 +67,20 @@ var v = function() {
|
|
|
66
67
|
column: e.column,
|
|
67
68
|
size: e.crud.isMediumSize,
|
|
68
69
|
"table-data": {
|
|
69
|
-
index:
|
|
70
|
+
index: i,
|
|
70
71
|
row: r,
|
|
71
72
|
label: e.handleDetail(r, e.column)
|
|
72
73
|
},
|
|
73
|
-
dic: (e.crud.cascaderDIC[
|
|
74
|
+
dic: (e.crud.cascaderDIC[i] || {})[e.column.prop] || e.crud.DIC[e.column.prop],
|
|
74
75
|
props: e.column.props || e.crud.tableOption.props,
|
|
75
76
|
readonly: e.column.readonly,
|
|
76
|
-
disabled: e.crud.disabled || e.crud.tableOption.disabled || e.column.disabled || e.crud.btnDisabledList[
|
|
77
|
+
disabled: e.crud.disabled || e.crud.tableOption.disabled || e.column.disabled || e.crud.btnDisabledList[i],
|
|
77
78
|
clearable: e.optVal(e.column.clearable, !1),
|
|
78
79
|
"column-slot": e.crud.mainSlot
|
|
79
80
|
},
|
|
80
81
|
on: {
|
|
81
82
|
change: function(o) {
|
|
82
|
-
return e.columnChange(r, e.column,
|
|
83
|
+
return e.columnChange(r, e.column, i);
|
|
83
84
|
}
|
|
84
85
|
},
|
|
85
86
|
scopedSlots: e._u([e._l(e.crud.mainSlot, function(o) {
|
|
@@ -99,7 +100,7 @@ var v = function() {
|
|
|
99
100
|
}
|
|
100
101
|
}, "FormTemp", e.uploadFun(e.column, e.crud), !1))], 2)], 1) : e.crud.$scopedSlots[e.column.prop] ? e._t(e.column.prop, null, {
|
|
101
102
|
row: r,
|
|
102
|
-
index:
|
|
103
|
+
index: i,
|
|
103
104
|
dic: e.crud.DIC[e.column.prop],
|
|
104
105
|
size: e.crud.isMediumSize,
|
|
105
106
|
label: e.handleDetail(r, e.column)
|
|
@@ -189,7 +190,7 @@ const d = {}, D = {
|
|
|
189
190
|
});
|
|
190
191
|
},
|
|
191
192
|
methods: {
|
|
192
|
-
isBlank:
|
|
193
|
+
isBlank: a,
|
|
193
194
|
optVal: f,
|
|
194
195
|
uploadFun: b,
|
|
195
196
|
isMediaType(e, t) {
|
|
@@ -208,35 +209,35 @@ const d = {}, D = {
|
|
|
208
209
|
[...this.crud.propOption];
|
|
209
210
|
const l = e.cascader;
|
|
210
211
|
l.join(","), l.forEach((n) => {
|
|
211
|
-
const r = n,
|
|
212
|
-
|
|
212
|
+
const r = n, i = t[e.prop], o = t.$index, c = this.findObject(this.columnOption, r);
|
|
213
|
+
a(c) || (a(this.crud.cascaderDIC[o]) && this.$set(this.crud.cascaderDIC, o, {}), this.crud.cascaderIndexList.includes(o) && l.forEach((s) => {
|
|
213
214
|
this.$set(this.crud.cascaderDIC[o], s.prop, []), l.forEach((u) => t[u] = "");
|
|
214
|
-
}), !(
|
|
215
|
+
}), !(a(l) || a(i) || a(c)) && C({
|
|
215
216
|
column: c,
|
|
216
|
-
value:
|
|
217
|
+
value: i,
|
|
217
218
|
form: t
|
|
218
219
|
}).then((s) => {
|
|
219
220
|
const u = s || [];
|
|
220
|
-
this.crud.cascaderIndexList.includes(o) || this.crud.cascaderIndexList.push(o), this.crud.cascaderDicList[o] || this.$set(this.crud.cascaderDicList, o, {}), this.crud.cascaderDicList[o][r] || this.$set(this.crud.cascaderDicList[o], r, u), this.$set(this.crud.cascaderDIC[o], r, u), !
|
|
221
|
+
this.crud.cascaderIndexList.includes(o) || this.crud.cascaderIndexList.push(o), this.crud.cascaderDicList[o] || this.$set(this.crud.cascaderDicList, o, {}), this.crud.cascaderDicList[o][r] || this.$set(this.crud.cascaderDicList[o], r, u), this.$set(this.crud.cascaderDIC[o], r, u), !a(u[c.cascaderIndex]) && !a(u) && !a(c.cascaderIndex) && (t[r] = u[c.cascaderIndex][(c.props || {}).value || p.value]);
|
|
221
222
|
}));
|
|
222
223
|
});
|
|
223
224
|
});
|
|
224
225
|
},
|
|
225
226
|
handleDetail(e, t) {
|
|
226
227
|
let l, n = t.parentProp ? (this.crud.cascaderDIC[e.$index] || {})[t.prop] : this.crud.DIC[t.prop];
|
|
227
|
-
return l = h(e, t, this.crud.tableOption, n), !
|
|
228
|
+
return l = h(e, t, this.crud.tableOption, n), !a(n) && this.crud.tableOption.filterDic !== !0 && (e["$" + t.prop] = l), l;
|
|
228
229
|
},
|
|
229
230
|
corArray(e, t) {
|
|
230
231
|
let l = this.handleDetail(e, t);
|
|
231
|
-
return Array.isArray(l) || (l =
|
|
232
|
+
return Array.isArray(l) || (l = a(l) ? [] : l.split(y)), _(l);
|
|
232
233
|
},
|
|
233
234
|
openImg(e, t, l) {
|
|
234
235
|
let n = this.getImgList(e, t);
|
|
235
236
|
n = n.map((r) => ({ thumbUrl: r, url: r, type: t.fileType })), this.$ImagePreview(n, l);
|
|
236
237
|
},
|
|
237
238
|
getImgList(e, t) {
|
|
238
|
-
var
|
|
239
|
-
let l = ((
|
|
239
|
+
var i, o;
|
|
240
|
+
let l = ((i = t.propsHttp) == null ? void 0 : i.home) || "", n = ((o = t.props) == null ? void 0 : o.value) || p.value, r = this.corArray(e, t);
|
|
240
241
|
return r.forEach((c, s) => {
|
|
241
242
|
r[s] = l + (c[n] ? c[n] : c);
|
|
242
243
|
}), r;
|
|
@@ -257,9 +258,9 @@ function k(e) {
|
|
|
257
258
|
for (let t in m)
|
|
258
259
|
this[t] = m[t];
|
|
259
260
|
}
|
|
260
|
-
const
|
|
261
|
+
const O = /* @__PURE__ */ function() {
|
|
261
262
|
return x.exports;
|
|
262
263
|
}();
|
|
263
264
|
export {
|
|
264
|
-
|
|
265
|
+
O as default
|
|
265
266
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { s as t, r } from "../../chunks/ConfigArray.vue_vue_type_template_lang.66483daa.js";
|
|
2
|
+
import { n as e } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const s = {
|
|
4
|
+
name: "ConfigArray",
|
|
5
|
+
props: ["data"]
|
|
6
|
+
}, o = {};
|
|
7
|
+
var a = /* @__PURE__ */ e(
|
|
8
|
+
s,
|
|
9
|
+
r,
|
|
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 u = /* @__PURE__ */ function() {
|
|
22
|
+
return a.exports;
|
|
23
|
+
}();
|
|
24
|
+
export {
|
|
25
|
+
u as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { s as t, r as e } from "../../chunks/ConfigColor.vue_vue_type_template_lang.cd880091.js";
|
|
2
|
+
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const s = {
|
|
4
|
+
name: "ConfigColor",
|
|
5
|
+
props: ["data"]
|
|
6
|
+
}, n = {};
|
|
7
|
+
var l = /* @__PURE__ */ r(
|
|
8
|
+
s,
|
|
9
|
+
e,
|
|
10
|
+
t,
|
|
11
|
+
!1,
|
|
12
|
+
a,
|
|
13
|
+
null,
|
|
14
|
+
null,
|
|
15
|
+
null
|
|
16
|
+
);
|
|
17
|
+
function a(i) {
|
|
18
|
+
for (let o in n)
|
|
19
|
+
this[o] = n[o];
|
|
20
|
+
}
|
|
21
|
+
const u = /* @__PURE__ */ function() {
|
|
22
|
+
return l.exports;
|
|
23
|
+
}();
|
|
24
|
+
export {
|
|
25
|
+
u as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import MonacoEditor from "../../form-design/utils/monaco-editor";
|
|
2
|
+
import { s as staticRenderFns, r as render } from "../../chunks/ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js";
|
|
3
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
|
+
const __vue2_script = {
|
|
5
|
+
name: "ConfigCustom",
|
|
6
|
+
components: { MonacoEditor },
|
|
7
|
+
props: ["data"],
|
|
8
|
+
data() {
|
|
9
|
+
return {
|
|
10
|
+
params: this.data.params || {},
|
|
11
|
+
event: this.data.event || {},
|
|
12
|
+
options: {
|
|
13
|
+
fullScreen: !0,
|
|
14
|
+
minimap: {
|
|
15
|
+
enabled: !1
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
watch: {
|
|
21
|
+
"data.params"(t) {
|
|
22
|
+
this.params = t || {};
|
|
23
|
+
},
|
|
24
|
+
"data.event"(t) {
|
|
25
|
+
this.event = t || {};
|
|
26
|
+
},
|
|
27
|
+
params(val) {
|
|
28
|
+
try {
|
|
29
|
+
this.data.params = eval("(" + val + ")");
|
|
30
|
+
} catch (t) {
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
event(val) {
|
|
34
|
+
try {
|
|
35
|
+
this.data.event = eval("(" + val + ")");
|
|
36
|
+
} catch (t) {
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, __cssModules = {};
|
|
41
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
42
|
+
__vue2_script,
|
|
43
|
+
render,
|
|
44
|
+
staticRenderFns,
|
|
45
|
+
!1,
|
|
46
|
+
__vue2_injectStyles,
|
|
47
|
+
null,
|
|
48
|
+
null,
|
|
49
|
+
null
|
|
50
|
+
);
|
|
51
|
+
function __vue2_injectStyles(t) {
|
|
52
|
+
for (let e in __cssModules)
|
|
53
|
+
this[e] = __cssModules[e];
|
|
54
|
+
}
|
|
55
|
+
const ConfigCustom = /* @__PURE__ */ function() {
|
|
56
|
+
return __component__.exports;
|
|
57
|
+
}();
|
|
58
|
+
export {
|
|
59
|
+
ConfigCustom as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { s as o, r as e } from "../../chunks/ConfigDate.vue_vue_type_template_lang.420fa897.js";
|
|
2
|
+
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const r = {
|
|
4
|
+
name: "ConfigDate",
|
|
5
|
+
props: ["data"]
|
|
6
|
+
}, t = {};
|
|
7
|
+
var a = /* @__PURE__ */ s(
|
|
8
|
+
r,
|
|
9
|
+
e,
|
|
10
|
+
o,
|
|
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,26 @@
|
|
|
1
|
+
import { s as t, r as e } from "../../chunks/ConfigDynamic.vue_vue_type_template_lang.82d24ab0.js";
|
|
2
|
+
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
const r = {
|
|
4
|
+
name: "ConfigDynamic",
|
|
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(c) {
|
|
18
|
+
for (let n in o)
|
|
19
|
+
this[n] = o[n];
|
|
20
|
+
}
|
|
21
|
+
const m = /* @__PURE__ */ function() {
|
|
22
|
+
return a.exports;
|
|
23
|
+
}();
|
|
24
|
+
export {
|
|
25
|
+
m as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import MonacoEditor from "../../form-design/utils/monaco-editor";
|
|
2
|
+
import { s as staticRenderFns, r as render } from "../../chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js";
|
|
3
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
|
+
const __vue2_script = {
|
|
5
|
+
name: "ConfigEvent",
|
|
6
|
+
components: { MonacoEditor },
|
|
7
|
+
props: ["data"],
|
|
8
|
+
data() {
|
|
9
|
+
return {
|
|
10
|
+
change: "",
|
|
11
|
+
click: "",
|
|
12
|
+
focus: "",
|
|
13
|
+
blur: "",
|
|
14
|
+
options: {
|
|
15
|
+
fullScreen: !0,
|
|
16
|
+
minimap: {
|
|
17
|
+
enabled: !1
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
watch: {
|
|
23
|
+
"data.prop": {
|
|
24
|
+
handler() {
|
|
25
|
+
const { change: n, click: t, focus: s, blur: o } = this.data;
|
|
26
|
+
this.$set(this, "change", n ? n + "" : `({value}) => {\r
|
|
27
|
+
\r
|
|
28
|
+
}`), this.$set(this, "click", t ? t + "" : `({value}) => {\r
|
|
29
|
+
\r
|
|
30
|
+
}`), this.$set(this, "focus", s ? s + "" : `({value}) => {\r
|
|
31
|
+
\r
|
|
32
|
+
}`), this.$set(this, "blur", o ? o + "" : `({value}) => {\r
|
|
33
|
+
\r
|
|
34
|
+
}`);
|
|
35
|
+
},
|
|
36
|
+
immediate: !0
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
mounted() {
|
|
40
|
+
this.$nextTick(() => {
|
|
41
|
+
const event = ["change", "click", "focus", "blur"];
|
|
42
|
+
event.forEach((e) => {
|
|
43
|
+
this.$watch(`${e}`, (val) => {
|
|
44
|
+
try {
|
|
45
|
+
this.$set(this.data, e, eval(val));
|
|
46
|
+
} catch (n) {
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}, __cssModules = {};
|
|
53
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
54
|
+
__vue2_script,
|
|
55
|
+
render,
|
|
56
|
+
staticRenderFns,
|
|
57
|
+
!1,
|
|
58
|
+
__vue2_injectStyles,
|
|
59
|
+
null,
|
|
60
|
+
null,
|
|
61
|
+
null
|
|
62
|
+
);
|
|
63
|
+
function __vue2_injectStyles(n) {
|
|
64
|
+
for (let t in __cssModules)
|
|
65
|
+
this[t] = __cssModules[t];
|
|
66
|
+
}
|
|
67
|
+
const ConfigEvent = /* @__PURE__ */ function() {
|
|
68
|
+
return __component__.exports;
|
|
69
|
+
}();
|
|
70
|
+
export {
|
|
71
|
+
ConfigEvent as default
|
|
72
|
+
};
|