@web-utils/component 3.0.6 → 3.1.0
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 +20 -57
- package/affix/index.mjs +26 -47
- package/aside-menu/index.mjs +18 -43
- package/avatar/index.mjs +27 -49
- package/awesome-button/index.mjs +35 -43
- package/capsule-tab/index.mjs +16 -34
- package/card/index.mjs +21 -76
- package/carousel/index.mjs +14 -49
- package/chat/index.mjs +104 -414
- package/chunk-file-uploader/index.mjs +21 -38
- package/chunks/FormTemp.aa57efb4.mjs +125 -0
- package/code-mirror-editor/index.mjs +69 -79
- package/color-picker/index.mjs +29 -60
- package/comment/index.mjs +17 -48
- package/confirm-button/index.mjs +11 -19
- package/confirmable/index.mjs +12 -20
- package/context-menu/index.mjs +42 -144
- package/count-up/index.mjs +18 -25
- package/custom-scrollbar/index.mjs +13 -22
- package/data-box/index.mjs +15 -66
- package/data-card/index.mjs +16 -65
- package/data-cardtext/index.mjs +16 -52
- package/data-display/index.mjs +18 -62
- package/data-icons/index.mjs +16 -68
- package/data-imgtext/index.mjs +18 -79
- package/data-operatext/index.mjs +18 -75
- package/data-panel/index.mjs +16 -63
- package/data-pay/index.mjs +20 -122
- package/data-price/index.mjs +18 -60
- package/data-progress/index.mjs +16 -67
- package/data-rotate/index.mjs +16 -66
- package/data-table-picker/index.mjs +25 -88
- package/data-tabs/index.mjs +16 -64
- package/dialog-form/index.mjs +48 -94
- package/dynamic-table/index.mjs +43 -127
- package/e-charts/index.mjs +21 -34
- package/easy-popup/index.mjs +35 -61
- package/editable-progress/index.mjs +22 -77
- package/editable-tree/index.mjs +235 -546
- package/egd-collapse/index.mjs +13 -26
- package/egd-collapse-item/index.mjs +27 -87
- package/element-dialog/index.mjs +69 -133
- package/empty-view/index.mjs +13 -33
- package/error-view/index.mjs +14 -34
- package/flex-column/index.mjs +15 -23
- package/flex-item/index.mjs +18 -26
- package/flex-row/index.mjs +23 -31
- package/flex-scroller/index.mjs +16 -27
- package/flow/index.mjs +70 -110
- package/flow-designer/index.mjs +1215 -4804
- package/flow-node/index.mjs +15 -51
- package/flow-viewer/index.mjs +64 -89
- package/form-block/index.mjs +43 -62
- package/form-button/index.mjs +10 -18
- package/form-cascader/index.mjs +49 -100
- package/form-checkbox-group/index.mjs +43 -110
- package/form-date-picker/index.mjs +51 -97
- package/form-holder/index.mjs +25 -42
- package/form-input/index.mjs +40 -90
- package/form-input-email/index.mjs +35 -79
- package/form-input-id-card/index.mjs +40 -87
- package/form-input-number/index.mjs +42 -102
- package/form-input-phone-number/index.mjs +34 -75
- package/form-input-tag/index.mjs +31 -73
- package/form-input-time/index.mjs +42 -87
- package/form-item/index.mjs +70 -89
- package/form-item-config-provider/index.mjs +12 -20
- package/form-item-group/index.mjs +46 -65
- package/form-radio-group/index.mjs +50 -108
- package/form-select/index.mjs +44 -95
- package/form-switch/index.mjs +38 -85
- package/form-textarea/index.mjs +31 -75
- package/form-view/index.mjs +112 -260
- package/fy-array/index.mjs +35 -121
- package/fy-article/index.mjs +12 -43
- package/fy-cascader/index.mjs +26 -67
- package/fy-checkbox/index.mjs +27 -77
- package/fy-code/index.mjs +19 -33
- package/fy-curd/index.mjs +810 -2017
- package/fy-date/index.mjs +18 -59
- package/fy-draggable/index.mjs +81 -140
- package/fy-dynamic/index.mjs +85 -204
- package/fy-empty/index.mjs +14 -35
- package/fy-form/index.mjs +254 -571
- package/fy-form-design/index.mjs +1489 -6084
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +34 -104
- package/fy-input-color/index.mjs +22 -67
- package/fy-input-icon/index.mjs +37 -122
- package/fy-input-map/index.mjs +57 -149
- package/fy-input-number/index.mjs +18 -53
- package/fy-input-table/index.mjs +36 -102
- package/fy-input-tree/index.mjs +51 -138
- package/fy-progress/index.mjs +12 -31
- package/fy-radio/index.mjs +20 -51
- package/fy-rate/index.mjs +18 -51
- package/fy-select/index.mjs +49 -134
- package/fy-slider/index.mjs +19 -52
- package/fy-switch/index.mjs +18 -48
- package/fy-tabs/index.mjs +19 -51
- package/fy-time/index.mjs +22 -62
- package/fy-title/index.mjs +14 -25
- package/fy-tree/index.mjs +74 -216
- package/fy-u-editor/index.mjs +50 -64
- package/fy-upload/index.mjs +167 -338
- package/guide-steps/index.mjs +33 -53
- package/highlight-j-s/index.mjs +13 -27
- package/icon-card/index.mjs +12 -36
- package/icon-temp/index.mjs +12 -34
- package/iframe-window/index.mjs +13 -40
- package/image-cropper/index.mjs +46 -171
- package/image-preview/index.mjs +54 -168
- package/image-viewer/index.mjs +24 -50
- package/index.css +1 -0
- package/index.mjs +3973 -501
- package/input-number/index.mjs +84 -173
- package/input-number-range/index.mjs +20 -70
- package/j-s-x-component/index.mjs +3 -3
- package/keep-view-alive/index.mjs +47 -55
- package/keyboard/index.mjs +100 -113
- package/license/index.mjs +34 -51
- package/loading-view/index.mjs +14 -34
- package/login/index.mjs +33 -161
- package/monaco-editor/index.mjs +13 -21
- package/name-avatar/index.mjs +13 -32
- package/nav-bar/index.mjs +12 -31
- package/not-implement/index.mjs +14 -25
- package/notice/index.mjs +32 -80
- package/package.json +1 -1
- package/page/index.mjs +11 -23
- package/page-header/index.mjs +16 -37
- package/page-index/index.mjs +42 -93
- package/page-index-top/index.mjs +42 -84
- package/page-skeleton/index.mjs +24 -39
- package/page-skeleton-new/index.mjs +21 -68
- package/pageable-table/index.mjs +105 -227
- package/pageable-view/index.mjs +30 -83
- package/photo-swipe/index.mjs +62 -87
- package/present-view/index.mjs +114 -267
- package/queue/index.mjs +14 -29
- package/record-video/index.mjs +29 -66
- package/resize-observer/index.mjs +18 -30
- package/search/index.mjs +47 -81
- package/search-popover/index.mjs +57 -329
- package/sign/index.mjs +43 -60
- package/sign-panel/index.mjs +40 -151
- package/skeleton/index.mjs +18 -44
- package/split-pane/index.mjs +45 -129
- package/stateful/index.mjs +18 -26
- package/static-pageable-table/index.mjs +18 -44
- package/swiper/index.mjs +53 -94
- package/tab/index.mjs +13 -39
- package/tab-item/index.mjs +23 -37
- package/table-column/index.mjs +27 -35
- package/table-view/index.mjs +89 -209
- package/tag-render/index.mjs +34 -69
- package/text-ellipsis/index.mjs +22 -47
- package/tinymce-editor/index.mjs +174 -285
- package/toolbar/index.mjs +21 -42
- package/toolbar-button/index.mjs +25 -54
- package/verify/index.mjs +16 -29
- package/vue-cron/index.mjs +272 -1089
- package/vue-qr-code/index.mjs +19 -27
- package/vue-quill-editor/index.mjs +15 -27
- package/vue-tags-input/index.mjs +104 -224
- package/vue-tree-select/index.mjs +595 -742
- package/vue-video-player/index.mjs +42 -57
- package/watermark/index.mjs +27 -35
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +50 -112
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
package/dialog-form/index.mjs
CHANGED
|
@@ -1,68 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
e.visible = s;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}, "Component", e.dialog, !1), [o("FyForm", {
|
|
21
|
-
ref: "form",
|
|
22
|
-
attrs: {
|
|
23
|
-
option: Object.assign({}, e.deepClone(e.option), {
|
|
24
|
-
menuBtn: !1
|
|
25
|
-
}),
|
|
26
|
-
status: e.disabled
|
|
27
|
-
},
|
|
28
|
-
on: {
|
|
29
|
-
"update:status": function(s) {
|
|
30
|
-
e.disabled = s;
|
|
31
|
-
},
|
|
32
|
-
submit: e.handleSubmit,
|
|
33
|
-
"reset-change": e.close
|
|
34
|
-
},
|
|
35
|
-
model: {
|
|
36
|
-
value: e.data,
|
|
37
|
-
callback: function(s) {
|
|
38
|
-
e.data = s;
|
|
39
|
-
},
|
|
40
|
-
expression: "data"
|
|
41
|
-
}
|
|
42
|
-
}), e.isEmpty(e.option.menuBtn, !0) ? o("span", {
|
|
43
|
-
staticClass: "avue-dialog__footer",
|
|
44
|
-
class: `avue-dialog__footer--${e.menuPosition}`
|
|
45
|
-
}, [e.isEmpty(e.option.submitBtn, !0) ? o("ElButton", {
|
|
46
|
-
attrs: {
|
|
47
|
-
size: e.$AVUE.size,
|
|
48
|
-
icon: e.option.submitIcon,
|
|
49
|
-
loading: e.disabled,
|
|
50
|
-
type: "primary"
|
|
51
|
-
},
|
|
52
|
-
on: {
|
|
53
|
-
click: e.submit
|
|
54
|
-
}
|
|
55
|
-
}, [e._v(e._s(e.option.submitText))]) : e._e(), e.isEmpty(e.option.emptyBtn, !0) ? o("ElButton", {
|
|
56
|
-
attrs: {
|
|
57
|
-
disabled: e.disabled,
|
|
58
|
-
size: e.$AVUE.size,
|
|
59
|
-
icon: e.option.emptyIcon
|
|
60
|
-
},
|
|
61
|
-
on: {
|
|
62
|
-
click: e.reset
|
|
63
|
-
}
|
|
64
|
-
}, [e._v(e._s(e.option.emptyText))]) : e._e()], 1) : e._e()], 1);
|
|
65
|
-
}, m = [];
|
|
1
|
+
var c = Object.defineProperty, d = Object.defineProperties;
|
|
2
|
+
var m = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var a = Object.getOwnPropertySymbols;
|
|
4
|
+
var u = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var l = (t, e, o) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, n = (t, e) => {
|
|
6
|
+
for (var o in e || (e = {}))
|
|
7
|
+
u.call(e, o) && l(t, o, e[o]);
|
|
8
|
+
if (a)
|
|
9
|
+
for (var o of a(e))
|
|
10
|
+
p.call(e, o) && l(t, o, e[o]);
|
|
11
|
+
return t;
|
|
12
|
+
}, r = (t, e) => d(t, m(e));
|
|
13
|
+
import { isEmpty as b } from "@web-utils/core";
|
|
14
|
+
import { d as f } from "../chunks/util.ae730cde.mjs";
|
|
15
|
+
import h from "vue";
|
|
16
|
+
import { n as _ } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
66
17
|
const i = {
|
|
67
18
|
name: "DialogForm",
|
|
68
19
|
data() {
|
|
@@ -94,55 +45,58 @@ const i = {
|
|
|
94
45
|
}
|
|
95
46
|
},
|
|
96
47
|
methods: {
|
|
97
|
-
isEmpty:
|
|
98
|
-
deepClone:
|
|
48
|
+
isEmpty: b,
|
|
49
|
+
deepClone: f,
|
|
99
50
|
submit() {
|
|
100
51
|
this.$refs.form.submit();
|
|
101
52
|
},
|
|
102
53
|
reset() {
|
|
103
54
|
this.$refs.form.resetForm();
|
|
104
55
|
},
|
|
105
|
-
beforeClose(
|
|
106
|
-
|
|
56
|
+
beforeClose(t) {
|
|
57
|
+
t(), this.close();
|
|
107
58
|
},
|
|
108
|
-
show(
|
|
109
|
-
this.opt =
|
|
110
|
-
const
|
|
111
|
-
["callback", "option", "data"].forEach((o) => delete
|
|
59
|
+
show(t) {
|
|
60
|
+
this.opt = t, this.callback = t.callback;
|
|
61
|
+
const e = this.deepClone(t);
|
|
62
|
+
["callback", "option", "data"].forEach((o) => delete e[o]), this.dialog = Object.assign(this.dialog, e), this.dialog.size = this.dialog.width, this.isDrawer = this.dialog.type === "drawer", this.option = Object.assign(this.option, t.option), this.data = t.data, this.visible = !0;
|
|
112
63
|
},
|
|
113
64
|
close() {
|
|
114
|
-
const
|
|
65
|
+
const t = () => {
|
|
115
66
|
this.visible = !1, this.$destroy(), this.$el.remove();
|
|
116
67
|
};
|
|
117
|
-
typeof this.dialog.beforeClose == "function" ? this.dialog.beforeClose(
|
|
68
|
+
typeof this.dialog.beforeClose == "function" ? this.dialog.beforeClose(t) : t();
|
|
118
69
|
},
|
|
119
|
-
handleSubmit(
|
|
120
|
-
this.callback && this.callback({ data:
|
|
70
|
+
handleSubmit(t, e) {
|
|
71
|
+
this.callback && this.callback({ data: t, close: this.close, done: e });
|
|
121
72
|
}
|
|
122
73
|
}
|
|
123
74
|
};
|
|
124
|
-
i.showForm = (
|
|
125
|
-
const
|
|
126
|
-
return document.body.appendChild(o.$el), o.show(
|
|
75
|
+
i.showForm = (t) => {
|
|
76
|
+
const e = h.extend(i), o = new e().$mount();
|
|
77
|
+
return document.body.appendChild(o.$el), o.show(t), o;
|
|
127
78
|
};
|
|
128
|
-
const
|
|
129
|
-
var
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
79
|
+
const g = i;
|
|
80
|
+
var y = function() {
|
|
81
|
+
var e = this, o = e._self._c;
|
|
82
|
+
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) {
|
|
83
|
+
e.visible = s;
|
|
84
|
+
} } }, "Component", e.dialog, !1), [o("FyForm", { ref: "form", attrs: { option: r(n({}, e.deepClone(e.option)), { menuBtn: !1 }), status: e.disabled }, on: { "update:status": function(s) {
|
|
85
|
+
e.disabled = s;
|
|
86
|
+
}, submit: e.handleSubmit, "reset-change": e.close }, model: { value: e.data, callback: function(s) {
|
|
87
|
+
e.data = s;
|
|
88
|
+
}, 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);
|
|
89
|
+
}, v = [], C = /* @__PURE__ */ _(
|
|
90
|
+
g,
|
|
91
|
+
y,
|
|
92
|
+
v,
|
|
133
93
|
!1,
|
|
134
|
-
|
|
94
|
+
null,
|
|
135
95
|
null,
|
|
136
96
|
null,
|
|
137
97
|
null
|
|
138
98
|
);
|
|
139
|
-
|
|
140
|
-
for (let t in n)
|
|
141
|
-
this[t] = n[t];
|
|
142
|
-
}
|
|
143
|
-
const v = /* @__PURE__ */ function() {
|
|
144
|
-
return p.exports;
|
|
145
|
-
}();
|
|
99
|
+
const $ = C.exports;
|
|
146
100
|
export {
|
|
147
|
-
|
|
101
|
+
$ as default
|
|
148
102
|
};
|
package/dynamic-table/index.mjs
CHANGED
|
@@ -1,102 +1,11 @@
|
|
|
1
|
-
import { fastClone as
|
|
2
|
-
import { n as
|
|
3
|
-
|
|
4
|
-
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
5
|
-
return t("div", {
|
|
6
|
-
staticClass: "dynamic-table"
|
|
7
|
-
}, [t("ElTable", {
|
|
8
|
-
key: e.key,
|
|
9
|
-
staticStyle: {
|
|
10
|
-
width: "100%"
|
|
11
|
-
},
|
|
12
|
-
attrs: {
|
|
13
|
-
data: e.value
|
|
14
|
-
}
|
|
15
|
-
}, [e._l(e.columns, function(a) {
|
|
16
|
-
return t("TableColumn", {
|
|
17
|
-
key: a.prop,
|
|
18
|
-
attrs: {
|
|
19
|
-
prop: a.prop,
|
|
20
|
-
label: a.label,
|
|
21
|
-
"min-width": "150"
|
|
22
|
-
},
|
|
23
|
-
scopedSlots: e._u([{
|
|
24
|
-
key: "default",
|
|
25
|
-
fn: function(n) {
|
|
26
|
-
var l = n.row, r = n.$index;
|
|
27
|
-
return [t("ElFormItem", {
|
|
28
|
-
style: {
|
|
29
|
-
marginBottom: e.inputDisabled ? "0px" : "16px"
|
|
30
|
-
},
|
|
31
|
-
attrs: {
|
|
32
|
-
prop: `${e.prop}.${r}.${a.prop}`,
|
|
33
|
-
size: "mini",
|
|
34
|
-
rules: e.getRules(a)
|
|
35
|
-
}
|
|
36
|
-
}, [t("ElInput", {
|
|
37
|
-
attrs: {
|
|
38
|
-
"prefix-icon": e.getIcon(a),
|
|
39
|
-
disabled: e.inputDisabled,
|
|
40
|
-
placeholder: e.inputDisabled ? "" : `请输入${a.label}!`
|
|
41
|
-
},
|
|
42
|
-
model: {
|
|
43
|
-
value: l[a.prop],
|
|
44
|
-
callback: function(s) {
|
|
45
|
-
e.$set(l, a.prop, s);
|
|
46
|
-
},
|
|
47
|
-
expression: "row[column.prop]"
|
|
48
|
-
}
|
|
49
|
-
})], 1)];
|
|
50
|
-
}
|
|
51
|
-
}], null, !0)
|
|
52
|
-
});
|
|
53
|
-
}), e.inputDisabled ? e._e() : t("TableColumn", {
|
|
54
|
-
attrs: {
|
|
55
|
-
label: "操作",
|
|
56
|
-
width: "60",
|
|
57
|
-
fixed: "right"
|
|
58
|
-
},
|
|
59
|
-
scopedSlots: e._u([{
|
|
60
|
-
key: "default",
|
|
61
|
-
fn: function(a) {
|
|
62
|
-
var n = a.row, l = a.column, r = a.$index;
|
|
63
|
-
return [t("i", {
|
|
64
|
-
staticClass: "el-icon-minus dynamic-table-action-icon",
|
|
65
|
-
staticStyle: {
|
|
66
|
-
position: "relative",
|
|
67
|
-
top: "-8px",
|
|
68
|
-
color: "#f00"
|
|
69
|
-
},
|
|
70
|
-
attrs: {
|
|
71
|
-
title: "删除"
|
|
72
|
-
},
|
|
73
|
-
on: {
|
|
74
|
-
click: function(s) {
|
|
75
|
-
return s.stopPropagation(), e.removeRow(n, r, l);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
})];
|
|
79
|
-
}
|
|
80
|
-
}], null, !1, 410881950)
|
|
81
|
-
})], 2), e.inputDisabled ? e._e() : t("ElButton", {
|
|
82
|
-
staticStyle: {
|
|
83
|
-
color: "#08c108"
|
|
84
|
-
},
|
|
85
|
-
attrs: {
|
|
86
|
-
type: "text",
|
|
87
|
-
icon: "el-icon-plus"
|
|
88
|
-
},
|
|
89
|
-
on: {
|
|
90
|
-
click: e.addRow
|
|
91
|
-
}
|
|
92
|
-
}, [e._v(" 添加 ")])], 1);
|
|
93
|
-
}, y = [];
|
|
94
|
-
const o = {
|
|
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.446f5dc4.mjs";
|
|
3
|
+
const r = {
|
|
95
4
|
number: "fa fa-superscript",
|
|
96
5
|
email: "el-icon-lx-mail",
|
|
97
6
|
phone: "fa fa-phone",
|
|
98
7
|
idCard: "el-icon-lx-news"
|
|
99
|
-
},
|
|
8
|
+
}, m = {
|
|
100
9
|
name: "DynamicTable",
|
|
101
10
|
inject: {
|
|
102
11
|
elForm: {
|
|
@@ -134,8 +43,8 @@ const o = {
|
|
|
134
43
|
watch: {
|
|
135
44
|
value: {
|
|
136
45
|
deep: !0,
|
|
137
|
-
handler(
|
|
138
|
-
this.$emit("input",
|
|
46
|
+
handler(t) {
|
|
47
|
+
this.$emit("input", t);
|
|
139
48
|
}
|
|
140
49
|
},
|
|
141
50
|
columns: {
|
|
@@ -146,50 +55,57 @@ const o = {
|
|
|
146
55
|
}
|
|
147
56
|
},
|
|
148
57
|
methods: {
|
|
149
|
-
getIcon(
|
|
150
|
-
return
|
|
58
|
+
getIcon(t) {
|
|
59
|
+
return r[t.type] ? r[t.type] : "";
|
|
151
60
|
},
|
|
152
61
|
addRow() {
|
|
153
|
-
const e = this.value;
|
|
154
|
-
e.push(this.newRow()), this.$emit("input", e);
|
|
155
|
-
},
|
|
156
|
-
removeRow(e, i) {
|
|
157
62
|
const t = this.value;
|
|
158
|
-
t.
|
|
63
|
+
t.push(this.newRow()), this.$emit("input", t);
|
|
64
|
+
},
|
|
65
|
+
removeRow(t, e) {
|
|
66
|
+
const a = this.value;
|
|
67
|
+
a.splice(e, 1), this.$emit("input", a);
|
|
159
68
|
},
|
|
160
69
|
newRow() {
|
|
161
|
-
const
|
|
162
|
-
return this.columns.forEach((
|
|
163
|
-
e
|
|
164
|
-
}),
|
|
70
|
+
const t = {};
|
|
71
|
+
return this.columns.forEach((e) => {
|
|
72
|
+
t[e.prop] = void 0;
|
|
73
|
+
}), t;
|
|
165
74
|
},
|
|
166
|
-
getRules(
|
|
167
|
-
const
|
|
168
|
-
if (["email", "idCard", "phone", "number"].includes(
|
|
169
|
-
const
|
|
170
|
-
return
|
|
75
|
+
getRules(t) {
|
|
76
|
+
const e = t.rules;
|
|
77
|
+
if (["email", "idCard", "phone", "number"].includes(t.type)) {
|
|
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;
|
|
171
80
|
} else
|
|
172
|
-
return
|
|
81
|
+
return e;
|
|
173
82
|
}
|
|
174
83
|
}
|
|
175
|
-
}
|
|
176
|
-
var
|
|
177
|
-
|
|
178
|
-
|
|
84
|
+
};
|
|
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(n) {
|
|
90
|
+
e.$set(l, i.prop, n);
|
|
91
|
+
}, expression: "row[column.prop]" } })], 1)];
|
|
92
|
+
} }], null, !0) });
|
|
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(n) {
|
|
95
|
+
return n.stopPropagation(), e.removeRow(i, s, l);
|
|
96
|
+
} } })];
|
|
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
|
+
}, y = [], h = /* @__PURE__ */ c(
|
|
99
|
+
m,
|
|
100
|
+
f,
|
|
179
101
|
y,
|
|
180
102
|
!1,
|
|
181
|
-
|
|
103
|
+
null,
|
|
182
104
|
null,
|
|
183
105
|
null,
|
|
184
106
|
null
|
|
185
107
|
);
|
|
186
|
-
|
|
187
|
-
for (let i in p)
|
|
188
|
-
this[i] = p[i];
|
|
189
|
-
}
|
|
190
|
-
const g = /* @__PURE__ */ function() {
|
|
191
|
-
return b.exports;
|
|
192
|
-
}();
|
|
108
|
+
const v = h.exports;
|
|
193
109
|
export {
|
|
194
|
-
|
|
110
|
+
v as default
|
|
195
111
|
};
|
package/e-charts/index.mjs
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import * as s from "echarts/core";
|
|
2
|
-
import { isString as
|
|
3
|
-
import { debounce as
|
|
4
|
-
import { addListener as
|
|
5
|
-
import { n as d } from "../chunks/
|
|
6
|
-
|
|
7
|
-
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
8
|
-
return i("div", {
|
|
9
|
-
staticClass: "echarts",
|
|
10
|
-
style: {
|
|
11
|
-
width: t.width,
|
|
12
|
-
height: t.height
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
}, p = [];
|
|
16
|
-
const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchShallow"], f = {
|
|
2
|
+
import { isString as r } from "@web-utils/core";
|
|
3
|
+
import { debounce as a } from "@web-utils/integrations/lodash";
|
|
4
|
+
import { addListener as n, removeListener as o } from "resize-detector";
|
|
5
|
+
import { n as d } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
6
|
+
const c = ["theme", "initOptions", "autoResize"], l = ["manualUpdate", "watchShallow"], p = {
|
|
17
7
|
name: "ECharts",
|
|
18
8
|
props: {
|
|
19
9
|
options: {
|
|
@@ -51,7 +41,7 @@ const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchSha
|
|
|
51
41
|
}
|
|
52
42
|
},
|
|
53
43
|
created() {
|
|
54
|
-
this.initOptionsWatcher(),
|
|
44
|
+
this.initOptionsWatcher(), c.forEach((t) => {
|
|
55
45
|
this.$watch(
|
|
56
46
|
t,
|
|
57
47
|
() => {
|
|
@@ -59,7 +49,7 @@ const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchSha
|
|
|
59
49
|
},
|
|
60
50
|
{ deep: !0 }
|
|
61
51
|
);
|
|
62
|
-
}),
|
|
52
|
+
}), l.forEach((t) => {
|
|
63
53
|
this.$watch(t, () => {
|
|
64
54
|
this.initOptionsWatcher(), this.refresh();
|
|
65
55
|
});
|
|
@@ -133,13 +123,13 @@ const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchSha
|
|
|
133
123
|
this.group && (e.group = this.group), e.setOption(t || this.manualOptions || this.options || {}, !0), Object.keys(this.$listeners).forEach((i) => {
|
|
134
124
|
const h = this.$listeners[i];
|
|
135
125
|
i.indexOf("zr:") === 0 ? e.getZr().on(i.slice(3), h) : e.on(i, h);
|
|
136
|
-
}), this.autoResize && (this.lastArea = this.getArea(), this.__resizeHandler =
|
|
126
|
+
}), this.autoResize && (this.lastArea = this.getArea(), this.__resizeHandler = a(
|
|
137
127
|
() => {
|
|
138
128
|
this.lastArea === 0 ? (this.mergeOptions({}, !0), this.resize(), this.mergeOptions(this.options || this.manualOptions || {}, !0)) : this.resize(), this.lastArea = this.getArea();
|
|
139
129
|
},
|
|
140
130
|
100,
|
|
141
131
|
{ leading: !0 }
|
|
142
|
-
),
|
|
132
|
+
), n(this.$el, this.__resizeHandler)), Object.defineProperties(this, {
|
|
143
133
|
// Only recalculated when accessed from JavaScript.
|
|
144
134
|
// Won't update DOM on value change because getters
|
|
145
135
|
// don't depend on reactive values
|
|
@@ -171,14 +161,14 @@ const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchSha
|
|
|
171
161
|
));
|
|
172
162
|
},
|
|
173
163
|
destroy() {
|
|
174
|
-
this.autoResize &&
|
|
164
|
+
this.autoResize && o(this.$el, this.__resizeHandler), this.dispose(), this.chart = null;
|
|
175
165
|
},
|
|
176
166
|
refresh() {
|
|
177
167
|
this.chart && (this.destroy(), this.init());
|
|
178
168
|
}
|
|
179
169
|
},
|
|
180
170
|
connect(t) {
|
|
181
|
-
|
|
171
|
+
r(t) || (t = t.map((e) => e.chart)), s.connect(t);
|
|
182
172
|
},
|
|
183
173
|
disconnect(t) {
|
|
184
174
|
s.disConnect(t);
|
|
@@ -193,24 +183,21 @@ const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchSha
|
|
|
193
183
|
s.registerTheme(t, e);
|
|
194
184
|
},
|
|
195
185
|
graphic: s.graphic
|
|
196
|
-
}
|
|
197
|
-
var
|
|
198
|
-
|
|
199
|
-
|
|
186
|
+
};
|
|
187
|
+
var g = function() {
|
|
188
|
+
var e = this, i = e._self._c;
|
|
189
|
+
return i("div", { staticClass: "echarts", style: { width: e.width, height: e.height } });
|
|
190
|
+
}, u = [], f = /* @__PURE__ */ d(
|
|
200
191
|
p,
|
|
192
|
+
g,
|
|
193
|
+
u,
|
|
201
194
|
!1,
|
|
202
|
-
|
|
195
|
+
null,
|
|
203
196
|
null,
|
|
204
197
|
null,
|
|
205
198
|
null
|
|
206
199
|
);
|
|
207
|
-
|
|
208
|
-
for (let e in r)
|
|
209
|
-
this[e] = r[e];
|
|
210
|
-
}
|
|
211
|
-
const z = /* @__PURE__ */ function() {
|
|
212
|
-
return _.exports;
|
|
213
|
-
}();
|
|
200
|
+
const M = f.exports;
|
|
214
201
|
export {
|
|
215
|
-
|
|
202
|
+
M as default
|
|
216
203
|
};
|
package/easy-popup/index.mjs
CHANGED
|
@@ -1,50 +1,22 @@
|
|
|
1
|
-
var d = (e, t
|
|
2
|
-
var
|
|
1
|
+
var d = (i, e, t) => new Promise((o, r) => {
|
|
2
|
+
var l = (s) => {
|
|
3
3
|
try {
|
|
4
|
-
n(
|
|
5
|
-
} catch (
|
|
6
|
-
a
|
|
4
|
+
n(t.next(s));
|
|
5
|
+
} catch (a) {
|
|
6
|
+
r(a);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, h = (s) => {
|
|
9
9
|
try {
|
|
10
|
-
n(
|
|
11
|
-
} catch (
|
|
12
|
-
a
|
|
10
|
+
n(t.throw(s));
|
|
11
|
+
} catch (a) {
|
|
12
|
+
r(a);
|
|
13
13
|
}
|
|
14
|
-
}, n = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(
|
|
15
|
-
n((
|
|
14
|
+
}, n = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(l, h);
|
|
15
|
+
n((t = t.apply(i, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { getComputedWidth as f, getComputedHeight as
|
|
18
|
-
import { n as
|
|
19
|
-
|
|
20
|
-
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
21
|
-
return i("Transition", {
|
|
22
|
-
attrs: {
|
|
23
|
-
name: "easy-popup"
|
|
24
|
-
}
|
|
25
|
-
}, [e.rendered ? i("div", {
|
|
26
|
-
directives: [{
|
|
27
|
-
name: "show",
|
|
28
|
-
rawName: "v-show",
|
|
29
|
-
value: e.visible,
|
|
30
|
-
expression: "visible"
|
|
31
|
-
}],
|
|
32
|
-
ref: "container",
|
|
33
|
-
class: ["easy-popup", {
|
|
34
|
-
"easy-popup__visible": e.visible,
|
|
35
|
-
"easy-popup__hide": !e.visible,
|
|
36
|
-
"flex-row": e.flexRow,
|
|
37
|
-
"flex-column": e.flexColumn
|
|
38
|
-
}],
|
|
39
|
-
style: e.position,
|
|
40
|
-
on: {
|
|
41
|
-
mouseleave: function(o) {
|
|
42
|
-
e.hideOnMouseLeave && e.hide();
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}, [e._t("default")], 2) : e._e()]);
|
|
46
|
-
}, y = [];
|
|
47
|
-
const x = {
|
|
17
|
+
import { getComputedWidth as f, getComputedHeight as u } from "@web-utils/core";
|
|
18
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
19
|
+
const c = {
|
|
48
20
|
name: "EasyPopup",
|
|
49
21
|
props: {
|
|
50
22
|
// 是否开启边界检测
|
|
@@ -93,8 +65,8 @@ const x = {
|
|
|
93
65
|
return d(this, null, function* () {
|
|
94
66
|
if (this.border) {
|
|
95
67
|
yield this.$nextTick();
|
|
96
|
-
const
|
|
97
|
-
this.axis.x + this.offset.x +
|
|
68
|
+
const i = f(this.$refs.container), e = u(this.$refs.container), t = document.body.offsetWidth, o = document.body.offsetHeight;
|
|
69
|
+
this.axis.x + this.offset.x + i >= t && (this.axis.x = t - i - this.borderWidth - this.offset.x), this.axis.y + this.offset.y + e >= o && (this.axis.y = o - e - this.borderWidth - this.offset.y);
|
|
98
70
|
}
|
|
99
71
|
});
|
|
100
72
|
}
|
|
@@ -103,34 +75,36 @@ const x = {
|
|
|
103
75
|
this.$el.remove();
|
|
104
76
|
},
|
|
105
77
|
methods: {
|
|
106
|
-
show({ clientX:
|
|
107
|
-
this.axis = { x:
|
|
78
|
+
show({ clientX: i, clientY: e }) {
|
|
79
|
+
this.axis = { x: i, y: e }, this.visible || (document.addEventListener("click", this.doHide, !0), this.rendered = !0, this.visible = !0), this.appendToBody && document.body.appendChild(this.$el);
|
|
108
80
|
},
|
|
109
81
|
hide() {
|
|
110
82
|
this.visible = !1, document.removeEventListener("click", this.doHide);
|
|
111
83
|
},
|
|
112
|
-
doHide(
|
|
113
|
-
this.interactive && this.$el.contains(
|
|
84
|
+
doHide(i) {
|
|
85
|
+
this.interactive && this.$el.contains(i.target) || this.hide();
|
|
114
86
|
}
|
|
115
87
|
}
|
|
116
|
-
}
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
-
v,
|
|
88
|
+
};
|
|
89
|
+
var y = function() {
|
|
90
|
+
var e = this, t = e._self._c;
|
|
91
|
+
return t("Transition", { attrs: { name: "easy-popup" } }, [e.rendered ? t("div", { directives: [{ name: "show", rawName: "v-show", value: e.visible, expression: "visible" }], ref: "container", class: [
|
|
92
|
+
"easy-popup",
|
|
93
|
+
{ "easy-popup__visible": e.visible, "easy-popup__hide": !e.visible, "flex-row": e.flexRow, "flex-column": e.flexColumn }
|
|
94
|
+
], style: e.position, on: { mouseleave: function(o) {
|
|
95
|
+
e.hideOnMouseLeave && e.hide();
|
|
96
|
+
} } }, [e._t("default")], 2) : e._e()]);
|
|
97
|
+
}, v = [], x = /* @__PURE__ */ p(
|
|
98
|
+
c,
|
|
120
99
|
y,
|
|
100
|
+
v,
|
|
121
101
|
!1,
|
|
122
|
-
|
|
102
|
+
null,
|
|
123
103
|
null,
|
|
124
104
|
null,
|
|
125
105
|
null
|
|
126
106
|
);
|
|
127
|
-
|
|
128
|
-
for (let t in l)
|
|
129
|
-
this[t] = l[t];
|
|
130
|
-
}
|
|
131
|
-
const g = /* @__PURE__ */ function() {
|
|
132
|
-
return _.exports;
|
|
133
|
-
}();
|
|
107
|
+
const w = x.exports;
|
|
134
108
|
export {
|
|
135
|
-
|
|
109
|
+
w as default
|
|
136
110
|
};
|