@web-utils/component 3.0.3 → 3.0.5
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/address-input/index.mjs +22 -24
- package/awesome-button/index.mjs +29 -30
- package/card/index.mjs +40 -42
- package/carousel/index.mjs +25 -27
- package/chat/index.mjs +57 -67
- package/chunks/FormTemp.7f91629d.mjs +165 -0
- package/chunks/confirmable-mixin.817b542f.mjs +116 -0
- package/chunks/{dataformat.e655611c.mjs → dataformat.f995e2f9.mjs} +3 -3
- package/chunks/{event.10295951.mjs → event.b5d855dd.mjs} +1 -1
- package/chunks/{form-input-mixin.78a567bc.mjs → form-input-mixin.4632ad36.mjs} +1 -1
- package/chunks/{form-item-mixin.57cb2019.mjs → form-item-mixin.ad148e7b.mjs} +13 -13
- package/color-picker/index.mjs +128 -0
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +32 -34
- package/data-card/index.mjs +33 -35
- package/data-cardtext/index.mjs +27 -29
- package/data-display/index.mjs +33 -35
- package/data-icons/index.mjs +28 -30
- package/data-imgtext/index.mjs +27 -30
- package/data-operatext/index.mjs +39 -41
- package/data-panel/index.mjs +36 -38
- package/data-pay/index.mjs +20 -23
- package/data-price/index.mjs +32 -34
- package/data-progress/index.mjs +27 -30
- package/data-rotate/index.mjs +17 -19
- package/data-table-picker/index.mjs +22 -23
- package/data-tabs/index.mjs +31 -33
- package/dialog-form/index.mjs +31 -39
- package/dynamic-table/index.mjs +36 -40
- package/editable-progress/index.mjs +14 -16
- package/editable-tree/index.mjs +139 -143
- package/egd-collapse-item/index.mjs +2 -1
- package/element-dialog/index.mjs +24 -25
- package/flow-designer/index.mjs +1095 -1111
- package/form-block/index.mjs +22 -24
- package/form-cascader/index.mjs +20 -20
- package/form-checkbox-group/index.mjs +24 -25
- package/form-date-picker/index.mjs +18 -19
- package/form-holder/index.mjs +14 -15
- package/form-input/index.mjs +23 -23
- package/form-input-email/index.mjs +17 -17
- package/form-input-id-card/index.mjs +24 -24
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +26 -26
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +17 -17
- package/form-item/index.mjs +54 -56
- package/form-item-group/index.mjs +31 -33
- package/form-radio-group/index.mjs +51 -52
- package/form-select/index.mjs +31 -32
- package/form-switch/index.mjs +22 -22
- package/form-textarea/index.mjs +20 -20
- package/fy-array/index.mjs +61 -65
- package/fy-cascader/index.mjs +19 -20
- package/fy-checkbox/index.mjs +32 -37
- package/fy-code/index.mjs +13 -10
- package/fy-curd/index.mjs +638 -663
- package/fy-date/index.mjs +20 -21
- package/fy-draggable/index.mjs +19 -20
- package/fy-dynamic/index.mjs +26 -27
- package/fy-form/index.mjs +111 -122
- package/fy-form-design/index.mjs +1238 -1270
- package/fy-input/index.mjs +15 -17
- package/fy-input-color/index.mjs +25 -27
- package/fy-input-icon/index.mjs +20 -21
- package/fy-input-map/index.mjs +22 -24
- package/fy-input-number/index.mjs +22 -23
- package/fy-input-table/index.mjs +15 -17
- package/fy-input-tree/index.mjs +28 -32
- package/fy-progress/index.mjs +23 -24
- package/fy-radio/index.mjs +18 -23
- package/fy-rate/index.mjs +12 -13
- package/fy-select/index.mjs +40 -44
- package/fy-slider/index.mjs +17 -18
- package/fy-switch/index.mjs +20 -21
- package/fy-tabs/index.mjs +19 -21
- package/fy-time/index.mjs +14 -20
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +17 -21
- package/fy-upload/index.mjs +74 -76
- package/guide-steps/index.mjs +22 -24
- package/image-cropper/index.mjs +50 -51
- package/image-preview/index.mjs +24 -26
- package/index.mjs +480 -477
- package/input-number/index.mjs +13 -14
- package/input-number-range/index.mjs +23 -24
- package/login/index.mjs +35 -40
- package/nav-bar/index.mjs +13 -14
- package/notice/index.mjs +18 -19
- package/package.json +3 -3
- package/page-index/index.mjs +33 -34
- package/page-index-top/index.mjs +22 -24
- package/pageable-table/index.mjs +92 -96
- package/pageable-view/index.mjs +33 -34
- package/search/index.mjs +21 -23
- package/static-pageable-table/index.mjs +18 -20
- package/swiper/index.mjs +22 -23
- package/table-view/index.mjs +49 -53
- package/tag-render/index.mjs +19 -21
- package/text-ellipsis/index.mjs +11 -12
- package/tinymce-editor/index.mjs +50 -51
- package/toolbar-button/index.mjs +18 -19
- package/vue-cron/index.mjs +104 -112
- package/web-types.json +85 -1
- package/x-input-tag/index.mjs +47 -50
- package/chunks/FormTemp.d079292b.mjs +0 -139
- package/chunks/confirmable-mixin.26e1d0e0.mjs +0 -197
- package/chunks/detail.d6f8e347.mjs +0 -29
package/data-rotate/index.mjs
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
-
var l = function() {
|
|
1
|
+
import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
2
|
+
var c = function() {
|
|
5
3
|
var t = this, s = t.$createElement, a = t._self._c || s;
|
|
6
4
|
return a("div", {
|
|
7
5
|
staticClass: "avue-data-rotate"
|
|
8
|
-
}, [a(
|
|
6
|
+
}, [a("ElRow", {
|
|
9
7
|
attrs: {
|
|
10
8
|
span: 24
|
|
11
9
|
}
|
|
12
|
-
}, t._l(t.data, function(n,
|
|
13
|
-
return a(
|
|
14
|
-
key:
|
|
10
|
+
}, t._l(t.data, function(n, e) {
|
|
11
|
+
return a("ElCol", {
|
|
12
|
+
key: e,
|
|
15
13
|
attrs: {
|
|
16
14
|
md: t.span,
|
|
17
15
|
xs: 24,
|
|
@@ -41,7 +39,7 @@ var l = function() {
|
|
|
41
39
|
href: n.href
|
|
42
40
|
},
|
|
43
41
|
on: {
|
|
44
|
-
click: function(
|
|
42
|
+
click: function(p) {
|
|
45
43
|
n.click && n.click(n);
|
|
46
44
|
}
|
|
47
45
|
}
|
|
@@ -51,8 +49,8 @@ var l = function() {
|
|
|
51
49
|
staticClass: "el-icon-arrow-right"
|
|
52
50
|
})])])])]);
|
|
53
51
|
}), 1)], 1);
|
|
54
|
-
},
|
|
55
|
-
const
|
|
52
|
+
}, r = [];
|
|
53
|
+
const l = {
|
|
56
54
|
name: "DataRotate",
|
|
57
55
|
props: {
|
|
58
56
|
option: {
|
|
@@ -76,23 +74,23 @@ const u = {
|
|
|
76
74
|
}
|
|
77
75
|
}
|
|
78
76
|
}, o = {};
|
|
79
|
-
var
|
|
80
|
-
u,
|
|
77
|
+
var u = /* @__PURE__ */ i(
|
|
81
78
|
l,
|
|
82
|
-
|
|
79
|
+
c,
|
|
80
|
+
r,
|
|
83
81
|
!1,
|
|
84
|
-
|
|
82
|
+
_,
|
|
85
83
|
null,
|
|
86
84
|
null,
|
|
87
85
|
null
|
|
88
86
|
);
|
|
89
|
-
function
|
|
87
|
+
function _(t) {
|
|
90
88
|
for (let s in o)
|
|
91
89
|
this[s] = o[s];
|
|
92
90
|
}
|
|
93
|
-
const
|
|
94
|
-
return
|
|
91
|
+
const m = /* @__PURE__ */ function() {
|
|
92
|
+
return u.exports;
|
|
95
93
|
}();
|
|
96
94
|
export {
|
|
97
|
-
|
|
95
|
+
m as default
|
|
98
96
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
return i("ElementDialog", {
|
|
1
|
+
import { f as n } from "../chunks/index.57f871af.mjs";
|
|
2
|
+
import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
+
var r = function() {
|
|
4
|
+
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
5
|
+
return l("ElementDialog", {
|
|
7
6
|
ref: "dialog",
|
|
8
7
|
attrs: {
|
|
9
8
|
visible: e.visible,
|
|
@@ -19,7 +18,7 @@ var s = function() {
|
|
|
19
18
|
scopedSlots: e._u([{
|
|
20
19
|
key: "default",
|
|
21
20
|
fn: function() {
|
|
22
|
-
return [e._t("search-form"),
|
|
21
|
+
return [e._t("search-form"), l("PageableTable", {
|
|
23
22
|
ref: "pageableTable",
|
|
24
23
|
staticStyle: {
|
|
25
24
|
height: "60vh"
|
|
@@ -44,7 +43,7 @@ var s = function() {
|
|
|
44
43
|
}, {
|
|
45
44
|
key: "footer",
|
|
46
45
|
fn: function() {
|
|
47
|
-
return [
|
|
46
|
+
return [l("ElButton", {
|
|
48
47
|
attrs: {
|
|
49
48
|
size: "mini",
|
|
50
49
|
type: "primary"
|
|
@@ -52,7 +51,7 @@ var s = function() {
|
|
|
52
51
|
on: {
|
|
53
52
|
click: e.confirm
|
|
54
53
|
}
|
|
55
|
-
}, [e._v(" 确 定 ")]),
|
|
54
|
+
}, [e._v(" 确 定 ")]), l("ElButton", {
|
|
56
55
|
attrs: {
|
|
57
56
|
size: "mini"
|
|
58
57
|
},
|
|
@@ -64,8 +63,8 @@ var s = function() {
|
|
|
64
63
|
proxy: !0
|
|
65
64
|
}], null, !0)
|
|
66
65
|
});
|
|
67
|
-
},
|
|
68
|
-
const
|
|
66
|
+
}, s = [];
|
|
67
|
+
const a = {
|
|
69
68
|
name: "DataTablePicker",
|
|
70
69
|
props: {
|
|
71
70
|
visible: Boolean,
|
|
@@ -97,7 +96,7 @@ const c = {
|
|
|
97
96
|
};
|
|
98
97
|
},
|
|
99
98
|
methods: {
|
|
100
|
-
filterTableColumnProperties:
|
|
99
|
+
filterTableColumnProperties: n,
|
|
101
100
|
selectionChange(e) {
|
|
102
101
|
this.selectedRows = e;
|
|
103
102
|
},
|
|
@@ -115,24 +114,24 @@ const c = {
|
|
|
115
114
|
this.multiple ? (e = this.selectedRows) != null && e.length ? (this.$emit("confirm", this.selectedRows), this.close()) : this.$message.warning("请选择") : this.currentRow ? (this.$emit("confirm", this.currentRow), this.close()) : this.$message.warning("请选择");
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
|
-
},
|
|
119
|
-
var
|
|
120
|
-
c,
|
|
121
|
-
s,
|
|
117
|
+
}, i = {};
|
|
118
|
+
var c = /* @__PURE__ */ o(
|
|
122
119
|
a,
|
|
120
|
+
r,
|
|
121
|
+
s,
|
|
123
122
|
!1,
|
|
124
|
-
|
|
123
|
+
u,
|
|
125
124
|
null,
|
|
126
125
|
null,
|
|
127
126
|
null
|
|
128
127
|
);
|
|
129
|
-
function
|
|
130
|
-
for (let t in
|
|
131
|
-
this[t] =
|
|
128
|
+
function u(e) {
|
|
129
|
+
for (let t in i)
|
|
130
|
+
this[t] = i[t];
|
|
132
131
|
}
|
|
133
|
-
const
|
|
134
|
-
return
|
|
132
|
+
const f = /* @__PURE__ */ function() {
|
|
133
|
+
return c.exports;
|
|
135
134
|
}();
|
|
136
135
|
export {
|
|
137
|
-
|
|
136
|
+
f as default
|
|
138
137
|
};
|
package/data-tabs/index.mjs
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import i from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _ = function() {
|
|
5
|
-
var t = this, s = t.$createElement, a = t._self._c || s;
|
|
1
|
+
import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
2
|
+
var r = function() {
|
|
3
|
+
var t = this, n = t.$createElement, a = t._self._c || n;
|
|
6
4
|
return a("div", {
|
|
7
5
|
staticClass: "avue-data-tabs"
|
|
8
|
-
}, [a(
|
|
6
|
+
}, [a("ElRow", {
|
|
9
7
|
attrs: {
|
|
10
8
|
span: 24
|
|
11
9
|
}
|
|
12
|
-
}, t._l(t.data, function(
|
|
13
|
-
return a(
|
|
14
|
-
key:
|
|
10
|
+
}, t._l(t.data, function(s, o) {
|
|
11
|
+
return a("ElCol", {
|
|
12
|
+
key: o,
|
|
15
13
|
attrs: {
|
|
16
14
|
md: t.span,
|
|
17
15
|
xs: 24,
|
|
@@ -20,37 +18,37 @@ var _ = function() {
|
|
|
20
18
|
}, [a("div", {
|
|
21
19
|
staticClass: "item",
|
|
22
20
|
style: {
|
|
23
|
-
background:
|
|
21
|
+
background: s.color
|
|
24
22
|
}
|
|
25
23
|
}, [a("a", {
|
|
26
24
|
attrs: {
|
|
27
|
-
href:
|
|
28
|
-
target:
|
|
25
|
+
href: s.href,
|
|
26
|
+
target: s.target
|
|
29
27
|
},
|
|
30
28
|
on: {
|
|
31
|
-
click: function(
|
|
32
|
-
|
|
29
|
+
click: function(p) {
|
|
30
|
+
s.click && s.click(s);
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
}, [a("div", {
|
|
36
34
|
staticClass: "item-header"
|
|
37
|
-
}, [a("p", [t._v(t._s(
|
|
35
|
+
}, [a("p", [t._v(t._s(s.title))]), a("span", [t._v(t._s(s.subtitle))])]), a("div", {
|
|
38
36
|
staticClass: "item-body"
|
|
39
37
|
}, [a("CountUp", {
|
|
40
38
|
staticClass: "h2",
|
|
41
39
|
attrs: {
|
|
42
|
-
decimals:
|
|
43
|
-
animation:
|
|
44
|
-
end:
|
|
40
|
+
decimals: s.decimals || t.decimals,
|
|
41
|
+
animation: s.animation || t.animation,
|
|
42
|
+
end: s.count
|
|
45
43
|
}
|
|
46
44
|
})], 1), a("div", {
|
|
47
45
|
staticClass: "item-footer"
|
|
48
|
-
}, [a("span", [t._v(t._s(
|
|
46
|
+
}, [a("span", [t._v(t._s(s.allcount))]), a("p", [t._v(t._s(s.text))])]), a("p", {
|
|
49
47
|
staticClass: "item-tip"
|
|
50
|
-
}, [t._v(t._s(
|
|
48
|
+
}, [t._v(t._s(s.key))])])])]);
|
|
51
49
|
}), 1)], 1);
|
|
52
|
-
},
|
|
53
|
-
const
|
|
50
|
+
}, c = [];
|
|
51
|
+
const l = {
|
|
54
52
|
name: "DataTabs",
|
|
55
53
|
props: {
|
|
56
54
|
option: {
|
|
@@ -73,24 +71,24 @@ const p = {
|
|
|
73
71
|
return this.option.data || [];
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
|
-
},
|
|
77
|
-
var
|
|
78
|
-
p,
|
|
79
|
-
_,
|
|
74
|
+
}, e = {};
|
|
75
|
+
var _ = /* @__PURE__ */ i(
|
|
80
76
|
l,
|
|
77
|
+
r,
|
|
78
|
+
c,
|
|
81
79
|
!1,
|
|
82
|
-
|
|
80
|
+
u,
|
|
83
81
|
null,
|
|
84
82
|
null,
|
|
85
83
|
null
|
|
86
84
|
);
|
|
87
|
-
function
|
|
88
|
-
for (let
|
|
89
|
-
this[
|
|
85
|
+
function u(t) {
|
|
86
|
+
for (let n in e)
|
|
87
|
+
this[n] = e[n];
|
|
90
88
|
}
|
|
91
|
-
const
|
|
92
|
-
return
|
|
89
|
+
const v = /* @__PURE__ */ function() {
|
|
90
|
+
return _.exports;
|
|
93
91
|
}();
|
|
94
92
|
export {
|
|
95
|
-
|
|
93
|
+
v as default
|
|
96
94
|
};
|
package/dialog-form/index.mjs
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { isEmpty as
|
|
2
|
-
import { d as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import "@web-utils/component/element-dialog/style.css";
|
|
7
|
-
import n from "element-ui/lib/button";
|
|
8
|
-
import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
9
|
-
var p = function() {
|
|
1
|
+
import { isEmpty as a } from "@web-utils/core";
|
|
2
|
+
import { d as l } from "../chunks/util.ae730cde.mjs";
|
|
3
|
+
import r from "vue";
|
|
4
|
+
import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
+
var d = function() {
|
|
10
6
|
var e = this, t = e.$createElement, o = e._self._c || t;
|
|
11
7
|
return o(e.dialogType, e._b({
|
|
12
8
|
tag: "Component",
|
|
@@ -17,8 +13,8 @@ var p = function() {
|
|
|
17
13
|
"before-close": e.beforeClose
|
|
18
14
|
},
|
|
19
15
|
on: {
|
|
20
|
-
"update:visible": function(
|
|
21
|
-
e.visible =
|
|
16
|
+
"update:visible": function(s) {
|
|
17
|
+
e.visible = s;
|
|
22
18
|
}
|
|
23
19
|
}
|
|
24
20
|
}, "Component", e.dialog, !1), [o("FyForm", {
|
|
@@ -30,23 +26,23 @@ var p = function() {
|
|
|
30
26
|
status: e.disabled
|
|
31
27
|
},
|
|
32
28
|
on: {
|
|
33
|
-
"update:status": function(
|
|
34
|
-
e.disabled =
|
|
29
|
+
"update:status": function(s) {
|
|
30
|
+
e.disabled = s;
|
|
35
31
|
},
|
|
36
32
|
submit: e.handleSubmit,
|
|
37
33
|
"reset-change": e.close
|
|
38
34
|
},
|
|
39
35
|
model: {
|
|
40
36
|
value: e.data,
|
|
41
|
-
callback: function(
|
|
42
|
-
e.data =
|
|
37
|
+
callback: function(s) {
|
|
38
|
+
e.data = s;
|
|
43
39
|
},
|
|
44
40
|
expression: "data"
|
|
45
41
|
}
|
|
46
42
|
}), e.isEmpty(e.option.menuBtn, !0) ? o("span", {
|
|
47
43
|
staticClass: "avue-dialog__footer",
|
|
48
44
|
class: `avue-dialog__footer--${e.menuPosition}`
|
|
49
|
-
}, [e.isEmpty(e.option.submitBtn, !0) ? o(
|
|
45
|
+
}, [e.isEmpty(e.option.submitBtn, !0) ? o("ElButton", {
|
|
50
46
|
attrs: {
|
|
51
47
|
size: e.$AVUE.size,
|
|
52
48
|
icon: e.option.submitIcon,
|
|
@@ -56,7 +52,7 @@ var p = function() {
|
|
|
56
52
|
on: {
|
|
57
53
|
click: e.submit
|
|
58
54
|
}
|
|
59
|
-
}, [e._v(e._s(e.option.submitText))]) : e._e(), e.isEmpty(e.option.emptyBtn, !0) ? o(
|
|
55
|
+
}, [e._v(e._s(e.option.submitText))]) : e._e(), e.isEmpty(e.option.emptyBtn, !0) ? o("ElButton", {
|
|
60
56
|
attrs: {
|
|
61
57
|
disabled: e.disabled,
|
|
62
58
|
size: e.$AVUE.size,
|
|
@@ -66,13 +62,9 @@ var p = function() {
|
|
|
66
62
|
click: e.reset
|
|
67
63
|
}
|
|
68
64
|
}, [e._v(e._s(e.option.emptyText))]) : e._e()], 1) : e._e()], 1);
|
|
69
|
-
},
|
|
70
|
-
const
|
|
65
|
+
}, m = [];
|
|
66
|
+
const i = {
|
|
71
67
|
name: "DialogForm",
|
|
72
|
-
components: {
|
|
73
|
-
ElDrawer: m,
|
|
74
|
-
ElementDialog: d
|
|
75
|
-
},
|
|
76
68
|
data() {
|
|
77
69
|
return {
|
|
78
70
|
opt: {},
|
|
@@ -102,8 +94,8 @@ const s = {
|
|
|
102
94
|
}
|
|
103
95
|
},
|
|
104
96
|
methods: {
|
|
105
|
-
isEmpty:
|
|
106
|
-
deepClone:
|
|
97
|
+
isEmpty: a,
|
|
98
|
+
deepClone: l,
|
|
107
99
|
submit() {
|
|
108
100
|
this.$refs.form.submit();
|
|
109
101
|
},
|
|
@@ -129,28 +121,28 @@ const s = {
|
|
|
129
121
|
}
|
|
130
122
|
}
|
|
131
123
|
};
|
|
132
|
-
|
|
133
|
-
const t =
|
|
124
|
+
i.showForm = (e) => {
|
|
125
|
+
const t = r.extend(i), o = new t().$mount();
|
|
134
126
|
return document.body.appendChild(o.$el), o.show(e), o;
|
|
135
127
|
};
|
|
136
|
-
const
|
|
137
|
-
var
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
128
|
+
const u = i, n = {};
|
|
129
|
+
var p = /* @__PURE__ */ c(
|
|
130
|
+
u,
|
|
131
|
+
d,
|
|
132
|
+
m,
|
|
141
133
|
!1,
|
|
142
|
-
|
|
134
|
+
b,
|
|
143
135
|
null,
|
|
144
136
|
null,
|
|
145
137
|
null
|
|
146
138
|
);
|
|
147
|
-
function
|
|
148
|
-
for (let t in
|
|
149
|
-
this[t] =
|
|
139
|
+
function b(e) {
|
|
140
|
+
for (let t in n)
|
|
141
|
+
this[t] = n[t];
|
|
150
142
|
}
|
|
151
|
-
const
|
|
152
|
-
return
|
|
143
|
+
const v = /* @__PURE__ */ function() {
|
|
144
|
+
return p.exports;
|
|
153
145
|
}();
|
|
154
146
|
export {
|
|
155
|
-
|
|
147
|
+
v as default
|
|
156
148
|
};
|
package/dynamic-table/index.mjs
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { fastClone as u, validateNumber as d, validateIdCard as c, validatePhoneNum as m } from "@web-utils/core";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import h from "element-ui/lib/form-item";
|
|
5
|
-
import y from "element-ui/lib/table";
|
|
6
|
-
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
7
|
-
var b = function() {
|
|
2
|
+
import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
+
var h = function() {
|
|
8
4
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
9
5
|
return t("div", {
|
|
10
6
|
staticClass: "dynamic-table"
|
|
11
|
-
}, [t(
|
|
7
|
+
}, [t("ElTable", {
|
|
12
8
|
key: e.key,
|
|
13
9
|
staticStyle: {
|
|
14
10
|
width: "100%"
|
|
@@ -16,37 +12,37 @@ var b = function() {
|
|
|
16
12
|
attrs: {
|
|
17
13
|
data: e.value
|
|
18
14
|
}
|
|
19
|
-
}, [e._l(e.columns, function(
|
|
15
|
+
}, [e._l(e.columns, function(a) {
|
|
20
16
|
return t("TableColumn", {
|
|
21
|
-
key:
|
|
17
|
+
key: a.prop,
|
|
22
18
|
attrs: {
|
|
23
|
-
prop:
|
|
24
|
-
label:
|
|
19
|
+
prop: a.prop,
|
|
20
|
+
label: a.label,
|
|
25
21
|
"min-width": "150"
|
|
26
22
|
},
|
|
27
23
|
scopedSlots: e._u([{
|
|
28
24
|
key: "default",
|
|
29
|
-
fn: function(
|
|
30
|
-
var
|
|
31
|
-
return [t(
|
|
25
|
+
fn: function(n) {
|
|
26
|
+
var l = n.row, r = n.$index;
|
|
27
|
+
return [t("ElFormItem", {
|
|
32
28
|
style: {
|
|
33
29
|
marginBottom: e.inputDisabled ? "0px" : "16px"
|
|
34
30
|
},
|
|
35
31
|
attrs: {
|
|
36
|
-
prop: `${e.prop}.${r}.${
|
|
32
|
+
prop: `${e.prop}.${r}.${a.prop}`,
|
|
37
33
|
size: "mini",
|
|
38
|
-
rules: e.getRules(
|
|
34
|
+
rules: e.getRules(a)
|
|
39
35
|
}
|
|
40
|
-
}, [t(
|
|
36
|
+
}, [t("ElInput", {
|
|
41
37
|
attrs: {
|
|
42
|
-
"prefix-icon": e.getIcon(
|
|
38
|
+
"prefix-icon": e.getIcon(a),
|
|
43
39
|
disabled: e.inputDisabled,
|
|
44
|
-
placeholder: e.inputDisabled ? "" : `请输入${
|
|
40
|
+
placeholder: e.inputDisabled ? "" : `请输入${a.label}!`
|
|
45
41
|
},
|
|
46
42
|
model: {
|
|
47
|
-
value:
|
|
48
|
-
callback: function(
|
|
49
|
-
e.$set(
|
|
43
|
+
value: l[a.prop],
|
|
44
|
+
callback: function(s) {
|
|
45
|
+
e.$set(l, a.prop, s);
|
|
50
46
|
},
|
|
51
47
|
expression: "row[column.prop]"
|
|
52
48
|
}
|
|
@@ -62,8 +58,8 @@ var b = function() {
|
|
|
62
58
|
},
|
|
63
59
|
scopedSlots: e._u([{
|
|
64
60
|
key: "default",
|
|
65
|
-
fn: function(
|
|
66
|
-
var
|
|
61
|
+
fn: function(a) {
|
|
62
|
+
var n = a.row, l = a.column, r = a.$index;
|
|
67
63
|
return [t("i", {
|
|
68
64
|
staticClass: "el-icon-minus dynamic-table-action-icon",
|
|
69
65
|
staticStyle: {
|
|
@@ -75,14 +71,14 @@ var b = function() {
|
|
|
75
71
|
title: "删除"
|
|
76
72
|
},
|
|
77
73
|
on: {
|
|
78
|
-
click: function(
|
|
79
|
-
return
|
|
74
|
+
click: function(s) {
|
|
75
|
+
return s.stopPropagation(), e.removeRow(n, r, l);
|
|
80
76
|
}
|
|
81
77
|
}
|
|
82
78
|
})];
|
|
83
79
|
}
|
|
84
80
|
}], null, !1, 410881950)
|
|
85
|
-
})], 2), e.inputDisabled ? e._e() : t(
|
|
81
|
+
})], 2), e.inputDisabled ? e._e() : t("ElButton", {
|
|
86
82
|
staticStyle: {
|
|
87
83
|
color: "#08c108"
|
|
88
84
|
},
|
|
@@ -94,13 +90,13 @@ var b = function() {
|
|
|
94
90
|
click: e.addRow
|
|
95
91
|
}
|
|
96
92
|
}, [e._v(" 添加 ")])], 1);
|
|
97
|
-
},
|
|
98
|
-
const
|
|
93
|
+
}, y = [];
|
|
94
|
+
const o = {
|
|
99
95
|
number: "fa fa-superscript",
|
|
100
96
|
email: "el-icon-lx-mail",
|
|
101
97
|
phone: "fa fa-phone",
|
|
102
98
|
idCard: "el-icon-lx-news"
|
|
103
|
-
},
|
|
99
|
+
}, v = {
|
|
104
100
|
name: "DynamicTable",
|
|
105
101
|
inject: {
|
|
106
102
|
elForm: {
|
|
@@ -151,7 +147,7 @@ const s = {
|
|
|
151
147
|
},
|
|
152
148
|
methods: {
|
|
153
149
|
getIcon(e) {
|
|
154
|
-
return
|
|
150
|
+
return o[e.type] ? o[e.type] : "";
|
|
155
151
|
},
|
|
156
152
|
addRow() {
|
|
157
153
|
const e = this.value;
|
|
@@ -177,23 +173,23 @@ const s = {
|
|
|
177
173
|
}
|
|
178
174
|
}
|
|
179
175
|
}, p = {};
|
|
180
|
-
var
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
var b = /* @__PURE__ */ f(
|
|
177
|
+
v,
|
|
178
|
+
h,
|
|
179
|
+
y,
|
|
184
180
|
!1,
|
|
185
|
-
|
|
181
|
+
_,
|
|
186
182
|
null,
|
|
187
183
|
null,
|
|
188
184
|
null
|
|
189
185
|
);
|
|
190
|
-
function
|
|
186
|
+
function _(e) {
|
|
191
187
|
for (let i in p)
|
|
192
188
|
this[i] = p[i];
|
|
193
189
|
}
|
|
194
|
-
const
|
|
195
|
-
return
|
|
190
|
+
const g = /* @__PURE__ */ function() {
|
|
191
|
+
return b.exports;
|
|
196
192
|
}();
|
|
197
193
|
export {
|
|
198
|
-
|
|
194
|
+
g as default
|
|
199
195
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import r from "
|
|
2
|
-
|
|
3
|
-
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
-
var a = function() {
|
|
1
|
+
import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
2
|
+
var l = function() {
|
|
5
3
|
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
6
4
|
return s("div", {
|
|
7
5
|
staticClass: "editable-progress",
|
|
@@ -11,7 +9,7 @@ var a = function() {
|
|
|
11
9
|
mouseleave: e.onMouseLeave,
|
|
12
10
|
click: e.wrapperClick
|
|
13
11
|
}
|
|
14
|
-
}, [s(
|
|
12
|
+
}, [s("ElProgress", {
|
|
15
13
|
directives: [{
|
|
16
14
|
name: "show",
|
|
17
15
|
rawName: "v-show",
|
|
@@ -24,7 +22,7 @@ var a = function() {
|
|
|
24
22
|
"text-inside": "",
|
|
25
23
|
percentage: e.percent
|
|
26
24
|
}
|
|
27
|
-
}), e.disabled ? e._e() : s(
|
|
25
|
+
}), e.disabled ? e._e() : s("ElSlider", {
|
|
28
26
|
directives: [{
|
|
29
27
|
name: "show",
|
|
30
28
|
rawName: "v-show",
|
|
@@ -54,8 +52,8 @@ var a = function() {
|
|
|
54
52
|
expression: "percent"
|
|
55
53
|
}
|
|
56
54
|
})], 1);
|
|
57
|
-
},
|
|
58
|
-
const
|
|
55
|
+
}, n = [];
|
|
56
|
+
const a = {
|
|
59
57
|
name: "EditableProgress",
|
|
60
58
|
props: {
|
|
61
59
|
disabled: {
|
|
@@ -121,23 +119,23 @@ const p = {
|
|
|
121
119
|
}
|
|
122
120
|
}
|
|
123
121
|
}, o = {};
|
|
124
|
-
var
|
|
125
|
-
p,
|
|
122
|
+
var u = /* @__PURE__ */ r(
|
|
126
123
|
a,
|
|
127
|
-
|
|
124
|
+
l,
|
|
125
|
+
n,
|
|
128
126
|
!1,
|
|
129
|
-
|
|
127
|
+
d,
|
|
130
128
|
null,
|
|
131
129
|
null,
|
|
132
130
|
null
|
|
133
131
|
);
|
|
134
|
-
function
|
|
132
|
+
function d(e) {
|
|
135
133
|
for (let t in o)
|
|
136
134
|
this[t] = o[t];
|
|
137
135
|
}
|
|
138
|
-
const
|
|
139
|
-
return
|
|
136
|
+
const h = /* @__PURE__ */ function() {
|
|
137
|
+
return u.exports;
|
|
140
138
|
}();
|
|
141
139
|
export {
|
|
142
|
-
|
|
140
|
+
h as default
|
|
143
141
|
};
|