@web-utils/component 2.0.14 → 2.7.1
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-tabs/index.js +90 -0
- package/dist/components/fy-tabs/style.css +0 -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-tree/index.js +427 -0
- package/dist/components/fy-tree/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/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/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 +4138 -755
- package/dist/index.es.js +21037 -6467
- package/package.json +20 -4
- package/web-types.json +12735 -2746
- 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", {
|
|
@@ -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", {
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { s as n } from "../../chunks/util.5053d54e.js";
|
|
2
|
+
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
var u = function() {
|
|
4
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
5
|
+
return r("div", {
|
|
6
|
+
staticClass: "avue-verify"
|
|
7
|
+
}, e._l(e.list, function(i, a) {
|
|
8
|
+
return r("span", {
|
|
9
|
+
key: a,
|
|
10
|
+
staticClass: "avue-verify__item",
|
|
11
|
+
style: e.styleName
|
|
12
|
+
}, [e._v(" " + e._s(i) + " ")]);
|
|
13
|
+
}), 0);
|
|
14
|
+
}, o = [];
|
|
15
|
+
const _ = {
|
|
16
|
+
name: "Verify",
|
|
17
|
+
props: {
|
|
18
|
+
size: {
|
|
19
|
+
type: [Number, String],
|
|
20
|
+
default: 50
|
|
21
|
+
},
|
|
22
|
+
value: [Number, String],
|
|
23
|
+
len: {
|
|
24
|
+
type: [Number, String],
|
|
25
|
+
default: 6
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
computed: {
|
|
29
|
+
data: {
|
|
30
|
+
get() {
|
|
31
|
+
return this.value || "";
|
|
32
|
+
},
|
|
33
|
+
set(e) {
|
|
34
|
+
let t = e + "";
|
|
35
|
+
this.$emit("input", t), this.$emit("change", t);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
styleName() {
|
|
39
|
+
return {
|
|
40
|
+
padding: `${n(this.size / 7)} ${n(this.size / 4)}`,
|
|
41
|
+
fontSize: n(this.size)
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
list() {
|
|
45
|
+
return this.data.split("");
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
created() {
|
|
49
|
+
this.random();
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
random() {
|
|
53
|
+
var e = this.len;
|
|
54
|
+
if (e > 21)
|
|
55
|
+
return null;
|
|
56
|
+
var t = new RegExp("(\\d{" + e + "})(\\.|$)");
|
|
57
|
+
this.data = (Array(e - 1).join(0) + Math.pow(10, e) * Math.random()).match(t)[1];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, s = {};
|
|
61
|
+
var m = /* @__PURE__ */ l(
|
|
62
|
+
_,
|
|
63
|
+
u,
|
|
64
|
+
o,
|
|
65
|
+
!1,
|
|
66
|
+
c,
|
|
67
|
+
null,
|
|
68
|
+
null,
|
|
69
|
+
null
|
|
70
|
+
);
|
|
71
|
+
function c(e) {
|
|
72
|
+
for (let t in s)
|
|
73
|
+
this[t] = s[t];
|
|
74
|
+
}
|
|
75
|
+
const f = /* @__PURE__ */ function() {
|
|
76
|
+
return m.exports;
|
|
77
|
+
}();
|
|
78
|
+
export {
|
|
79
|
+
f as default
|
|
80
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-verify__item{padding:5px 10px;display:inline-block;margin:0 4px;box-sizing:border-box;border:1px solid #e1e1e1;font-size:64px;text-align:center}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as l } from "../../chunks/
|
|
1
|
+
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
2
|
var h = function() {
|
|
3
3
|
var e = this, s = e.$createElement, a = e._self._c || s;
|
|
4
4
|
return a("div", {
|
|
@@ -283,9 +283,22 @@ const o = {
|
|
|
283
283
|
this.tagsFromValue(), this.typeaheadAlwaysShow && this.searchTag(!1), this.$emit("initialized");
|
|
284
284
|
},
|
|
285
285
|
methods: {
|
|
286
|
+
/**
|
|
287
|
+
* Remove reserved regex characters from a string so that they don't
|
|
288
|
+
* affect search results
|
|
289
|
+
*
|
|
290
|
+
* @param string
|
|
291
|
+
* @returns String
|
|
292
|
+
*/
|
|
286
293
|
escapeRegExp(e) {
|
|
287
294
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
288
295
|
},
|
|
296
|
+
/**
|
|
297
|
+
* Add a tag whether from user input or from search results (typeahead)
|
|
298
|
+
*
|
|
299
|
+
* @param ignoreSearchResults
|
|
300
|
+
* @returns void
|
|
301
|
+
*/
|
|
289
302
|
tagFromInput(e = !1) {
|
|
290
303
|
if (this.searchResults.length && this.searchSelection >= 0 && !e)
|
|
291
304
|
this.tagFromSearch(this.searchResults[this.searchSelection]), this.input = "";
|
|
@@ -309,14 +322,34 @@ const o = {
|
|
|
309
322
|
}
|
|
310
323
|
}
|
|
311
324
|
},
|
|
325
|
+
/**
|
|
326
|
+
* Add a tag from search results when a user clicks on it
|
|
327
|
+
*
|
|
328
|
+
* @param tag
|
|
329
|
+
* @returns void
|
|
330
|
+
*/
|
|
312
331
|
tagFromSearchOnClick(e) {
|
|
313
332
|
this.tagFromSearch(e), this.$refs.taginput.blur();
|
|
314
333
|
},
|
|
334
|
+
/**
|
|
335
|
+
* Add the selected tag from the search results.
|
|
336
|
+
* Clear search results.
|
|
337
|
+
* Clear user input.
|
|
338
|
+
*
|
|
339
|
+
* @param tag
|
|
340
|
+
* @return void
|
|
341
|
+
*/
|
|
315
342
|
tagFromSearch(e) {
|
|
316
343
|
this.clearSearchResults(), this.addTag(e), this.$nextTick(() => {
|
|
317
344
|
this.input = "", this.oldInput = "";
|
|
318
345
|
});
|
|
319
346
|
},
|
|
347
|
+
/**
|
|
348
|
+
* Add/Select a tag
|
|
349
|
+
*
|
|
350
|
+
* @param tag
|
|
351
|
+
* @returns void | Boolean
|
|
352
|
+
*/
|
|
320
353
|
addTag(e) {
|
|
321
354
|
if (!this.beforeAddingTag(e))
|
|
322
355
|
return !1;
|
|
@@ -326,9 +359,20 @@ const o = {
|
|
|
326
359
|
this.$emit("tag-added", e), this.$emit("tags-updated");
|
|
327
360
|
}));
|
|
328
361
|
},
|
|
362
|
+
/**
|
|
363
|
+
* Remove the last tag in the tags array.
|
|
364
|
+
*
|
|
365
|
+
* @returns void
|
|
366
|
+
*/
|
|
329
367
|
removeLastTag() {
|
|
330
368
|
!this.input.length && this.deleteOnBackspace && this.tags.length && this.removeTag(this.tags.length - 1);
|
|
331
369
|
},
|
|
370
|
+
/**
|
|
371
|
+
* Remove the selected tag at the specified index.
|
|
372
|
+
*
|
|
373
|
+
* @param index
|
|
374
|
+
* @returns void
|
|
375
|
+
*/
|
|
332
376
|
removeTag(e) {
|
|
333
377
|
const s = this.tags[e];
|
|
334
378
|
if (!this.beforeRemovingTag(s))
|
|
@@ -337,6 +381,11 @@ const o = {
|
|
|
337
381
|
this.$emit("tag-removed", s), this.$emit("tags-updated"), this.typeaheadAlwaysShow && this.searchTag();
|
|
338
382
|
});
|
|
339
383
|
},
|
|
384
|
+
/**
|
|
385
|
+
* Search the currently entered text in the list of existing tags
|
|
386
|
+
*
|
|
387
|
+
* @returns void | Boolean
|
|
388
|
+
*/
|
|
340
389
|
searchTag() {
|
|
341
390
|
if (this.typeahead !== !0)
|
|
342
391
|
return !1;
|
|
@@ -352,25 +401,55 @@ const o = {
|
|
|
352
401
|
this.oldInput = this.input;
|
|
353
402
|
}
|
|
354
403
|
},
|
|
404
|
+
/**
|
|
405
|
+
* Hide the typeahead if there's nothing intered into the input field.
|
|
406
|
+
*
|
|
407
|
+
* @returns void
|
|
408
|
+
*/
|
|
355
409
|
hideTypeahead() {
|
|
356
410
|
this.input.length || this.$nextTick(() => {
|
|
357
411
|
this.clearSearchResults();
|
|
358
412
|
});
|
|
359
413
|
},
|
|
414
|
+
/**
|
|
415
|
+
* Select the next search result in typeahead.
|
|
416
|
+
*
|
|
417
|
+
* @returns void
|
|
418
|
+
*/
|
|
360
419
|
nextSearchResult() {
|
|
361
420
|
this.searchSelection + 1 <= this.searchResults.length - 1 && this.searchSelection++;
|
|
362
421
|
},
|
|
422
|
+
/**
|
|
423
|
+
* Select the previous search result in typeahead.
|
|
424
|
+
*
|
|
425
|
+
* @returns void
|
|
426
|
+
*/
|
|
363
427
|
prevSearchResult() {
|
|
364
428
|
this.searchSelection > 0 && this.searchSelection--;
|
|
365
429
|
},
|
|
430
|
+
/**
|
|
431
|
+
* Clear/Empty the search results.
|
|
432
|
+
*
|
|
433
|
+
* @reutrns void
|
|
434
|
+
*/
|
|
366
435
|
clearSearchResults() {
|
|
367
436
|
this.searchResults = [], this.searchSelection = 0, this.typeaheadAlwaysShow && this.$nextTick(() => {
|
|
368
437
|
this.searchTag();
|
|
369
438
|
});
|
|
370
439
|
},
|
|
440
|
+
/**
|
|
441
|
+
* Clear the list of selected tags.
|
|
442
|
+
*
|
|
443
|
+
* @returns void
|
|
444
|
+
*/
|
|
371
445
|
clearTags() {
|
|
372
446
|
this.tags.splice(0, this.tags.length);
|
|
373
447
|
},
|
|
448
|
+
/**
|
|
449
|
+
* Replace the currently selected tags with the tags from the value.
|
|
450
|
+
*
|
|
451
|
+
* @returns void
|
|
452
|
+
*/
|
|
374
453
|
tagsFromValue() {
|
|
375
454
|
if (this.value && this.value.length) {
|
|
376
455
|
if (!Array.isArray(this.value)) {
|
|
@@ -389,6 +468,12 @@ const o = {
|
|
|
389
468
|
this.clearTags();
|
|
390
469
|
}
|
|
391
470
|
},
|
|
471
|
+
/**
|
|
472
|
+
* Check if a tag is already selected.
|
|
473
|
+
*
|
|
474
|
+
* @param tag
|
|
475
|
+
* @returns Boolean
|
|
476
|
+
*/
|
|
392
477
|
tagSelected(e) {
|
|
393
478
|
if (this.allowDuplicates || !e)
|
|
394
479
|
return !1;
|
|
@@ -400,18 +485,47 @@ const o = {
|
|
|
400
485
|
}
|
|
401
486
|
return !1;
|
|
402
487
|
},
|
|
488
|
+
/**
|
|
489
|
+
* Clear the input.
|
|
490
|
+
*
|
|
491
|
+
* @returns void
|
|
492
|
+
*/
|
|
403
493
|
clearInput() {
|
|
404
494
|
this.input = "";
|
|
405
495
|
},
|
|
496
|
+
/**
|
|
497
|
+
* Process all the keyup events.
|
|
498
|
+
*
|
|
499
|
+
* @param e
|
|
500
|
+
* @returns void
|
|
501
|
+
*/
|
|
406
502
|
onKeyUp(e) {
|
|
407
503
|
this.$emit("keyup", e);
|
|
408
504
|
},
|
|
505
|
+
/**
|
|
506
|
+
* Process all the keydown events.
|
|
507
|
+
*
|
|
508
|
+
* @param e
|
|
509
|
+
* @returns void
|
|
510
|
+
*/
|
|
409
511
|
onKeyDown(e) {
|
|
410
512
|
this.$emit("keydown", e);
|
|
411
513
|
},
|
|
514
|
+
/**
|
|
515
|
+
* Process the onfocus event.
|
|
516
|
+
*
|
|
517
|
+
* @param e
|
|
518
|
+
* @returns void
|
|
519
|
+
*/
|
|
412
520
|
onFocus(e) {
|
|
413
521
|
this.$emit("focus", e), this.searchTag();
|
|
414
522
|
},
|
|
523
|
+
/**
|
|
524
|
+
* Process the onblur event.
|
|
525
|
+
*
|
|
526
|
+
* @param e
|
|
527
|
+
* @returns void
|
|
528
|
+
*/
|
|
415
529
|
onBlur(e) {
|
|
416
530
|
this.$emit("blur", e), this.addTagsOnBlur && this.tagFromInput(!0), this.typeaheadAlwaysShow ? this.searchTag() : this.hideTypeahead();
|
|
417
531
|
}
|