@web-utils/component 3.1.1 → 3.2.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/address-input/index.mjs +1 -1
- package/address-input/style.css +1 -1
- package/affix/index.mjs +1 -1
- package/affix/style.css +1 -1
- package/aside-menu/index.mjs +13 -13
- package/aside-menu/style.css +1 -1
- package/avatar/index.mjs +6 -6
- package/avatar/style.css +1 -1
- package/awesome-button/index.mjs +1 -1
- package/base.css +1 -1
- package/capsule-tab/index.mjs +5 -5
- package/capsule-tab/style.css +1 -1
- package/card/index.mjs +13 -13
- package/card/style.css +1 -1
- package/carousel/index.mjs +9 -9
- package/carousel/style.css +1 -1
- package/chat/index.mjs +2 -2
- package/chat/style.css +1 -1
- package/chunk-file-uploader/index.mjs +9 -9
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{FormTemp.aa57efb4.mjs → FormTemp.0eqGAu6W.mjs} +4 -4
- package/chunks/{dataformat.f995e2f9.mjs → dataformat.Ab9PZnVk.mjs} +1 -1
- package/chunks/{dic.eaac0823.mjs → dic.7JBaVHv6.mjs} +1 -1
- package/chunks/{event.b5d855dd.mjs → event.lbJYeMJp.mjs} +3 -3
- package/chunks/{form-input-mixin.4632ad36.mjs → form-input-mixin.IKogWBfn.mjs} +2 -2
- package/chunks/{form-item-mixin.ad148e7b.mjs → form-item-mixin.BilKDUlK.mjs} +1 -1
- package/chunks/{init.47f219b4.mjs → init.6oF7OO2W.mjs} +3 -3
- package/code-mirror-editor/index.mjs +24 -24
- package/code-mirror-editor/style.css +1 -1
- package/color-picker/index.mjs +1 -1
- package/comment/index.mjs +3 -3
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +2 -2
- package/confirmable/index.mjs +2 -2
- package/context-menu/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +1 -1
- package/custom-scrollbar/index.mjs +1 -1
- package/data-box/index.mjs +4 -4
- package/data-box/style.css +1 -1
- package/data-card/index.mjs +10 -10
- package/data-card/style.css +1 -1
- package/data-cardtext/index.mjs +4 -4
- package/data-cardtext/style.css +1 -1
- package/data-display/index.mjs +6 -6
- package/data-display/style.css +1 -1
- package/data-icons/index.mjs +5 -5
- package/data-icons/style.css +1 -1
- package/data-imgtext/index.mjs +10 -10
- package/data-imgtext/style.css +1 -1
- package/data-operatext/index.mjs +3 -3
- package/data-operatext/style.css +1 -1
- package/data-panel/index.mjs +6 -6
- package/data-panel/style.css +1 -1
- package/data-pay/index.mjs +11 -11
- package/data-pay/style.css +1 -1
- package/data-price/index.mjs +8 -8
- package/data-price/style.css +1 -1
- package/data-progress/index.mjs +7 -7
- package/data-progress/style.css +1 -1
- package/data-rotate/index.mjs +7 -7
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +2 -2
- package/data-tabs/index.mjs +9 -9
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +4 -4
- package/dialog-form/style.css +1 -1
- package/dynamic-table/index.mjs +11 -11
- package/dynamic-table/style.css +1 -1
- package/e-charts/index.mjs +1 -1
- package/e-charts/style.css +1 -1
- package/easy-popup/index.mjs +6 -6
- package/easy-popup/style.css +1 -1
- package/editable-progress/index.mjs +1 -1
- package/editable-progress/style.css +1 -1
- package/editable-tree/index.mjs +49 -49
- package/editable-tree/style.css +1 -1
- package/egd-collapse/index.mjs +1 -1
- package/egd-collapse-item/index.mjs +1 -1
- package/element-dialog/index.mjs +14 -14
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +4 -4
- package/empty-view/style.css +1 -1
- package/error-view/index.mjs +3 -3
- package/error-view/style.css +1 -1
- package/flex-column/index.mjs +2 -2
- package/flex-item/index.mjs +2 -2
- package/flex-row/index.mjs +2 -2
- package/flex-scroller/index.mjs +3 -3
- package/flex-scroller/style.css +1 -1
- package/flow/index.mjs +5 -5
- package/flow/style.css +1 -1
- package/flow-designer/index.mjs +27 -29
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/flow-viewer/index.mjs +11 -11
- package/flow-viewer/style.css +1 -1
- package/form-block/index.mjs +14 -14
- package/form-block/style.css +1 -1
- package/form-button/index.mjs +1 -1
- package/form-cascader/index.mjs +4 -4
- package/form-checkbox-group/index.mjs +20 -20
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +4 -4
- package/form-holder/index.mjs +2 -2
- package/form-input/index.mjs +3 -3
- package/form-input-email/index.mjs +3 -3
- package/form-input-id-card/index.mjs +3 -3
- package/form-input-number/index.mjs +9 -9
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +3 -3
- package/form-input-tag/index.mjs +3 -3
- package/form-input-time/index.mjs +3 -3
- package/form-item/index.mjs +10 -10
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +1 -1
- package/form-item-group/index.mjs +2 -2
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +25 -25
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +4 -4
- package/form-switch/index.mjs +3 -3
- package/form-textarea/index.mjs +3 -3
- package/form-view/index.mjs +15 -15
- package/form-view/style.css +1 -1
- package/fy-array/index.mjs +19 -19
- package/fy-array/style.css +1 -1
- package/fy-article/index.mjs +1 -1
- package/fy-article/style.css +1 -1
- package/fy-cascader/index.mjs +2 -2
- package/fy-checkbox/index.mjs +7 -7
- package/fy-checkbox/style.css +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +11 -13
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +9 -9
- package/fy-date/style.css +1 -1
- package/fy-draggable/index.mjs +2 -2
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +5 -5
- package/fy-dynamic/style.css +1 -1
- package/fy-empty/index.mjs +5 -5
- package/fy-empty/style.css +1 -1
- package/fy-form/index.mjs +15 -17
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +19 -23
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -2
- package/fy-input-color/index.mjs +2 -2
- package/fy-input-icon/index.mjs +26 -26
- package/fy-input-icon/style.css +1 -1
- package/fy-input-map/index.mjs +12 -12
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +2 -2
- package/fy-input-table/index.mjs +6 -6
- package/fy-input-table/style.css +1 -1
- package/fy-input-tree/index.mjs +2 -2
- package/fy-input-tree/style.css +1 -1
- package/fy-progress/index.mjs +1 -1
- package/fy-radio/index.mjs +10 -10
- package/fy-radio/style.css +1 -1
- package/fy-rate/index.mjs +4 -4
- package/fy-rate/style.css +1 -1
- package/fy-select/index.mjs +16 -16
- package/fy-select/style.css +1 -1
- package/fy-slider/index.mjs +3 -3
- package/fy-switch/index.mjs +2 -2
- package/fy-tabs/index.mjs +1 -1
- package/fy-time/index.mjs +2 -2
- package/fy-title/index.mjs +9 -9
- package/fy-title/style.css +1 -1
- package/fy-tree/index.mjs +5 -5
- package/fy-tree/style.css +1 -1
- package/fy-u-editor/index.mjs +13 -13
- package/fy-u-editor/style.css +1 -1
- package/fy-upload/index.mjs +17 -17
- package/fy-upload/style.css +1 -1
- package/guide-steps/index.mjs +24 -24
- package/guide-steps/style.css +1 -1
- package/highlight-j-s/index.mjs +3 -3
- package/highlight-j-s/style.css +1 -1
- package/icon-card/index.mjs +4 -4
- package/icon-card/style.css +1 -1
- package/icon-temp/index.mjs +3 -3
- package/icon-temp/style.css +1 -1
- package/iframe-window/index.mjs +4 -4
- package/iframe-window/style.css +1 -1
- package/image-cropper/index.mjs +5 -5
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +8 -8
- package/image-preview/style.css +1 -1
- package/image-viewer/index.mjs +1 -1
- package/image-viewer/style.css +1 -1
- package/input-number/index.mjs +4 -4
- package/input-number/style.css +1 -1
- package/input-number-range/index.mjs +6 -6
- package/input-number-range/style.css +1 -1
- package/keep-view-alive/index.mjs +1 -1
- package/keyboard/index.mjs +6 -6
- package/keyboard/style.css +1 -1
- package/license/index.mjs +2 -2
- package/loading-view/index.mjs +7 -7
- package/loading-view/style.css +1 -1
- package/login/index.mjs +6 -6
- package/login/style.css +1 -1
- package/monaco-editor/index.mjs +2 -2
- package/name-avatar/index.mjs +1 -1
- package/name-avatar/style.css +1 -1
- package/nav-bar/index.mjs +7 -7
- package/nav-bar/style.css +1 -1
- package/not-implement/index.mjs +10 -10
- package/not-implement/style.css +1 -1
- package/notice/index.mjs +1 -1
- package/notice/style.css +1 -1
- package/package.json +5 -5
- package/page/index.mjs +6 -6
- package/page/style.css +1 -1
- package/page-header/index.mjs +3 -3
- package/page-header/style.css +1 -1
- package/page-index/index.mjs +13 -13
- package/page-index/style.css +1 -1
- package/page-index-top/index.mjs +1 -1
- package/page-skeleton/index.mjs +9 -9
- package/page-skeleton/style.css +1 -1
- package/page-skeleton-new/index.mjs +1 -1
- package/page-skeleton-new/style.css +1 -1
- package/pageable-table/index.mjs +18 -18
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +13 -13
- package/pageable-view/style.css +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/present-view/index.mjs +7 -7
- package/present-view/style.css +1 -1
- package/queue/index.mjs +1 -1
- package/queue/style.css +1 -1
- package/record-video/index.mjs +2 -2
- package/record-video/style.css +1 -1
- package/resize-observer/index.mjs +4 -4
- package/resize-observer/style.css +1 -1
- package/search/index.mjs +9 -9
- package/search/style.css +1 -1
- package/search-popover/index.mjs +18 -18
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +15 -15
- package/sign/style.css +1 -1
- package/sign-panel/index.mjs +1 -1
- package/sign-panel/style.css +1 -1
- package/skeleton/index.mjs +7 -7
- package/skeleton/style.css +1 -1
- package/split-pane/index.mjs +47 -48
- package/split-pane/style.css +1 -1
- package/stateful/index.mjs +19 -19
- package/stateful/style.css +1 -1
- package/static-pageable-table/index.mjs +7 -7
- package/static-pageable-table/style.css +1 -1
- package/swiper/index.mjs +4 -4
- package/swiper/style.css +1 -1
- package/tab/index.mjs +8 -8
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +10 -10
- package/table-view/style.css +1 -1
- package/tag-render/index.mjs +7 -7
- package/tag-render/style.css +1 -1
- package/text-ellipsis/index.mjs +4 -4
- package/text-ellipsis/style.css +1 -1
- package/tinymce-editor/index.mjs +21 -22
- package/tinymce-editor/style.css +1 -1
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +13 -13
- package/toolbar-button/style.css +1 -1
- package/verify/index.mjs +15 -15
- package/verify/style.css +1 -1
- package/vue-cron/index.mjs +2 -3
- package/vue-cron/style.css +1 -1
- package/vue-qr-code/index.mjs +1 -1
- package/vue-quill-editor/index.mjs +1 -1
- package/vue-quill-editor/style.css +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tags-input/style.css +1 -1
- package/vue-tree-select/index.mjs +2 -3
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +8 -8
- package/vue-video-player/style.css +1 -1
- package/watermark/index.mjs +19 -19
- package/watermark/style.css +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +5 -5
- package/x-input-tag/style.css +1 -1
- /package/chunks/{_plugin-vue2_normalizer.446f5dc4.mjs → _plugin-vue2_normalizer.JwmUNtgn.mjs} +0 -0
- /package/chunks/{confirmable-mixin.817b542f.mjs → confirmable-mixin.GqdyYLEM.mjs} +0 -0
- /package/chunks/{form-pick-mixin.61ad06b2.mjs → form-pick-mixin.y-qhZJi6.mjs} +0 -0
- /package/chunks/{index.57f871af.mjs → index.LGsb2aDq.mjs} +0 -0
- /package/chunks/{input-number-mixin.41a066be.mjs → input-number-mixin.GE2zr_3s.mjs} +0 -0
- /package/chunks/{json-beautifier.21cfffea.mjs → json-beautifier.fUZFSW5j.mjs} +0 -0
- /package/chunks/{packages.1fc9ccba.mjs → packages.v6r2Hr7E.mjs} +0 -0
- /package/chunks/{permission.ce5d2121.mjs → permission.E9kZbW48.mjs} +0 -0
- /package/chunks/{slot.4b391395.mjs → slot.j1uMmBnG.mjs} +0 -0
- /package/chunks/{tab-mixin.e2b9c6a4.mjs → tab-mixin.tM9jcRT8.mjs} +0 -0
- /package/chunks/{util.ae730cde.mjs → util.y1gUGRqi.mjs} +0 -0
package/data-price/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as c } from "../chunks/_plugin-vue2_normalizer.
|
|
1
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
2
2
|
const i = {
|
|
3
3
|
name: "DataPrice",
|
|
4
4
|
props: {
|
|
@@ -19,24 +19,24 @@ const i = {
|
|
|
19
19
|
};
|
|
20
20
|
var l = function() {
|
|
21
21
|
var t = this, a = t._self._c;
|
|
22
|
-
return a("div", { staticClass: "data-price" }, [a("ElRow", { attrs: { span: 24 } }, [t._l(t.data, function(s,
|
|
23
|
-
return [a("ElCol", { key:
|
|
22
|
+
return a("div", { staticClass: "data-price" }, [a("ElRow", { attrs: { span: 24 } }, [t._l(t.data, function(s, r) {
|
|
23
|
+
return [a("ElCol", { key: r, attrs: { xs: 12, sm: 6, md: t.span } }, [a("div", { staticClass: "item item--active" }, [a("a", { attrs: { href: s.href, target: s.target }, on: { click: function(n) {
|
|
24
24
|
s.click && s.click(s);
|
|
25
|
-
} } }, [a("div", { staticClass: "title" }, [t._v(" " + t._s(s.title) + " ")]), a("div", { staticClass: "body" }, [a("span", { staticClass: "price" }, [t._v(t._s(s.price))]), a("span", { staticClass: "append" }, [t._v(t._s(s.append))])]), a("div", { staticClass: "list" }, t._l(s.list, function(n,
|
|
26
|
-
return a("p", { key:
|
|
25
|
+
} } }, [a("div", { staticClass: "title" }, [t._v(" " + t._s(s.title) + " ")]), a("div", { staticClass: "body" }, [a("span", { staticClass: "price" }, [t._v(t._s(s.price))]), a("span", { staticClass: "append" }, [t._v(t._s(s.append))])]), a("div", { staticClass: "list" }, t._l(s.list, function(n, e) {
|
|
26
|
+
return a("p", { key: e }, [t._v(" " + t._s(n) + " ")]);
|
|
27
27
|
}), 0)])])])];
|
|
28
28
|
})], 2)], 1);
|
|
29
|
-
},
|
|
29
|
+
}, o = [], p = /* @__PURE__ */ c(
|
|
30
30
|
i,
|
|
31
31
|
l,
|
|
32
|
-
|
|
32
|
+
o,
|
|
33
33
|
!1,
|
|
34
34
|
null,
|
|
35
35
|
null,
|
|
36
36
|
null,
|
|
37
37
|
null
|
|
38
38
|
);
|
|
39
|
-
const u =
|
|
39
|
+
const u = p.exports;
|
|
40
40
|
export {
|
|
41
41
|
u as default
|
|
42
42
|
};
|
package/data-price/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.data-price .item{text-align:center;border:1px solid #ccc;margin:0 20px;box-shadow:2px 3px 15px #eee}.data-price .item:hover{border:1px solid #00a680}.data-price .item:hover .body{color:#fff;background-color:#00a680}.data-price .item:hover .body:after{border-top-color:#00a680}.data-price .item:hover .list{color:#00a680}.data-price .item:hover .price{color:#fff}.data-price .item .title{color:#333;height:80px;font-size:18px;line-height:80px}.data-price .item .price{color:#6b6b6b;height:120px;margin:0 0 50px;padding:0 8px;font-size:42px;line-height:120px}.data-price .item .append{font-size:16px}.data-price .item .body{color:#6b6b6b;background-color:#f4f4f4;height:120px;margin:0 0 50px;padding:0;font-size:42px;line-height:120px;position:relative}.data-price .item .body:before{content:"¥";font-size:16px;font-weight:400}.data-price .item .body:after{content:"";border:30px solid transparent;border-top:20px solid #f4f4f4;border-bottom-width:0;width:0;height:0;display:block;position:absolute;bottom:-15px;left:50%;transform:translate(-50%)}.data-price .item .list{color:#666;padding-bottom:30px;font-size:14px}
|
|
1
|
+
.data-price .item{text-align:center;border:1px solid #ccc;margin:0 20px;box-shadow:2px 3px 15px #eee}.data-price .item:hover{border:1px solid #00a680}.data-price .item:hover .body{color:#fff;background-color:#00a680}.data-price .item:hover .body:after{border-top-color:#00a680}.data-price .item:hover .list{color:#00a680}.data-price .item:hover .price{color:#fff}.data-price .item .title{color:#333;height:80px;font-size:18px;line-height:80px}.data-price .item .price{color:#6b6b6b;height:120px;margin:0 0 50px;padding:0 8px;font-size:42px;line-height:120px}.data-price .item .append{font-size:16px}.data-price .item .body{color:#6b6b6b;background-color:#f4f4f4;height:120px;margin:0 0 50px;padding:0;font-size:42px;line-height:120px;position:relative}.data-price .item .body:before{content:"¥";font-size:16px;font-weight:400}.data-price .item .body:after{content:"";border:30px solid transparent;border-top:20px solid #f4f4f4;border-bottom-width:0;width:0;height:0;display:block;position:absolute;bottom:-15px;left:50%;transform:translate(-50%)}.data-price .item .list{color:#666;padding-bottom:30px;font-size:14px}
|
package/data-progress/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
const
|
|
1
|
+
import { n as o } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
2
|
+
const r = {
|
|
3
3
|
name: "DataProgress",
|
|
4
4
|
props: {
|
|
5
5
|
option: {
|
|
@@ -23,16 +23,16 @@ const o = {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
var
|
|
26
|
+
var e = function() {
|
|
27
27
|
var s = this, a = s._self._c;
|
|
28
28
|
return a("div", { staticClass: "data-progress" }, [a("ElRow", { attrs: { span: 24 } }, s._l(s.data, function(t, n) {
|
|
29
29
|
return a("ElCol", { key: n, attrs: { md: s.span, xs: 24, sm: 12 } }, [a("div", { staticClass: "item" }, [a("a", { attrs: { href: t.href, target: t.target }, on: { click: function(d) {
|
|
30
30
|
t.click && t.click(t);
|
|
31
31
|
} } }, [a("div", { staticClass: "item-header" }, [a("CountUp", { staticClass: "item-count", attrs: { animation: t.animation || s.animation, decimals: t.decimals || s.decimals, end: t.count } }), a("div", { staticClass: "item-title", domProps: { textContent: s._s(t.title) } })], 1), a("ElProgress", { attrs: { "stroke-width": 15, percentage: t.count, color: t.color, "show-text": !1 } })], 1)])]);
|
|
32
32
|
}), 1)], 1);
|
|
33
|
-
}, i = [],
|
|
34
|
-
o,
|
|
33
|
+
}, i = [], c = /* @__PURE__ */ o(
|
|
35
34
|
r,
|
|
35
|
+
e,
|
|
36
36
|
i,
|
|
37
37
|
!1,
|
|
38
38
|
null,
|
|
@@ -40,7 +40,7 @@ var r = function() {
|
|
|
40
40
|
null,
|
|
41
41
|
null
|
|
42
42
|
);
|
|
43
|
-
const
|
|
43
|
+
const u = c.exports;
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
u as default
|
|
46
46
|
};
|
package/data-progress/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.data-progress .item{margin:10px}.data-progress .item a{text-decoration:none}.data-progress .item a:visited{color:inherit}.data-progress .item-header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.data-progress .item-count{color:#666;font-size:26px;line-height:26px}.data-progress .item-title{color:#999;font-size:14px}
|
|
1
|
+
.data-progress .item{margin:10px}.data-progress .item a{text-decoration:none}.data-progress .item a:visited{color:inherit}.data-progress .item-header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.data-progress .item-count{color:#666;font-size:26px;line-height:26px}.data-progress .item-title{color:#999;font-size:14px}
|
package/data-rotate/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
const
|
|
1
|
+
import { n as i } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
2
|
+
const o = {
|
|
3
3
|
name: "DataRotate",
|
|
4
4
|
props: {
|
|
5
5
|
option: {
|
|
@@ -26,12 +26,12 @@ const i = {
|
|
|
26
26
|
var e = function() {
|
|
27
27
|
var s = this, t = s._self._c;
|
|
28
28
|
return t("div", { staticClass: "avue-data-rotate" }, [t("ElRow", { attrs: { span: 24 } }, s._l(s.data, function(a, n) {
|
|
29
|
-
return t("ElCol", { key: n, attrs: { md: s.span, xs: 24, sm: 12 } }, [t("div", { staticClass: "item", style: { backgroundColor: a.color } }, [t("div", { staticClass: "item-box" }, [t("CountUp", { staticClass: "item-count", attrs: { decimals: a.decimals || s.decimals, animation: a.animation || s.animation, end: a.count } }), t("span", { staticClass: "item-title" }, [s._v(s._s(a.title))]), t("i", { staticClass: "item-icon", class: a.icon })], 1), t("a", { attrs: { href: a.href }, on: { click: function(
|
|
29
|
+
return t("ElCol", { key: n, attrs: { md: s.span, xs: 24, sm: 12 } }, [t("div", { staticClass: "item", style: { backgroundColor: a.color } }, [t("div", { staticClass: "item-box" }, [t("CountUp", { staticClass: "item-count", attrs: { decimals: a.decimals || s.decimals, animation: a.animation || s.animation, end: a.count } }), t("span", { staticClass: "item-title" }, [s._v(s._s(a.title))]), t("i", { staticClass: "item-icon", class: a.icon })], 1), t("a", { attrs: { href: a.href }, on: { click: function(d) {
|
|
30
30
|
a.click && a.click(a);
|
|
31
31
|
} } }, [t("p", { staticClass: "item-more" }, [s._v("更多"), t("i", { staticClass: "el-icon-arrow-right" })])])])]);
|
|
32
32
|
}), 1)], 1);
|
|
33
|
-
}, c = [],
|
|
34
|
-
|
|
33
|
+
}, c = [], r = /* @__PURE__ */ i(
|
|
34
|
+
o,
|
|
35
35
|
e,
|
|
36
36
|
c,
|
|
37
37
|
!1,
|
|
@@ -40,7 +40,7 @@ var e = function() {
|
|
|
40
40
|
null,
|
|
41
41
|
null
|
|
42
42
|
);
|
|
43
|
-
const
|
|
43
|
+
const u = r.exports;
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
u as default
|
|
46
46
|
};
|
package/data-rotate/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-data-rotate .item{box-sizing:border-box;color:#fff;border-radius:3px;margin:5px 10px;position:relative}.avue-data-rotate .item-box{padding:10px 20px}.avue-data-rotate .item-count{white-space:nowrap;margin-bottom:5px;font-size:38px;font-weight:300;display:block}.avue-data-rotate .item-title{font-size:15px}.avue-data-rotate .item-icon{color:rgba(0,0,0,.15);font-size:65px;transition:all .3s linear;position:absolute;top:20px;right:20px}.avue-data-rotate .item-icon:hover{font-size:70px}.avue-data-rotate .item-more{z-index:10;color:rgba(255,255,255,.8);letter-spacing:2px;text-align:center;background:rgba(0,0,0,.1);padding:3px 0;font-size:14px;text-decoration:none;display:block;position:relative}
|
|
1
|
+
.avue-data-rotate .item{box-sizing:border-box;color:#fff;border-radius:3px;margin:5px 10px;position:relative}.avue-data-rotate .item-box{padding:10px 20px}.avue-data-rotate .item-count{white-space:nowrap;margin-bottom:5px;font-size:38px;font-weight:300;display:block}.avue-data-rotate .item-title{font-size:15px}.avue-data-rotate .item-icon{color:rgba(0,0,0,.15);font-size:65px;transition:all .3s linear;position:absolute;top:20px;right:20px}.avue-data-rotate .item-icon:hover{font-size:70px}.avue-data-rotate .item-more{z-index:10;color:rgba(255,255,255,.8);letter-spacing:2px;text-align:center;background:rgba(0,0,0,.1);padding:3px 0;font-size:14px;text-decoration:none;display:block;position:relative}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as i } from "../chunks/index.
|
|
2
|
-
import { n } from "../chunks/_plugin-vue2_normalizer.
|
|
1
|
+
import { f as i } from "../chunks/index.LGsb2aDq.mjs";
|
|
2
|
+
import { n } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
3
3
|
const o = {
|
|
4
4
|
name: "DataTablePicker",
|
|
5
5
|
props: {
|
package/data-tabs/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
const
|
|
1
|
+
import { n as o } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
2
|
+
const i = {
|
|
3
3
|
name: "DataTabs",
|
|
4
4
|
props: {
|
|
5
5
|
option: {
|
|
@@ -23,24 +23,24 @@ const o = {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
var
|
|
26
|
+
var e = function() {
|
|
27
27
|
var t = this, a = t._self._c;
|
|
28
28
|
return a("div", { staticClass: "avue-data-tabs" }, [a("ElRow", { attrs: { span: 24 } }, t._l(t.data, function(s, n) {
|
|
29
|
-
return a("ElCol", { key: n, attrs: { md: t.span, xs: 24, sm: 12 } }, [a("div", { staticClass: "item", style: { background: s.color } }, [a("a", { attrs: { href: s.href, target: s.target }, on: { click: function(
|
|
29
|
+
return a("ElCol", { key: n, attrs: { md: t.span, xs: 24, sm: 12 } }, [a("div", { staticClass: "item", style: { background: s.color } }, [a("a", { attrs: { href: s.href, target: s.target }, on: { click: function(d) {
|
|
30
30
|
s.click && s.click(s);
|
|
31
31
|
} } }, [a("div", { staticClass: "item-header" }, [a("p", [t._v(t._s(s.title))]), a("span", [t._v(t._s(s.subtitle))])]), a("div", { staticClass: "item-body" }, [a("CountUp", { staticClass: "h2", attrs: { decimals: s.decimals || t.decimals, animation: s.animation || t.animation, end: s.count } })], 1), a("div", { staticClass: "item-footer" }, [a("span", [t._v(t._s(s.allcount))]), a("p", [t._v(t._s(s.text))])]), a("p", { staticClass: "item-tip" }, [t._v(t._s(s.key))])])])]);
|
|
32
32
|
}), 1)], 1);
|
|
33
|
-
},
|
|
34
|
-
o,
|
|
33
|
+
}, r = [], l = /* @__PURE__ */ o(
|
|
35
34
|
i,
|
|
36
|
-
|
|
35
|
+
e,
|
|
36
|
+
r,
|
|
37
37
|
!1,
|
|
38
38
|
null,
|
|
39
39
|
null,
|
|
40
40
|
null,
|
|
41
41
|
null
|
|
42
42
|
);
|
|
43
|
-
const
|
|
43
|
+
const _ = l.exports;
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
_ as default
|
|
46
46
|
};
|
package/data-tabs/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-data-tabs .item{box-sizing:border-box;color:#fff;border-radius:4px;height:160px;margin:15px;padding:12px;position:relative;overflow:hidden}.avue-data-tabs .item a{color:#fff}.avue-data-tabs .item-header{position:relative}.avue-data-tabs .item-header>p{color:#fff;margin:0;font-size:14px}.avue-data-tabs .item-header>span{background:rgba(255,255,255,.3);border-radius:4px;padding:2px 8px;font-size:12px;position:absolute;top:0;right:0}.avue-data-tabs .item-body .h2{color:#fff;margin:0;font-size:32px;font-weight:700;line-height:60px}.avue-data-tabs .item-footer{padding-top:8px;line-height:20px}.avue-data-tabs .item-footer>span{font-size:10px}.avue-data-tabs .item-footer>p{color:#fff;margin:0;font-size:12px}.avue-data-tabs .item-tip{opacity:.1;border:2px solid #fff;border-radius:100%;justify-content:center;align-items:center;width:80px;height:80px;font-size:48px;display:flex;position:absolute;bottom:10px;right:10px;transform:rotate(-40deg)}
|
|
1
|
+
.avue-data-tabs .item{box-sizing:border-box;color:#fff;border-radius:4px;height:160px;margin:15px;padding:12px;position:relative;overflow:hidden}.avue-data-tabs .item a{color:#fff}.avue-data-tabs .item-header{position:relative}.avue-data-tabs .item-header>p{color:#fff;margin:0;font-size:14px}.avue-data-tabs .item-header>span{background:rgba(255,255,255,.3);border-radius:4px;padding:2px 8px;font-size:12px;position:absolute;top:0;right:0}.avue-data-tabs .item-body .h2{color:#fff;margin:0;font-size:32px;font-weight:700;line-height:60px}.avue-data-tabs .item-footer{padding-top:8px;line-height:20px}.avue-data-tabs .item-footer>span{font-size:10px}.avue-data-tabs .item-footer>p{color:#fff;margin:0;font-size:12px}.avue-data-tabs .item-tip{opacity:.1;border:2px solid #fff;border-radius:100%;justify-content:center;align-items:center;width:80px;height:80px;font-size:48px;display:flex;position:absolute;bottom:10px;right:10px;transform:rotate(-40deg)}
|
package/dialog-form/index.mjs
CHANGED
|
@@ -11,9 +11,9 @@ var l = (t, e, o) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return t;
|
|
12
12
|
}, r = (t, e) => d(t, m(e));
|
|
13
13
|
import { isEmpty as b } from "@web-utils/core";
|
|
14
|
-
import { d as f } from "../chunks/util.
|
|
14
|
+
import { d as f } from "../chunks/util.y1gUGRqi.mjs";
|
|
15
15
|
import h from "vue";
|
|
16
|
-
import { n as _ } from "../chunks/_plugin-vue2_normalizer.
|
|
16
|
+
import { n as _ } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
17
17
|
const i = {
|
|
18
18
|
name: "DialogForm",
|
|
19
19
|
data() {
|
|
@@ -96,7 +96,7 @@ var y = function() {
|
|
|
96
96
|
null,
|
|
97
97
|
null
|
|
98
98
|
);
|
|
99
|
-
const
|
|
99
|
+
const D = C.exports;
|
|
100
100
|
export {
|
|
101
|
-
|
|
101
|
+
D as default
|
|
102
102
|
};
|
package/dialog-form/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dialog-form .element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body,.dialog-form .el-drawer__body{flex-direction:column;flex:auto;padding:0;display:flex}.dialog-form .element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body .avue-form,.dialog-form .el-drawer__body .avue-form{flex:auto}
|
|
1
|
+
.dialog-form .element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body,.dialog-form .el-drawer__body{flex-direction:column;flex:auto;padding:0;display:flex}.dialog-form .element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body .avue-form,.dialog-form .el-drawer__body .avue-form{flex:auto}
|
package/dynamic-table/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fastClone as o, validateNumber as p, validateIdCard as u, validatePhoneNum as d } from "@web-utils/core";
|
|
2
|
-
import { n as c } from "../chunks/_plugin-vue2_normalizer.
|
|
3
|
-
const
|
|
2
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
3
|
+
const n = {
|
|
4
4
|
number: "fa fa-superscript",
|
|
5
5
|
email: "el-icon-lx-mail",
|
|
6
6
|
phone: "fa fa-phone",
|
|
@@ -56,7 +56,7 @@ const r = {
|
|
|
56
56
|
},
|
|
57
57
|
methods: {
|
|
58
58
|
getIcon(t) {
|
|
59
|
-
return
|
|
59
|
+
return n[t.type] ? n[t.type] : "";
|
|
60
60
|
},
|
|
61
61
|
addRow() {
|
|
62
62
|
const t = this.value;
|
|
@@ -86,26 +86,26 @@ var f = function() {
|
|
|
86
86
|
var e = this, a = e._self._c;
|
|
87
87
|
return a("div", { staticClass: "dynamic-table" }, [a("ElTable", { key: e.key, staticStyle: { width: "100%" }, attrs: { data: e.value } }, [e._l(e.columns, function(i) {
|
|
88
88
|
return a("TableColumn", { key: i.prop, attrs: { prop: i.prop, label: i.label, "min-width": "150" }, scopedSlots: e._u([{ key: "default", fn: function({ row: l, $index: s }) {
|
|
89
|
-
return [a("ElFormItem", { style: { marginBottom: e.inputDisabled ? "0px" : "16px" }, attrs: { prop: `${e.prop}.${s}.${i.prop}`, size: "mini", rules: e.getRules(i) } }, [a("ElInput", { attrs: { "prefix-icon": e.getIcon(i), disabled: e.inputDisabled, placeholder: e.inputDisabled ? "" : `请输入${i.label}!` }, model: { value: l[i.prop], callback: function(
|
|
90
|
-
e.$set(l, i.prop,
|
|
89
|
+
return [a("ElFormItem", { style: { marginBottom: e.inputDisabled ? "0px" : "16px" }, attrs: { prop: `${e.prop}.${s}.${i.prop}`, size: "mini", rules: e.getRules(i) } }, [a("ElInput", { attrs: { "prefix-icon": e.getIcon(i), disabled: e.inputDisabled, placeholder: e.inputDisabled ? "" : `请输入${i.label}!` }, model: { value: l[i.prop], callback: function(r) {
|
|
90
|
+
e.$set(l, i.prop, r);
|
|
91
91
|
}, expression: "row[column.prop]" } })], 1)];
|
|
92
92
|
} }], null, !0) });
|
|
93
93
|
}), e.inputDisabled ? e._e() : a("TableColumn", { attrs: { label: "操作", width: "60", fixed: "right" }, scopedSlots: e._u([{ key: "default", fn: function({ row: i, column: l, $index: s }) {
|
|
94
|
-
return [a("i", { staticClass: "el-icon-minus dynamic-table-action-icon", staticStyle: { position: "relative", top: "-8px", color: "#f00" }, attrs: { title: "删除" }, on: { click: function(
|
|
95
|
-
return
|
|
94
|
+
return [a("i", { staticClass: "el-icon-minus dynamic-table-action-icon", staticStyle: { position: "relative", top: "-8px", color: "#f00" }, attrs: { title: "删除" }, on: { click: function(r) {
|
|
95
|
+
return r.stopPropagation(), e.removeRow(i, s, l);
|
|
96
96
|
} } })];
|
|
97
97
|
} }], null, !1, 410881950) })], 2), e.inputDisabled ? e._e() : a("ElButton", { staticStyle: { color: "#08c108" }, attrs: { type: "text", icon: "el-icon-plus" }, on: { click: e.addRow } }, [e._v(" 添加 ")])], 1);
|
|
98
|
-
},
|
|
98
|
+
}, h = [], y = /* @__PURE__ */ c(
|
|
99
99
|
m,
|
|
100
100
|
f,
|
|
101
|
-
|
|
101
|
+
h,
|
|
102
102
|
!1,
|
|
103
103
|
null,
|
|
104
104
|
null,
|
|
105
105
|
null,
|
|
106
106
|
null
|
|
107
107
|
);
|
|
108
|
-
const
|
|
108
|
+
const _ = y.exports;
|
|
109
109
|
export {
|
|
110
|
-
|
|
110
|
+
_ as default
|
|
111
111
|
};
|
package/dynamic-table/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dynamic-table{flex-direction:column;align-items:center;width:100%;display:flex}.dynamic-table .dynamic-table-action-icon{cursor:pointer;margin-left:10px;font-weight:700}.dynamic-table .el-form-item{margin-bottom:0}.dynamic-table .el-table{flex:auto}.dynamic-table .el-table td{padding:2px 0}.dynamic-table .el-input.is-disabled .el-input__inner{background-color:transparent;border:none}
|
|
1
|
+
.dynamic-table{flex-direction:column;align-items:center;width:100%;display:flex}.dynamic-table .dynamic-table-action-icon{cursor:pointer;margin-left:10px;font-weight:700}.dynamic-table .el-form-item{margin-bottom:0}.dynamic-table .el-table{flex:auto}.dynamic-table .el-table td{padding:2px 0}.dynamic-table .el-input.is-disabled .el-input__inner{background-color:transparent;border:none}
|
package/e-charts/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import * as s from "echarts/core";
|
|
|
2
2
|
import { isString as r } from "@web-utils/core";
|
|
3
3
|
import { debounce as a } from "@web-utils/integrations/lodash";
|
|
4
4
|
import { addListener as n, removeListener as o } from "resize-detector";
|
|
5
|
-
import { n as d } from "../chunks/_plugin-vue2_normalizer.
|
|
5
|
+
import { n as d } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
6
6
|
const c = ["theme", "initOptions", "autoResize"], l = ["manualUpdate", "watchShallow"], p = {
|
|
7
7
|
name: "ECharts",
|
|
8
8
|
props: {
|
package/e-charts/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.echarts{width:100%;height:100%}
|
|
1
|
+
.echarts{width:100%;height:100%}
|
package/easy-popup/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ var d = (i, e, t) => new Promise((o, r) => {
|
|
|
15
15
|
n((t = t.apply(i, e)).next());
|
|
16
16
|
});
|
|
17
17
|
import { getComputedWidth as f, getComputedHeight as u } from "@web-utils/core";
|
|
18
|
-
import { n as p } from "../chunks/_plugin-vue2_normalizer.
|
|
18
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
19
19
|
const c = {
|
|
20
20
|
name: "EasyPopup",
|
|
21
21
|
props: {
|
|
@@ -86,7 +86,7 @@ const c = {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
var
|
|
89
|
+
var m = function() {
|
|
90
90
|
var e = this, t = e._self._c;
|
|
91
91
|
return t("Transition", { attrs: { name: "easy-popup" } }, [e.rendered ? t("div", { directives: [{ name: "show", rawName: "v-show", value: e.visible, expression: "visible" }], ref: "container", class: [
|
|
92
92
|
"easy-popup",
|
|
@@ -94,17 +94,17 @@ var y = function() {
|
|
|
94
94
|
], style: e.position, on: { mouseleave: function(o) {
|
|
95
95
|
e.hideOnMouseLeave && e.hide();
|
|
96
96
|
} } }, [e._t("default")], 2) : e._e()]);
|
|
97
|
-
},
|
|
97
|
+
}, x = [], v = /* @__PURE__ */ p(
|
|
98
98
|
c,
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
m,
|
|
100
|
+
x,
|
|
101
101
|
!1,
|
|
102
102
|
null,
|
|
103
103
|
null,
|
|
104
104
|
null,
|
|
105
105
|
null
|
|
106
106
|
);
|
|
107
|
-
const w =
|
|
107
|
+
const w = v.exports;
|
|
108
108
|
export {
|
|
109
109
|
w as default
|
|
110
110
|
};
|
package/easy-popup/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.easy-popup{z-index:9999;background:#fff;border:1px solid #ebeef5;border-radius:4px;width:300px;min-height:200px;padding:12px;position:fixed;box-shadow:0 2px 12px rgba(0,0,0,.1)}@keyframes easy-popup-zoom-in{0%{opacity:0;transform:scale3d(0,0,0)}to{opacity:1}}.easy-popup-enter-active,.easy-popup-enter{animation:.2s easy-popup-zoom-in}@keyframes easy-popup-zoom-out{0%{opacity:1}to{opacity:0;transform:scale3d(0,0,0)}}.easy-popup-leave-active,.easy-popup-leave{animation:.2s easy-popup-zoom-out}
|
|
1
|
+
.easy-popup{z-index:9999;background:#fff;border:1px solid #ebeef5;border-radius:4px;width:300px;min-height:200px;padding:12px;position:fixed;box-shadow:0 2px 12px rgba(0,0,0,.1)}@keyframes easy-popup-zoom-in{0%{opacity:0;transform:scale3d(0,0,0)}to{opacity:1}}.easy-popup-enter-active,.easy-popup-enter{animation:.2s easy-popup-zoom-in}@keyframes easy-popup-zoom-out{0%{opacity:1}to{opacity:0;transform:scale3d(0,0,0)}}.easy-popup-leave-active,.easy-popup-leave{animation:.2s easy-popup-zoom-out}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.editable-progress{background-color:#e4e7ed;border-radius:100px;flex-direction:column;justify-content:center;align-items:flex-start;width:100%;display:flex}.editable-progress .el-progress,.editable-progress .el-slider{width:100%;font-weight:700}.editable-progress .el-slider__runway{margin:0}.editable-progress .el-progress-bar__outer{background-color:#e4e7ed}.editable-progress .el-slider__bar,.editable-progress .el-slider__runway{border-radius:100px;height:22px}.editable-progress .el-slider__button-wrapper{width:52px;height:52px}.editable-progress .el-slider__button-wrapper .el-slider__button{width:24px;height:24px}
|
|
1
|
+
.editable-progress{background-color:#e4e7ed;border-radius:100px;flex-direction:column;justify-content:center;align-items:flex-start;width:100%;display:flex}.editable-progress .el-progress,.editable-progress .el-slider{width:100%;font-weight:700}.editable-progress .el-slider__runway{margin:0}.editable-progress .el-progress-bar__outer{background-color:#e4e7ed}.editable-progress .el-slider__bar,.editable-progress .el-slider__runway{border-radius:100px;height:22px}.editable-progress .el-slider__button-wrapper{width:52px;height:52px}.editable-progress .el-slider__button-wrapper .el-slider__button{width:24px;height:24px}
|
package/editable-tree/index.mjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
var $ = Object.defineProperty, b = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var k = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var x = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var B = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var w = (t, e, i) => e in t ? $(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, c = (t, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
B.call(e, i) && w(t, i, e[i]);
|
|
8
8
|
if (x)
|
|
9
9
|
for (var i of x(e))
|
|
10
|
-
|
|
10
|
+
_.call(e, i) && w(t, i, e[i]);
|
|
11
11
|
return t;
|
|
12
|
-
}, h = (t, e) => b(t,
|
|
13
|
-
var a = (t, e, i) => new Promise((s,
|
|
14
|
-
var
|
|
12
|
+
}, h = (t, e) => b(t, k(e));
|
|
13
|
+
var a = (t, e, i) => new Promise((s, o) => {
|
|
14
|
+
var n = (d) => {
|
|
15
15
|
try {
|
|
16
16
|
l(i.next(d));
|
|
17
17
|
} catch (f) {
|
|
18
|
-
|
|
18
|
+
o(f);
|
|
19
19
|
}
|
|
20
20
|
}, r = (d) => {
|
|
21
21
|
try {
|
|
22
22
|
l(i.throw(d));
|
|
23
23
|
} catch (f) {
|
|
24
|
-
|
|
24
|
+
o(f);
|
|
25
25
|
}
|
|
26
|
-
}, l = (d) => d.done ? s(d.value) : Promise.resolve(d.value).then(
|
|
26
|
+
}, l = (d) => d.done ? s(d.value) : Promise.resolve(d.value).then(n, r);
|
|
27
27
|
l((i = i.apply(t, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import { hasOwn as m, isVerticalScrollbarVisible as T, scrollbarWidth as M, computePosition as K, isPlainObject as u, isFunction as N, isUndefined as p, isNotEmpty as P, fastClone as E, delay as D, findTreeChildren as L } from "@web-utils/core";
|
|
30
30
|
import { addResizeListener as C, removeResizeListener as g } from "@web-utils/integrations/resize";
|
|
31
31
|
import { cloneDeep as v } from "@web-utils/integrations/lodash";
|
|
32
|
-
import { a as R, b as z, c as y } from "../chunks/index.
|
|
33
|
-
import { n as S } from "../chunks/_plugin-vue2_normalizer.
|
|
32
|
+
import { a as R, b as z, c as y } from "../chunks/index.LGsb2aDq.mjs";
|
|
33
|
+
import { n as S } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
34
34
|
const V = {
|
|
35
35
|
name: "EditableTree",
|
|
36
36
|
props: {
|
|
@@ -207,7 +207,7 @@ const V = {
|
|
|
207
207
|
},
|
|
208
208
|
loadNode(t, e) {
|
|
209
209
|
return a(this, null, function* () {
|
|
210
|
-
var i, s,
|
|
210
|
+
var i, s, o, n;
|
|
211
211
|
if (t.level === 0) {
|
|
212
212
|
const r = yield this.fetchApi((s = (i = this.rootNode) == null ? void 0 : i.id) != null ? s : -1, t);
|
|
213
213
|
if (this.empty = r.data.length === 0, u(this.customRootNode)) {
|
|
@@ -218,7 +218,7 @@ const V = {
|
|
|
218
218
|
l[this.treeProps.children || "children"] = r.data, this.treeData = u(l) ? [l] : l;
|
|
219
219
|
} else
|
|
220
220
|
e(r.data);
|
|
221
|
-
yield this.$nextTick(), this.$emit("root-node-loaded", r.data), this.defaultExpandedKeys ? this.expandedKeys = [(
|
|
221
|
+
yield this.$nextTick(), this.$emit("root-node-loaded", r.data), this.defaultExpandedKeys ? this.expandedKeys = [(o = r == null ? void 0 : r.data[0]) == null ? void 0 : o.id, ...this.defaultExpandedKeys] : this.expandFirstNode && (this.expandedKeys = [(n = r == null ? void 0 : r.data[0]) == null ? void 0 : n.id]);
|
|
222
222
|
} else {
|
|
223
223
|
if (t.leaf || t.data.isTempNode)
|
|
224
224
|
return e([]);
|
|
@@ -243,16 +243,16 @@ const V = {
|
|
|
243
243
|
return a(this, null, function* () {
|
|
244
244
|
!this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = e, this.text = e[this.treeProps.label], p(e.edit) ? this.$set(e, "edit", !0) : e.edit = !0, yield this.$nextTick(), this.$refs.labelTxt.focus()) : yield this.$prompt(`请输入新的${this.label}名:`, h(c({}, this.defaultOptions), {
|
|
245
245
|
inputValue: e[this.treeProps.label],
|
|
246
|
-
beforeClose: (i, s,
|
|
246
|
+
beforeClose: (i, s, o) => a(this, null, function* () {
|
|
247
247
|
if (i === "confirm") {
|
|
248
248
|
try {
|
|
249
|
-
s.confirmButtonLoading = !0, s.confirmButtonText = "处理中...", this.text = s.inputValue, yield this.onConfirm(this.curNode, this.curData),
|
|
250
|
-
} catch (
|
|
249
|
+
s.confirmButtonLoading = !0, s.confirmButtonText = "处理中...", this.text = s.inputValue, yield this.onConfirm(this.curNode, this.curData), o();
|
|
250
|
+
} catch (n) {
|
|
251
251
|
s.confirmButtonText = "确定";
|
|
252
252
|
}
|
|
253
253
|
s.confirmButtonLoading = !1;
|
|
254
254
|
} else
|
|
255
|
-
|
|
255
|
+
o();
|
|
256
256
|
})
|
|
257
257
|
})).catch((i) => i);
|
|
258
258
|
});
|
|
@@ -281,18 +281,18 @@ const V = {
|
|
|
281
281
|
const e = t.expanded;
|
|
282
282
|
t.expand(() => a(this, null, function* () {
|
|
283
283
|
!this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(t.data.id), this.$refs.tree.append(this.newChild, t), yield this.scrollIntoView(e)) : yield this.$prompt(`请输入${this.label}名:`, h(c({}, this.defaultOptions), {
|
|
284
|
-
beforeClose: (i, s,
|
|
284
|
+
beforeClose: (i, s, o) => a(this, null, function* () {
|
|
285
285
|
if (i === "confirm") {
|
|
286
286
|
try {
|
|
287
287
|
this.createNewChild(t.data.id), s.confirmButtonLoading = !0, s.confirmButtonText = "处理中...";
|
|
288
|
-
const
|
|
289
|
-
this.newChild[this.treeProps.label] = s.inputValue, this.newChild.edit = !1, y(this.newChild,
|
|
290
|
-
} catch (
|
|
288
|
+
const n = yield this.saveApi(this.newNodeBuilder(s.inputValue, t.data));
|
|
289
|
+
this.newChild[this.treeProps.label] = s.inputValue, this.newChild.edit = !1, y(this.newChild, n.data), this.$refs.tree.append(this.newChild, t), yield this.locateView(), o();
|
|
290
|
+
} catch (n) {
|
|
291
291
|
s.confirmButtonText = "确定";
|
|
292
292
|
}
|
|
293
293
|
s.confirmButtonLoading = !1;
|
|
294
294
|
} else
|
|
295
|
-
|
|
295
|
+
o();
|
|
296
296
|
})
|
|
297
297
|
})).catch((i) => i);
|
|
298
298
|
}));
|
|
@@ -367,9 +367,9 @@ const V = {
|
|
|
367
367
|
if (e === "confirm") {
|
|
368
368
|
try {
|
|
369
369
|
i.confirmButtonLoading = !0, i.confirmButtonText = "删除...";
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
} catch (
|
|
370
|
+
const o = t.parent, n = yield this.deleteApi(t.data.id);
|
|
371
|
+
n.code === 0 ? (this.$message.success("删除成功!"), this.$refs.tree.remove(t), this.$emit("node-deleted", o, t.data), s()) : this.$message.error(n.message);
|
|
372
|
+
} catch (o) {
|
|
373
373
|
}
|
|
374
374
|
i.confirmButtonText = "确定", i.confirmButtonLoading = !1;
|
|
375
375
|
} else
|
|
@@ -478,34 +478,34 @@ var A = function() {
|
|
|
478
478
|
var e = this, i = e._self._c;
|
|
479
479
|
return i("div", { staticClass: "editable-tree" }, [!e.readonly && e.addRootNodeButtonStyle === "top-right" ? i("ElButton", { staticStyle: { position: "absolute", top: "4px", "z-index": "1" }, style: { right: `${e.right}px` }, attrs: { type: "primary", size: "mini", icon: "el-icon-plus", circle: "", plain: "" }, on: { click: function(s) {
|
|
480
480
|
return s.stopPropagation(), e.$emit("add-root-node");
|
|
481
|
-
} } }) : e._e(), i("div", { ref: "treeWrapper", staticClass: "et-tree-wrapper" }, [!e.readonly && e.addRootNodeButtonStyle === "top" ? i("div", { staticStyle: { "padding-left": "24px" } }, [i("ElButton", { attrs: { disabled: e.loading, size: "mini", type: "text" }, on: { click: e.appendRootNode } }, [i("i", { staticClass: "el-icon-lx-add" }), e._v(" " + e._s(e.addRootNodeLabel ? e.addRootNodeLabel : `添加${e.label}`) + " ")])], 1) : e._e(), i("ElTree", e._g(e._b({ key: e.treeKey, ref: "tree", staticClass: "flex-item", attrs: { "default-expanded-keys": e.expandedKeys, "expand-on-click-node": !1, "highlight-current": "", load: e.loadNode, data: e.innerTreeData, props: e.treeProps, lazy: e.lazy, "node-key": e.nodeKey }, on: { "node-click": e.nodeClick, "node-contextmenu": e.showContextMenu, "node-expand": e.addExpandKey, "node-collapse": e.removeExpandKey }, scopedSlots: e._u([{ key: "default", fn: function({ node: s, data:
|
|
481
|
+
} } }) : e._e(), i("div", { ref: "treeWrapper", staticClass: "et-tree-wrapper" }, [!e.readonly && e.addRootNodeButtonStyle === "top" ? i("div", { staticStyle: { "padding-left": "24px" } }, [i("ElButton", { attrs: { disabled: e.loading, size: "mini", type: "text" }, on: { click: e.appendRootNode } }, [i("i", { staticClass: "el-icon-lx-add" }), e._v(" " + e._s(e.addRootNodeLabel ? e.addRootNodeLabel : `添加${e.label}`) + " ")])], 1) : e._e(), i("ElTree", e._g(e._b({ key: e.treeKey, ref: "tree", staticClass: "flex-item", attrs: { "default-expanded-keys": e.expandedKeys, "expand-on-click-node": !1, "highlight-current": "", load: e.loadNode, data: e.innerTreeData, props: e.treeProps, lazy: e.lazy, "node-key": e.nodeKey }, on: { "node-click": e.nodeClick, "node-contextmenu": e.showContextMenu, "node-expand": e.addExpandKey, "node-collapse": e.removeExpandKey }, scopedSlots: e._u([{ key: "default", fn: function({ node: s, data: o }) {
|
|
482
482
|
return [e._t("default", function() {
|
|
483
|
-
return [
|
|
484
|
-
return ((r) => e.inputKeyup(r, s,
|
|
485
|
-
}, click: function(
|
|
486
|
-
|
|
487
|
-
} }, model: { value: e.text, callback: function(
|
|
488
|
-
e.text =
|
|
489
|
-
}, expression: "text" } }), e.confirmButton ? [i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: !
|
|
490
|
-
return
|
|
491
|
-
} } }, [e._v("确定")]), i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: !
|
|
492
|
-
return
|
|
493
|
-
} } }, [e._v("取消")])] : e._e()], 2)] : [i("span", { staticClass: "custom-tree-node", attrs: { "data-id":
|
|
483
|
+
return [o.edit ? [i("span", { staticClass: "custom-tree-node flex-row flex-item oh", attrs: { "data-id": o.id } }, [e.icon ? i("i", { staticClass: "node-icon shrink-0", class: o.loading ? "el-icon-loading" : "el-icon-edit-outline" }) : e._e(), i("ElInput", { ref: "labelTxt", staticClass: "node-input flex-item", attrs: { size: "mini", placeholder: e.defaultOptions.inputPlaceholder }, on: { blur: (n) => e.inputBlur(n, s, o) }, nativeOn: { keyup: function(n) {
|
|
484
|
+
return ((r) => e.inputKeyup(r, s, o)).apply(null, arguments);
|
|
485
|
+
}, click: function(n) {
|
|
486
|
+
n.stopPropagation();
|
|
487
|
+
} }, model: { value: e.text, callback: function(n) {
|
|
488
|
+
e.text = n;
|
|
489
|
+
}, expression: "text" } }), e.confirmButton ? [i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: !o.loading, expression: "!data.loading" }], staticClass: "shrink-0", attrs: { size: "mini", type: "text" }, on: { click: function(n) {
|
|
490
|
+
return n.stopPropagation(), e.onConfirm(s, o);
|
|
491
|
+
} } }, [e._v("确定")]), i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: !o.loading, expression: "!data.loading" }], staticClass: "shrink-0", attrs: { size: "mini", type: "text" }, on: { click: function(n) {
|
|
492
|
+
return n.stopPropagation(), e.onCancel(s, o);
|
|
493
|
+
} } }, [e._v("取消")])] : e._e()], 2)] : [i("span", { staticClass: "custom-tree-node", attrs: { "data-id": o.id } }, [i("span", { staticClass: "node-label flex-row flex-item oh ellipsis-1" }, [e.icon ? i("i", { staticClass: "node-icon", class: o.loading ? "el-icon-loading" : e.icon(o, s) }) : e._e(), i("span", { staticClass: "flex-item-relative", staticStyle: { height: "21px" } }, [i("span", { staticClass: "ellipsis-1 absolute-box et-tree-label", attrs: { title: s.label } }, [e._t("label", function() {
|
|
494
494
|
return [e._v(e._s(s.label))];
|
|
495
|
-
}, { data:
|
|
496
|
-
return
|
|
497
|
-
} } }, [e._v("添加")]), i("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(
|
|
498
|
-
return
|
|
499
|
-
} } }, [e._v("修改")]), i("ElPopconfirm", { staticClass: "pop-confirm", attrs: { "icon-color": "red", title: "你确定要删除吗?" }, on: { confirm: function(
|
|
500
|
-
return e.removeNode(s,
|
|
495
|
+
}, { data: o, node: s })], 2)]), e._t("label-suffix", null, { node: s, data: o })], 2), !e.contextMenu && !e.readonly ? i("span", { directives: [{ name: "show", rawName: "v-show", value: !o.loading && !e.loading, expression: "!data.loading && !loading" }], staticClass: "handle-actions" }, [i("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(n) {
|
|
496
|
+
return n.stopPropagation(), e.appendChildNode(s, o);
|
|
497
|
+
} } }, [e._v("添加")]), i("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(n) {
|
|
498
|
+
return n.stopPropagation(), e.editNode(s, o);
|
|
499
|
+
} } }, [e._v("修改")]), i("ElPopconfirm", { staticClass: "pop-confirm", attrs: { "icon-color": "red", title: "你确定要删除吗?" }, on: { confirm: function(n) {
|
|
500
|
+
return e.removeNode(s, o);
|
|
501
501
|
} }, scopedSlots: e._u([{ key: "reference", fn: function() {
|
|
502
|
-
return [i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: s.isLeaf, expression: "node.isLeaf" }], staticStyle: { "margin-left": "4px" }, attrs: { size: "mini", type: "text" }, on: { click: function(
|
|
503
|
-
|
|
502
|
+
return [i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: s.isLeaf, expression: "node.isLeaf" }], staticStyle: { "margin-left": "4px" }, attrs: { size: "mini", type: "text" }, on: { click: function(n) {
|
|
503
|
+
n.stopPropagation();
|
|
504
504
|
} } }, [e._v("删除")])];
|
|
505
|
-
}, proxy: !0 }], null, !0) })], 1) : e._e(), e.contextMenuIcon && e.contextMenu && !e.readonly ? i("span", { directives: [{ name: "show", rawName: "v-show", value: !
|
|
506
|
-
return
|
|
505
|
+
}, proxy: !0 }], null, !0) })], 1) : e._e(), e.contextMenuIcon && e.contextMenu && !e.readonly ? i("span", { directives: [{ name: "show", rawName: "v-show", value: !o.loading && !e.loading, expression: "!data.loading && !loading" }], staticClass: "handle-actions", staticStyle: { display: "inline-block" } }, [i("ElButton", { staticStyle: { padding: "6px 10px 0" }, attrs: { size: "mini", type: "text" }, on: { click: function(n) {
|
|
506
|
+
return n.stopPropagation(), e.showContextMenu(n, o, s);
|
|
507
507
|
} } }, [e._v(". . .")])], 1) : e._e()])]];
|
|
508
|
-
}, { node: s, data:
|
|
508
|
+
}, { node: s, data: o })];
|
|
509
509
|
} }], null, !0) }, "ElTree", e.filterTreeProperties(e.$attrs), !1), e.filterTreeEvents(e.$listeners))), e.contextMenu && !e.readonly ? i("div", { directives: [{ name: "show", rawName: "v-show", value: e.showMenu, expression: "showMenu" }], ref: "contextMenu", staticClass: "menu", style: e.position }, [i("ul", { staticClass: "menu-list" }, [e._t("context-menu", function() {
|
|
510
510
|
return [i("li", { directives: [{ name: "show", rawName: "v-show", value: e.curData.id > -1, expression: "curData.id > -1" }], staticClass: "menu-item", on: { click: function(s) {
|
|
511
511
|
return e.appendPeerNode(e.curNode, e.curData);
|
package/editable-tree/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.editable-tree{position:relative}.editable-tree.et-tree-label-overflow-visible .et-tree-label{position:static}.et-tree-wrapper{text-align:left;flex-direction:column;width:100%;display:flex;overflow:auto}.et-tree-wrapper .el-tree{width:100%;display:table;overflow:visible}.et-tree-wrapper .el-button+.el-button{margin-left:8px!important}.et-tree-wrapper .el-input__inner{padding:0 4px}.et-tree-wrapper .custom-tree-node{align-items:center;width:100%;padding-right:8px;font-size:14px;display:flex}.et-tree-wrapper .custom-tree-node:hover .handle-actions{display:block}.et-tree-wrapper .custom-tree-node .handle-actions{align-self:flex-end;display:none}.et-tree-wrapper .custom-tree-node .node-icon{margin-top:2px;margin-right:4px}.et-tree-wrapper .node-label{align-items:center}.et-tree-wrapper .node-input{min-width:140px;margin-right:10px}.et-tree-wrapper .menu{z-index:3;background:#fff;border-radius:4px;padding:0;position:fixed;box-shadow:0 5px 10px #bebebe}.et-tree-wrapper .menu-item{color:#242f42;white-space:nowrap;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 20px 8px 8px;font:11px/100% tahoma,arial,sans-serif;display:block}.et-tree-wrapper .menu .menu-item:hover{color:#66b1ff;background-color:#ecf5ff}.et-tree-wrapper .menu-item-icon{margin-right:4px;font-size:1.3em;font-weight:700}
|
|
1
|
+
.editable-tree{position:relative}.editable-tree.et-tree-label-overflow-visible .et-tree-label{position:static}.et-tree-wrapper{text-align:left;flex-direction:column;width:100%;display:flex;overflow:auto}.et-tree-wrapper .el-tree{width:100%;display:table;overflow:visible}.et-tree-wrapper .el-button+.el-button{margin-left:8px!important}.et-tree-wrapper .el-input__inner{padding:0 4px}.et-tree-wrapper .custom-tree-node{align-items:center;width:100%;padding-right:8px;font-size:14px;display:flex}.et-tree-wrapper .custom-tree-node:hover .handle-actions{display:block}.et-tree-wrapper .custom-tree-node .handle-actions{align-self:flex-end;display:none}.et-tree-wrapper .custom-tree-node .node-icon{margin-top:2px;margin-right:4px}.et-tree-wrapper .node-label{align-items:center}.et-tree-wrapper .node-input{min-width:140px;margin-right:10px}.et-tree-wrapper .menu{z-index:3;background:#fff;border-radius:4px;padding:0;position:fixed;box-shadow:0 5px 10px #bebebe}.et-tree-wrapper .menu-item{color:#242f42;white-space:nowrap;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 20px 8px 8px;font:11px/100% tahoma,arial,sans-serif;display:block}.et-tree-wrapper .menu .menu-item:hover{color:#66b1ff;background-color:#ecf5ff}.et-tree-wrapper .menu-item-icon{margin-right:4px;font-size:1.3em;font-weight:700}
|
package/egd-collapse/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import s from "element-ui/src/mixins/emitter";
|
|
2
2
|
import { generateId as l } from "element-ui/src/utils/util";
|
|
3
3
|
import a from "element-ui/lib/transitions/collapse-transition";
|
|
4
|
-
import { n } from "../chunks/_plugin-vue2_normalizer.
|
|
4
|
+
import { n } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
5
5
|
const c = {
|
|
6
6
|
name: "EgdCollapseItem",
|
|
7
7
|
components: { ElCollapseTransition: a },
|