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