@web-utils/component 2.7.1 → 2.7.3
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/dataformat.3cfcf62c.js +156 -0
- package/dist/chunks/{event.50c365eb.js → event.b76c568a.js} +1 -1
- package/dist/components/array/index.js +1 -1
- package/dist/components/form-temp/index.js +1 -1
- 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 +34 -129
- package/dist/components/fy-date/index.js +1 -1
- package/dist/components/fy-dynamic/index.js +1 -1
- package/dist/components/fy-form/index.js +1 -1
- 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 +2 -2
- package/dist/components/fy-input-map/index.js +1 -1
- package/dist/components/fy-input-number/index.js +1 -1
- package/dist/components/fy-input-table/index.js +1 -1
- package/dist/components/fy-input-tree/index.js +1 -1
- 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 +1 -1
- package/dist/components/fy-slider/index.js +1 -1
- package/dist/components/fy-switch/index.js +1 -1
- package/dist/components/fy-time/index.js +1 -1
- package/dist/components/fy-title/index.js +1 -1
- package/dist/components/fy-upload/index.js +1 -1
- package/dist/components/header-search/index.js +1 -1
- package/dist/components/table-page/index.js +8 -5
- package/dist/index.es.js +102 -99
- package/package.json +2 -2
- package/web-types.json +1 -1
- package/dist/chunks/dataformat.fb35ee10.js +0 -61
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { c, f as E, M as f, A as h, R as T, d as o, e as B, K as A, g as I, S as L, b as S, h as m, I as _ } from "./util.5053d54e.js";
|
|
2
|
+
const P = {
|
|
3
|
+
common: {
|
|
4
|
+
condition: "条件",
|
|
5
|
+
display: "显示",
|
|
6
|
+
hide: "隐藏"
|
|
7
|
+
},
|
|
8
|
+
tip: {
|
|
9
|
+
select: "请选择",
|
|
10
|
+
input: "请输入"
|
|
11
|
+
},
|
|
12
|
+
check: {
|
|
13
|
+
checkAll: "全选"
|
|
14
|
+
},
|
|
15
|
+
upload: {
|
|
16
|
+
upload: "点击上传",
|
|
17
|
+
tip: "将文件拖到此处,或"
|
|
18
|
+
},
|
|
19
|
+
time: {
|
|
20
|
+
start: "开始",
|
|
21
|
+
end: "结束"
|
|
22
|
+
},
|
|
23
|
+
date: {
|
|
24
|
+
start: "开始",
|
|
25
|
+
end: "结束",
|
|
26
|
+
t: "今日",
|
|
27
|
+
y: "昨日",
|
|
28
|
+
n: "近7天",
|
|
29
|
+
a: "全部"
|
|
30
|
+
},
|
|
31
|
+
form: {
|
|
32
|
+
printBtn: "打 印",
|
|
33
|
+
mockBtn: "模 拟",
|
|
34
|
+
submitBtn: "提 交",
|
|
35
|
+
emptyBtn: "清 空"
|
|
36
|
+
},
|
|
37
|
+
crud: {
|
|
38
|
+
filter: {
|
|
39
|
+
addBtn: "新增条件",
|
|
40
|
+
clearBtn: "清空数据",
|
|
41
|
+
resetBtn: "清空条件",
|
|
42
|
+
cancelBtn: "取 消",
|
|
43
|
+
submitBtn: "确 定"
|
|
44
|
+
},
|
|
45
|
+
column: {
|
|
46
|
+
name: "列名",
|
|
47
|
+
hide: "隐藏",
|
|
48
|
+
fixed: "冻结",
|
|
49
|
+
filters: "过滤",
|
|
50
|
+
sortable: "排序",
|
|
51
|
+
index: "顺序",
|
|
52
|
+
width: "宽度"
|
|
53
|
+
},
|
|
54
|
+
tipStartTitle: "当前表格已选择",
|
|
55
|
+
tipEndTitle: "项",
|
|
56
|
+
editTitle: "编 辑",
|
|
57
|
+
copyTitle: "复 制",
|
|
58
|
+
addTitle: "新 增",
|
|
59
|
+
viewTitle: "查 看",
|
|
60
|
+
filterTitle: "过滤条件",
|
|
61
|
+
showTitle: "列显隐",
|
|
62
|
+
menu: "操作",
|
|
63
|
+
addBtn: "新 增",
|
|
64
|
+
show: "显 示",
|
|
65
|
+
hide: "隐 藏",
|
|
66
|
+
open: "展 开",
|
|
67
|
+
shrink: "收 缩",
|
|
68
|
+
printBtn: "打 印",
|
|
69
|
+
excelBtn: "导 出",
|
|
70
|
+
updateBtn: "修 改",
|
|
71
|
+
cancelBtn: "取 消",
|
|
72
|
+
searchBtn: "搜 索",
|
|
73
|
+
emptyBtn: "清 空",
|
|
74
|
+
menuBtn: "功 能",
|
|
75
|
+
saveBtn: "保 存",
|
|
76
|
+
viewBtn: "查 看",
|
|
77
|
+
editBtn: "编 辑",
|
|
78
|
+
copyBtn: "复 制",
|
|
79
|
+
delBtn: "删 除"
|
|
80
|
+
}
|
|
81
|
+
}, k = (e, n) => {
|
|
82
|
+
n = n || "";
|
|
83
|
+
const t = n.split(".");
|
|
84
|
+
let a = e, s = null;
|
|
85
|
+
for (let l = 0, d = t.length; l < d; l++) {
|
|
86
|
+
const u = t[l];
|
|
87
|
+
if (!a)
|
|
88
|
+
break;
|
|
89
|
+
if (l === d - 1) {
|
|
90
|
+
s = a[u];
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
a = a[u];
|
|
94
|
+
}
|
|
95
|
+
return s;
|
|
96
|
+
}, p = (e) => k(P, e), x = (e = []) => (e.forEach((n) => {
|
|
97
|
+
let t = n.cascader;
|
|
98
|
+
if (!c(t)) {
|
|
99
|
+
let a = n.prop;
|
|
100
|
+
t.forEach((s) => {
|
|
101
|
+
let l = E(e, s);
|
|
102
|
+
l !== -1 && (l.parentProp = a);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}), e);
|
|
106
|
+
let r = 0;
|
|
107
|
+
const R = (e, n = 12, t = !1) => {
|
|
108
|
+
t && (r = 0);
|
|
109
|
+
const a = 24;
|
|
110
|
+
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;
|
|
111
|
+
}, C = (e, n) => {
|
|
112
|
+
let { type: t, multiple: a, dataType: s, separator: l = S, alone: d, emitPath: u, range: y } = n, i = e;
|
|
113
|
+
return f.includes(t) && a === !0 || h.includes(t) && u !== !1 || T.includes(t) && y === !0 ? (Array.isArray(i) || (c(i) ? i = [] : i = (i + "").split(l) || []), i.forEach((b, g) => {
|
|
114
|
+
i[g] = o(b, s);
|
|
115
|
+
}), B.includes(t) && c(i) && d && (i = [""])) : i = o(i, s), i;
|
|
116
|
+
}, v = (e) => {
|
|
117
|
+
const n = e.type, t = e.searchRange;
|
|
118
|
+
let a = n;
|
|
119
|
+
if (e.searchType)
|
|
120
|
+
return e.searchType;
|
|
121
|
+
if (["radio", "checkbox", "switch"].includes(n))
|
|
122
|
+
a = "select";
|
|
123
|
+
else if (m.includes(n)) {
|
|
124
|
+
let s = "range";
|
|
125
|
+
t ? n.includes(s) ? a = n : a = n + s : a = n.replace(s, "");
|
|
126
|
+
} else
|
|
127
|
+
["textarea"].includes(n) && (a = "input");
|
|
128
|
+
return a;
|
|
129
|
+
}, N = (e, n) => {
|
|
130
|
+
let t = e || "input";
|
|
131
|
+
if (c(n))
|
|
132
|
+
B.includes(e) ? t = "array" : ["time", "timerange"].includes(e) ? t = "time" : m.includes(e) ? t = "date" : ["password", "textarea", "search"].includes(e) ? t = "input" : _.includes(e) && (t = "input-" + e);
|
|
133
|
+
else
|
|
134
|
+
return n;
|
|
135
|
+
return A + t;
|
|
136
|
+
}, M = (e = []) => {
|
|
137
|
+
let n = {};
|
|
138
|
+
return e.forEach((t) => {
|
|
139
|
+
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)), c(t.value) || (n[t.prop] = t.value);
|
|
140
|
+
}), {
|
|
141
|
+
tableForm: n
|
|
142
|
+
};
|
|
143
|
+
}, O = function(e) {
|
|
144
|
+
const n = e.placeholder, t = e.label;
|
|
145
|
+
return c(n) ? L.includes(e.type) ? `${p("tip.select")} ${t}` : `${p("tip.input")} ${t}` : n;
|
|
146
|
+
};
|
|
147
|
+
export {
|
|
148
|
+
O as a,
|
|
149
|
+
x as b,
|
|
150
|
+
R as c,
|
|
151
|
+
v as d,
|
|
152
|
+
M as f,
|
|
153
|
+
N as g,
|
|
154
|
+
C as i,
|
|
155
|
+
p as t
|
|
156
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as a, e as o } from "../../chunks/event.
|
|
1
|
+
import { p as a, e as o } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { i as c } from "../../chunks/util.5053d54e.js";
|
|
3
3
|
import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var u = function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as a, a as u } from "../../chunks/dataformat.
|
|
1
|
+
import { g as a, a as u } from "../../chunks/dataformat.3cfcf62c.js";
|
|
2
2
|
import { s as p } from "../../chunks/slot.1b8d2b1b.js";
|
|
3
3
|
import { u as s } from "../../chunks/util.5053d54e.js";
|
|
4
4
|
import { n as c } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as d, e as u } from "../../chunks/event.
|
|
1
|
+
import { p as d, e as u } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var h = function() {
|
|
4
4
|
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as i, e as c } from "../../chunks/event.
|
|
1
|
+
import { p as i, e as c } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var r = function() {
|
|
4
4
|
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
@@ -2,105 +2,10 @@ import { p as F } from "../../chunks/packages.5d7a86c4.js";
|
|
|
2
2
|
import { p as S } from "../../chunks/permission.ce5d2121.js";
|
|
3
3
|
import { i as _ } from "../../chunks/init.352281f5.js";
|
|
4
4
|
import { c as d } from "../../chunks/config.46422d7f.js";
|
|
5
|
-
import { b as v,
|
|
6
|
-
import { a as f, s as k, o as y, c as b, k as
|
|
7
|
-
import { n as
|
|
8
|
-
|
|
9
|
-
common: {
|
|
10
|
-
condition: "条件",
|
|
11
|
-
display: "显示",
|
|
12
|
-
hide: "隐藏"
|
|
13
|
-
},
|
|
14
|
-
tip: {
|
|
15
|
-
select: "请选择",
|
|
16
|
-
input: "请输入"
|
|
17
|
-
},
|
|
18
|
-
check: {
|
|
19
|
-
checkAll: "全选"
|
|
20
|
-
},
|
|
21
|
-
upload: {
|
|
22
|
-
upload: "点击上传",
|
|
23
|
-
tip: "将文件拖到此处,或"
|
|
24
|
-
},
|
|
25
|
-
time: {
|
|
26
|
-
start: "开始",
|
|
27
|
-
end: "结束"
|
|
28
|
-
},
|
|
29
|
-
date: {
|
|
30
|
-
start: "开始",
|
|
31
|
-
end: "结束",
|
|
32
|
-
t: "今日",
|
|
33
|
-
y: "昨日",
|
|
34
|
-
n: "近7天",
|
|
35
|
-
a: "全部"
|
|
36
|
-
},
|
|
37
|
-
form: {
|
|
38
|
-
printBtn: "打 印",
|
|
39
|
-
mockBtn: "模 拟",
|
|
40
|
-
submitBtn: "提 交",
|
|
41
|
-
emptyBtn: "清 空"
|
|
42
|
-
},
|
|
43
|
-
crud: {
|
|
44
|
-
filter: {
|
|
45
|
-
addBtn: "新增条件",
|
|
46
|
-
clearBtn: "清空数据",
|
|
47
|
-
resetBtn: "清空条件",
|
|
48
|
-
cancelBtn: "取 消",
|
|
49
|
-
submitBtn: "确 定"
|
|
50
|
-
},
|
|
51
|
-
column: {
|
|
52
|
-
name: "列名",
|
|
53
|
-
hide: "隐藏",
|
|
54
|
-
fixed: "冻结",
|
|
55
|
-
filters: "过滤",
|
|
56
|
-
sortable: "排序",
|
|
57
|
-
index: "顺序",
|
|
58
|
-
width: "宽度"
|
|
59
|
-
},
|
|
60
|
-
tipStartTitle: "当前表格已选择",
|
|
61
|
-
tipEndTitle: "项",
|
|
62
|
-
editTitle: "编 辑",
|
|
63
|
-
copyTitle: "复 制",
|
|
64
|
-
addTitle: "新 增",
|
|
65
|
-
viewTitle: "查 看",
|
|
66
|
-
filterTitle: "过滤条件",
|
|
67
|
-
showTitle: "列显隐",
|
|
68
|
-
menu: "操作",
|
|
69
|
-
addBtn: "新 增",
|
|
70
|
-
show: "显 示",
|
|
71
|
-
hide: "隐 藏",
|
|
72
|
-
open: "展 开",
|
|
73
|
-
shrink: "收 缩",
|
|
74
|
-
printBtn: "打 印",
|
|
75
|
-
excelBtn: "导 出",
|
|
76
|
-
updateBtn: "修 改",
|
|
77
|
-
cancelBtn: "取 消",
|
|
78
|
-
searchBtn: "搜 索",
|
|
79
|
-
emptyBtn: "清 空",
|
|
80
|
-
menuBtn: "功 能",
|
|
81
|
-
saveBtn: "保 存",
|
|
82
|
-
viewBtn: "查 看",
|
|
83
|
-
editBtn: "编 辑",
|
|
84
|
-
copyBtn: "复 制",
|
|
85
|
-
delBtn: "删 除"
|
|
86
|
-
}
|
|
87
|
-
}, x = (e, t) => {
|
|
88
|
-
t = t || "";
|
|
89
|
-
const l = t.split(".");
|
|
90
|
-
let i = e, r = null;
|
|
91
|
-
for (let s = 0, a = l.length; s < a; s++) {
|
|
92
|
-
const c = l[s];
|
|
93
|
-
if (!i)
|
|
94
|
-
break;
|
|
95
|
-
if (s === a - 1) {
|
|
96
|
-
r = i[c];
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
i = i[c];
|
|
100
|
-
}
|
|
101
|
-
return r;
|
|
102
|
-
}, D = (e) => x(E, e);
|
|
103
|
-
var B = function() {
|
|
5
|
+
import { b as v, t as O, f as L } from "../../chunks/dataformat.3cfcf62c.js";
|
|
6
|
+
import { a as f, s as k, o as y, c as b, k as n } from "../../chunks/util.5053d54e.js";
|
|
7
|
+
import { n as E } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
8
|
+
var x = function() {
|
|
104
9
|
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
105
10
|
return l("div", {
|
|
106
11
|
staticClass: "avue-crud avue-crud--card"
|
|
@@ -312,8 +217,8 @@ var B = function() {
|
|
|
312
217
|
}), l("DialogFilter", {
|
|
313
218
|
ref: "dialogFilter"
|
|
314
219
|
})], 2);
|
|
315
|
-
},
|
|
316
|
-
const
|
|
220
|
+
}, D = [];
|
|
221
|
+
const P = {
|
|
317
222
|
name: "FyCurd",
|
|
318
223
|
directives: {
|
|
319
224
|
permission: S
|
|
@@ -542,7 +447,7 @@ const H = {
|
|
|
542
447
|
});
|
|
543
448
|
},
|
|
544
449
|
menuIcon(e) {
|
|
545
|
-
return y(this.tableOption[e + "Text"],
|
|
450
|
+
return y(this.tableOption[e + "Text"], O(`crud.${e}`));
|
|
546
451
|
},
|
|
547
452
|
getBtnIcon(e) {
|
|
548
453
|
const t = e + "Icon";
|
|
@@ -553,7 +458,7 @@ const H = {
|
|
|
553
458
|
return this.$refs.dialogForm.$refs.tableForm.validateField(e);
|
|
554
459
|
},
|
|
555
460
|
selectClear() {
|
|
556
|
-
this.$emit("selection-clear",
|
|
461
|
+
this.$emit("selection-clear", n(this.tableSelect)), this.$refs.table.clearSelection();
|
|
557
462
|
},
|
|
558
463
|
toggleRowSelection(e, t) {
|
|
559
464
|
this.$refs.table.toggleRowSelection(e, t);
|
|
@@ -566,7 +471,7 @@ const H = {
|
|
|
566
471
|
},
|
|
567
472
|
dataInit() {
|
|
568
473
|
this.list = this.data, this.list.forEach((e, t) => {
|
|
569
|
-
e.$cellEdit && !this.cascaderFormList[t] && (this.cascaderFormList[t] =
|
|
474
|
+
e.$cellEdit && !this.cascaderFormList[t] && (this.cascaderFormList[t] = n(e)), this.$set(e, "$cellEdit", e.$cellEdit || !1), this.$set(e, "$index", t);
|
|
570
475
|
});
|
|
571
476
|
},
|
|
572
477
|
//拖动表头事件
|
|
@@ -661,8 +566,8 @@ const H = {
|
|
|
661
566
|
},
|
|
662
567
|
//单元格新增
|
|
663
568
|
rowCellAdd(e = {}) {
|
|
664
|
-
let t = this.list.length, l =
|
|
665
|
-
e =
|
|
569
|
+
let t = this.list.length, l = L(this.propOption).tableForm;
|
|
570
|
+
e = n(
|
|
666
571
|
Object.assign(
|
|
667
572
|
{
|
|
668
573
|
$cellEdit: !0,
|
|
@@ -682,7 +587,7 @@ const H = {
|
|
|
682
587
|
e.$cellEdit ? this.rowCellUpdate(e, t) : this.rowCellEdit(e, t);
|
|
683
588
|
},
|
|
684
589
|
rowCellUpdate(e, t) {
|
|
685
|
-
e =
|
|
590
|
+
e = n(e);
|
|
686
591
|
var l = this.validateCellField(t);
|
|
687
592
|
const i = () => {
|
|
688
593
|
this.btnDisabledList[t] = !1, this.btnDisabled = !1, this.list[t].$cellEdit = !1, this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(t), 1), delete this.cascaderFormList[t];
|
|
@@ -693,7 +598,7 @@ const H = {
|
|
|
693
598
|
},
|
|
694
599
|
// 单元格编辑
|
|
695
600
|
rowCellEdit(e, t) {
|
|
696
|
-
e.$cellEdit = !0, this.cascaderFormList[t] =
|
|
601
|
+
e.$cellEdit = !0, this.cascaderFormList[t] = n(e), this.cascaderDicList[t] = n(this.cascaderDIC[t]);
|
|
697
602
|
},
|
|
698
603
|
// 对部分表单字段进行校验
|
|
699
604
|
validateCellForm(e) {
|
|
@@ -732,15 +637,15 @@ const H = {
|
|
|
732
637
|
},
|
|
733
638
|
// 编辑
|
|
734
639
|
rowEdit(e, t) {
|
|
735
|
-
this.tableForm =
|
|
640
|
+
this.tableForm = n(e), this.tableIndex = t, this.setVal(), this.$refs.dialogForm.show("edit");
|
|
736
641
|
},
|
|
737
642
|
//复制
|
|
738
643
|
rowCopy(e) {
|
|
739
|
-
this.tableForm =
|
|
644
|
+
this.tableForm = n(e), delete this.tableForm[this.rowKey], this.tableIndex = -1, this.setVal(), this.$refs.dialogForm.show("add");
|
|
740
645
|
},
|
|
741
646
|
//查看
|
|
742
647
|
rowView(e, t) {
|
|
743
|
-
this.tableForm =
|
|
648
|
+
this.tableForm = n(e), this.tableIndex = t, this.setVal(), this.$refs.dialogForm.show("view");
|
|
744
649
|
},
|
|
745
650
|
// 删除
|
|
746
651
|
rowDel(e, t) {
|
|
@@ -762,25 +667,25 @@ const H = {
|
|
|
762
667
|
const { columns: l, data: i } = e;
|
|
763
668
|
let r = [];
|
|
764
669
|
return l.length > 0 && l.forEach((s, a) => {
|
|
765
|
-
let
|
|
766
|
-
if (
|
|
767
|
-
let u =
|
|
768
|
-
switch (
|
|
670
|
+
let h = this.sumColumnList.find((u) => u.name === s.property);
|
|
671
|
+
if (h) {
|
|
672
|
+
let u = h.decimals || 2, m = h.label || "";
|
|
673
|
+
switch (h.type) {
|
|
769
674
|
case "count":
|
|
770
675
|
r[a] = m + i.length;
|
|
771
676
|
break;
|
|
772
677
|
case "avg":
|
|
773
|
-
let C = i.map((
|
|
774
|
-
r[a] = C.reduce((
|
|
775
|
-
let p = Number(
|
|
776
|
-
return isNaN(p) ?
|
|
678
|
+
let C = i.map((o) => Number(o[s.property])), g = 1;
|
|
679
|
+
r[a] = C.reduce((o, c) => {
|
|
680
|
+
let p = Number(c);
|
|
681
|
+
return isNaN(p) ? o : (o * (g - 1) + c) / g++;
|
|
777
682
|
}, 0), r[a] = m + r[a].toFixed(u);
|
|
778
683
|
break;
|
|
779
684
|
case "sum":
|
|
780
|
-
let $ = i.map((
|
|
781
|
-
r[a] = $.reduce((
|
|
782
|
-
let p = Number(
|
|
783
|
-
return isNaN(p) ?
|
|
685
|
+
let $ = i.map((o) => Number(o[s.property]));
|
|
686
|
+
r[a] = $.reduce((o, c) => {
|
|
687
|
+
let p = Number(c);
|
|
688
|
+
return isNaN(p) ? o : o + c;
|
|
784
689
|
}, 0), r[a] = m + r[a].toFixed(u);
|
|
785
690
|
break;
|
|
786
691
|
}
|
|
@@ -824,10 +729,10 @@ const H = {
|
|
|
824
729
|
}
|
|
825
730
|
}
|
|
826
731
|
}, w = {};
|
|
827
|
-
var
|
|
828
|
-
H,
|
|
829
|
-
B,
|
|
732
|
+
var H = /* @__PURE__ */ E(
|
|
830
733
|
P,
|
|
734
|
+
x,
|
|
735
|
+
D,
|
|
831
736
|
!1,
|
|
832
737
|
M,
|
|
833
738
|
null,
|
|
@@ -838,9 +743,9 @@ function M(e) {
|
|
|
838
743
|
for (let t in w)
|
|
839
744
|
this[t] = w[t];
|
|
840
745
|
}
|
|
841
|
-
const
|
|
842
|
-
return
|
|
746
|
+
const B = /* @__PURE__ */ function() {
|
|
747
|
+
return H.exports;
|
|
843
748
|
}();
|
|
844
749
|
export {
|
|
845
|
-
|
|
750
|
+
B as default
|
|
846
751
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as n, e as o } from "../../chunks/event.
|
|
1
|
+
import { p as n, e as o } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { n as i } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var s = function() {
|
|
4
4
|
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as u, e as c } from "../../chunks/event.
|
|
1
|
+
import { p as u, e as c } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { o, k as l } from "../../chunks/util.5053d54e.js";
|
|
3
3
|
import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
function f(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as P } from "../../chunks/detail.a3249549.js";
|
|
2
2
|
import { i as N } from "../../chunks/init.352281f5.js";
|
|
3
3
|
import { s as _, k as $, u as j, c as h, l as I, m as L, n as O, a as V, o as z, p as M } from "../../chunks/util.5053d54e.js";
|
|
4
|
-
import { c as A, b as B, g as W, a as R, f as G } from "../../chunks/dataformat.
|
|
4
|
+
import { c as A, b as B, g as W, a as R, f as G } from "../../chunks/dataformat.3cfcf62c.js";
|
|
5
5
|
import { s as H } from "../../chunks/dic.5f7e3523.js";
|
|
6
6
|
import { p as U } from "../../chunks/packages.5d7a86c4.js";
|
|
7
7
|
import { n as q } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as o, e as p } from "../../chunks/event.
|
|
1
|
+
import { p as o, e as p } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var l = function() {
|
|
4
4
|
var e = this, r = e.$createElement, n = e._self._c || r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as n, e as o } from "../../chunks/event.
|
|
1
|
+
import { p as n, e as o } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var i = function() {
|
|
4
4
|
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as s, e as o } from "../../chunks/event.
|
|
1
|
+
import { p as s, e as o } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var u = function() {
|
|
4
4
|
var t = this, i = t.$createElement, e = t._self._c || i;
|
|
@@ -63,7 +63,7 @@ var u = function() {
|
|
|
63
63
|
},
|
|
64
64
|
expression: "filterText"
|
|
65
65
|
}
|
|
66
|
-
})], 1), e("
|
|
66
|
+
})], 1), e("FyTabs", {
|
|
67
67
|
attrs: {
|
|
68
68
|
option: t.option
|
|
69
69
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p, e as u } from "../../chunks/event.
|
|
1
|
+
import { p, e as u } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { c as d } from "../../chunks/util.5053d54e.js";
|
|
3
3
|
import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var m = function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as o, e as a } from "../../chunks/event.
|
|
1
|
+
import { p as o, e as a } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var i = function() {
|
|
4
4
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as o, e as r } from "../../chunks/event.
|
|
1
|
+
import { p as o, e as r } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { c as n } from "../../chunks/util.5053d54e.js";
|
|
3
3
|
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var h = function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as c, e as h } from "../../chunks/event.
|
|
1
|
+
import { p as c, e as h } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { c as n } from "../../chunks/util.5053d54e.js";
|
|
3
3
|
import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var f = function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as l, e as s } from "../../chunks/event.
|
|
1
|
+
import { p as l, e as s } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { n as i } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var d = function() {
|
|
4
4
|
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as a, e as r } from "../../chunks/event.
|
|
1
|
+
import { p as a, e as r } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { n } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var i = function() {
|
|
4
4
|
var e = this, o = e.$createElement, s = e._self._c || o;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as r, e as c } from "../../chunks/event.
|
|
1
|
+
import { p as r, e as c } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { s as d } from "../../chunks/dic.5f7e3523.js";
|
|
3
3
|
import { c as u, b as p } from "../../chunks/util.5053d54e.js";
|
|
4
4
|
import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as r, e as l } from "../../chunks/event.
|
|
1
|
+
import { p as r, e as l } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { s as i } from "../../chunks/util.5053d54e.js";
|
|
3
3
|
import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var p = function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as c, e as l } from "../../chunks/event.
|
|
1
|
+
import { p as c, e as l } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var r = function() {
|
|
4
4
|
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as o, e as l } from "../../chunks/event.
|
|
1
|
+
import { p as o, e as l } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { c as i } from "../../chunks/util.5053d54e.js";
|
|
3
3
|
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var c = function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as r, e as _ } from "../../chunks/event.
|
|
1
|
+
import { p as r, e as _ } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var o = function() {
|
|
4
4
|
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as j, e as z } from "../../chunks/event.
|
|
1
|
+
import { p as j, e as z } from "../../chunks/event.b76c568a.js";
|
|
2
2
|
import { C as R, c as x, i as w, m as D } from "../../chunks/util.5053d54e.js";
|
|
3
3
|
import { p as S } from "../../chunks/packages.5d7a86c4.js";
|
|
4
4
|
import { n as I } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as S } from "../../chunks/slot.1b8d2b1b.js";
|
|
2
2
|
import { c as h } from "../../chunks/config.46422d7f.js";
|
|
3
|
-
import { d as w } from "../../chunks/dataformat.
|
|
3
|
+
import { d as w } from "../../chunks/dataformat.3cfcf62c.js";
|
|
4
4
|
import { o, n as g, k as m } from "../../chunks/util.5053d54e.js";
|
|
5
5
|
import { n as F } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
6
6
|
var _ = function() {
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as u } from "../../chunks/config.46422d7f.js";
|
|
2
2
|
import { o as n } from "../../chunks/util.5053d54e.js";
|
|
3
3
|
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var g = function() {
|
|
5
|
-
var e = this, t = e.$createElement,
|
|
6
|
-
return e.pageFlag && e.optVal(e.crud.tableOption.page, !0) ?
|
|
5
|
+
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
6
|
+
return e.pageFlag && e.optVal(e.crud.tableOption.page, !0) ? i("ElCard", {
|
|
7
7
|
staticClass: "avue-pagination",
|
|
8
8
|
attrs: {
|
|
9
9
|
shadow: e.crud.isCard
|
|
10
10
|
}
|
|
11
|
-
}, [e._t("page"),
|
|
11
|
+
}, [e._t("page"), i("ElPagination", {
|
|
12
|
+
staticStyle: {
|
|
13
|
+
"margin-top": "25px"
|
|
14
|
+
},
|
|
12
15
|
attrs: {
|
|
13
16
|
small: e.crud.size === "mini",
|
|
14
17
|
disabled: e.defaultPage.disabled,
|
|
@@ -40,7 +43,7 @@ const c = {
|
|
|
40
43
|
inject: ["crud"],
|
|
41
44
|
data() {
|
|
42
45
|
return {
|
|
43
|
-
config:
|
|
46
|
+
config: u,
|
|
44
47
|
defaultPage: {
|
|
45
48
|
single: !1,
|
|
46
49
|
total: 0,
|
package/dist/index.es.js
CHANGED
|
@@ -739,7 +739,101 @@ function uploadFun(e = {}, t) {
|
|
|
739
739
|
n[i] = t[i];
|
|
740
740
|
}), n;
|
|
741
741
|
}
|
|
742
|
-
const
|
|
742
|
+
const lang = {
|
|
743
|
+
common: {
|
|
744
|
+
condition: "条件",
|
|
745
|
+
display: "显示",
|
|
746
|
+
hide: "隐藏"
|
|
747
|
+
},
|
|
748
|
+
tip: {
|
|
749
|
+
select: "请选择",
|
|
750
|
+
input: "请输入"
|
|
751
|
+
},
|
|
752
|
+
check: {
|
|
753
|
+
checkAll: "全选"
|
|
754
|
+
},
|
|
755
|
+
upload: {
|
|
756
|
+
upload: "点击上传",
|
|
757
|
+
tip: "将文件拖到此处,或"
|
|
758
|
+
},
|
|
759
|
+
time: {
|
|
760
|
+
start: "开始",
|
|
761
|
+
end: "结束"
|
|
762
|
+
},
|
|
763
|
+
date: {
|
|
764
|
+
start: "开始",
|
|
765
|
+
end: "结束",
|
|
766
|
+
t: "今日",
|
|
767
|
+
y: "昨日",
|
|
768
|
+
n: "近7天",
|
|
769
|
+
a: "全部"
|
|
770
|
+
},
|
|
771
|
+
form: {
|
|
772
|
+
printBtn: "打 印",
|
|
773
|
+
mockBtn: "模 拟",
|
|
774
|
+
submitBtn: "提 交",
|
|
775
|
+
emptyBtn: "清 空"
|
|
776
|
+
},
|
|
777
|
+
crud: {
|
|
778
|
+
filter: {
|
|
779
|
+
addBtn: "新增条件",
|
|
780
|
+
clearBtn: "清空数据",
|
|
781
|
+
resetBtn: "清空条件",
|
|
782
|
+
cancelBtn: "取 消",
|
|
783
|
+
submitBtn: "确 定"
|
|
784
|
+
},
|
|
785
|
+
column: {
|
|
786
|
+
name: "列名",
|
|
787
|
+
hide: "隐藏",
|
|
788
|
+
fixed: "冻结",
|
|
789
|
+
filters: "过滤",
|
|
790
|
+
sortable: "排序",
|
|
791
|
+
index: "顺序",
|
|
792
|
+
width: "宽度"
|
|
793
|
+
},
|
|
794
|
+
tipStartTitle: "当前表格已选择",
|
|
795
|
+
tipEndTitle: "项",
|
|
796
|
+
editTitle: "编 辑",
|
|
797
|
+
copyTitle: "复 制",
|
|
798
|
+
addTitle: "新 增",
|
|
799
|
+
viewTitle: "查 看",
|
|
800
|
+
filterTitle: "过滤条件",
|
|
801
|
+
showTitle: "列显隐",
|
|
802
|
+
menu: "操作",
|
|
803
|
+
addBtn: "新 增",
|
|
804
|
+
show: "显 示",
|
|
805
|
+
hide: "隐 藏",
|
|
806
|
+
open: "展 开",
|
|
807
|
+
shrink: "收 缩",
|
|
808
|
+
printBtn: "打 印",
|
|
809
|
+
excelBtn: "导 出",
|
|
810
|
+
updateBtn: "修 改",
|
|
811
|
+
cancelBtn: "取 消",
|
|
812
|
+
searchBtn: "搜 索",
|
|
813
|
+
emptyBtn: "清 空",
|
|
814
|
+
menuBtn: "功 能",
|
|
815
|
+
saveBtn: "保 存",
|
|
816
|
+
viewBtn: "查 看",
|
|
817
|
+
editBtn: "编 辑",
|
|
818
|
+
copyBtn: "复 制",
|
|
819
|
+
delBtn: "删 除"
|
|
820
|
+
}
|
|
821
|
+
}, getValueByPath = (e, t) => {
|
|
822
|
+
t = t || "";
|
|
823
|
+
const s = t.split(".");
|
|
824
|
+
let n = e, i = null;
|
|
825
|
+
for (let r = 0, o = s.length; r < o; r++) {
|
|
826
|
+
const a = s[r];
|
|
827
|
+
if (!n)
|
|
828
|
+
break;
|
|
829
|
+
if (r === o - 1) {
|
|
830
|
+
i = n[a];
|
|
831
|
+
break;
|
|
832
|
+
}
|
|
833
|
+
n = n[a];
|
|
834
|
+
}
|
|
835
|
+
return i;
|
|
836
|
+
}, translate = (e) => getValueByPath(lang, e), calcCascader = (e = []) => (e.forEach((t) => {
|
|
743
837
|
let s = t.cascader;
|
|
744
838
|
if (!isBlank(s)) {
|
|
745
839
|
let n = t.prop;
|
|
@@ -788,7 +882,7 @@ const calcCount = (e, t = 12, s = !1) => {
|
|
|
788
882
|
};
|
|
789
883
|
}, getPlaceholder = function(e) {
|
|
790
884
|
const t = e.placeholder, s = e.label;
|
|
791
|
-
return isBlank(t) ? SELECT_LIST.includes(e.type) ?
|
|
885
|
+
return isBlank(t) ? SELECT_LIST.includes(e.type) ? `${translate("tip.select")} ${s}` : `${translate("tip.input")} ${s}` : t;
|
|
792
886
|
}, event = {
|
|
793
887
|
methods: {
|
|
794
888
|
bindEvent(e, t) {
|
|
@@ -13678,101 +13772,7 @@ const list = {
|
|
|
13678
13772
|
loadCascaderDic(this.propOption, this.data).then((e) => this.handleSetDic(this.cascaderDIC, e));
|
|
13679
13773
|
}
|
|
13680
13774
|
}
|
|
13681
|
-
}
|
|
13682
|
-
common: {
|
|
13683
|
-
condition: "条件",
|
|
13684
|
-
display: "显示",
|
|
13685
|
-
hide: "隐藏"
|
|
13686
|
-
},
|
|
13687
|
-
tip: {
|
|
13688
|
-
select: "请选择",
|
|
13689
|
-
input: "请输入"
|
|
13690
|
-
},
|
|
13691
|
-
check: {
|
|
13692
|
-
checkAll: "全选"
|
|
13693
|
-
},
|
|
13694
|
-
upload: {
|
|
13695
|
-
upload: "点击上传",
|
|
13696
|
-
tip: "将文件拖到此处,或"
|
|
13697
|
-
},
|
|
13698
|
-
time: {
|
|
13699
|
-
start: "开始",
|
|
13700
|
-
end: "结束"
|
|
13701
|
-
},
|
|
13702
|
-
date: {
|
|
13703
|
-
start: "开始",
|
|
13704
|
-
end: "结束",
|
|
13705
|
-
t: "今日",
|
|
13706
|
-
y: "昨日",
|
|
13707
|
-
n: "近7天",
|
|
13708
|
-
a: "全部"
|
|
13709
|
-
},
|
|
13710
|
-
form: {
|
|
13711
|
-
printBtn: "打 印",
|
|
13712
|
-
mockBtn: "模 拟",
|
|
13713
|
-
submitBtn: "提 交",
|
|
13714
|
-
emptyBtn: "清 空"
|
|
13715
|
-
},
|
|
13716
|
-
crud: {
|
|
13717
|
-
filter: {
|
|
13718
|
-
addBtn: "新增条件",
|
|
13719
|
-
clearBtn: "清空数据",
|
|
13720
|
-
resetBtn: "清空条件",
|
|
13721
|
-
cancelBtn: "取 消",
|
|
13722
|
-
submitBtn: "确 定"
|
|
13723
|
-
},
|
|
13724
|
-
column: {
|
|
13725
|
-
name: "列名",
|
|
13726
|
-
hide: "隐藏",
|
|
13727
|
-
fixed: "冻结",
|
|
13728
|
-
filters: "过滤",
|
|
13729
|
-
sortable: "排序",
|
|
13730
|
-
index: "顺序",
|
|
13731
|
-
width: "宽度"
|
|
13732
|
-
},
|
|
13733
|
-
tipStartTitle: "当前表格已选择",
|
|
13734
|
-
tipEndTitle: "项",
|
|
13735
|
-
editTitle: "编 辑",
|
|
13736
|
-
copyTitle: "复 制",
|
|
13737
|
-
addTitle: "新 增",
|
|
13738
|
-
viewTitle: "查 看",
|
|
13739
|
-
filterTitle: "过滤条件",
|
|
13740
|
-
showTitle: "列显隐",
|
|
13741
|
-
menu: "操作",
|
|
13742
|
-
addBtn: "新 增",
|
|
13743
|
-
show: "显 示",
|
|
13744
|
-
hide: "隐 藏",
|
|
13745
|
-
open: "展 开",
|
|
13746
|
-
shrink: "收 缩",
|
|
13747
|
-
printBtn: "打 印",
|
|
13748
|
-
excelBtn: "导 出",
|
|
13749
|
-
updateBtn: "修 改",
|
|
13750
|
-
cancelBtn: "取 消",
|
|
13751
|
-
searchBtn: "搜 索",
|
|
13752
|
-
emptyBtn: "清 空",
|
|
13753
|
-
menuBtn: "功 能",
|
|
13754
|
-
saveBtn: "保 存",
|
|
13755
|
-
viewBtn: "查 看",
|
|
13756
|
-
editBtn: "编 辑",
|
|
13757
|
-
copyBtn: "复 制",
|
|
13758
|
-
delBtn: "删 除"
|
|
13759
|
-
}
|
|
13760
|
-
}, getValueByPath = (e, t) => {
|
|
13761
|
-
t = t || "";
|
|
13762
|
-
const s = t.split(".");
|
|
13763
|
-
let n = e, i = null;
|
|
13764
|
-
for (let r = 0, o = s.length; r < o; r++) {
|
|
13765
|
-
const a = s[r];
|
|
13766
|
-
if (!n)
|
|
13767
|
-
break;
|
|
13768
|
-
if (r === o - 1) {
|
|
13769
|
-
i = n[a];
|
|
13770
|
-
break;
|
|
13771
|
-
}
|
|
13772
|
-
n = n[a];
|
|
13773
|
-
}
|
|
13774
|
-
return i;
|
|
13775
|
-
}, translate = (e) => getValueByPath(lang, e);
|
|
13775
|
+
};
|
|
13776
13776
|
var render$18 = function() {
|
|
13777
13777
|
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
13778
13778
|
return s("div", {
|
|
@@ -16339,7 +16339,7 @@ var render$10 = function() {
|
|
|
16339
16339
|
},
|
|
16340
16340
|
expression: "filterText"
|
|
16341
16341
|
}
|
|
16342
|
-
})], 1), s("
|
|
16342
|
+
})], 1), s("FyTabs", {
|
|
16343
16343
|
attrs: {
|
|
16344
16344
|
option: e.option
|
|
16345
16345
|
},
|
|
@@ -25128,6 +25128,9 @@ var render$9 = function() {
|
|
|
25128
25128
|
shadow: e.crud.isCard
|
|
25129
25129
|
}
|
|
25130
25130
|
}, [e._t("page"), s("ElPagination", {
|
|
25131
|
+
staticStyle: {
|
|
25132
|
+
"margin-top": "25px"
|
|
25133
|
+
},
|
|
25131
25134
|
attrs: {
|
|
25132
25135
|
small: e.crud.size === "mini",
|
|
25133
25136
|
disabled: e.defaultPage.disabled,
|
|
@@ -27627,7 +27630,7 @@ function __vue2_injectStyles(e) {
|
|
|
27627
27630
|
}
|
|
27628
27631
|
const Watermark = /* @__PURE__ */ function() {
|
|
27629
27632
|
return __component__.exports;
|
|
27630
|
-
}(), version = "2.7.
|
|
27633
|
+
}(), version = "2.7.3";
|
|
27631
27634
|
function index(e) {
|
|
27632
27635
|
e.component(AddressInput.name, AddressInput), e.component(Affix.name, Affix), e.component(Array$1.name, Array$1), e.component(Article.name, Article), e.component(AsideMenu.name, AsideMenu), e.component(Avatar.name, Avatar), e.component(AwesomeButton.name, AwesomeButton), e.component(CapsuleTab.name, CapsuleTab), e.component(Card.name, Card), e.component(Carousel.name, Carousel), e.component(Chat.name, Chat), e.component(ChunkFileUploader.name, ChunkFileUploader), e.component(ChunkFileUploaderButton.name, ChunkFileUploaderButton), e.component(ChunkFileUploaderDrop.name, ChunkFileUploaderDrop), e.component(ChunkFileUploaderFile.name, ChunkFileUploaderFile), e.component(ChunkFileUploaderFiles.name, ChunkFileUploaderFiles), e.component(ChunkFileUploaderList.name, ChunkFileUploaderList), e.component(ChunkFileUploaderUnSupport.name, ChunkFileUploaderUnSupport), e.component(Code.name, Code), e.component(CodeMirrorEditor.name, CodeMirrorEditor), e.component(ColorPicker.name, ColorPicker), e.component(Column.name, Column), e.component(ColumnDefault.name, ColumnDefault), e.component(ColumnDynamic.name, ColumnDynamic), e.component(ColumnMenu.name, ColumnMenu), e.component(ColumnSlot.name, ColumnSlot), e.component(Comment.name, Comment), e.component(Confirmable.name, Confirmable), e.component(ConfirmButton.name, ConfirmButton), e.component(ContextMenu.name, ContextMenu), e.component(CountUp.name, CountUp), e.component(CustomScrollbar.name, CustomScrollbar), e.component(DataBox.name, DataBox), e.component(DataCard.name, DataCard), e.component(DataCardtext.name, DataCardtext), e.component(DataDisplay.name, DataDisplay), e.component(DataIcons.name, DataIcons), e.component(DataImgtext.name, DataImgtext), e.component(DataOperatext.name, DataOperatext), e.component(DataPanel.name, DataPanel), e.component(DataPay.name, DataPay), e.component(DataPrice.name, DataPrice), e.component(DataProgress.name, DataProgress), e.component(DataRotate.name, DataRotate), e.component(DataTablePicker.name, DataTablePicker), e.component(DataTabs.name, DataTabs), e.component(DialogColumn.name, DialogColumn), e.component(DialogExcel.name, DialogExcel), e.component(DialogFilter.name, DialogFilter), e.component(DialogForm.name, DialogForm), e.component(Draggable.name, Draggable), e.component(DynamicTable.name, DynamicTable), e.component(ECharts.name, ECharts), e.component(EditableProgress.name, EditableProgress), e.component(EditableTree.name, EditableTree), e.component(EgdCollapse.name, EgdCollapse), e.component(EgdCollapseItem.name, EgdCollapseItem), e.component(ElementDialog.name, ElementDialog), e.component(Empty.name, Empty), e.component(EmptyView.name, EmptyView), e.component(ErrorView.name, ErrorView), e.component(FlexColumn.name, FlexColumn), e.component(FlexItem.name, FlexItem), e.component(FlexRow.name, FlexRow), e.component(FlexScroller.name, FlexScroller), e.component(Flow.name, Flow), e.component(FlowNode.name, FlowNode), e.component(FormButton.name, FormButton), e.component(FormCascader.name, FormCascader), e.component(FormCheckboxGroup.name, FormCheckboxGroup), e.component(FormDatePicker.name, FormDatePicker), e.component(FormGroup.name, FormGroup), e.component(FormHolder.name, FormHolder), e.component(FormInput.name, FormInput), e.component(FormInputEmail.name, FormInputEmail), e.component(FormInputIdCard.name, FormInputIdCard), e.component(FormInputNumber.name, FormInputNumber), e.component(FormInputPhoneNumber.name, FormInputPhoneNumber), e.component(FormInputTime.name, FormInputTime), e.component(FormItem.name, FormItem), e.component(FormItemConfigProvider.name, FormItemConfigProvider), e.component(FormItemGroup.name, FormItemGroup), e.component(FormRadioGroup.name, FormRadioGroup), e.component(FormSelect.name, FormSelect), e.component(FormSwitch.name, FormSwitch), e.component(FormTemp.name, FormTemp), e.component(FormTextarea.name, FormTextarea), e.component(FormView.name, FormView), e.component(FyCascader.name, FyCascader), e.component(FyCheckbox.name, FyCheckbox), e.component(FyCurd.name, FyCurd), e.component(FyDate.name, FyDate), e.component(FyDialogForm.name, FyDialogForm), e.component(FyDynamic.name, FyDynamic), e.component(FyForm.name, FyForm), e.component(FyFormMenu.name, FyFormMenu), e.component(FyInput.name, FyInput), e.component(FyInputColor.name, FyInputColor), e.component(FyInputIcon.name, FyInputIcon), e.component(FyInputMap.name, FyInputMap), e.component(FyInputNumber.name, FyInputNumber), e.component(FyInputTable.name, FyInputTable), e.component(FyInputTree.name, FyInputTree), e.component(FyRadio.name, FyRadio), e.component(FyRate.name, FyRate), e.component(FySelect.name, FySelect), e.component(FySlider.name, FySlider), e.component(FySwitch.name, FySwitch), e.component(FyTabs.name, FyTabs), e.component(FyTime.name, FyTime), e.component(FyTitle.name, FyTitle), e.component(FyTree.name, FyTree), e.component(FyUpload.name, FyUpload), e.component(GuideSteps.name, GuideSteps), e.component(HeaderMenu.name, HeaderMenu), e.component(HeaderSearch.name, HeaderSearch), e.component(IconCard.name, IconCard), e.component(IconTemp.name, IconTemp), e.component(IframeWindow.name, IframeWindow), e.component(ImageViewer.name, ImageViewer), e.component(InputNumber.name, InputNumber), e.component(InputNumberRange.name, InputNumberRange), e.component(JSXComponent.name, JSXComponent), e.component(KeepViewAlive.name, KeepViewAlive), e.component(Keyboard.name, Keyboard), e.component(License.name, License), e.component(LoadingView.name, LoadingView), e.component(Login.name, Login), e.component(NameAvatar.name, NameAvatar), e.component(NavBar.name, NavBar), e.component(Notice.name, Notice), e.component(NotImplement.name, NotImplement), e.component(Page.name, Page), e.component(PageableTable.name, PageableTable), e.component(PageableView.name, PageableView), e.component(PageHeader.name, PageHeader), e.component(PageIndex.name, PageIndex), e.component(PageIndexTop.name, PageIndexTop), e.component(PageSkeleton.name, PageSkeleton), e.component(PageSkeletonNew.name, PageSkeletonNew), e.component(PhotoSwipe.name, PhotoSwipe), e.component(Progress.name, Progress), e.component(Queue.name, Queue), e.component(RecordVideo.name, RecordVideo), e.component(ResizeObserver.name, ResizeObserver), e.component(Search.name, Search), e.component(SearchPopover.name, SearchPopover), e.component(Sign.name, Sign), e.component(SignPanel.name, SignPanel), e.component(Skeleton.name, Skeleton), e.component(SplitPane.name, SplitPane), e.component(Stateful.name, Stateful), e.component(StaticPageableTable.name, StaticPageableTable), e.component(Swiper.name, Swiper), e.component(Tab.name, Tab), e.component(TabItem.name, TabItem), e.component(TableColumn.name, TableColumn), e.component(TablePage.name, TablePage), e.component(TableView.name, TableView), e.component(TagRender.name, TagRender), e.component(TextEllipsis.name, TextEllipsis), e.component(TinymceEditor.name, TinymceEditor), e.component(TinymceWrapper.name, TinymceWrapper), e.component(Toolbar.name, Toolbar), e.component(ToolbarButton.name, ToolbarButton), e.component(Trigger.name, Trigger), e.component(Verify.name, Verify), e.component(VueTagsInput.name, VueTagsInput), e.component(Watermark.name, Watermark);
|
|
27633
27636
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/component",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"codemirror": "^5.65.11",
|
|
35
35
|
"countup.js": "^2.3.2",
|
|
36
36
|
"echarts": "^5.4.1",
|
|
37
|
-
"element-ui": "^2.15.12",
|
|
38
37
|
"lodash": "^4.17.21",
|
|
39
38
|
"overlayscrollbars": "^1.13.3",
|
|
40
39
|
"photoswipe": "^4.1.3",
|
|
@@ -56,6 +55,7 @@
|
|
|
56
55
|
"@vue/eslint-config-typescript": "^11.0.2",
|
|
57
56
|
"@web-utils/stylelint-config-scss": "^1.0.2",
|
|
58
57
|
"chalk": "^5.2.0",
|
|
58
|
+
"element-ui": "^2.15.12",
|
|
59
59
|
"eslint": "^8.30.0",
|
|
60
60
|
"eslint-plugin-vue": "^9.8.0",
|
|
61
61
|
"globby": "^13.1.3",
|
package/web-types.json
CHANGED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { c, f as g, M as u, A as p, R as o, d as f, e as d, K as A, g as L, S, b as _, h as T, I as m } from "./util.5053d54e.js";
|
|
2
|
-
const R = (a = []) => (a.forEach((s) => {
|
|
3
|
-
let e = s.cascader;
|
|
4
|
-
if (!c(e)) {
|
|
5
|
-
let r = s.prop;
|
|
6
|
-
e.forEach((n) => {
|
|
7
|
-
let l = g(a, n);
|
|
8
|
-
l !== -1 && (l.parentProp = r);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
}), a);
|
|
12
|
-
let i = 0;
|
|
13
|
-
const C = (a, s = 12, e = !1) => {
|
|
14
|
-
e && (i = 0);
|
|
15
|
-
const r = 24;
|
|
16
|
-
return i = i + (a.span || s) + (a.offset || 0), i === r ? i = 0 : i > r ? i = (a.span || s) + (a.offset || 0) : a.row && i !== r && (a.count = r - i, i = 0), a;
|
|
17
|
-
}, N = (a, s) => {
|
|
18
|
-
let { type: e, multiple: r, dataType: n, separator: l = _, alone: h, emitPath: y, range: E } = s, t = a;
|
|
19
|
-
return u.includes(e) && r === !0 || p.includes(e) && y !== !1 || o.includes(e) && E === !0 ? (Array.isArray(t) || (c(t) ? t = [] : t = (t + "").split(l) || []), t.forEach((I, b) => {
|
|
20
|
-
t[b] = f(I, n);
|
|
21
|
-
}), d.includes(e) && c(t) && h && (t = [""])) : t = f(t, n), t;
|
|
22
|
-
}, x = (a) => {
|
|
23
|
-
const s = a.type, e = a.searchRange;
|
|
24
|
-
let r = s;
|
|
25
|
-
if (a.searchType)
|
|
26
|
-
return a.searchType;
|
|
27
|
-
if (["radio", "checkbox", "switch"].includes(s))
|
|
28
|
-
r = "select";
|
|
29
|
-
else if (T.includes(s)) {
|
|
30
|
-
let n = "range";
|
|
31
|
-
e ? s.includes(n) ? r = s : r = s + n : r = s.replace(n, "");
|
|
32
|
-
} else
|
|
33
|
-
["textarea"].includes(s) && (r = "input");
|
|
34
|
-
return r;
|
|
35
|
-
}, M = (a, s) => {
|
|
36
|
-
let e = a || "input";
|
|
37
|
-
if (c(s))
|
|
38
|
-
d.includes(a) ? e = "array" : ["time", "timerange"].includes(a) ? e = "time" : T.includes(a) ? e = "date" : ["password", "textarea", "search"].includes(a) ? e = "input" : m.includes(a) && (e = "input-" + a);
|
|
39
|
-
else
|
|
40
|
-
return s;
|
|
41
|
-
return A + e;
|
|
42
|
-
}, O = (a = []) => {
|
|
43
|
-
let s = {};
|
|
44
|
-
return a.forEach((e) => {
|
|
45
|
-
p.includes(e.type) && e.emitPath !== !1 || u.includes(e.type) && e.multiple || e.dataType === "array" ? s[e.prop] = [] : o.includes(e.type) && e.range === !0 ? s[e.prop] = [0, 0] : ["rate", "slider", "number"].includes(e.type) || e.dataType === "number" ? s[e.prop] = void 0 : s[e.prop] = "", e.bind && (s = L(s, e.bind)), c(e.value) || (s[e.prop] = e.value);
|
|
46
|
-
}), {
|
|
47
|
-
tableForm: s
|
|
48
|
-
};
|
|
49
|
-
}, w = function(a) {
|
|
50
|
-
const s = a.placeholder, e = a.label;
|
|
51
|
-
return c(s) ? S.includes(a.type) ? `选择 ${e}` : `输入 ${e}` : s;
|
|
52
|
-
};
|
|
53
|
-
export {
|
|
54
|
-
w as a,
|
|
55
|
-
R as b,
|
|
56
|
-
C as c,
|
|
57
|
-
x as d,
|
|
58
|
-
O as f,
|
|
59
|
-
M as g,
|
|
60
|
-
N as i
|
|
61
|
-
};
|