@web-utils/component 2.0.14 → 2.7.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/dist/chunks/config.46422d7f.js +73 -0
- package/dist/chunks/{3a79781b.js → confirmable-mixin.3a79781b.js} +0 -0
- package/dist/chunks/dataformat.fb35ee10.js +61 -0
- package/dist/chunks/detail.a3249549.js +28 -0
- package/dist/chunks/dic.5f7e3523.js +132 -0
- package/dist/chunks/event.50c365eb.js +235 -0
- package/dist/chunks/{76680a03.js → form-input-mixin.ff5b58f7.js} +2 -2
- package/dist/chunks/{b4acd3a6.js → form-item-mixin.79f6eaff.js} +3 -1
- package/dist/chunks/{61ad06b2.js → form-pick-mixin.61ad06b2.js} +0 -0
- package/dist/chunks/init.352281f5.js +121 -0
- package/dist/chunks/{41a066be.js → input-number-mixin.41a066be.js} +0 -0
- package/dist/chunks/{5a78e0db.js → mixins.5a78e0db.js} +0 -0
- package/dist/chunks/packages.5d7a86c4.js +114 -0
- package/dist/chunks/permission.ce5d2121.js +16 -0
- package/dist/chunks/slot.1b8d2b1b.js +27 -0
- package/dist/chunks/{8c0142e0.js → tab-mixin.8c0142e0.js} +0 -0
- package/dist/chunks/util.5053d54e.js +264 -0
- package/dist/chunks/{97652d86.js → utils.97652d86.js} +0 -0
- package/dist/chunks/{f71045fc.js → utils.fa73de78.js} +1 -0
- package/dist/chunks/{5d4282fb.js → vueComponentNormalizer.71e2aa87.js} +3 -1
- package/dist/components/address-input/index.js +1 -1
- package/dist/components/affix/index.js +102 -0
- package/dist/components/affix/style.css +1 -0
- package/dist/components/array/index.js +156 -0
- package/dist/components/array/style.css +1 -0
- package/dist/components/article/index.js +93 -0
- package/dist/components/article/style.css +1 -0
- package/dist/components/aside-menu/index.js +1 -1
- package/dist/components/avatar/index.js +106 -0
- package/dist/components/avatar/style.css +1 -0
- package/dist/components/awesome-button/index.js +1 -1
- package/dist/components/base.css +1 -1
- package/dist/components/capsule-tab/index.js +1 -1
- package/dist/components/card/index.js +130 -0
- package/dist/components/card/style.css +1 -0
- package/dist/components/carousel/index.js +70 -0
- package/dist/components/carousel/style.css +1 -0
- package/dist/components/chat/index.js +567 -0
- package/dist/components/chat/style.css +1 -0
- 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 +2 -2
- 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/index.js +66 -0
- package/dist/components/code-mirror-editor/index.js +4 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/column/index.js +114 -0
- package/dist/components/column-default/index.js +105 -0
- package/dist/components/column-dynamic/index.js +93 -0
- package/dist/components/column-menu/index.js +286 -0
- package/dist/components/column-slot/index.js +265 -0
- package/dist/components/comment/index.js +94 -0
- package/dist/components/comment/style.css +1 -0
- package/dist/components/confirm-button/index.js +2 -2
- package/dist/components/confirmable/index.js +2 -2
- package/dist/components/context-menu/index.js +11 -1
- package/dist/components/count-up/index.js +120 -0
- package/dist/components/custom-scrollbar/index.js +2 -2
- package/dist/components/data-box/index.js +97 -0
- package/dist/components/data-box/style.css +1 -0
- package/dist/components/data-card/index.js +98 -0
- package/dist/components/data-card/style.css +1 -0
- package/dist/components/data-cardtext/index.js +82 -0
- package/dist/components/data-cardtext/style.css +1 -0
- package/dist/components/data-display/index.js +93 -0
- package/dist/components/data-display/style.css +1 -0
- package/dist/components/data-icons/index.js +104 -0
- package/dist/components/data-icons/style.css +1 -0
- package/dist/components/data-imgtext/index.js +106 -0
- package/dist/components/data-imgtext/style.css +1 -0
- package/dist/components/data-operatext/index.js +99 -0
- package/dist/components/data-operatext/style.css +1 -0
- package/dist/components/data-panel/index.js +93 -0
- package/dist/components/data-panel/style.css +1 -0
- package/dist/components/data-pay/index.js +149 -0
- package/dist/components/data-pay/style.css +1 -0
- package/dist/components/data-price/index.js +84 -0
- package/dist/components/data-price/style.css +1 -0
- package/dist/components/data-progress/index.js +97 -0
- package/dist/components/data-progress/style.css +1 -0
- package/dist/components/data-rotate/index.js +96 -0
- package/dist/components/data-rotate/style.css +1 -0
- package/dist/components/data-table-picker/index.js +2 -2
- package/dist/components/data-tabs/index.js +94 -0
- package/dist/components/data-tabs/style.css +1 -0
- package/dist/components/dialog-column/index.js +138 -0
- package/dist/components/dialog-excel/index.js +214 -0
- package/dist/components/dialog-filter/index.js +245 -0
- package/dist/components/dialog-form/index.js +275 -0
- package/dist/components/draggable/index.js +384 -0
- package/dist/components/draggable/style.css +1 -0
- package/dist/components/dynamic-table/index.js +1 -1
- package/dist/components/e-charts/index.js +7 -1
- package/dist/components/editable-progress/index.js +1 -1
- package/dist/components/editable-tree/index.js +2 -2
- 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 +1 -1
- package/dist/components/empty/index.js +59 -0
- package/dist/components/empty/style.css +1 -0
- package/dist/components/empty-view/index.js +1 -1
- package/dist/components/error-view/index.js +1 -1
- 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/flow/index.js +278 -0
- package/dist/components/flow/style.css +1 -0
- package/dist/components/flow-node/index.js +102 -0
- 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 +4 -4
- package/dist/components/form-date-picker/index.js +4 -4
- package/dist/components/form-group/index.js +122 -0
- package/dist/components/form-group/style.css +1 -0
- package/dist/components/form-holder/index.js +23 -2
- package/dist/components/form-input/index.js +3 -3
- package/dist/components/form-input-email/index.js +3 -3
- package/dist/components/form-input-id-card/index.js +3 -3
- package/dist/components/form-input-number/index.js +4 -4
- package/dist/components/form-input-phone-number/index.js +3 -3
- package/dist/components/form-input-time/index.js +3 -3
- package/dist/components/form-item/index.js +2 -2
- package/dist/components/form-item-config-provider/index.js +1 -1
- package/dist/components/form-item-group/index.js +1 -1
- package/dist/components/form-radio-group/index.js +4 -4
- package/dist/components/form-select/index.js +4 -4
- package/dist/components/form-switch/index.js +3 -3
- package/dist/components/form-temp/index.js +149 -0
- package/dist/components/form-textarea/index.js +3 -3
- package/dist/components/form-view/index.js +1 -1
- package/dist/components/fy-cascader/index.js +132 -0
- package/dist/components/fy-checkbox/index.js +116 -0
- package/dist/components/fy-checkbox/style.css +1 -0
- package/dist/components/fy-curd/index.js +846 -0
- package/dist/components/fy-curd/style.css +1 -0
- package/dist/components/fy-date/index.js +84 -0
- package/dist/components/fy-date/style.css +1 -0
- package/dist/components/fy-dialog-form/index.js +278 -0
- package/dist/components/fy-dialog-form/style.css +1 -0
- package/dist/components/fy-dynamic/index.js +335 -0
- package/dist/components/fy-dynamic/style.css +1 -0
- package/dist/components/fy-form/index.js +754 -0
- package/dist/components/fy-form/style.css +1 -0
- package/dist/components/fy-form-menu/index.js +95 -0
- package/dist/components/fy-input/index.js +162 -0
- package/dist/components/fy-input-color/index.js +96 -0
- package/dist/components/fy-input-icon/index.js +161 -0
- package/dist/components/fy-input-icon/style.css +1 -0
- package/dist/components/fy-input-map/index.js +275 -0
- package/dist/components/fy-input-map/style.css +1 -0
- package/dist/components/fy-input-number/index.js +87 -0
- package/dist/components/fy-input-table/index.js +172 -0
- package/dist/components/fy-input-table/style.css +1 -0
- package/dist/components/fy-input-tree/index.js +265 -0
- package/dist/components/fy-input-tree/style.css +1 -0
- package/dist/components/fy-radio/index.js +68 -0
- package/dist/components/fy-radio/style.css +1 -0
- package/dist/components/fy-rate/index.js +105 -0
- package/dist/components/fy-rate/style.css +1 -0
- package/dist/components/fy-select/index.js +223 -0
- package/dist/components/fy-select/style.css +1 -0
- package/dist/components/fy-slider/index.js +79 -0
- package/dist/components/fy-switch/index.js +73 -0
- package/dist/components/fy-time/index.js +95 -0
- package/dist/components/fy-title/index.js +40 -0
- package/dist/components/fy-title/style.css +1 -0
- package/dist/components/fy-upload/index.js +704 -0
- package/dist/components/fy-upload/style.css +1 -0
- package/dist/components/guide-steps/index.js +1 -1
- package/dist/components/header-menu/index.js +238 -0
- package/dist/components/header-search/index.js +246 -0
- package/dist/components/icon-card/index.js +1 -1
- package/dist/components/icon-temp/index.js +50 -0
- package/dist/components/icon-temp/style.css +1 -0
- package/dist/components/iframe-window/index.js +1 -1
- package/dist/components/image-viewer/index.js +1 -1
- package/dist/components/input-number/index.js +2 -2
- package/dist/components/input-number-range/index.js +1 -1
- package/dist/components/keep-view-alive/index.js +6 -2
- package/dist/components/keyboard/index.js +389 -0
- package/dist/components/keyboard/style.css +1 -0
- package/dist/components/license/index.js +134 -0
- package/dist/components/loading-view/index.js +1 -1
- package/dist/components/login/index.js +244 -0
- package/dist/components/login/style.css +1 -0
- package/dist/components/name-avatar/index.js +66 -0
- package/dist/components/name-avatar/style.css +1 -0
- package/dist/components/nav-bar/index.js +1 -1
- package/dist/components/not-implement/index.js +1 -1
- package/dist/components/notice/index.js +143 -0
- package/dist/components/notice/style.css +1 -0
- package/dist/components/page/index.js +1 -1
- package/dist/components/page-header/index.js +1 -1
- package/dist/components/page-index/index.js +1 -1
- package/dist/components/page-index-top/index.js +1 -1
- package/dist/components/page-skeleton/index.js +1 -1
- package/dist/components/page-skeleton-new/index.js +1 -1
- package/dist/components/pageable-table/index.js +6 -2
- package/dist/components/pageable-view/index.js +7 -2
- package/dist/components/photo-swipe/index.js +7 -1
- package/dist/components/progress/index.js +60 -0
- package/dist/components/queue/index.js +76 -0
- package/dist/components/record-video/index.js +173 -0
- package/dist/components/record-video/style.css +1 -0
- package/dist/components/resize-observer/index.js +2 -2
- package/dist/components/search/index.js +142 -0
- package/dist/components/search/style.css +1 -0
- package/dist/components/search-popover/index.js +1 -1
- package/dist/components/sign/index.js +128 -0
- package/dist/components/sign/style.css +1 -0
- package/dist/components/sign-panel/index.js +14 -1
- package/dist/components/skeleton/index.js +82 -0
- package/dist/components/skeleton/style.css +1 -0
- package/dist/components/split-pane/index.js +7 -1
- package/dist/components/stateful/index.js +1 -1
- package/dist/components/static-pageable-table/index.js +1 -1
- package/dist/components/swiper/index.js +1 -1
- package/dist/components/tab/index.js +4 -2
- package/dist/components/tab-item/index.js +2 -2
- package/dist/components/table-column/index.js +1 -1
- package/dist/components/table-page/index.js +129 -0
- package/dist/components/table-view/index.js +2 -2
- package/dist/components/tabs/index.js +90 -0
- package/dist/components/tabs/style.css +0 -0
- package/dist/components/tag-render/index.js +1 -1
- package/dist/components/text-ellipsis/index.js +107 -0
- package/dist/components/text-ellipsis/style.css +1 -0
- package/dist/components/tinymce-editor/index.js +1 -1
- package/dist/components/tinymce-wrapper/index.js +1 -1
- package/dist/components/toolbar/index.js +1 -1
- package/dist/components/toolbar-button/index.js +1 -1
- package/dist/components/tree/index.js +427 -0
- package/dist/components/tree/style.css +1 -0
- package/dist/components/trigger/index.js +1 -1
- package/dist/components/verify/index.js +80 -0
- package/dist/components/verify/style.css +1 -0
- package/dist/components/vue-tags-input/index.js +115 -1
- package/dist/components/watermark/index.js +20 -2
- package/dist/index.css +4128 -745
- package/dist/index.es.js +21634 -7064
- package/package.json +20 -4
- package/web-types.json +12777 -2788
- package/dist/components/x-dialog/index.js +0 -173
- package/dist/components/x-dialog/style.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as h } from "../../chunks/
|
|
1
|
+
import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
2
|
function l(t, e) {
|
|
3
3
|
for (let s = 0; s < e.length; s++)
|
|
4
4
|
if (t === e[s])
|
|
@@ -115,6 +115,12 @@ const d = {
|
|
|
115
115
|
default: "40px"
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
|
+
/**
|
|
119
|
+
* Events
|
|
120
|
+
* @on-move-start
|
|
121
|
+
* @on-moving 返回值:事件对象,但是在事件对象中加入了两个参数:atMin(当前是否在最小值处), atMax(当前是否在最大值处)
|
|
122
|
+
* @on-move-end
|
|
123
|
+
*/
|
|
118
124
|
data() {
|
|
119
125
|
return {
|
|
120
126
|
prefix: "egd-split",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getEleWidth as a } from "@web-utils/core";
|
|
2
|
-
import { n as o } from "../../chunks/
|
|
2
|
+
import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var h = function() {
|
|
4
4
|
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
5
5
|
return s("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as a } from "../../chunks/8c0142e0.js";
|
|
2
|
-
import { n as s } from "../../chunks/
|
|
1
|
+
import { p as a } from "../../chunks/tab-mixin.8c0142e0.js";
|
|
2
|
+
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var o = function() {
|
|
4
4
|
var t = this, r = t.$createElement, e = t._self._c || r;
|
|
5
5
|
return e("div", {
|
|
@@ -71,12 +71,14 @@ const c = {
|
|
|
71
71
|
}
|
|
72
72
|
return null;
|
|
73
73
|
},
|
|
74
|
+
// when prop:custom-bar-width
|
|
74
75
|
innerBarStyle() {
|
|
75
76
|
return {
|
|
76
77
|
width: typeof this.customBarWidth == "function" ? this.customBarWidth(this.currentIndex) : this.customBarWidth,
|
|
77
78
|
backgroundColor: this.barActiveColor || this.activeColor
|
|
78
79
|
};
|
|
79
80
|
},
|
|
81
|
+
// end
|
|
80
82
|
barStyle() {
|
|
81
83
|
const t = {
|
|
82
84
|
left: this.barLeft,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as n } from "../../chunks/8c0142e0.js";
|
|
2
|
-
import { n as l } from "../../chunks/
|
|
1
|
+
import { c as n } from "../../chunks/tab-mixin.8c0142e0.js";
|
|
2
|
+
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var o = function() {
|
|
4
4
|
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
5
5
|
return a("div", {
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { c as i } from "../../chunks/config.46422d7f.js";
|
|
2
|
+
import { o as n } from "../../chunks/util.5053d54e.js";
|
|
3
|
+
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
|
+
var g = function() {
|
|
5
|
+
var e = this, t = e.$createElement, u = e._self._c || t;
|
|
6
|
+
return e.pageFlag && e.optVal(e.crud.tableOption.page, !0) ? u("ElCard", {
|
|
7
|
+
staticClass: "avue-pagination",
|
|
8
|
+
attrs: {
|
|
9
|
+
shadow: e.crud.isCard
|
|
10
|
+
}
|
|
11
|
+
}, [e._t("page"), u("ElPagination", {
|
|
12
|
+
attrs: {
|
|
13
|
+
small: e.crud.size === "mini",
|
|
14
|
+
disabled: e.defaultPage.disabled,
|
|
15
|
+
"hide-on-single-page": e.defaultPage.single,
|
|
16
|
+
"pager-count": e.defaultPage.pagerCount,
|
|
17
|
+
"current-page": e.defaultPage.currentPage,
|
|
18
|
+
background: e.defaultPage.background,
|
|
19
|
+
"page-size": e.defaultPage.pageSize,
|
|
20
|
+
"page-sizes": e.defaultPage.pageSizes,
|
|
21
|
+
layout: e.defaultPage.layout,
|
|
22
|
+
total: e.defaultPage.total
|
|
23
|
+
},
|
|
24
|
+
on: {
|
|
25
|
+
"update:currentPage": function(a) {
|
|
26
|
+
return e.$set(e.defaultPage, "currentPage", a);
|
|
27
|
+
},
|
|
28
|
+
"update:current-page": function(a) {
|
|
29
|
+
return e.$set(e.defaultPage, "currentPage", a);
|
|
30
|
+
},
|
|
31
|
+
"size-change": e.sizeChange,
|
|
32
|
+
"prev-click": e.prevClick,
|
|
33
|
+
"next-click": e.nextClick,
|
|
34
|
+
"current-change": e.currentChange
|
|
35
|
+
}
|
|
36
|
+
})], 2) : e._e();
|
|
37
|
+
}, s = [];
|
|
38
|
+
const c = {
|
|
39
|
+
name: "TablePage",
|
|
40
|
+
inject: ["crud"],
|
|
41
|
+
data() {
|
|
42
|
+
return {
|
|
43
|
+
config: i,
|
|
44
|
+
defaultPage: {
|
|
45
|
+
single: !1,
|
|
46
|
+
total: 0,
|
|
47
|
+
// 总页数
|
|
48
|
+
pagerCount: 7,
|
|
49
|
+
//超过多少条隐藏
|
|
50
|
+
currentPage: 1,
|
|
51
|
+
// 当前页数
|
|
52
|
+
pageSize: 10,
|
|
53
|
+
// 每页显示多少条
|
|
54
|
+
pageSizes: [10, 20, 30, 40, 50, 100],
|
|
55
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
56
|
+
background: !0
|
|
57
|
+
// 背景颜色
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
computed: {
|
|
62
|
+
pageFlag() {
|
|
63
|
+
return this.defaultPage.total != 0;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
watch: {
|
|
67
|
+
"crud.page": {
|
|
68
|
+
handler() {
|
|
69
|
+
this.pageInit();
|
|
70
|
+
},
|
|
71
|
+
deep: !0
|
|
72
|
+
},
|
|
73
|
+
pageFlag() {
|
|
74
|
+
this.crud.getTableHeight();
|
|
75
|
+
},
|
|
76
|
+
//如果当前页面删除没数据了调用第一页
|
|
77
|
+
"defaultPage.total"(e) {
|
|
78
|
+
this.defaultPage.total === (this.defaultPage.currentPage - 1) * this.defaultPage.pageSize && this.defaultPage.total != 0 && (this.defaultPage.currentPage = this.defaultPage.currentPage - 1, this.currentChange(this.defaultPage.currentPage));
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
created() {
|
|
82
|
+
this.crud.isMobile && (this.defaultPage.layout = "total, sizes, prev, pager, next"), this.pageInit(), this.crud.$emit("on-load", this.defaultPage);
|
|
83
|
+
},
|
|
84
|
+
methods: {
|
|
85
|
+
optVal: n,
|
|
86
|
+
pageInit() {
|
|
87
|
+
this.defaultPage = Object.assign(this.defaultPage, this.crud.page), this.updateValue();
|
|
88
|
+
},
|
|
89
|
+
updateValue() {
|
|
90
|
+
this.crud.$emit("update:page", this.defaultPage);
|
|
91
|
+
},
|
|
92
|
+
//下一页事件
|
|
93
|
+
nextClick(e) {
|
|
94
|
+
this.crud.$emit("next-click", e);
|
|
95
|
+
},
|
|
96
|
+
//上一页事件
|
|
97
|
+
prevClick(e) {
|
|
98
|
+
this.crud.$emit("prev-click", e);
|
|
99
|
+
},
|
|
100
|
+
// 页大小回调
|
|
101
|
+
sizeChange(e) {
|
|
102
|
+
this.defaultPage.currentPage = 1, this.defaultPage.pageSize = e, this.updateValue(), this.crud.$emit("on-load", this.defaultPage), this.crud.$emit("size-change", e);
|
|
103
|
+
},
|
|
104
|
+
// 页码回调
|
|
105
|
+
currentChange(e) {
|
|
106
|
+
this.updateValue(), this.crud.$emit("on-load", this.defaultPage), this.crud.$emit("current-change", e);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}, r = {};
|
|
110
|
+
var d = /* @__PURE__ */ l(
|
|
111
|
+
c,
|
|
112
|
+
g,
|
|
113
|
+
s,
|
|
114
|
+
!1,
|
|
115
|
+
o,
|
|
116
|
+
null,
|
|
117
|
+
null,
|
|
118
|
+
null
|
|
119
|
+
);
|
|
120
|
+
function o(e) {
|
|
121
|
+
for (let t in r)
|
|
122
|
+
this[t] = r[t];
|
|
123
|
+
}
|
|
124
|
+
const P = /* @__PURE__ */ function() {
|
|
125
|
+
return d.exports;
|
|
126
|
+
}();
|
|
127
|
+
export {
|
|
128
|
+
P as default
|
|
129
|
+
};
|
|
@@ -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/utils.fa73de78.js";
|
|
3
|
+
import { n as m } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var _ = function() {
|
|
5
5
|
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
6
6
|
return t("div", {
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
|
+
var r = function() {
|
|
3
|
+
var t = this, a = t.$createElement, e = t._self._c || a;
|
|
4
|
+
return e("div", {
|
|
5
|
+
staticClass: "avue-tabs"
|
|
6
|
+
}, [e("ElTabs", {
|
|
7
|
+
attrs: {
|
|
8
|
+
"tab-position": t.parentOption.position,
|
|
9
|
+
type: t.parentOption.type
|
|
10
|
+
},
|
|
11
|
+
model: {
|
|
12
|
+
value: t.active,
|
|
13
|
+
callback: function(n) {
|
|
14
|
+
t.active = n;
|
|
15
|
+
},
|
|
16
|
+
expression: "active"
|
|
17
|
+
}
|
|
18
|
+
}, t._l(t.columnOption, function(n, s) {
|
|
19
|
+
return e("ElTabPane", {
|
|
20
|
+
key: s,
|
|
21
|
+
attrs: {
|
|
22
|
+
name: s + "",
|
|
23
|
+
disabled: n.disabled
|
|
24
|
+
}
|
|
25
|
+
}, [e("span", {
|
|
26
|
+
attrs: {
|
|
27
|
+
slot: "label"
|
|
28
|
+
},
|
|
29
|
+
slot: "label"
|
|
30
|
+
}, [e("i", {
|
|
31
|
+
class: n.icon
|
|
32
|
+
}), t._v(" " + t._s(n.label) + " ")])]);
|
|
33
|
+
}), 1)], 1);
|
|
34
|
+
}, l = [];
|
|
35
|
+
const c = {
|
|
36
|
+
name: "Tabs",
|
|
37
|
+
props: {
|
|
38
|
+
option: {
|
|
39
|
+
type: Object,
|
|
40
|
+
required: !0,
|
|
41
|
+
default: () => ({})
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
data() {
|
|
45
|
+
return {
|
|
46
|
+
active: "0"
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
computed: {
|
|
50
|
+
tabsObj() {
|
|
51
|
+
return this.columnOption[this.active];
|
|
52
|
+
},
|
|
53
|
+
parentOption() {
|
|
54
|
+
return this.option;
|
|
55
|
+
},
|
|
56
|
+
columnOption() {
|
|
57
|
+
return this.parentOption.column || [];
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
watch: {
|
|
61
|
+
active() {
|
|
62
|
+
this.$emit("change", this.tabsObj);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
methods: {
|
|
66
|
+
changeTabs(t) {
|
|
67
|
+
this.active = t + "";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}, i = {};
|
|
71
|
+
var p = /* @__PURE__ */ o(
|
|
72
|
+
c,
|
|
73
|
+
r,
|
|
74
|
+
l,
|
|
75
|
+
!1,
|
|
76
|
+
u,
|
|
77
|
+
null,
|
|
78
|
+
null,
|
|
79
|
+
null
|
|
80
|
+
);
|
|
81
|
+
function u(t) {
|
|
82
|
+
for (let a in i)
|
|
83
|
+
this[a] = i[a];
|
|
84
|
+
}
|
|
85
|
+
const v = /* @__PURE__ */ function() {
|
|
86
|
+
return p.exports;
|
|
87
|
+
}();
|
|
88
|
+
export {
|
|
89
|
+
v as default
|
|
90
|
+
};
|
|
File without changes
|
|
@@ -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/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var i = function() {
|
|
4
4
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
5
5
|
return n("div", {
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { s as o } from "../../chunks/util.5053d54e.js";
|
|
2
|
+
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
var h = function() {
|
|
4
|
+
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
5
|
+
return i("div", {
|
|
6
|
+
staticClass: "avue-text-ellipsis",
|
|
7
|
+
style: {
|
|
8
|
+
width: t.setPx(t.width, "100%")
|
|
9
|
+
}
|
|
10
|
+
}, [t._t("before"), i("ElTooltip", {
|
|
11
|
+
attrs: {
|
|
12
|
+
content: t.text,
|
|
13
|
+
disabled: !(t.useTooltip && t.isHide),
|
|
14
|
+
placement: t.placement
|
|
15
|
+
}
|
|
16
|
+
}, [i("span", [i("span", {
|
|
17
|
+
key: t.keyIndex,
|
|
18
|
+
ref: "text",
|
|
19
|
+
staticClass: "avue-text-ellipsis__text"
|
|
20
|
+
}, [t._v(t._s(t.text))])])]), i("span", {
|
|
21
|
+
ref: "more",
|
|
22
|
+
staticClass: "avue-text-ellipsis__more"
|
|
23
|
+
}, [t._t("more")], 2), t._t("after")], 2);
|
|
24
|
+
}, a = [];
|
|
25
|
+
const f = {
|
|
26
|
+
name: "TextEllipsis",
|
|
27
|
+
props: {
|
|
28
|
+
text: String,
|
|
29
|
+
height: Number,
|
|
30
|
+
width: Number,
|
|
31
|
+
isLimitHeight: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !0
|
|
34
|
+
},
|
|
35
|
+
useTooltip: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
39
|
+
placement: String
|
|
40
|
+
},
|
|
41
|
+
data() {
|
|
42
|
+
return {
|
|
43
|
+
keyIndex: 0,
|
|
44
|
+
oversize: !1,
|
|
45
|
+
isHide: !1
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
watch: {
|
|
49
|
+
isLimitHeight() {
|
|
50
|
+
this.init();
|
|
51
|
+
},
|
|
52
|
+
text() {
|
|
53
|
+
this.init();
|
|
54
|
+
},
|
|
55
|
+
height() {
|
|
56
|
+
this.init();
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
mounted() {
|
|
60
|
+
this.init();
|
|
61
|
+
},
|
|
62
|
+
methods: {
|
|
63
|
+
setPx: o,
|
|
64
|
+
init() {
|
|
65
|
+
this.oversize = !1, this.keyIndex += 1;
|
|
66
|
+
let t = this.$refs.more;
|
|
67
|
+
t.style.display = "none", this.isLimitHeight && this.limitShow();
|
|
68
|
+
},
|
|
69
|
+
limitShow() {
|
|
70
|
+
this.$nextTick(() => {
|
|
71
|
+
let t = this.$refs.text, e = this.$el, i = this.$refs.more, l = 1e3;
|
|
72
|
+
if (t)
|
|
73
|
+
if (e.offsetHeight > this.height) {
|
|
74
|
+
i.style.display = "inline-block";
|
|
75
|
+
let s = this.text;
|
|
76
|
+
for (; e.offsetHeight > this.height && l > 0; )
|
|
77
|
+
e.offsetHeight > this.height * 3 ? t.innerText = s = s.substring(
|
|
78
|
+
0,
|
|
79
|
+
Math.floor(s.length / 2)
|
|
80
|
+
) : t.innerText = s = s.substring(0, s.length - 1), l--;
|
|
81
|
+
this.$emit("hide"), this.isHide = !0;
|
|
82
|
+
} else
|
|
83
|
+
this.$emit("show"), this.isHide = !1;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, n = {};
|
|
88
|
+
var _ = /* @__PURE__ */ r(
|
|
89
|
+
f,
|
|
90
|
+
h,
|
|
91
|
+
a,
|
|
92
|
+
!1,
|
|
93
|
+
m,
|
|
94
|
+
null,
|
|
95
|
+
null,
|
|
96
|
+
null
|
|
97
|
+
);
|
|
98
|
+
function m(t) {
|
|
99
|
+
for (let e in n)
|
|
100
|
+
this[e] = n[e];
|
|
101
|
+
}
|
|
102
|
+
const x = /* @__PURE__ */ function() {
|
|
103
|
+
return _.exports;
|
|
104
|
+
}();
|
|
105
|
+
export {
|
|
106
|
+
x as default
|
|
107
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-text-ellipsis__more{padding:0 2px}
|
|
@@ -9,7 +9,7 @@ import "tinymce/plugins/fullscreen";
|
|
|
9
9
|
import "tinymce/plugins/preview";
|
|
10
10
|
import "tinymce/plugins/imagetools";
|
|
11
11
|
import { guid as u } from "@web-utils/core";
|
|
12
|
-
import { n as p } from "../../chunks/
|
|
12
|
+
import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
13
13
|
const m = {
|
|
14
14
|
Redo: "重做",
|
|
15
15
|
Undo: "撤销",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isFunction as a } from "@web-utils/core";
|
|
2
|
-
import { n as l } from "../../chunks/
|
|
2
|
+
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var i = function() {
|
|
4
4
|
var t = this, e = t.$createElement, o = t._self._c || e;
|
|
5
5
|
return t.footer || t.toolbar.footer ? o("ElButton", {
|