@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
|
@@ -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;
|