@web-utils/component 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/address-input/index.mjs +14 -14
- package/chat/index.mjs +39 -40
- package/chunk-file-uploader/index.mjs +35 -594
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/FormTemp.d079292b.mjs +139 -0
- package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
- package/chunks/detail.d6f8e347.mjs +29 -0
- package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
- package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
- package/chunks/form-input-mixin.78a567bc.mjs +24 -0
- package/chunks/form-item-mixin.57cb2019.mjs +140 -0
- package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
- package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
- package/chunks/input-number-mixin.41a066be.mjs +60 -0
- package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
- package/count-up/index.mjs +17 -14
- package/data-box/index.mjs +18 -19
- package/data-display/index.mjs +17 -18
- package/data-icons/index.mjs +16 -17
- package/data-panel/index.mjs +20 -21
- package/data-pay/index.mjs +15 -16
- package/data-progress/index.mjs +19 -20
- package/data-rotate/index.mjs +35 -36
- package/data-table-picker/index.mjs +23 -25
- package/data-tabs/index.mjs +15 -16
- package/dialog-form/index.mjs +11 -12
- package/dynamic-table/index.mjs +34 -35
- package/easy-popup/index.mjs +56 -29
- package/editable-tree/index.mjs +485 -134
- package/element-dialog/index.mjs +127 -37
- package/empty-view/index.mjs +31 -13
- 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 +40 -105
- package/flow-designer/index.mjs +555 -615
- package/flow-node/index.mjs +47 -15
- package/flow-viewer/index.mjs +78 -167
- package/form-cascader/index.mjs +24 -24
- package/form-checkbox-group/index.mjs +35 -79
- package/form-date-picker/index.mjs +22 -22
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +86 -28
- package/form-input-email/index.mjs +18 -18
- package/form-input-id-card/index.mjs +27 -27
- package/form-input-number/index.mjs +59 -219
- package/form-input-phone-number/index.mjs +27 -27
- package/form-input-tag/index.mjs +38 -160
- package/form-input-time/index.mjs +16 -16
- package/form-item/index.mjs +146 -15
- package/form-item-group/index.mjs +164 -14
- package/form-radio-group/index.mjs +41 -41
- package/form-select/index.mjs +20 -20
- package/form-switch/index.mjs +19 -19
- package/form-textarea/index.mjs +29 -29
- package/form-view/index.mjs +42 -46
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +15 -15
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +2824 -210
- package/fy-date/index.mjs +59 -17
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +208 -64
- package/fy-empty/index.mjs +29 -12
- package/fy-form/index.mjs +743 -178
- package/fy-form-design/index.mjs +1013 -1540
- package/fy-input/index.mjs +105 -17
- package/fy-input-color/index.mjs +67 -16
- package/fy-input-icon/index.mjs +119 -23
- package/fy-input-map/index.mjs +14 -15
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +19 -21
- package/fy-input-tree/index.mjs +3 -3
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +50 -16
- package/fy-select/index.mjs +126 -29
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +51 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +23 -25
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/highlight-j-s/index.mjs +29 -19
- package/icon-temp/index.mjs +30 -12
- package/iframe-window/index.mjs +18 -19
- package/image-cropper/index.mjs +22 -23
- package/image-preview/index.mjs +1 -1
- package/input-number/index.mjs +173 -63
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +33 -15
- package/login/index.mjs +1 -1
- package/nav-bar/index.mjs +31 -15
- package/package.json +1 -1
- package/page/index.mjs +20 -12
- package/page-header/index.mjs +34 -13
- package/page-index-top/index.mjs +53 -100
- package/page-skeleton/index.mjs +35 -18
- package/page-skeleton-new/index.mjs +15 -16
- package/pageable-table/index.mjs +228 -86
- package/pageable-view/index.mjs +1 -1
- package/present-view/index.mjs +71 -75
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +29 -21
- package/search/index.mjs +9 -9
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +45 -40
- package/swiper/index.mjs +13 -14
- package/table-view/index.mjs +97 -631
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +63 -63
- package/toolbar/index.mjs +208 -15
- package/toolbar-button/index.mjs +56 -30
- package/verify/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +118 -49
- package/chunks/CountUp.f1a19f35.mjs +0 -124
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
- package/chunks/ElementDialog.d8f3105c.mjs +0 -211
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
- package/chunks/EmptyView.e2430422.mjs +0 -51
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
- package/chunks/FormItem.2920ac0c.mjs +0 -45
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
- package/chunks/FormItemGroup.41daddb6.mjs +0 -64
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
- package/chunks/FyCurd.8acd2983.mjs +0 -548
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
- package/chunks/FyForm.0294e494.mjs +0 -439
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
- package/chunks/IconTemp.42c48e1f.mjs +0 -32
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
- package/chunks/Page.81f4b8d9.mjs +0 -32
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
- package/chunks/PageableTable.333cbdc1.mjs +0 -335
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
- package/chunks/ResizeObserver.60f728f0.mjs +0 -54
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
- package/chunks/TableColumn.8503272e.mjs +0 -106
- package/chunks/Toolbar.5c539dbb.mjs +0 -24
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
8
|
-
return n(s, {
|
|
1
|
+
import { f as o } from "../chunks/index.57f871af.mjs";
|
|
2
|
+
import l from "element-ui/lib/button";
|
|
3
|
+
import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
+
var s = function() {
|
|
5
|
+
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
6
|
+
return i("ElementDialog", {
|
|
9
7
|
ref: "dialog",
|
|
10
8
|
attrs: {
|
|
11
9
|
visible: e.visible,
|
|
@@ -21,7 +19,7 @@ var a = function() {
|
|
|
21
19
|
scopedSlots: e._u([{
|
|
22
20
|
key: "default",
|
|
23
21
|
fn: function() {
|
|
24
|
-
return [e._t("search-form"),
|
|
22
|
+
return [e._t("search-form"), i("PageableTable", {
|
|
25
23
|
ref: "pageableTable",
|
|
26
24
|
staticStyle: {
|
|
27
25
|
height: "60vh"
|
|
@@ -46,7 +44,7 @@ var a = function() {
|
|
|
46
44
|
}, {
|
|
47
45
|
key: "footer",
|
|
48
46
|
fn: function() {
|
|
49
|
-
return [
|
|
47
|
+
return [i(l, {
|
|
50
48
|
attrs: {
|
|
51
49
|
size: "mini",
|
|
52
50
|
type: "primary"
|
|
@@ -54,7 +52,7 @@ var a = function() {
|
|
|
54
52
|
on: {
|
|
55
53
|
click: e.confirm
|
|
56
54
|
}
|
|
57
|
-
}, [e._v(" 确 定 ")]),
|
|
55
|
+
}, [e._v(" 确 定 ")]), i(l, {
|
|
58
56
|
attrs: {
|
|
59
57
|
size: "mini"
|
|
60
58
|
},
|
|
@@ -66,8 +64,8 @@ var a = function() {
|
|
|
66
64
|
proxy: !0
|
|
67
65
|
}], null, !0)
|
|
68
66
|
});
|
|
69
|
-
},
|
|
70
|
-
const
|
|
67
|
+
}, a = [];
|
|
68
|
+
const c = {
|
|
71
69
|
name: "DataTablePicker",
|
|
72
70
|
props: {
|
|
73
71
|
visible: Boolean,
|
|
@@ -99,7 +97,7 @@ const m = {
|
|
|
99
97
|
};
|
|
100
98
|
},
|
|
101
99
|
methods: {
|
|
102
|
-
filterTableColumnProperties:
|
|
100
|
+
filterTableColumnProperties: o,
|
|
103
101
|
selectionChange(e) {
|
|
104
102
|
this.selectedRows = e;
|
|
105
103
|
},
|
|
@@ -117,24 +115,24 @@ const m = {
|
|
|
117
115
|
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("请选择");
|
|
118
116
|
}
|
|
119
117
|
}
|
|
120
|
-
},
|
|
121
|
-
var
|
|
122
|
-
|
|
118
|
+
}, n = {};
|
|
119
|
+
var u = /* @__PURE__ */ r(
|
|
120
|
+
c,
|
|
121
|
+
s,
|
|
123
122
|
a,
|
|
124
|
-
u,
|
|
125
123
|
!1,
|
|
126
|
-
|
|
124
|
+
h,
|
|
127
125
|
null,
|
|
128
126
|
null,
|
|
129
127
|
null
|
|
130
128
|
);
|
|
131
|
-
function
|
|
132
|
-
for (let t in
|
|
133
|
-
this[t] =
|
|
129
|
+
function h(e) {
|
|
130
|
+
for (let t in n)
|
|
131
|
+
this[t] = n[t];
|
|
134
132
|
}
|
|
135
|
-
const
|
|
136
|
-
return
|
|
133
|
+
const p = /* @__PURE__ */ function() {
|
|
134
|
+
return u.exports;
|
|
137
135
|
}();
|
|
138
136
|
export {
|
|
139
|
-
|
|
137
|
+
p as default
|
|
140
138
|
};
|
package/data-tabs/index.mjs
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import r from "element-ui/lib/
|
|
3
|
-
import _ from "element-ui/lib/row";
|
|
1
|
+
import i from "element-ui/lib/col";
|
|
2
|
+
import r from "element-ui/lib/row";
|
|
4
3
|
import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
-
var
|
|
4
|
+
var _ = function() {
|
|
6
5
|
var t = this, s = t.$createElement, a = t._self._c || s;
|
|
7
6
|
return a("div", {
|
|
8
7
|
staticClass: "avue-data-tabs"
|
|
9
|
-
}, [a(
|
|
8
|
+
}, [a(r, {
|
|
10
9
|
attrs: {
|
|
11
10
|
span: 24
|
|
12
11
|
}
|
|
13
12
|
}, t._l(t.data, function(n, e) {
|
|
14
|
-
return a(
|
|
13
|
+
return a(i, {
|
|
15
14
|
key: e,
|
|
16
15
|
attrs: {
|
|
17
16
|
md: t.span,
|
|
@@ -29,7 +28,7 @@ var l = function() {
|
|
|
29
28
|
target: n.target
|
|
30
29
|
},
|
|
31
30
|
on: {
|
|
32
|
-
click: function(
|
|
31
|
+
click: function(v) {
|
|
33
32
|
n.click && n.click(n);
|
|
34
33
|
}
|
|
35
34
|
}
|
|
@@ -37,7 +36,7 @@ var l = function() {
|
|
|
37
36
|
staticClass: "item-header"
|
|
38
37
|
}, [a("p", [t._v(t._s(n.title))]), a("span", [t._v(t._s(n.subtitle))])]), a("div", {
|
|
39
38
|
staticClass: "item-body"
|
|
40
|
-
}, [a(
|
|
39
|
+
}, [a("CountUp", {
|
|
41
40
|
staticClass: "h2",
|
|
42
41
|
attrs: {
|
|
43
42
|
decimals: n.decimals || t.decimals,
|
|
@@ -50,8 +49,8 @@ var l = function() {
|
|
|
50
49
|
staticClass: "item-tip"
|
|
51
50
|
}, [t._v(t._s(n.key))])])])]);
|
|
52
51
|
}), 1)], 1);
|
|
53
|
-
},
|
|
54
|
-
const
|
|
52
|
+
}, l = [];
|
|
53
|
+
const p = {
|
|
55
54
|
name: "DataTabs",
|
|
56
55
|
props: {
|
|
57
56
|
option: {
|
|
@@ -75,22 +74,22 @@ const u = {
|
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
76
|
}, o = {};
|
|
78
|
-
var
|
|
79
|
-
u,
|
|
80
|
-
l,
|
|
77
|
+
var u = /* @__PURE__ */ c(
|
|
81
78
|
p,
|
|
79
|
+
_,
|
|
80
|
+
l,
|
|
82
81
|
!1,
|
|
83
|
-
|
|
82
|
+
d,
|
|
84
83
|
null,
|
|
85
84
|
null,
|
|
86
85
|
null
|
|
87
86
|
);
|
|
88
|
-
function
|
|
87
|
+
function d(t) {
|
|
89
88
|
for (let s in o)
|
|
90
89
|
this[s] = o[s];
|
|
91
90
|
}
|
|
92
91
|
const C = /* @__PURE__ */ function() {
|
|
93
|
-
return
|
|
92
|
+
return u.exports;
|
|
94
93
|
}();
|
|
95
94
|
export {
|
|
96
95
|
C as default
|
package/dialog-form/index.mjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { isEmpty as l } from "@web-utils/core";
|
|
2
|
-
import { d as r } from "../chunks/util.
|
|
2
|
+
import { d as r } from "../chunks/util.ae730cde.mjs";
|
|
3
3
|
import c from "vue";
|
|
4
4
|
import m from "element-ui/lib/drawer";
|
|
5
5
|
import d from "@web-utils/component/element-dialog";
|
|
6
6
|
import "@web-utils/component/element-dialog/style.css";
|
|
7
7
|
import n from "element-ui/lib/button";
|
|
8
|
-
import { _ as p } from "../chunks/FyForm.0294e494.mjs";
|
|
9
8
|
import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
10
|
-
var
|
|
9
|
+
var p = function() {
|
|
11
10
|
var e = this, t = e.$createElement, o = e._self._c || t;
|
|
12
11
|
return o(e.dialogType, e._b({
|
|
13
12
|
tag: "Component",
|
|
@@ -22,7 +21,7 @@ var _ = function() {
|
|
|
22
21
|
e.visible = i;
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
|
-
}, "Component", e.dialog, !1), [o(
|
|
24
|
+
}, "Component", e.dialog, !1), [o("FyForm", {
|
|
26
25
|
ref: "form",
|
|
27
26
|
attrs: {
|
|
28
27
|
option: Object.assign({}, e.deepClone(e.option), {
|
|
@@ -67,7 +66,7 @@ var _ = function() {
|
|
|
67
66
|
click: e.reset
|
|
68
67
|
}
|
|
69
68
|
}, [e._v(e._s(e.option.emptyText))]) : e._e()], 1) : e._e()], 1);
|
|
70
|
-
},
|
|
69
|
+
}, _ = [];
|
|
71
70
|
const s = {
|
|
72
71
|
name: "DialogForm",
|
|
73
72
|
components: {
|
|
@@ -135,23 +134,23 @@ s.showForm = (e) => {
|
|
|
135
134
|
return document.body.appendChild(o.$el), o.show(e), o;
|
|
136
135
|
};
|
|
137
136
|
const b = s, a = {};
|
|
138
|
-
var
|
|
137
|
+
var f = /* @__PURE__ */ u(
|
|
139
138
|
b,
|
|
139
|
+
p,
|
|
140
140
|
_,
|
|
141
|
-
f,
|
|
142
141
|
!1,
|
|
143
|
-
|
|
142
|
+
h,
|
|
144
143
|
null,
|
|
145
144
|
null,
|
|
146
145
|
null
|
|
147
146
|
);
|
|
148
|
-
function
|
|
147
|
+
function h(e) {
|
|
149
148
|
for (let t in a)
|
|
150
149
|
this[t] = a[t];
|
|
151
150
|
}
|
|
152
|
-
const
|
|
153
|
-
return
|
|
151
|
+
const $ = /* @__PURE__ */ function() {
|
|
152
|
+
return f.exports;
|
|
154
153
|
}();
|
|
155
154
|
export {
|
|
156
|
-
|
|
155
|
+
$ as default
|
|
157
156
|
};
|
package/dynamic-table/index.mjs
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { fastClone as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import h from "element-ui/lib/
|
|
5
|
-
import y from "element-ui/lib/
|
|
6
|
-
import v from "
|
|
7
|
-
|
|
8
|
-
var w = function() {
|
|
1
|
+
import { fastClone as u, validateNumber as d, validateIdCard as c, validatePhoneNum as m } from "@web-utils/core";
|
|
2
|
+
import _ from "element-ui/lib/button";
|
|
3
|
+
import f from "element-ui/lib/input";
|
|
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() {
|
|
9
8
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
10
9
|
return t("div", {
|
|
11
10
|
staticClass: "dynamic-table"
|
|
12
|
-
}, [t(
|
|
11
|
+
}, [t(y, {
|
|
13
12
|
key: e.key,
|
|
14
13
|
staticStyle: {
|
|
15
14
|
width: "100%"
|
|
@@ -18,7 +17,7 @@ var w = function() {
|
|
|
18
17
|
data: e.value
|
|
19
18
|
}
|
|
20
19
|
}, [e._l(e.columns, function(n) {
|
|
21
|
-
return t(
|
|
20
|
+
return t("TableColumn", {
|
|
22
21
|
key: n.prop,
|
|
23
22
|
attrs: {
|
|
24
23
|
prop: n.prop,
|
|
@@ -29,7 +28,7 @@ var w = function() {
|
|
|
29
28
|
key: "default",
|
|
30
29
|
fn: function(a) {
|
|
31
30
|
var o = a.row, r = a.$index;
|
|
32
|
-
return [t(
|
|
31
|
+
return [t(h, {
|
|
33
32
|
style: {
|
|
34
33
|
marginBottom: e.inputDisabled ? "0px" : "16px"
|
|
35
34
|
},
|
|
@@ -38,7 +37,7 @@ var w = function() {
|
|
|
38
37
|
size: "mini",
|
|
39
38
|
rules: e.getRules(n)
|
|
40
39
|
}
|
|
41
|
-
}, [t(
|
|
40
|
+
}, [t(f, {
|
|
42
41
|
attrs: {
|
|
43
42
|
"prefix-icon": e.getIcon(n),
|
|
44
43
|
disabled: e.inputDisabled,
|
|
@@ -46,8 +45,8 @@ var w = function() {
|
|
|
46
45
|
},
|
|
47
46
|
model: {
|
|
48
47
|
value: o[n.prop],
|
|
49
|
-
callback: function(
|
|
50
|
-
e.$set(o, n.prop,
|
|
48
|
+
callback: function(l) {
|
|
49
|
+
e.$set(o, n.prop, l);
|
|
51
50
|
},
|
|
52
51
|
expression: "row[column.prop]"
|
|
53
52
|
}
|
|
@@ -55,7 +54,7 @@ var w = function() {
|
|
|
55
54
|
}
|
|
56
55
|
}], null, !0)
|
|
57
56
|
});
|
|
58
|
-
}), e.inputDisabled ? e._e() : t(
|
|
57
|
+
}), e.inputDisabled ? e._e() : t("TableColumn", {
|
|
59
58
|
attrs: {
|
|
60
59
|
label: "操作",
|
|
61
60
|
width: "60",
|
|
@@ -76,14 +75,14 @@ var w = function() {
|
|
|
76
75
|
title: "删除"
|
|
77
76
|
},
|
|
78
77
|
on: {
|
|
79
|
-
click: function(
|
|
80
|
-
return
|
|
78
|
+
click: function(l) {
|
|
79
|
+
return l.stopPropagation(), e.removeRow(a, r, o);
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
})];
|
|
84
83
|
}
|
|
85
84
|
}], null, !1, 410881950)
|
|
86
|
-
})], 2), e.inputDisabled ? e._e() : t(
|
|
85
|
+
})], 2), e.inputDisabled ? e._e() : t(_, {
|
|
87
86
|
staticStyle: {
|
|
88
87
|
color: "#08c108"
|
|
89
88
|
},
|
|
@@ -95,13 +94,13 @@ var w = function() {
|
|
|
95
94
|
click: e.addRow
|
|
96
95
|
}
|
|
97
96
|
}, [e._v(" 添加 ")])], 1);
|
|
98
|
-
},
|
|
99
|
-
const
|
|
97
|
+
}, w = [];
|
|
98
|
+
const s = {
|
|
100
99
|
number: "fa fa-superscript",
|
|
101
100
|
email: "el-icon-lx-mail",
|
|
102
101
|
phone: "fa fa-phone",
|
|
103
102
|
idCard: "el-icon-lx-news"
|
|
104
|
-
},
|
|
103
|
+
}, g = {
|
|
105
104
|
name: "DynamicTable",
|
|
106
105
|
inject: {
|
|
107
106
|
elForm: {
|
|
@@ -152,7 +151,7 @@ const p = {
|
|
|
152
151
|
},
|
|
153
152
|
methods: {
|
|
154
153
|
getIcon(e) {
|
|
155
|
-
return
|
|
154
|
+
return s[e.type] ? s[e.type] : "";
|
|
156
155
|
},
|
|
157
156
|
addRow() {
|
|
158
157
|
const e = this.value;
|
|
@@ -171,30 +170,30 @@ const p = {
|
|
|
171
170
|
getRules(e) {
|
|
172
171
|
const i = e.rules;
|
|
173
172
|
if (["email", "idCard", "phone", "number"].includes(e.type)) {
|
|
174
|
-
const t =
|
|
175
|
-
return e.type === "number" && t.push({ validator:
|
|
173
|
+
const t = u(i || []);
|
|
174
|
+
return e.type === "number" && t.push({ validator: d, message: "请输入数字!" }), e.type === "email" && t.push({ type: "email", message: "请输入正确的邮箱地址!" }), e.type === "idCard" && t.push({ validator: c, message: "请输入正确的身份证号码!" }), e.type === "phone" && t.push({ validator: m, message: "请输入正确的手机号码!" }), t;
|
|
176
175
|
} else
|
|
177
176
|
return i;
|
|
178
177
|
}
|
|
179
178
|
}
|
|
180
|
-
},
|
|
181
|
-
var
|
|
182
|
-
x,
|
|
183
|
-
w,
|
|
179
|
+
}, p = {};
|
|
180
|
+
var x = /* @__PURE__ */ v(
|
|
184
181
|
g,
|
|
182
|
+
b,
|
|
183
|
+
w,
|
|
185
184
|
!1,
|
|
186
|
-
|
|
185
|
+
$,
|
|
187
186
|
null,
|
|
188
187
|
null,
|
|
189
188
|
null
|
|
190
189
|
);
|
|
191
|
-
function
|
|
192
|
-
for (let i in
|
|
193
|
-
this[i] =
|
|
190
|
+
function $(e) {
|
|
191
|
+
for (let i in p)
|
|
192
|
+
this[i] = p[i];
|
|
194
193
|
}
|
|
195
|
-
const
|
|
196
|
-
return
|
|
194
|
+
const F = /* @__PURE__ */ function() {
|
|
195
|
+
return x.exports;
|
|
197
196
|
}();
|
|
198
197
|
export {
|
|
199
|
-
|
|
198
|
+
F as default
|
|
200
199
|
};
|
package/easy-popup/index.mjs
CHANGED
|
@@ -1,23 +1,50 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var d = (e, t, i) => new Promise((o, a) => {
|
|
2
|
+
var h = (s) => {
|
|
3
3
|
try {
|
|
4
4
|
n(i.next(s));
|
|
5
5
|
} catch (r) {
|
|
6
|
-
|
|
6
|
+
a(r);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, u = (s) => {
|
|
9
9
|
try {
|
|
10
10
|
n(i.throw(s));
|
|
11
11
|
} catch (r) {
|
|
12
|
-
|
|
12
|
+
a(r);
|
|
13
13
|
}
|
|
14
|
-
}, n = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(
|
|
15
|
-
n((i = i.apply(
|
|
14
|
+
}, n = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(h, u);
|
|
15
|
+
n((i = i.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { getComputedWidth as
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
import { getComputedWidth as f, getComputedHeight as p } from "@web-utils/core";
|
|
18
|
+
import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
19
|
+
var v = function() {
|
|
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 = {
|
|
21
48
|
name: "EasyPopup",
|
|
22
49
|
props: {
|
|
23
50
|
// 是否开启边界检测
|
|
@@ -63,11 +90,11 @@ const m = {
|
|
|
63
90
|
},
|
|
64
91
|
watch: {
|
|
65
92
|
axis() {
|
|
66
|
-
return
|
|
93
|
+
return d(this, null, function* () {
|
|
67
94
|
if (this.border) {
|
|
68
95
|
yield this.$nextTick();
|
|
69
|
-
const
|
|
70
|
-
this.axis.x + this.offset.x +
|
|
96
|
+
const e = f(this.$refs.container), t = p(this.$refs.container), i = document.body.offsetWidth, o = document.body.offsetHeight;
|
|
97
|
+
this.axis.x + this.offset.x + e >= i && (this.axis.x = i - e - this.borderWidth - this.offset.x), this.axis.y + this.offset.y + t >= o && (this.axis.y = o - t - this.borderWidth - this.offset.y);
|
|
71
98
|
}
|
|
72
99
|
});
|
|
73
100
|
}
|
|
@@ -76,34 +103,34 @@ const m = {
|
|
|
76
103
|
this.$el.remove();
|
|
77
104
|
},
|
|
78
105
|
methods: {
|
|
79
|
-
show({ clientX:
|
|
80
|
-
this.axis = { x:
|
|
106
|
+
show({ clientX: e, clientY: t }) {
|
|
107
|
+
this.axis = { x: e, y: t }, this.visible || (document.addEventListener("click", this.doHide, !0), this.rendered = !0, this.visible = !0), this.appendToBody && document.body.appendChild(this.$el);
|
|
81
108
|
},
|
|
82
109
|
hide() {
|
|
83
110
|
this.visible = !1, document.removeEventListener("click", this.doHide);
|
|
84
111
|
},
|
|
85
|
-
doHide(
|
|
86
|
-
this.interactive && this.$el.contains(
|
|
112
|
+
doHide(e) {
|
|
113
|
+
this.interactive && this.$el.contains(e.target) || this.hide();
|
|
87
114
|
}
|
|
88
115
|
}
|
|
89
|
-
},
|
|
90
|
-
var
|
|
91
|
-
m,
|
|
116
|
+
}, l = {};
|
|
117
|
+
var _ = /* @__PURE__ */ c(
|
|
92
118
|
x,
|
|
93
|
-
p,
|
|
94
|
-
!1,
|
|
95
119
|
v,
|
|
120
|
+
y,
|
|
121
|
+
!1,
|
|
122
|
+
m,
|
|
96
123
|
null,
|
|
97
124
|
null,
|
|
98
125
|
null
|
|
99
126
|
);
|
|
100
|
-
function
|
|
101
|
-
for (let
|
|
102
|
-
this[
|
|
127
|
+
function m(e) {
|
|
128
|
+
for (let t in l)
|
|
129
|
+
this[t] = l[t];
|
|
103
130
|
}
|
|
104
|
-
const
|
|
105
|
-
return
|
|
131
|
+
const g = /* @__PURE__ */ function() {
|
|
132
|
+
return _.exports;
|
|
106
133
|
}();
|
|
107
134
|
export {
|
|
108
|
-
|
|
135
|
+
g as default
|
|
109
136
|
};
|