@web-utils/component 2.0.2 → 2.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/dist/chunks/{7af3ceb1.js → 3a79781b.js} +3 -3
- package/dist/chunks/{df803484.js → 41a066be.js} +0 -0
- package/dist/chunks/{163eed3b.js → 5a78e0db.js} +0 -0
- package/dist/chunks/{6499de3a.js → 5d4282fb.js} +0 -0
- package/dist/chunks/{a73fe8ee.js → 61ad06b2.js} +0 -0
- package/dist/chunks/{86bcadec.js → 76680a03.js} +2 -2
- package/dist/chunks/{8bbde9bf.js → 8c0142e0.js} +0 -0
- package/dist/chunks/{90bd3d52.js → 97652d86.js} +5 -5
- package/dist/chunks/{92404ceb.js → b4acd3a6.js} +3 -3
- package/dist/chunks/{2bd4e340.js → f71045fc.js} +0 -0
- package/dist/components/address-input/index.js +2 -2
- package/dist/components/aside-menu/index.js +1 -1
- package/dist/components/awesome-button/index.js +1 -1
- package/dist/components/capsule-tab/index.js +1 -1
- package/dist/components/chunk-file-uploader/index.js +2 -2
- package/dist/components/chunk-file-uploader-button/index.js +2 -2
- package/dist/components/chunk-file-uploader-drop/index.js +2 -2
- package/dist/components/chunk-file-uploader-file/index.js +3 -3
- package/dist/components/chunk-file-uploader-files/index.js +2 -2
- package/dist/components/chunk-file-uploader-list/index.js +2 -2
- package/dist/components/chunk-file-uploader-un-support/index.js +2 -2
- package/dist/components/code-mirror-editor/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/confirm-button/index.js +3 -3
- package/dist/components/confirmable/index.js +2 -2
- package/dist/components/context-menu/index.js +1 -1
- package/dist/components/custom-scrollbar/index.js +2 -3
- package/dist/components/data-table-picker/index.js +5 -5
- package/dist/components/dynamic-table/index.js +6 -6
- package/dist/components/e-charts/index.js +1 -1
- package/dist/components/editable-progress/index.js +1 -1
- package/dist/components/editable-tree/index.js +192 -192
- package/dist/components/egd-collapse/index.js +1 -1
- package/dist/components/egd-collapse-item/index.js +1 -1
- package/dist/components/element-dialog/index.js +4 -4
- package/dist/components/empty-view/index.js +2 -2
- package/dist/components/error-view/index.js +2 -2
- package/dist/components/flex-column/index.js +2 -2
- package/dist/components/flex-item/index.js +2 -2
- package/dist/components/flex-row/index.js +2 -2
- package/dist/components/flex-scroller/index.js +1 -1
- package/dist/components/form-button/index.js +2 -2
- package/dist/components/form-cascader/index.js +4 -4
- package/dist/components/form-checkbox-group/index.js +13 -13
- package/dist/components/form-date-picker/index.js +9 -9
- package/dist/components/form-holder/index.js +3 -3
- package/dist/components/form-input/index.js +3 -3
- package/dist/components/form-input-email/index.js +4 -4
- package/dist/components/form-input-id-card/index.js +4 -4
- package/dist/components/form-input-number/index.js +4 -4
- package/dist/components/form-input-phone-number/index.js +4 -4
- package/dist/components/form-input-time/index.js +6 -6
- package/dist/components/form-item/index.js +4 -5
- package/dist/components/form-item-config-provider/index.js +1 -1
- package/dist/components/form-item-group/index.js +2 -2
- package/dist/components/form-radio-group/index.js +13 -13
- package/dist/components/form-select/index.js +14 -14
- package/dist/components/form-switch/index.js +3 -3
- package/dist/components/form-textarea/index.js +3 -3
- package/dist/components/form-view/index.js +7 -7
- package/dist/components/guide-steps/index.js +1 -1
- package/dist/components/icon-card/index.js +1 -1
- package/dist/components/iframe-window/index.js +3 -3
- package/dist/components/input-number/index.js +2 -2
- package/dist/components/input-number-range/index.js +2 -2
- package/dist/components/keep-view-alive/index.js +1 -1
- package/dist/components/loading-view/index.js +2 -2
- package/dist/components/nav-bar/index.js +2 -2
- package/dist/components/not-implement/index.js +2 -2
- package/dist/components/page/index.js +1 -1
- package/dist/components/page-header/index.js +2 -2
- package/dist/components/page-index/index.js +4 -4
- package/dist/components/page-index-top/index.js +3 -3
- package/dist/components/page-skeleton/index.js +1 -1
- package/dist/components/page-skeleton-new/index.js +4 -4
- package/dist/components/pageable-table/index.js +8 -8
- package/dist/components/pageable-view/index.js +5 -5
- package/dist/components/photo-swipe/index.js +5 -5
- package/dist/components/resize-observer/index.js +2 -2
- package/dist/components/search-popover/index.js +6 -6
- package/dist/components/sign-panel/index.js +11 -11
- package/dist/components/split-pane/index.js +1 -1
- package/dist/components/stateful/index.js +1 -1
- package/dist/components/static-pageable-table/index.js +2 -2
- package/dist/components/swiper/index.js +1 -1
- package/dist/components/tab/index.js +2 -2
- package/dist/components/tab-item/index.js +2 -2
- package/dist/components/table-column/index.js +1 -1
- package/dist/components/table-view/index.js +12 -12
- package/dist/components/tag-render/index.js +3 -3
- package/dist/components/tinymce-editor/index.js +3 -3
- package/dist/components/tinymce-wrapper/index.js +393 -393
- package/dist/components/toolbar/index.js +40 -40
- package/dist/components/toolbar-button/index.js +1 -1
- package/dist/components/trigger/index.js +1 -1
- package/dist/components/vue-tags-input/index.js +3 -3
- package/dist/components/watermark/index.js +2 -2
- package/dist/components/x-dialog/index.js +6 -6
- package/dist/index.css +0 -63
- package/dist/index.es.js +606 -608
- package/package.json +22 -22
- package/web-types.json +1 -1
|
@@ -38,7 +38,7 @@ const v = {
|
|
|
38
38
|
},
|
|
39
39
|
message: {
|
|
40
40
|
type: String,
|
|
41
|
-
default: "
|
|
41
|
+
default: "你确定要删除该记录吗?"
|
|
42
42
|
},
|
|
43
43
|
confirmable: {
|
|
44
44
|
type: Boolean,
|
|
@@ -46,7 +46,7 @@ const v = {
|
|
|
46
46
|
},
|
|
47
47
|
confirmText: {
|
|
48
48
|
type: String,
|
|
49
|
-
default: "
|
|
49
|
+
default: "你确定要删除该记录吗?"
|
|
50
50
|
},
|
|
51
51
|
confirmType: {
|
|
52
52
|
type: String,
|
|
@@ -55,7 +55,7 @@ const v = {
|
|
|
55
55
|
loadable: Boolean,
|
|
56
56
|
loadingText: {
|
|
57
57
|
type: String,
|
|
58
|
-
default: "
|
|
58
|
+
default: "正在处理中请稍候..."
|
|
59
59
|
},
|
|
60
60
|
tag: {
|
|
61
61
|
type: String,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
function c(r) {
|
|
2
2
|
const n = Math.floor(r / 31536e3);
|
|
3
3
|
if (n)
|
|
4
|
-
return `${n}
|
|
4
|
+
return `${n} 年${o(n)}`;
|
|
5
5
|
const t = Math.floor((r %= 31536e3) / 86400);
|
|
6
6
|
if (t)
|
|
7
|
-
return `${t}
|
|
7
|
+
return `${t} 天${o(t)}`;
|
|
8
8
|
const s = Math.floor((r %= 86400) / 3600);
|
|
9
9
|
if (s)
|
|
10
|
-
return `${s}
|
|
10
|
+
return `${s} 时${o(s)}`;
|
|
11
11
|
const e = Math.floor((r %= 3600) / 60);
|
|
12
12
|
if (e)
|
|
13
|
-
return `${e}
|
|
13
|
+
return `${e} 分${o(e)}`;
|
|
14
14
|
const u = r % 60;
|
|
15
|
-
return `${u}
|
|
15
|
+
return `${u} 秒${o(u)}`;
|
|
16
16
|
function o(a) {
|
|
17
17
|
return a > 1, "";
|
|
18
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as r } from "./
|
|
1
|
+
import { i as r } from "./f71045fc.js";
|
|
2
2
|
import { Col as i, FormItem as a } from "element-ui";
|
|
3
3
|
const u = ["span"], s = [...Object.keys(i.props)], n = s.filter((e) => !u.includes(e)), p = ["label", "prop", "rules", "labelWidth", "required"], l = [...Object.keys(a.props)], m = l.filter((e) => !p.includes(e)), f = [
|
|
4
4
|
"wrapCol",
|
|
@@ -76,11 +76,11 @@ const u = ["span"], s = [...Object.keys(i.props)], n = s.filter((e) => !u.includ
|
|
|
76
76
|
},
|
|
77
77
|
computed: {
|
|
78
78
|
prefix() {
|
|
79
|
-
return this.prefixConfig ? "
|
|
79
|
+
return this.prefixConfig ? "请配置" : this.prefixPick ? "请选择" : "请输入";
|
|
80
80
|
},
|
|
81
81
|
message() {
|
|
82
82
|
var e;
|
|
83
|
-
return `${this.prefix}${((e = this.label) == null ? void 0 : e.replace("
|
|
83
|
+
return `${this.prefix}${((e = this.label) == null ? void 0 : e.replace(":", "")) || ""}`;
|
|
84
84
|
},
|
|
85
85
|
computeRules() {
|
|
86
86
|
const e = [...this.rules || []];
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as l } from "../../chunks/
|
|
1
|
+
import { n as l } from "../../chunks/5d4282fb.js";
|
|
2
2
|
var r = function() {
|
|
3
3
|
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
4
4
|
return t("div", {
|
|
@@ -25,7 +25,7 @@ var r = function() {
|
|
|
25
25
|
staticClass: "address-input-item-wrapper flex-item"
|
|
26
26
|
}, [t("ElInput", {
|
|
27
27
|
attrs: {
|
|
28
|
-
placeholder: "
|
|
28
|
+
placeholder: "请输入详细地址!",
|
|
29
29
|
disabled: e.inputDisabled
|
|
30
30
|
},
|
|
31
31
|
model: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import a from "simple-uploader.js";
|
|
2
|
-
import { k as r } from "../../chunks/
|
|
3
|
-
import { n } from "../../chunks/
|
|
2
|
+
import { k as r } from "../../chunks/97652d86.js";
|
|
3
|
+
import { n } from "../../chunks/5d4282fb.js";
|
|
4
4
|
var u = function() {
|
|
5
5
|
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
6
6
|
return i("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as r, s as o } from "../../chunks/
|
|
2
|
-
import { n as a } from "../../chunks/
|
|
1
|
+
import { u as r, s as o } from "../../chunks/5a78e0db.js";
|
|
2
|
+
import { n as a } from "../../chunks/5d4282fb.js";
|
|
3
3
|
var l = function() {
|
|
4
4
|
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
5
5
|
return s("label", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as t, s as n } from "../../chunks/
|
|
2
|
-
import { n as a } from "../../chunks/
|
|
1
|
+
import { u as t, s as n } from "../../chunks/5a78e0db.js";
|
|
2
|
+
import { n as a } from "../../chunks/5d4282fb.js";
|
|
3
3
|
var p = function() {
|
|
4
4
|
var o = this, r = o.$createElement, s = o._self._c || r;
|
|
5
5
|
return s("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import n from "simple-uploader.js";
|
|
2
|
-
import { s as p } from "../../chunks/
|
|
3
|
-
import { n as f } from "../../chunks/
|
|
2
|
+
import { s as p } from "../../chunks/97652d86.js";
|
|
3
|
+
import { n as f } from "../../chunks/5d4282fb.js";
|
|
4
4
|
const o = ["fileProgress", "fileSuccess", "fileComplete", "fileError"];
|
|
5
5
|
var u = function() {
|
|
6
6
|
var e = this, i = e.$createElement, s = e._self._c || i;
|
|
@@ -62,7 +62,7 @@ var u = function() {
|
|
|
62
62
|
on: {
|
|
63
63
|
click: e.resume
|
|
64
64
|
}
|
|
65
|
-
}, [e._v("
|
|
65
|
+
}, [e._v("️")]), s("span", {
|
|
66
66
|
staticClass: "chunk-file-uploader-file-retry",
|
|
67
67
|
on: {
|
|
68
68
|
click: e.retry
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as r } from "../../chunks/
|
|
2
|
-
import { n as s } from "../../chunks/
|
|
1
|
+
import { u as r } from "../../chunks/5a78e0db.js";
|
|
2
|
+
import { n as s } from "../../chunks/5d4282fb.js";
|
|
3
3
|
var o = function() {
|
|
4
4
|
var e = this, n = e.$createElement, t = e._self._c || n;
|
|
5
5
|
return t("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as r } from "../../chunks/
|
|
2
|
-
import { n as s } from "../../chunks/
|
|
1
|
+
import { u as r } from "../../chunks/5a78e0db.js";
|
|
2
|
+
import { n as s } from "../../chunks/5d4282fb.js";
|
|
3
3
|
var o = function() {
|
|
4
4
|
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
5
5
|
return i("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as o, s } from "../../chunks/
|
|
2
|
-
import { n as a } from "../../chunks/
|
|
1
|
+
import { u as o, s } from "../../chunks/5a78e0db.js";
|
|
2
|
+
import { n as a } from "../../chunks/5d4282fb.js";
|
|
3
3
|
var i = function() {
|
|
4
4
|
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
5
5
|
return t("div", {
|
|
@@ -12,7 +12,7 @@ import "codemirror/addon/fold/foldgutter";
|
|
|
12
12
|
import "codemirror/addon/fold/foldgutter.css";
|
|
13
13
|
import "codemirror/addon/fold/brace-fold";
|
|
14
14
|
import "codemirror/addon/fold/comment-fold";
|
|
15
|
-
import { n as j } from "../../chunks/
|
|
15
|
+
import { n as j } from "../../chunks/5d4282fb.js";
|
|
16
16
|
var M = function() {
|
|
17
17
|
var i = {}, l = function() {
|
|
18
18
|
var m = { trace: function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import s from "element-ui/packages/color-picker/src/color";
|
|
2
2
|
import l from "element-ui/src/utils/clickoutside";
|
|
3
|
-
import { n } from "../../chunks/
|
|
3
|
+
import { n } from "../../chunks/5d4282fb.js";
|
|
4
4
|
var c = function() {
|
|
5
5
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
6
6
|
return t("ElColorPickerDropdown", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e } from "../../chunks/
|
|
2
|
-
import { n as o } from "../../chunks/
|
|
1
|
+
import { c as e } from "../../chunks/3a79781b.js";
|
|
2
|
+
import { n as o } from "../../chunks/5d4282fb.js";
|
|
3
3
|
const i = {
|
|
4
4
|
props: {
|
|
5
5
|
type: {
|
|
@@ -22,7 +22,7 @@ const i = {
|
|
|
22
22
|
round: Boolean,
|
|
23
23
|
text: {
|
|
24
24
|
type: String,
|
|
25
|
-
default: "
|
|
25
|
+
default: "删除"
|
|
26
26
|
},
|
|
27
27
|
tag: {
|
|
28
28
|
type: String,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "overlayscrollbars";
|
|
2
2
|
import "overlayscrollbars/css/OverlayScrollbars.css";
|
|
3
|
-
import { n as l } from "../../chunks/
|
|
3
|
+
import { n as l } from "../../chunks/5d4282fb.js";
|
|
4
4
|
var i = function() {
|
|
5
5
|
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
6
6
|
return s("div", {
|
|
@@ -91,8 +91,7 @@ const n = {
|
|
|
91
91
|
);
|
|
92
92
|
},
|
|
93
93
|
activated() {
|
|
94
|
-
|
|
95
|
-
this.$refs.viewport.scrollTop = (t = this.scrollOffset) != null ? t : 0;
|
|
94
|
+
this.$refs.viewport.scrollTop = this.scrollOffset ?? 0;
|
|
96
95
|
},
|
|
97
96
|
deactivated() {
|
|
98
97
|
this.scrollOffset = this.$refs.viewport.scrollTop;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dialog as o } from "@web-utils/core/dist/mixin/index";
|
|
2
|
-
import { f as r } from "../../chunks/
|
|
3
|
-
import { n as s } from "../../chunks/
|
|
2
|
+
import { f as r } from "../../chunks/f71045fc.js";
|
|
3
|
+
import { n as s } from "../../chunks/5d4282fb.js";
|
|
4
4
|
var a = function() {
|
|
5
5
|
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
6
6
|
return l("ElementDialog", {
|
|
@@ -54,14 +54,14 @@ var a = function() {
|
|
|
54
54
|
on: {
|
|
55
55
|
click: e.confirm
|
|
56
56
|
}
|
|
57
|
-
}, [e._v("
|
|
57
|
+
}, [e._v(" 确 定 ")]), l("ElButton", {
|
|
58
58
|
attrs: {
|
|
59
59
|
size: "mini"
|
|
60
60
|
},
|
|
61
61
|
on: {
|
|
62
62
|
click: e.close
|
|
63
63
|
}
|
|
64
|
-
}, [e._v("
|
|
64
|
+
}, [e._v(" 关 闭 ")])];
|
|
65
65
|
},
|
|
66
66
|
proxy: !0
|
|
67
67
|
}], null, !0)
|
|
@@ -111,7 +111,7 @@ const u = {
|
|
|
111
111
|
},
|
|
112
112
|
confirm() {
|
|
113
113
|
var e;
|
|
114
|
-
this.multiple ? (e = this.selectedRows) != null && e.length ? (this.$emit("confirm", this.selectedRows), this.close()) : this.$message.warning("
|
|
114
|
+
this.multiple ? (e = this.selectedRows) != null && e.length ? (this.$emit("confirm", this.selectedRows), this.close()) : this.$message.warning("请选择") : this.currentRow ? (this.$emit("confirm", this.currentRow), this.close()) : this.$message.warning("请选择");
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}, i = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fastClone as u, validateNumber as d, validateIdCard as c, validatePhoneNum as m } from "@web-utils/core";
|
|
2
|
-
import { n as f } from "../../chunks/
|
|
2
|
+
import { n as f } from "../../chunks/5d4282fb.js";
|
|
3
3
|
var h = function() {
|
|
4
4
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
5
5
|
return t("div", {
|
|
@@ -37,7 +37,7 @@ var h = function() {
|
|
|
37
37
|
attrs: {
|
|
38
38
|
"prefix-icon": e.getIcon(a),
|
|
39
39
|
disabled: e.inputDisabled,
|
|
40
|
-
placeholder: e.inputDisabled ? "" :
|
|
40
|
+
placeholder: e.inputDisabled ? "" : `请输入${a.label}!`
|
|
41
41
|
},
|
|
42
42
|
model: {
|
|
43
43
|
value: n[a.prop],
|
|
@@ -52,7 +52,7 @@ var h = function() {
|
|
|
52
52
|
});
|
|
53
53
|
}), e.inputDisabled ? e._e() : t("ElTableColumn", {
|
|
54
54
|
attrs: {
|
|
55
|
-
label: "
|
|
55
|
+
label: "操作",
|
|
56
56
|
width: "60",
|
|
57
57
|
fixed: "right"
|
|
58
58
|
},
|
|
@@ -68,7 +68,7 @@ var h = function() {
|
|
|
68
68
|
color: "#f00"
|
|
69
69
|
},
|
|
70
70
|
attrs: {
|
|
71
|
-
title: "
|
|
71
|
+
title: "删除"
|
|
72
72
|
},
|
|
73
73
|
on: {
|
|
74
74
|
click: function(s) {
|
|
@@ -89,7 +89,7 @@ var h = function() {
|
|
|
89
89
|
on: {
|
|
90
90
|
click: e.addRow
|
|
91
91
|
}
|
|
92
|
-
}, [e._v("
|
|
92
|
+
}, [e._v(" 添加 ")])], 1);
|
|
93
93
|
}, y = [];
|
|
94
94
|
const o = {
|
|
95
95
|
number: "fa fa-superscript",
|
|
@@ -167,7 +167,7 @@ const o = {
|
|
|
167
167
|
const i = e.rules;
|
|
168
168
|
if (["email", "idCard", "phone", "number"].includes(e.type)) {
|
|
169
169
|
const t = u(i || []);
|
|
170
|
-
return e.type === "number" && t.push({ validator: d, message: "
|
|
170
|
+
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;
|
|
171
171
|
} else
|
|
172
172
|
return i;
|
|
173
173
|
}
|
|
@@ -4,7 +4,7 @@ import { TitleComponent as u, TooltipComponent as f, GridComponent as m, LegendC
|
|
|
4
4
|
import { CanvasRenderer as w } from "echarts/renderers";
|
|
5
5
|
import { debounce as M, isString as R } from "@web-utils/core";
|
|
6
6
|
import { addListener as y, removeListener as z } from "resize-detector";
|
|
7
|
-
import { n as v } from "../../chunks/
|
|
7
|
+
import { n as v } from "../../chunks/5d4282fb.js";
|
|
8
8
|
var S = function() {
|
|
9
9
|
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
10
10
|
return i("div", {
|