@web-utils/component 4.0.14 → 4.0.15
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 +15 -13
- package/card/index.mjs +20 -18
- package/carousel/index.mjs +12 -10
- package/chat/index.mjs +56 -45
- package/chunk-file-uploader/index.mjs +378 -36
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
- package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
- package/chunks/FyForm.DriwCJ7b.mjs +765 -0
- package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
- package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
- package/chunks/TableColumn.BzivvXMF.mjs +337 -0
- package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
- package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
- package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
- package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
- package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
- package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
- package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
- package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
- package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
- package/color-picker/index.mjs +101 -22
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +15 -12
- package/data-card/index.mjs +12 -10
- package/data-card-text/index.mjs +12 -10
- package/data-display/index.mjs +17 -15
- package/data-icons/index.mjs +16 -13
- package/data-imgtext/index.mjs +18 -15
- package/data-operatext/index.mjs +16 -14
- package/data-panel/index.mjs +16 -13
- package/data-pay/index.mjs +20 -16
- package/data-price/index.mjs +16 -14
- package/data-progress/index.mjs +17 -13
- package/data-rotate/index.mjs +15 -12
- package/data-table-picker/index.mjs +18 -15
- package/data-tabs/index.mjs +15 -12
- package/dialog-form/index.mjs +18 -16
- package/dynamic-table/index.mjs +30 -25
- package/editable-progress/index.mjs +11 -9
- package/editable-tree/index.mjs +56 -52
- package/egd-collapse-item/index.mjs +9 -9
- package/element-dialog/index.mjs +23 -22
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +11 -10
- package/flow-designer/index.mjs +1973 -699
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +9 -9
- package/form-block/index.mjs +34 -32
- package/form-cascader/index.mjs +24 -23
- package/form-checkbox/index.mjs +17 -16
- package/form-checkbox-group/index.mjs +23 -20
- package/form-date-picker/index.mjs +20 -18
- package/form-holder/index.mjs +14 -13
- package/form-input/index.mjs +15 -14
- package/form-input-cron-expression/index.mjs +22 -19
- package/form-input-email/index.mjs +16 -15
- package/form-input-id-card/index.mjs +13 -12
- package/form-input-number/index.mjs +17 -16
- package/form-input-phone-number/index.mjs +22 -21
- package/form-input-tag/index.mjs +15 -14
- package/form-input-time/index.mjs +15 -14
- package/form-item/index.mjs +3 -140
- package/form-item-group/index.mjs +31 -28
- package/form-radio-group/index.mjs +28 -27
- package/form-select/index.mjs +23 -21
- package/form-switch/index.mjs +17 -16
- package/form-table/index.mjs +17 -16
- package/form-table-plus/index.mjs +22 -21
- package/form-textarea/index.mjs +16 -15
- package/form-tree-select/index.mjs +15 -14
- package/form-tree-select-multiple/index.mjs +15 -14
- package/form-view/index.mjs +39 -35
- package/fy-array/index.mjs +37 -33
- package/fy-cascader/index.mjs +17 -16
- package/fy-checkbox/index.mjs +13 -11
- package/fy-code/index.mjs +10 -10
- package/fy-curd/index.mjs +1147 -1123
- package/fy-date/index.mjs +11 -10
- package/fy-draggable/index.mjs +10 -9
- package/fy-dynamic/index.mjs +25 -22
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +15 -638
- package/fy-form-design/index.mjs +1165 -1127
- package/fy-input/index.mjs +14 -12
- package/fy-input-color/index.mjs +15 -13
- package/fy-input-icon/index.mjs +23 -20
- package/fy-input-map/index.mjs +31 -28
- package/fy-input-number/index.mjs +10 -9
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +37 -33
- package/fy-progress/index.mjs +10 -9
- package/fy-radio/index.mjs +16 -15
- package/fy-rate/index.mjs +11 -10
- package/fy-select/index.mjs +29 -25
- package/fy-slider/index.mjs +12 -11
- package/fy-switch/index.mjs +10 -9
- package/fy-tabs/index.mjs +17 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +24 -18
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +13 -11
- package/iframe-window/index.mjs +10 -9
- package/image-cropper/index.mjs +30 -28
- package/image-preview/index.mjs +14 -12
- package/index.mjs +72 -72
- package/input-number/index.mjs +14 -13
- package/input-number-range/index.mjs +12 -11
- package/license/index.mjs +1 -1
- package/login/index.mjs +26 -21
- package/nav-bar/index.mjs +10 -9
- package/notice/index.mjs +10 -9
- package/package.json +1 -1
- package/page-index/index.mjs +13 -12
- package/page-index-top/index.mjs +28 -23
- package/page-skeleton/index.mjs +14 -14
- package/page-skeleton-new/index.mjs +9 -8
- package/pageable-table/index.mjs +182 -172
- package/pageable-view/index.mjs +16 -15
- package/picker-table-view/index.mjs +58 -49
- package/present-view/index.mjs +39 -35
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +22 -20
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/skeleton-panel/index.mjs +10 -9
- package/split-pane/index.mjs +37 -36
- package/static-pageable-table/index.mjs +13 -11
- package/sub-table/index.mjs +49 -36
- package/sub-table-plus/index.mjs +18 -229
- package/swiper/index.mjs +12 -11
- package/table-column/index.mjs +3 -223
- package/table-view/index.mjs +60 -52
- package/tabs-view/index.mjs +19 -17
- package/tag-render/index.mjs +18 -16
- package/text-ellipsis/index.mjs +10 -9
- package/toolbar/index.mjs +14 -13
- package/toolbar-button/index.mjs +14 -13
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +267 -259
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +24 -21
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
- package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
- package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
- package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
- package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
- package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
- package/chunks/core.0Exl13Mz.mjs +0 -54
- package/chunks/dictionary.DGt59Ir7.mjs +0 -68
- package/chunks/form-item.LWjePsPa.mjs +0 -233
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
- package/chunks/utilSelf.Csq1766E.mjs +0 -48
- package/chunks/utils.DRcxC1Fb.mjs +0 -60
- package/element-listeners/style.css +0 -1
- package/element-multi-instance/style.css +0 -1
package/data-price/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import i from "element-ui/lib/col";
|
|
2
|
+
import c from "element-ui/lib/row";
|
|
3
|
+
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
const p = {
|
|
3
5
|
name: "DataPrice",
|
|
4
6
|
props: {
|
|
5
7
|
option: {
|
|
@@ -17,24 +19,24 @@ const i = {
|
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
};
|
|
20
|
-
var
|
|
21
|
-
var t = this,
|
|
22
|
-
return
|
|
23
|
-
return [
|
|
24
|
-
|
|
25
|
-
} } }, [
|
|
26
|
-
return
|
|
22
|
+
var _ = function() {
|
|
23
|
+
var t = this, s = t._self._c;
|
|
24
|
+
return s("div", { staticClass: "data-price" }, [s(c, { attrs: { span: 24 } }, [t._l(t.data, function(a, r) {
|
|
25
|
+
return [s(i, { key: r, attrs: { xs: 12, sm: 6, md: t.span } }, [s("div", { staticClass: "item item--active" }, [s("a", { attrs: { href: a.href, target: a.target }, on: { click: function(n) {
|
|
26
|
+
a.click && a.click(a);
|
|
27
|
+
} } }, [s("div", { staticClass: "title" }, [t._v(" " + t._s(a.title) + " ")]), s("div", { staticClass: "body" }, [s("span", { staticClass: "price" }, [t._v(t._s(a.price))]), s("span", { staticClass: "append" }, [t._v(t._s(a.append))])]), s("div", { staticClass: "list" }, t._l(a.list, function(n, e) {
|
|
28
|
+
return s("p", { key: e }, [t._v(" " + t._s(n) + " ")]);
|
|
27
29
|
}), 0)])])])];
|
|
28
30
|
})], 2)], 1);
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
+
}, l = [], d = /* @__PURE__ */ o(
|
|
32
|
+
p,
|
|
33
|
+
_,
|
|
31
34
|
l,
|
|
32
|
-
o,
|
|
33
35
|
!1,
|
|
34
36
|
null,
|
|
35
37
|
null
|
|
36
38
|
);
|
|
37
|
-
const
|
|
39
|
+
const C = d.exports;
|
|
38
40
|
export {
|
|
39
|
-
|
|
41
|
+
C as default
|
|
40
42
|
};
|
package/data-progress/index.mjs
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import o from "element-ui/lib/progress";
|
|
2
|
+
import r from "../count-up/index.mjs";
|
|
3
|
+
import e from "element-ui/lib/col";
|
|
4
|
+
import i from "element-ui/lib/row";
|
|
5
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const p = {
|
|
3
7
|
name: "DataProgress",
|
|
4
8
|
props: {
|
|
5
9
|
option: {
|
|
@@ -23,22 +27,22 @@ const r = {
|
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
};
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
return
|
|
29
|
-
return
|
|
30
|
+
var l = function() {
|
|
31
|
+
var a = this, n = a._self._c;
|
|
32
|
+
return n("div", { staticClass: "data-progress" }, [n(i, { attrs: { span: 24 } }, a._l(a.data, function(t, s) {
|
|
33
|
+
return n(e, { key: s, attrs: { md: a.span, xs: 24, sm: 12 } }, [n("div", { staticClass: "item" }, [n("a", { attrs: { href: t.href, target: t.target }, on: { click: function(u) {
|
|
30
34
|
t.click && t.click(t);
|
|
31
|
-
} } }, [
|
|
35
|
+
} } }, [n("div", { staticClass: "item-header" }, [n(r, { staticClass: "item-count", attrs: { animation: t.animation || a.animation, decimals: t.decimals || a.decimals, end: t.count } }), n("div", { staticClass: "item-title", domProps: { textContent: a._s(t.title) } })], 1), n(o, { attrs: { "stroke-width": 15, percentage: t.count, color: t.color, "show-text": !1 } })], 1)])]);
|
|
32
36
|
}), 1)], 1);
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
}, _ = [], m = /* @__PURE__ */ c(
|
|
38
|
+
p,
|
|
39
|
+
l,
|
|
40
|
+
_,
|
|
37
41
|
!1,
|
|
38
42
|
null,
|
|
39
43
|
null
|
|
40
44
|
);
|
|
41
|
-
const
|
|
45
|
+
const k = m.exports;
|
|
42
46
|
export {
|
|
43
|
-
|
|
47
|
+
k as default
|
|
44
48
|
};
|
package/data-rotate/index.mjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import o from "../count-up/index.mjs";
|
|
2
|
+
import i from "element-ui/lib/col";
|
|
3
|
+
import r from "element-ui/lib/row";
|
|
4
|
+
import { n as e } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const c = {
|
|
3
6
|
name: "DataRotate",
|
|
4
7
|
props: {
|
|
5
8
|
option: {
|
|
@@ -23,22 +26,22 @@ const o = {
|
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
};
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
return t("div", { staticClass: "avue-data-rotate" }, [t(
|
|
29
|
-
return t(
|
|
29
|
+
var l = function() {
|
|
30
|
+
var n = this, t = n._self._c;
|
|
31
|
+
return t("div", { staticClass: "avue-data-rotate" }, [t(r, { attrs: { span: 24 } }, n._l(n.data, function(a, s) {
|
|
32
|
+
return t(i, { key: s, attrs: { md: n.span, xs: 24, sm: 12 } }, [t("div", { staticClass: "item", style: { backgroundColor: a.color } }, [t("div", { staticClass: "item-box" }, [t(o, { staticClass: "item-count", attrs: { decimals: a.decimals || n.decimals, animation: a.animation || n.animation, end: a.count } }), t("span", { staticClass: "item-title" }, [n._v(n._s(a.title))]), t("i", { staticClass: "item-icon", class: a.icon })], 1), t("a", { attrs: { href: a.href }, on: { click: function(u) {
|
|
30
33
|
a.click && a.click(a);
|
|
31
|
-
} } }, [t("p", { staticClass: "item-more" }, [
|
|
34
|
+
} } }, [t("p", { staticClass: "item-more" }, [n._v("更多"), t("i", { staticClass: "el-icon-arrow-right" })])])])]);
|
|
32
35
|
}), 1)], 1);
|
|
33
|
-
},
|
|
34
|
-
o,
|
|
35
|
-
e,
|
|
36
|
+
}, p = [], m = /* @__PURE__ */ e(
|
|
36
37
|
c,
|
|
38
|
+
l,
|
|
39
|
+
p,
|
|
37
40
|
!1,
|
|
38
41
|
null,
|
|
39
42
|
null
|
|
40
43
|
);
|
|
41
|
-
const
|
|
44
|
+
const h = m.exports;
|
|
42
45
|
export {
|
|
43
|
-
|
|
46
|
+
h as default
|
|
44
47
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import l from "element-ui/lib/button";
|
|
2
|
+
import n from "../pageable-table/index.mjs";
|
|
3
|
+
import o from "../element-dialog/index.mjs";
|
|
4
|
+
import { f as r } from "../chunks/index.Cn7aq-Et.mjs";
|
|
5
|
+
import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const a = {
|
|
4
7
|
name: "DataTablePicker",
|
|
5
8
|
props: {
|
|
6
9
|
visible: Boolean,
|
|
@@ -32,7 +35,7 @@ const o = {
|
|
|
32
35
|
};
|
|
33
36
|
},
|
|
34
37
|
methods: {
|
|
35
|
-
filterTableColumnProperties:
|
|
38
|
+
filterTableColumnProperties: r,
|
|
36
39
|
selectionChange(t) {
|
|
37
40
|
this.selectedRows = t;
|
|
38
41
|
},
|
|
@@ -51,22 +54,22 @@ const o = {
|
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
};
|
|
54
|
-
var
|
|
55
|
-
var e = this,
|
|
56
|
-
return
|
|
57
|
-
return [e._t("search-form"),
|
|
57
|
+
var c = function() {
|
|
58
|
+
var e = this, i = e._self._c;
|
|
59
|
+
return i(o, { ref: "dialog", attrs: { visible: e.visible, title: e.title, width: e.width, height: e.height, embed: "", "flex-column": "" }, on: { close: e.close }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
60
|
+
return [e._t("search-form"), i(n, { ref: "pageableTable", staticStyle: { height: "60vh" }, attrs: { "highlight-current-row": "", "hide-on-single-page": "", model: e.model, columns: e.columns, api: e.api, "row-class-name": "pointer", multiple: e.multiple }, on: { "selection-change": e.selectionChange, "row-click": e.toggleRowSelection, "current-change": e.currentChange } }, [e._t("default")], 2)];
|
|
58
61
|
}, proxy: !0 }, { key: "footer", fn: function() {
|
|
59
|
-
return [l
|
|
62
|
+
return [i(l, { attrs: { size: "mini", type: "primary" }, on: { click: e.confirm } }, [e._v(" 确 定 ")]), i(l, { attrs: { size: "mini" }, on: { click: e.close } }, [e._v(" 关 闭 ")])];
|
|
60
63
|
}, proxy: !0 }], null, !0) });
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
}, u = [], m = /* @__PURE__ */ s(
|
|
65
|
+
a,
|
|
66
|
+
c,
|
|
67
|
+
u,
|
|
65
68
|
!1,
|
|
66
69
|
null,
|
|
67
70
|
null
|
|
68
71
|
);
|
|
69
|
-
const
|
|
72
|
+
const _ = m.exports;
|
|
70
73
|
export {
|
|
71
|
-
|
|
74
|
+
_ as default
|
|
72
75
|
};
|
package/data-tabs/index.mjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import o from "../count-up/index.mjs";
|
|
2
|
+
import i from "element-ui/lib/col";
|
|
3
|
+
import r from "element-ui/lib/row";
|
|
4
|
+
import { n as e } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const c = {
|
|
3
6
|
name: "DataTabs",
|
|
4
7
|
props: {
|
|
5
8
|
option: {
|
|
@@ -23,22 +26,22 @@ const i = {
|
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
};
|
|
26
|
-
var
|
|
29
|
+
var l = function() {
|
|
27
30
|
var t = this, a = t._self._c;
|
|
28
|
-
return a("div", { staticClass: "avue-data-tabs" }, [a(
|
|
29
|
-
return a(
|
|
31
|
+
return a("div", { staticClass: "avue-data-tabs" }, [a(r, { attrs: { span: 24 } }, t._l(t.data, function(s, n) {
|
|
32
|
+
return a(i, { key: n, attrs: { md: t.span, xs: 24, sm: 12 } }, [a("div", { staticClass: "item", style: { background: s.color } }, [a("a", { attrs: { href: s.href, target: s.target }, on: { click: function(u) {
|
|
30
33
|
s.click && s.click(s);
|
|
31
|
-
} } }, [a("div", { staticClass: "item-header" }, [a("p", [t._v(t._s(s.title))]), a("span", [t._v(t._s(s.subtitle))])]), a("div", { staticClass: "item-body" }, [a(
|
|
34
|
+
} } }, [a("div", { staticClass: "item-header" }, [a("p", [t._v(t._s(s.title))]), a("span", [t._v(t._s(s.subtitle))])]), a("div", { staticClass: "item-body" }, [a(o, { staticClass: "h2", attrs: { decimals: s.decimals || t.decimals, animation: s.animation || t.animation, end: s.count } })], 1), a("div", { staticClass: "item-footer" }, [a("span", [t._v(t._s(s.allcount))]), a("p", [t._v(t._s(s.text))])]), a("p", { staticClass: "item-tip" }, [t._v(t._s(s.key))])])])]);
|
|
32
35
|
}), 1)], 1);
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
}, _ = [], p = /* @__PURE__ */ e(
|
|
37
|
+
c,
|
|
38
|
+
l,
|
|
39
|
+
_,
|
|
37
40
|
!1,
|
|
38
41
|
null,
|
|
39
42
|
null
|
|
40
43
|
);
|
|
41
|
-
const
|
|
44
|
+
const C = p.exports;
|
|
42
45
|
export {
|
|
43
|
-
|
|
46
|
+
C as default
|
|
44
47
|
};
|
package/dialog-form/index.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import a from "element-ui/lib/button";
|
|
2
|
+
import { F as n } from "../chunks/FyForm.DriwCJ7b.mjs";
|
|
3
|
+
import { isEmpty as l } from "@web-utils/core";
|
|
4
|
+
import { d as r } from "../chunks/util.DI42t5GU.mjs";
|
|
5
|
+
import c from "vue";
|
|
6
|
+
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
7
|
const i = {
|
|
6
8
|
name: "DialogForm",
|
|
7
9
|
data() {
|
|
@@ -33,8 +35,8 @@ const i = {
|
|
|
33
35
|
}
|
|
34
36
|
},
|
|
35
37
|
methods: {
|
|
36
|
-
isEmpty:
|
|
37
|
-
deepClone:
|
|
38
|
+
isEmpty: l,
|
|
39
|
+
deepClone: r,
|
|
38
40
|
submit() {
|
|
39
41
|
this.$refs.form.submit();
|
|
40
42
|
},
|
|
@@ -62,28 +64,28 @@ const i = {
|
|
|
62
64
|
}
|
|
63
65
|
};
|
|
64
66
|
i.showForm = (t) => {
|
|
65
|
-
const e =
|
|
67
|
+
const e = c.extend(i), o = new e().$mount();
|
|
66
68
|
return document.body.appendChild(o.$el), o.show(t), o;
|
|
67
69
|
};
|
|
68
|
-
const
|
|
69
|
-
var
|
|
70
|
+
const d = i;
|
|
71
|
+
var p = function() {
|
|
70
72
|
var e = this, o = e._self._c;
|
|
71
73
|
return e._self._setupProxy, o(e.dialogType, e._b({ tag: "Component", staticClass: "dialog-form", attrs: { visible: e.visible, "destroy-on-close": "", "before-close": e.beforeClose }, on: { "update:visible": function(s) {
|
|
72
74
|
e.visible = s;
|
|
73
|
-
} } }, "Component", e.dialog, !1), [o(
|
|
75
|
+
} } }, "Component", e.dialog, !1), [o(n, { ref: "form", attrs: { option: { ...e.deepClone(e.option), menuBtn: !1 }, status: e.disabled }, on: { "update:status": function(s) {
|
|
74
76
|
e.disabled = s;
|
|
75
77
|
}, submit: e.handleSubmit, "reset-change": e.close }, model: { value: e.data, callback: function(s) {
|
|
76
78
|
e.data = s;
|
|
77
|
-
}, expression: "data" } }), e.isEmpty(e.option.menuBtn, !0) ? o("span", { staticClass: "avue-dialog__footer", class: `avue-dialog__footer--${e.menuPosition}` }, [e.isEmpty(e.option.submitBtn, !0) ? o(
|
|
78
|
-
},
|
|
79
|
-
c,
|
|
79
|
+
}, expression: "data" } }), e.isEmpty(e.option.menuBtn, !0) ? o("span", { staticClass: "avue-dialog__footer", class: `avue-dialog__footer--${e.menuPosition}` }, [e.isEmpty(e.option.submitBtn, !0) ? o(a, { attrs: { size: e.$AVUE.size, icon: e.option.submitIcon, loading: e.disabled, type: "primary" }, on: { click: e.submit } }, [e._v(e._s(e.option.submitText))]) : e._e(), e.isEmpty(e.option.emptyBtn, !0) ? o(a, { attrs: { disabled: e.disabled, size: e.$AVUE.size, icon: e.option.emptyIcon }, on: { click: e.reset } }, [e._v(e._s(e.option.emptyText))]) : e._e()], 1) : e._e()], 1);
|
|
80
|
+
}, u = [], f = /* @__PURE__ */ m(
|
|
80
81
|
d,
|
|
81
|
-
|
|
82
|
+
p,
|
|
83
|
+
u,
|
|
82
84
|
!1,
|
|
83
85
|
null,
|
|
84
86
|
null
|
|
85
87
|
);
|
|
86
|
-
const
|
|
88
|
+
const C = f.exports;
|
|
87
89
|
export {
|
|
88
|
-
|
|
90
|
+
C as default
|
|
89
91
|
};
|
package/dynamic-table/index.mjs
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import p from "element-ui/lib/button";
|
|
2
|
+
import { T as o } from "../chunks/TableColumn.BzivvXMF.mjs";
|
|
3
|
+
import u from "element-ui/lib/input";
|
|
4
|
+
import d from "element-ui/lib/form-item";
|
|
5
|
+
import c from "element-ui/lib/table";
|
|
6
|
+
import { fastClone as m, validateNumber as f, validateIdCard as _, validatePhoneNum as h } from "@web-utils/core";
|
|
7
|
+
import { n as y } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
|
+
const l = {
|
|
4
9
|
number: "fa fa-superscript",
|
|
5
10
|
email: "el-icon-lx-mail",
|
|
6
11
|
phone: "fa fa-phone",
|
|
7
12
|
idCard: "el-icon-lx-news"
|
|
8
|
-
},
|
|
13
|
+
}, b = {
|
|
9
14
|
name: "DynamicTable",
|
|
10
15
|
inject: {
|
|
11
16
|
elForm: {
|
|
@@ -56,15 +61,15 @@ const n = {
|
|
|
56
61
|
},
|
|
57
62
|
methods: {
|
|
58
63
|
getIcon(t) {
|
|
59
|
-
return
|
|
64
|
+
return l[t.type] ? l[t.type] : "";
|
|
60
65
|
},
|
|
61
66
|
addRow() {
|
|
62
67
|
const t = this.value;
|
|
63
68
|
t.push(this.newRow()), this.$emit("input", t);
|
|
64
69
|
},
|
|
65
70
|
removeRow(t, e) {
|
|
66
|
-
const
|
|
67
|
-
|
|
71
|
+
const i = this.value;
|
|
72
|
+
i.splice(e, 1), this.$emit("input", i);
|
|
68
73
|
},
|
|
69
74
|
newRow() {
|
|
70
75
|
const t = {};
|
|
@@ -75,35 +80,35 @@ const n = {
|
|
|
75
80
|
getRules(t) {
|
|
76
81
|
const e = t.rules;
|
|
77
82
|
if (["email", "idCard", "phone", "number"].includes(t.type)) {
|
|
78
|
-
const
|
|
79
|
-
return t.type === "number" &&
|
|
83
|
+
const i = m(e || []);
|
|
84
|
+
return t.type === "number" && i.push({ validator: f, message: "请输入数字!" }), t.type === "email" && i.push({ type: "email", message: "请输入正确的邮箱地址!" }), t.type === "idCard" && i.push({ validator: _, message: "请输入正确的身份证号码!" }), t.type === "phone" && i.push({ validator: h, message: "请输入正确的手机号码!" }), i;
|
|
80
85
|
} else
|
|
81
86
|
return e;
|
|
82
87
|
}
|
|
83
88
|
}
|
|
84
89
|
};
|
|
85
|
-
var
|
|
86
|
-
var e = this,
|
|
87
|
-
return
|
|
88
|
-
return
|
|
89
|
-
return [
|
|
90
|
-
e.$set(
|
|
90
|
+
var v = function() {
|
|
91
|
+
var e = this, i = e._self._c;
|
|
92
|
+
return i("div", { staticClass: "dynamic-table" }, [i(c, { key: e.key, staticStyle: { width: "100%" }, attrs: { data: e.value } }, [e._l(e.columns, function(a) {
|
|
93
|
+
return i(o, { key: a.prop, attrs: { prop: a.prop, label: a.label, "min-width": "150" }, scopedSlots: e._u([{ key: "default", fn: function({ row: r, $index: n }) {
|
|
94
|
+
return [i(d, { style: { marginBottom: e.inputDisabled ? "0px" : "16px" }, attrs: { prop: `${e.prop}.${n}.${a.prop}`, size: "mini", rules: e.getRules(a) } }, [i(u, { attrs: { "prefix-icon": e.getIcon(a), disabled: e.inputDisabled, placeholder: e.inputDisabled ? "" : `请输入${a.label}!` }, model: { value: r[a.prop], callback: function(s) {
|
|
95
|
+
e.$set(r, a.prop, s);
|
|
91
96
|
}, expression: "row[column.prop]" } })], 1)];
|
|
92
97
|
} }], null, !0) });
|
|
93
|
-
}), e.inputDisabled ? e._e() :
|
|
94
|
-
return [
|
|
95
|
-
return
|
|
98
|
+
}), e.inputDisabled ? e._e() : i(o, { attrs: { label: "操作", width: "60", fixed: "right" }, scopedSlots: e._u([{ key: "default", fn: function({ row: a, column: r, $index: n }) {
|
|
99
|
+
return [i("i", { staticClass: "el-icon-minus dynamic-table-action-icon", staticStyle: { position: "relative", top: "-8px", color: "#f00" }, attrs: { title: "删除" }, on: { click: function(s) {
|
|
100
|
+
return s.stopPropagation(), e.removeRow(a, n, r);
|
|
96
101
|
} } })];
|
|
97
|
-
} }], null, !1, 410881950) })], 2), e.inputDisabled ? e._e() :
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
} }], null, !1, 410881950) })], 2), e.inputDisabled ? e._e() : i(p, { staticStyle: { color: "#08c108" }, attrs: { type: "text", icon: "el-icon-plus" }, on: { click: e.addRow } }, [e._v(" 添加 ")])], 1);
|
|
103
|
+
}, g = [], w = /* @__PURE__ */ y(
|
|
104
|
+
b,
|
|
105
|
+
v,
|
|
106
|
+
g,
|
|
102
107
|
!1,
|
|
103
108
|
null,
|
|
104
109
|
null
|
|
105
110
|
);
|
|
106
|
-
const
|
|
111
|
+
const F = w.exports;
|
|
107
112
|
export {
|
|
108
|
-
|
|
113
|
+
F as default
|
|
109
114
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import i from "element-ui/lib/slider";
|
|
2
|
+
import r from "element-ui/lib/progress";
|
|
3
|
+
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
const a = {
|
|
3
5
|
name: "EditableProgress",
|
|
4
6
|
props: {
|
|
5
7
|
disabled: {
|
|
@@ -65,20 +67,20 @@ const r = {
|
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
};
|
|
68
|
-
var
|
|
70
|
+
var l = function() {
|
|
69
71
|
var e = this, t = e._self._c;
|
|
70
|
-
return t("div", { staticClass: "editable-progress", on: { mouseover: e.onMouseOver, mousedown: e.onMouseDown, mouseleave: e.onMouseLeave, click: e.wrapperClick } }, [t(
|
|
71
|
-
e.percent =
|
|
72
|
+
return t("div", { staticClass: "editable-progress", on: { mouseover: e.onMouseOver, mousedown: e.onMouseDown, mouseleave: e.onMouseLeave, click: e.wrapperClick } }, [t(r, { directives: [{ name: "show", rawName: "v-show", value: !e.slider, expression: "!slider" }], class: e.percent === 100 ? "progress__success" : "", attrs: { "stroke-width": e.strokeWidth, "text-inside": "", percentage: e.percent } }), e.disabled ? e._e() : t(i, { directives: [{ name: "show", rawName: "v-show", value: e.slider, expression: "slider" }], ref: "slider", style: { width: `${e.max === 100 ? 100 : e.max - 1}%` }, attrs: { "tooltip-class": e.tooltipClass, max: e.max, "format-tooltip": e.formatTooltip, disabled: e.disabled, step: e.step }, on: { input: e.onInput, change: e.onChange }, model: { value: e.percent, callback: function(o) {
|
|
73
|
+
e.percent = o;
|
|
72
74
|
}, expression: "percent" } })], 1);
|
|
73
|
-
},
|
|
74
|
-
r,
|
|
75
|
+
}, p = [], d = /* @__PURE__ */ n(
|
|
75
76
|
a,
|
|
76
77
|
l,
|
|
78
|
+
p,
|
|
77
79
|
!1,
|
|
78
80
|
null,
|
|
79
81
|
null
|
|
80
82
|
);
|
|
81
|
-
const
|
|
83
|
+
const c = d.exports;
|
|
82
84
|
export {
|
|
83
|
-
|
|
85
|
+
c as default
|
|
84
86
|
};
|