@web-utils/component 2.0.2 → 2.0.4
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 +7 -6
- 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 +22 -61
- package/dist/components/iframe-window/style.css +1 -1
- 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 +12 -68
- package/dist/index.es.js +617 -656
- package/package.json +163 -162
- package/web-types.json +18 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n } from "../../chunks/
|
|
1
|
+
import { n } from "../../chunks/5d4282fb.js";
|
|
2
2
|
var o = function() {
|
|
3
3
|
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
4
4
|
return i("div", {
|
|
@@ -46,7 +46,7 @@ var o = function() {
|
|
|
46
46
|
return s.stopPropagation(), t.up.apply(null, arguments);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
}, [t._v("
|
|
49
|
+
}, [t._v("当前浏览器不支持手写签名 ")])]), i("div", {
|
|
50
50
|
staticClass: "sign-tool-bar"
|
|
51
51
|
}, [i("div", {
|
|
52
52
|
staticClass: "sign-button flex-item",
|
|
@@ -58,7 +58,7 @@ var o = function() {
|
|
|
58
58
|
}
|
|
59
59
|
}, [i("i", {
|
|
60
60
|
staticClass: "fa fa-trash"
|
|
61
|
-
}), t._v("
|
|
61
|
+
}), t._v(" 清除 ")]), i("div", {
|
|
62
62
|
staticClass: "sign-button flex-item",
|
|
63
63
|
staticStyle: {
|
|
64
64
|
color: "red"
|
|
@@ -68,7 +68,7 @@ var o = function() {
|
|
|
68
68
|
}
|
|
69
69
|
}, [i("i", {
|
|
70
70
|
staticClass: "fa fa-close"
|
|
71
|
-
}), t._v("
|
|
71
|
+
}), t._v(" 取消 ")]), i("div", {
|
|
72
72
|
staticClass: "sign-button flex-item",
|
|
73
73
|
staticStyle: {
|
|
74
74
|
color: "orange"
|
|
@@ -78,7 +78,7 @@ var o = function() {
|
|
|
78
78
|
}
|
|
79
79
|
}, [i("i", {
|
|
80
80
|
staticClass: "fa fa-repeat"
|
|
81
|
-
}), t._v("
|
|
81
|
+
}), t._v(" 撤销 ")]), i("div", {
|
|
82
82
|
staticClass: "sign-button flex-item",
|
|
83
83
|
staticStyle: {
|
|
84
84
|
color: "green"
|
|
@@ -88,7 +88,7 @@ var o = function() {
|
|
|
88
88
|
}
|
|
89
89
|
}, [i("i", {
|
|
90
90
|
staticClass: "fa fa-check"
|
|
91
|
-
}), t._v("
|
|
91
|
+
}), t._v(" 确定 ")])])]), i("div", {
|
|
92
92
|
directives: [{
|
|
93
93
|
name: "show",
|
|
94
94
|
rawName: "v-show",
|
|
@@ -106,14 +106,14 @@ var o = function() {
|
|
|
106
106
|
staticClass: "sign-image",
|
|
107
107
|
attrs: {
|
|
108
108
|
src: t.value,
|
|
109
|
-
alt: "
|
|
109
|
+
alt: "签名"
|
|
110
110
|
}
|
|
111
111
|
}) : t._e(), t.value ? t._e() : i("p", {
|
|
112
112
|
staticClass: "sign-tips",
|
|
113
113
|
style: {
|
|
114
114
|
color: !t.value && t.disabled ? "red" : ""
|
|
115
115
|
}
|
|
116
|
-
}, [t._v(" " + t._s(t.disabled ? "
|
|
116
|
+
}, [t._v(" " + t._s(t.disabled ? "未签名" : "点击进行签名") + " ")]), t.disabled ? t._e() : i("i", {
|
|
117
117
|
staticClass: "el-icon-edit-outline sign-edit-icon"
|
|
118
118
|
})])]);
|
|
119
119
|
}, l = [];
|
|
@@ -134,7 +134,7 @@ const c = {
|
|
|
134
134
|
},
|
|
135
135
|
text: {
|
|
136
136
|
type: String,
|
|
137
|
-
default: "
|
|
137
|
+
default: "签名区"
|
|
138
138
|
},
|
|
139
139
|
fontSize: {
|
|
140
140
|
type: Number,
|
|
@@ -156,7 +156,7 @@ const c = {
|
|
|
156
156
|
methods: {
|
|
157
157
|
init() {
|
|
158
158
|
if (this.stack = [], this.canvas = this.$refs.canvas, !this.canvas.getContext) {
|
|
159
|
-
alert("
|
|
159
|
+
alert("当前浏览器不支持手写签名");
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
162
|
this.canvasInit();
|
|
@@ -176,7 +176,7 @@ const c = {
|
|
|
176
176
|
this.ctx = this.canvas.getContext("2d"), this.ctx.lineCap = "round", this.ctx.lineWidth = this.lineWidth, this.ctx.clearRect(0, 0, this.width, this.height), this.blank = this.canvas.toDataURL("image/png");
|
|
177
177
|
},
|
|
178
178
|
drawWaterMark() {
|
|
179
|
-
this.ctx.font = `${this.fontSize}px bold
|
|
179
|
+
this.ctx.font = `${this.fontSize}px bold 黑体`, this.ctx.fillStyle = "#eee", this.ctx.textAlign = "center", this.ctx.shadowBlur = 1, this.ctx.textBaseline = "middle", this.ctx.fillText(this.text, this.width / 2, this.height / 2);
|
|
180
180
|
},
|
|
181
181
|
down(t) {
|
|
182
182
|
this.position(), this.startLine(t.clientX, t.clientY, t), this.target = t.target, this.target.addEventListener("mousemove", this.move), window.addEventListener("mouseup", this.up);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { chunk as n } from "lodash";
|
|
2
|
-
import { n as i } from "../../chunks/
|
|
2
|
+
import { n as i } from "../../chunks/5d4282fb.js";
|
|
3
3
|
var o = function() {
|
|
4
4
|
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
5
5
|
return a("div", {
|
|
@@ -10,7 +10,7 @@ var o = function() {
|
|
|
10
10
|
data: e.records
|
|
11
11
|
}
|
|
12
12
|
}, "ElTable", e.$attrs, !1), e.$listeners), [e._t("default", function() {
|
|
13
|
-
return [e._v("
|
|
13
|
+
return [e._v("请添加表格列")];
|
|
14
14
|
})], 2), a("ElPagination", {
|
|
15
15
|
attrs: {
|
|
16
16
|
"current-page": e.page.page,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as a } from "../../chunks/
|
|
2
|
-
import { n as s } from "../../chunks/
|
|
1
|
+
import { p as a } from "../../chunks/8c0142e0.js";
|
|
2
|
+
import { n as s } from "../../chunks/5d4282fb.js";
|
|
3
3
|
var o = function() {
|
|
4
4
|
var t = this, r = t.$createElement, e = t._self._c || r;
|
|
5
5
|
return e("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as n } from "../../chunks/
|
|
2
|
-
import { n as l } from "../../chunks/
|
|
1
|
+
import { c as n } from "../../chunks/8c0142e0.js";
|
|
2
|
+
import { n as l } from "../../chunks/5d4282fb.js";
|
|
3
3
|
var o = function() {
|
|
4
4
|
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
5
5
|
return a("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isString as o, isArray as d, trace as n, warning as f, merge as i, toStringArray as p, isFunction as u, hasOwn as c } from "@web-utils/core";
|
|
2
|
-
import { k as b } from "../../chunks/
|
|
3
|
-
import { n as m } from "../../chunks/
|
|
2
|
+
import { k as b } from "../../chunks/f71045fc.js";
|
|
3
|
+
import { n as m } from "../../chunks/5d4282fb.js";
|
|
4
4
|
var _ = function() {
|
|
5
5
|
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
6
6
|
return t("div", {
|
|
@@ -44,7 +44,7 @@ var _ = function() {
|
|
|
44
44
|
staticStyle: {
|
|
45
45
|
"font-size": "16px"
|
|
46
46
|
}
|
|
47
|
-
}, [e._v("
|
|
47
|
+
}, [e._v(" 视图导航 ")]), t("EditableTree", e._g(e._b({
|
|
48
48
|
ref: "tree",
|
|
49
49
|
attrs: {
|
|
50
50
|
readonly: ""
|
|
@@ -117,7 +117,7 @@ var _ = function() {
|
|
|
117
117
|
gutter: 0
|
|
118
118
|
}
|
|
119
119
|
}, [e._t("search-form", function() {
|
|
120
|
-
return [t("p", [e._v("
|
|
120
|
+
return [t("p", [e._v("请添加搜索条件!")])];
|
|
121
121
|
})], 2)], 1), t("ElFormItem", {
|
|
122
122
|
attrs: {
|
|
123
123
|
"label-width": "0"
|
|
@@ -130,14 +130,14 @@ var _ = function() {
|
|
|
130
130
|
"native-type": "submit",
|
|
131
131
|
size: "mini"
|
|
132
132
|
}
|
|
133
|
-
}, [e._v("
|
|
133
|
+
}, [e._v(" 开始搜索 ")]), t("ElButton", {
|
|
134
134
|
attrs: {
|
|
135
135
|
size: "mini"
|
|
136
136
|
},
|
|
137
137
|
on: {
|
|
138
138
|
click: e.onClearClick
|
|
139
139
|
}
|
|
140
|
-
}, [e._v("
|
|
140
|
+
}, [e._v(" 清除条件 ")])], 1)])], 1)], 1)]) : e._e()]), e._t("default")], 2);
|
|
141
141
|
}, g = [function() {
|
|
142
142
|
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
143
143
|
return t("div", {
|
|
@@ -150,12 +150,12 @@ const w = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
|
|
|
150
150
|
name: "TableView",
|
|
151
151
|
bus: {
|
|
152
152
|
reloadTableView(e, r) {
|
|
153
|
-
if (
|
|
153
|
+
if (this._viewIds)
|
|
154
154
|
if (o(e) || d(e)) {
|
|
155
155
|
let t = e;
|
|
156
156
|
o(t) && (t = t.split(",")), this._viewIds.some((s) => t.includes(s)) && (r ? this.$refs.tree && (n.call(this.$parent || {}, "reloadTree"), this.refreshTree()) : (n.call(this.$parent || {}, "reloadTable"), this.reloadTable()));
|
|
157
157
|
} else
|
|
158
|
-
f.call(this.$parent || {}, "`viewId
|
|
158
|
+
f.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
props: {
|
|
@@ -302,12 +302,12 @@ const w = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
|
|
|
302
302
|
const e = this.deleteApi || this.$parent.del;
|
|
303
303
|
if (!((r = this.toolbarListeners) != null && r.del) && u(e)) {
|
|
304
304
|
if (!this.selectedRows.length) {
|
|
305
|
-
this.$message.warning("
|
|
305
|
+
this.$message.warning("请选择要删除的记录!");
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
308
|
await this.$confirm(
|
|
309
|
-
|
|
310
|
-
"
|
|
309
|
+
`您确定要删除选中的[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]行记录吗?`,
|
|
310
|
+
"系统提示",
|
|
311
311
|
{
|
|
312
312
|
type: "warning",
|
|
313
313
|
modal: !0,
|
|
@@ -316,7 +316,7 @@ const w = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
|
|
|
316
316
|
beforeClose: async (t, s, l) => {
|
|
317
317
|
if (t === "confirm")
|
|
318
318
|
try {
|
|
319
|
-
s.confirmButtonLoading = !0, s.confirmButtonText = "
|
|
319
|
+
s.confirmButtonLoading = !0, s.confirmButtonText = "删除...", await e.call(this, this.selectedRows.map((a) => a.id).join(",")), this.$message.success("删除成功"), await this.reloadTable(), await this.refreshTree();
|
|
320
320
|
} catch {
|
|
321
321
|
}
|
|
322
322
|
l();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hasOwn as r } from "@web-utils/core";
|
|
2
|
-
import { n as o } from "../../chunks/
|
|
2
|
+
import { n as o } from "../../chunks/5d4282fb.js";
|
|
3
3
|
var i = function() {
|
|
4
4
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
5
5
|
return n("div", {
|
|
@@ -21,7 +21,7 @@ var i = function() {
|
|
|
21
21
|
staticStyle: {
|
|
22
22
|
color: "#b5b5b5"
|
|
23
23
|
}
|
|
24
|
-
}, [t._v("
|
|
24
|
+
}, [t._v("无")])], t.enable ? n("ElButton", {
|
|
25
25
|
staticClass: "el-tag el-tag--medium el-tag--light button-new-tag",
|
|
26
26
|
attrs: {
|
|
27
27
|
size: "small"
|
|
@@ -31,7 +31,7 @@ var i = function() {
|
|
|
31
31
|
return t.$emit("add");
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
}, [t._v(" +
|
|
34
|
+
}, [t._v(" + 添加 ")]) : t._e(), t.count ? n("span", {
|
|
35
35
|
staticClass: "tags-count"
|
|
36
36
|
}, [t._v(t._s(t.tags.length && t.tags[0] ? t.tags.length : ""))]) : t._e()], 2);
|
|
37
37
|
}, u = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as o } from "../../chunks/
|
|
1
|
+
import { n as o } from "../../chunks/5d4282fb.js";
|
|
2
2
|
var s = function() {
|
|
3
3
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
4
4
|
return r("div", {
|
|
@@ -107,7 +107,7 @@ const l = {
|
|
|
107
107
|
value: String,
|
|
108
108
|
placeholder: {
|
|
109
109
|
type: String,
|
|
110
|
-
default: "
|
|
110
|
+
default: "请输入..."
|
|
111
111
|
},
|
|
112
112
|
queryParams: Object
|
|
113
113
|
},
|
|
@@ -132,7 +132,7 @@ const l = {
|
|
|
132
132
|
},
|
|
133
133
|
methods: {
|
|
134
134
|
onEditorBlur() {
|
|
135
|
-
this.inputDisabled ||
|
|
135
|
+
this.inputDisabled || this.hideOnBlur && (this.focus = !1);
|
|
136
136
|
},
|
|
137
137
|
getEditor() {
|
|
138
138
|
return this.$refs.editor.$refs.editor.editor;
|