@web-utils/component 2.30.1 → 2.40.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 +9 -9
- package/address-input/style.css +1 -1
- package/affix/index.mjs +1 -1
- package/affix/style.css +1 -1
- package/aside-menu/index.mjs +20 -20
- package/aside-menu/style.css +1 -1
- package/avatar/index.mjs +1 -1
- package/avatar/style.css +1 -1
- package/awesome-button/index.mjs +1 -1
- package/base.css +1 -1
- package/capsule-tab/index.mjs +10 -10
- package/capsule-tab/style.css +1 -1
- package/card/index.mjs +23 -23
- package/card/style.css +1 -1
- package/carousel/index.mjs +5 -5
- package/carousel/style.css +1 -1
- package/chat/index.mjs +5 -3
- package/chat/style.css +1 -1
- package/chunk-file-uploader/index.mjs +3 -3
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{FormTemp.FX8xmbVB.mjs → FormTemp.7f91629d.mjs} +4 -4
- package/chunks/{confirmable-mixin.rTUMhoRH.mjs → confirmable-mixin.817b542f.mjs} +16 -6
- package/chunks/{dataformat.X_61lMA7.mjs → dataformat.f995e2f9.mjs} +1 -1
- package/chunks/{dic.6tk91Dmq.mjs → dic.eaac0823.mjs} +8 -10
- package/chunks/{event.NHA7rYFE.mjs → event.b5d855dd.mjs} +3 -3
- package/chunks/{form-input-mixin.IKogWBfn.mjs → form-input-mixin.4632ad36.mjs} +2 -2
- package/chunks/{form-item-mixin.BilKDUlK.mjs → form-item-mixin.ad148e7b.mjs} +1 -1
- package/chunks/{init.Ac4dKUJB.mjs → init.47f219b4.mjs} +3 -3
- package/chunks/{util.C2Bhx22L.mjs → util.ae730cde.mjs} +24 -18
- package/code-mirror-editor/index.mjs +404 -175
- package/code-mirror-editor/style.css +1 -1
- package/color-picker/index.mjs +1 -1
- package/comment/index.mjs +18 -18
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +2 -2
- package/confirmable/index.mjs +2 -2
- package/context-menu/index.mjs +9 -9
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +6 -10
- package/custom-scrollbar/index.mjs +5 -9
- package/data-box/index.mjs +8 -8
- package/data-box/style.css +1 -1
- package/data-card/index.mjs +19 -19
- package/data-card/style.css +1 -1
- package/data-cardtext/index.mjs +22 -22
- package/data-cardtext/style.css +1 -1
- package/data-display/index.mjs +24 -24
- package/data-display/style.css +1 -1
- package/data-icons/index.mjs +13 -13
- package/data-icons/style.css +1 -1
- package/data-imgtext/index.mjs +18 -18
- package/data-imgtext/style.css +1 -1
- package/data-operatext/index.mjs +28 -28
- package/data-operatext/style.css +1 -1
- package/data-panel/index.mjs +15 -15
- package/data-panel/style.css +1 -1
- package/data-pay/index.mjs +7 -7
- package/data-pay/style.css +1 -1
- package/data-price/index.mjs +5 -5
- package/data-price/style.css +1 -1
- package/data-progress/index.mjs +16 -16
- 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 +6 -6
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +47 -47
- package/dialog-form/style.css +1 -1
- package/dynamic-table/index.mjs +15 -15
- package/dynamic-table/style.css +1 -1
- package/e-charts/index.mjs +7 -7
- package/e-charts/style.css +1 -1
- package/easy-popup/index.mjs +15 -15
- 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 +5 -5
- 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 +13 -9
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +9 -9
- package/empty-view/style.css +1 -1
- package/error-view/index.mjs +13 -13
- package/error-view/style.css +1 -1
- package/flex-column/index.mjs +2 -2
- package/flex-item/index.mjs +12 -6
- package/flex-row/index.mjs +2 -2
- package/flex-scroller/index.mjs +5 -5
- package/flex-scroller/style.css +1 -1
- package/flow/index.mjs +23 -9
- package/flow/style.css +1 -1
- package/flow-designer/index.mjs +156 -63
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/flow-viewer/index.mjs +20 -11
- package/flow-viewer/style.css +1 -1
- package/form-block/index.mjs +23 -20
- package/form-block/style.css +1 -1
- package/form-button/index.mjs +1 -1
- package/form-cascader/index.mjs +7 -5
- package/form-checkbox-group/index.mjs +9 -7
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +41 -12
- package/form-holder/index.mjs +6 -3
- package/form-input/index.mjs +6 -4
- package/form-input-email/index.mjs +12 -8
- package/form-input-id-card/index.mjs +12 -8
- package/form-input-number/index.mjs +10 -8
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +12 -8
- package/form-input-tag/index.mjs +3 -3
- package/form-input-time/index.mjs +6 -4
- package/form-item/index.mjs +43 -37
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +1 -1
- package/form-item-group/index.mjs +15 -12
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +40 -38
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +7 -5
- package/form-switch/index.mjs +6 -4
- package/form-textarea/index.mjs +6 -4
- package/form-view/index.mjs +32 -10
- package/form-view/style.css +1 -1
- package/fy-array/index.mjs +9 -9
- package/fy-array/style.css +1 -1
- package/fy-article/index.mjs +7 -7
- package/fy-article/style.css +1 -1
- package/fy-cascader/index.mjs +2 -2
- package/fy-checkbox/index.mjs +6 -6
- package/fy-checkbox/style.css +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +117 -99
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +8 -8
- package/fy-date/style.css +1 -1
- package/fy-draggable/index.mjs +3 -3
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +51 -43
- package/fy-dynamic/style.css +1 -1
- package/fy-empty/index.mjs +10 -10
- package/fy-empty/style.css +1 -1
- package/fy-form/index.mjs +42 -42
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +539 -421
- 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 +5 -5
- package/fy-input-icon/style.css +1 -1
- package/fy-input-map/index.mjs +21 -15
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +2 -2
- package/fy-input-table/index.mjs +13 -10
- package/fy-input-table/style.css +1 -1
- package/fy-input-tree/index.mjs +6 -6
- package/fy-input-tree/style.css +1 -1
- package/fy-progress/index.mjs +1 -1
- package/fy-radio/index.mjs +6 -6
- 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 +27 -27
- 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 +14 -14
- package/fy-title/style.css +1 -1
- package/fy-tree/index.mjs +6 -9
- package/fy-tree/style.css +1 -1
- package/fy-u-editor/index.mjs +34 -32
- package/fy-u-editor/style.css +1 -1
- package/fy-upload/index.mjs +27 -27
- package/fy-upload/style.css +1 -1
- package/guide-steps/index.mjs +12 -12
- package/guide-steps/style.css +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/highlight-j-s/style.css +1 -1
- package/icon-card/index.mjs +9 -9
- package/icon-card/style.css +1 -1
- package/icon-temp/index.mjs +16 -16
- package/icon-temp/style.css +1 -1
- package/iframe-window/index.mjs +5 -5
- package/iframe-window/style.css +1 -1
- package/image-cropper/index.mjs +10 -10
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +7 -7
- package/image-preview/style.css +1 -1
- package/image-viewer/index.mjs +5 -5
- package/image-viewer/style.css +1 -1
- package/input-number/index.mjs +2 -2
- package/input-number/style.css +1 -1
- package/input-number-range/index.mjs +7 -7
- package/input-number-range/style.css +1 -1
- package/keep-view-alive/index.mjs +6 -2
- package/keyboard/index.mjs +21 -20
- package/keyboard/style.css +1 -1
- package/license/index.mjs +2 -2
- package/loading-view/index.mjs +5 -5
- package/loading-view/style.css +1 -1
- package/login/index.mjs +4 -4
- package/login/style.css +1 -1
- package/monaco-editor/index.mjs +2 -2
- package/name-avatar/index.mjs +6 -6
- package/name-avatar/style.css +1 -1
- package/nav-bar/index.mjs +8 -8
- package/nav-bar/style.css +1 -1
- package/not-implement/index.mjs +15 -15
- package/not-implement/style.css +1 -1
- package/notice/index.mjs +5 -5
- package/notice/style.css +1 -1
- package/package.json +1 -1
- package/page/index.mjs +8 -8
- package/page/style.css +1 -1
- package/page-header/index.mjs +6 -6
- package/page-header/style.css +1 -1
- package/page-index/index.mjs +19 -19
- package/page-index/style.css +1 -1
- package/page-index-top/index.mjs +1 -1
- package/page-skeleton/index.mjs +21 -21
- package/page-skeleton/style.css +1 -1
- package/page-skeleton-new/index.mjs +3 -3
- package/page-skeleton-new/style.css +1 -1
- package/pageable-table/index.mjs +21 -26
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +37 -42
- package/pageable-view/style.css +1 -1
- package/photo-swipe/index.mjs +4 -2
- package/present-view/index.mjs +31 -9
- package/present-view/style.css +1 -1
- package/queue/index.mjs +4 -4
- package/queue/style.css +1 -1
- package/record-video/index.mjs +14 -14
- package/record-video/style.css +1 -1
- package/resize-observer/index.mjs +6 -6
- package/resize-observer/style.css +1 -1
- package/search/index.mjs +7 -7
- package/search/style.css +1 -1
- package/search-popover/index.mjs +6 -6
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +31 -31
- package/sign/style.css +1 -1
- package/sign-panel/index.mjs +8 -8
- package/sign-panel/style.css +1 -1
- package/skeleton/index.mjs +10 -10
- package/skeleton/style.css +1 -1
- package/split-pane/index.mjs +19 -22
- package/split-pane/style.css +1 -1
- package/stateful/index.mjs +12 -12
- package/stateful/style.css +1 -1
- package/static-pageable-table/index.mjs +9 -9
- package/static-pageable-table/style.css +1 -1
- package/swiper/index.mjs +7 -7
- package/swiper/style.css +1 -1
- package/tab/index.mjs +2 -2
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +10 -6
- package/table-view/index.mjs +28 -8
- package/table-view/style.css +1 -1
- package/tag-render/index.mjs +29 -29
- package/tag-render/style.css +1 -1
- package/text-ellipsis/index.mjs +9 -12
- package/text-ellipsis/style.css +1 -1
- package/tinymce-editor/index.mjs +77 -77
- package/tinymce-editor/style.css +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +6 -6
- package/toolbar-button/style.css +1 -1
- package/verify/index.mjs +10 -10
- package/verify/style.css +1 -1
- package/vue-cron/index.mjs +1 -1
- package/vue-cron/style.css +1 -1
- package/vue-qr-code/index.mjs +1 -1
- package/vue-quill-editor/index.mjs +3 -3
- 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 +25 -22
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +32 -29
- package/vue-video-player/style.css +1 -1
- package/watermark/index.mjs +11 -11
- package/watermark/style.css +1 -1
- package/web-types.json +31 -31
- package/x-input-tag/index.mjs +13 -13
- package/x-input-tag/style.css +1 -1
- /package/chunks/{form-pick-mixin.y-qhZJi6.mjs → form-pick-mixin.61ad06b2.mjs} +0 -0
- /package/chunks/{index.LGsb2aDq.mjs → index.57f871af.mjs} +0 -0
- /package/chunks/{input-number-mixin.GE2zr_3s.mjs → input-number-mixin.41a066be.mjs} +0 -0
- /package/chunks/{json-beautifier.fUZFSW5j.mjs → json-beautifier.21cfffea.mjs} +0 -0
- /package/chunks/{packages.v6r2Hr7E.mjs → packages.1fc9ccba.mjs} +0 -0
- /package/chunks/{permission.E9kZbW48.mjs → permission.ce5d2121.mjs} +0 -0
- /package/chunks/{slot.j1uMmBnG.mjs → slot.4b391395.mjs} +0 -0
- /package/chunks/{tab-mixin.tM9jcRT8.mjs → tab-mixin.e2b9c6a4.mjs} +0 -0
- /package/chunks/{vueComponentNormalizer.JwmUNtgn.mjs → vueComponentNormalizer.446f5dc4.mjs} +0 -0
package/tab/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.vux-tab-ink-bar{text-align:center;background-color:#1989fa;height:2px;position:absolute;bottom:0;left:0}.vux-tab-ink-bar-transition-forward{transition:right .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1) 90ms}.vux-tab-ink-bar-transition-backward{transition:right .3s cubic-bezier(.35,0,.25,1) 90ms,left .3s cubic-bezier(.35,0,.25,1)}.vux-tab-bar-top .vux-tab-ink-bar{top:0}.vux-tab{background-color:#fff;height:36px;display:flex;position:relative}.vux-tab button{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;background:0 0;border:0;outline:0;padding:0}.vux-tab .vux-tab-item{box-sizing:border-box;color:#666;text-align:center;cursor:pointer;flex:auto;width:100%;height:100%;font-size:14px;line-height:36px;display:block}.vux-tab .vux-tab-item.vux-tab-selected{color:#1989fa;border-bottom:3px solid #1989fa}.vux-tab-bar-top .vux-tab .vux-tab-item.vux-tab-selected{border-top:3px solid #1989fa;border-bottom:none}.vux-tab .vux-tab-item.vux-tab-disabled{color:#ddd}.vux-tab.vux-tab-no-animate .vux-tab-item.vux-tab-selected{background:0 0}.vux-tab-bar-inner{background-color:#1989fa;height:100%;margin:auto;transition:width .3s cubic-bezier(.35,0,.25,1);display:block}.vux-tab-item-badge{box-sizing:border-box;vertical-align:middle;background-clip:padding-box;border-radius:30px;min-width:18px;height:18px;margin:auto 0 auto 4px;padding:0 4px;font-size:11px;line-height:18px;display:inline-block;position:absolute;top:0;bottom:0}.vux-tab-wrap{padding-top:36px;position:relative}.vux-tab-container{height:36px;position:absolute;top:0;left:0;right:0;overflow:hidden}.scrollable{box-sizing:content-box;-webkit-overflow-scrolling:touch;padding-bottom:17px;overflow-x:auto;overflow-y:hidden}.scrollable::-webkit-scrollbar{display:none}.scrollable .vux-tab-ink-bar{position:absolute;bottom:17px}.scrollable .vux-tab-item{flex:0 0 22%}
|
|
1
|
+
.vux-tab-ink-bar{text-align:center;background-color:#1989fa;height:2px;position:absolute;bottom:0;left:0}.vux-tab-ink-bar-transition-forward{transition:right .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1) 90ms}.vux-tab-ink-bar-transition-backward{transition:right .3s cubic-bezier(.35,0,.25,1) 90ms,left .3s cubic-bezier(.35,0,.25,1)}.vux-tab-bar-top .vux-tab-ink-bar{top:0}.vux-tab{background-color:#fff;height:36px;display:flex;position:relative}.vux-tab button{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;background:0 0;border:0;outline:0;padding:0}.vux-tab .vux-tab-item{box-sizing:border-box;color:#666;text-align:center;cursor:pointer;flex:auto;width:100%;height:100%;font-size:14px;line-height:36px;display:block}.vux-tab .vux-tab-item.vux-tab-selected{color:#1989fa;border-bottom:3px solid #1989fa}.vux-tab-bar-top .vux-tab .vux-tab-item.vux-tab-selected{border-top:3px solid #1989fa;border-bottom:none}.vux-tab .vux-tab-item.vux-tab-disabled{color:#ddd}.vux-tab.vux-tab-no-animate .vux-tab-item.vux-tab-selected{background:0 0}.vux-tab-bar-inner{background-color:#1989fa;height:100%;margin:auto;transition:width .3s cubic-bezier(.35,0,.25,1);display:block}.vux-tab-item-badge{box-sizing:border-box;vertical-align:middle;background-clip:padding-box;border-radius:30px;min-width:18px;height:18px;margin:auto 0 auto 4px;padding:0 4px;font-size:11px;line-height:18px;display:inline-block;position:absolute;top:0;bottom:0}.vux-tab-wrap{padding-top:36px;position:relative}.vux-tab-container{height:36px;position:absolute;top:0;left:0;right:0;overflow:hidden}.scrollable{box-sizing:content-box;-webkit-overflow-scrolling:touch;padding-bottom:17px;overflow-x:auto;overflow-y:hidden}.scrollable::-webkit-scrollbar{display:none}.scrollable .vux-tab-ink-bar{position:absolute;bottom:17px}.scrollable .vux-tab-item{flex:0 0 22%}
|
package/tab-item/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as n } from "../chunks/tab-mixin.
|
|
2
|
-
import { n as l } from "../chunks/vueComponentNormalizer.
|
|
1
|
+
import { c as n } from "../chunks/tab-mixin.e2b9c6a4.mjs";
|
|
2
|
+
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
3
|
var o = function() {
|
|
4
4
|
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
5
5
|
return a("div", {
|
package/table-column/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ var i = (n, e, t) => e in n ? u(n, e, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
p.call(e, t) && i(n, t, e[t]);
|
|
11
11
|
return n;
|
|
12
12
|
}, r = (n, e) => d(n, c(e));
|
|
13
|
-
import { n as g } from "../chunks/vueComponentNormalizer.
|
|
13
|
+
import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
14
14
|
const m = {
|
|
15
15
|
props: {
|
|
16
16
|
type: {
|
|
@@ -71,11 +71,15 @@ const m = {
|
|
|
71
71
|
functional: !0,
|
|
72
72
|
mixins: [m],
|
|
73
73
|
render(n, { data: e, props: t, children: s }) {
|
|
74
|
-
return n(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
return n(
|
|
75
|
+
"ElTableColumn",
|
|
76
|
+
r(l({}, e), {
|
|
77
|
+
props: r(l({}, t), {
|
|
78
|
+
showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(t.type) ? !1 : t.showOverflowTooltip
|
|
79
|
+
})
|
|
80
|
+
}),
|
|
81
|
+
s
|
|
82
|
+
);
|
|
79
83
|
}
|
|
80
84
|
};
|
|
81
85
|
let y, S;
|
package/table-view/index.mjs
CHANGED
|
@@ -15,9 +15,9 @@ var o = (e, r, t) => new Promise((s, l) => {
|
|
|
15
15
|
c((t = t.apply(e, r)).next());
|
|
16
16
|
});
|
|
17
17
|
import { merge as n } from "@web-utils/integrations/lodash";
|
|
18
|
-
import { isString as d, isArray as m, trace as f, warning as
|
|
19
|
-
import { k as v } from "../chunks/index.
|
|
20
|
-
import { n as y } from "../chunks/vueComponentNormalizer.
|
|
18
|
+
import { isString as d, isArray as m, trace as f, warning as _, toStringArray as g, isFunction as w, hasOwn as p } from "@web-utils/core";
|
|
19
|
+
import { k as v } from "../chunks/index.57f871af.mjs";
|
|
20
|
+
import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
21
21
|
var P = function() {
|
|
22
22
|
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
23
23
|
return t("div", {
|
|
@@ -61,7 +61,7 @@ var P = function() {
|
|
|
61
61
|
staticStyle: {
|
|
62
62
|
"font-size": "16px"
|
|
63
63
|
}
|
|
64
|
-
}, [e._v("
|
|
64
|
+
}, [e._v("视图导航")]), t("EditableTree", e._g(e._b({
|
|
65
65
|
ref: "tree",
|
|
66
66
|
attrs: {
|
|
67
67
|
readonly: ""
|
|
@@ -163,7 +163,27 @@ var P = function() {
|
|
|
163
163
|
staticClass: "slide-panel-line-indicator"
|
|
164
164
|
})]);
|
|
165
165
|
}];
|
|
166
|
-
const $ = [
|
|
166
|
+
const $ = [
|
|
167
|
+
"back",
|
|
168
|
+
"create",
|
|
169
|
+
"save",
|
|
170
|
+
"withdraw",
|
|
171
|
+
"edit",
|
|
172
|
+
"submit",
|
|
173
|
+
"publish",
|
|
174
|
+
"agree",
|
|
175
|
+
"disagree",
|
|
176
|
+
"reject",
|
|
177
|
+
"finish",
|
|
178
|
+
"cancel",
|
|
179
|
+
"enable",
|
|
180
|
+
"exp",
|
|
181
|
+
"imp",
|
|
182
|
+
"del",
|
|
183
|
+
"disabled",
|
|
184
|
+
"reload",
|
|
185
|
+
"slot"
|
|
186
|
+
], T = {
|
|
167
187
|
name: "TableView",
|
|
168
188
|
bus: {
|
|
169
189
|
reloadTableView(e, r) {
|
|
@@ -172,7 +192,7 @@ const $ = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
|
|
|
172
192
|
let t = e;
|
|
173
193
|
d(t) && (t = t.split(",")), this._viewIds.some((s) => t.includes(s)) && (r ? this.$refs.tree && (f.call(this.$parent || {}, "reloadTree"), this.refreshTree()) : (f.call(this.$parent || {}, "reloadTable"), this.reloadTable()));
|
|
174
194
|
} else
|
|
175
|
-
|
|
195
|
+
_.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
176
196
|
}
|
|
177
197
|
},
|
|
178
198
|
props: {
|
|
@@ -246,7 +266,7 @@ const $ = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
|
|
|
246
266
|
var s, l;
|
|
247
267
|
const e = {}, r = n(this.toolbarAttrs, e);
|
|
248
268
|
let t = (r == null ? void 0 : r.buttons) || this.$parent.buttons;
|
|
249
|
-
return t = t || [], t.includes("reload") || (t = [...t, "reload"]), r.buttons = t, r.buttons =
|
|
269
|
+
return t = t || [], t.includes("reload") || (t = [...t, "reload"]), r.buttons = t, r.buttons = g(r.buttons), r.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), r;
|
|
250
270
|
},
|
|
251
271
|
treeProps() {
|
|
252
272
|
const e = {
|
|
@@ -324,7 +344,7 @@ const $ = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
|
|
|
324
344
|
return o(this, null, function* () {
|
|
325
345
|
var r;
|
|
326
346
|
const e = this.deleteApi || this.$parent.del;
|
|
327
|
-
if (!((r = this.toolbarListeners) != null && r.del) &&
|
|
347
|
+
if (!((r = this.toolbarListeners) != null && r.del) && w(e)) {
|
|
328
348
|
if (!this.selectedRows.length) {
|
|
329
349
|
this.$message.warning("请选择要删除的记录!");
|
|
330
350
|
return;
|
package/table-view/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.table-view{flex-direction:column;height:100%;display:flex}.table-view .el-table--border{border:none}.table-view .border-top .el-table--border{border-top:1px solid #ebeef5}.table-view .border-bottom .el-table--border{border-bottom:1px solid #ebeef5}.table-view .border-left .el-table--border,.table-view .border-left .el-pagination{border-left:1px solid #ebeef5}.table-view .border-right .el-table--border{border-right:1px solid #ebeef5}.table-view .table-view-content-wrapper{flex:1;position:relative;overflow:hidden}.table-view .table-view-content{background-color:#fff;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.table-view .table-view-sidebar{flex-shrink:0;width:240px;height:100%;padding:10px;overflow:auto}.table-view .table-view-sidebar .et-tree-wrapper{display:table;overflow:visible}.table-view .table-view-table{flex:auto;height:100%}.table-view .slide-panel{z-index:5;background-color:#fff;transition:right .2s;display:flex;position:absolute;top:0;bottom:0;right:0}.table-view .slide-panel .slide-panel-line{background-color:#ddd;flex-shrink:0;width:3px;height:100%;position:relative}.table-view .slide-panel .slide-panel-line-indicator{background-color:#aaa;width:100%;height:50px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.table-view .slide-panel .slide-panel-actions{justify-content:center;align-items:center;margin-top:10px;display:flex}.table-view .slide-panel .slide-panel-content{flex:1;padding:10px;overflow:auto}.table-view .slide-panel .slide-panel-content .el-date-editor{width:100%}
|
|
1
|
+
.table-view{flex-direction:column;height:100%;display:flex}.table-view .el-table--border{border:none}.table-view .border-top .el-table--border{border-top:1px solid #ebeef5}.table-view .border-bottom .el-table--border{border-bottom:1px solid #ebeef5}.table-view .border-left .el-table--border,.table-view .border-left .el-pagination{border-left:1px solid #ebeef5}.table-view .border-right .el-table--border{border-right:1px solid #ebeef5}.table-view .table-view-content-wrapper{flex:1;position:relative;overflow:hidden}.table-view .table-view-content{background-color:#fff;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.table-view .table-view-sidebar{flex-shrink:0;width:240px;height:100%;padding:10px;overflow:auto}.table-view .table-view-sidebar .et-tree-wrapper{display:table;overflow:visible}.table-view .table-view-table{flex:auto;height:100%}.table-view .slide-panel{z-index:5;background-color:#fff;transition:right .2s;display:flex;position:absolute;top:0;bottom:0;right:0}.table-view .slide-panel .slide-panel-line{background-color:#ddd;flex-shrink:0;width:3px;height:100%;position:relative}.table-view .slide-panel .slide-panel-line-indicator{background-color:#aaa;width:100%;height:50px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.table-view .slide-panel .slide-panel-actions{justify-content:center;align-items:center;margin-top:10px;display:flex}.table-view .slide-panel .slide-panel-content{flex:1;padding:10px;overflow:auto}.table-view .slide-panel .slide-panel-content .el-date-editor{width:100%}
|
package/tag-render/index.mjs
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var r = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var l = (
|
|
5
|
-
for (var n in
|
|
6
|
-
|
|
3
|
+
var _ = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var l = (e, t, n) => t in e ? c(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, o = (e, t) => {
|
|
5
|
+
for (var n in t || (t = {}))
|
|
6
|
+
_.call(t, n) && l(e, n, t[n]);
|
|
7
7
|
if (r)
|
|
8
|
-
for (var n of r(
|
|
9
|
-
|
|
10
|
-
return
|
|
8
|
+
for (var n of r(t))
|
|
9
|
+
m.call(t, n) && l(e, n, t[n]);
|
|
10
|
+
return e;
|
|
11
11
|
};
|
|
12
12
|
import { hasOwn as i } from "@web-utils/core";
|
|
13
|
-
import { n as g } from "../chunks/vueComponentNormalizer.
|
|
13
|
+
import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
14
14
|
var f = function() {
|
|
15
|
-
var
|
|
15
|
+
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
16
16
|
return n("div", {
|
|
17
17
|
staticClass: "tag-render"
|
|
18
|
-
}, [
|
|
18
|
+
}, [e.tags && e.tags.length && e.tags[0] ? e._l(e.internalTags, function(s, a) {
|
|
19
19
|
return n("ElTag", {
|
|
20
20
|
key: a,
|
|
21
21
|
attrs: {
|
|
22
|
-
closable:
|
|
22
|
+
closable: e.enable,
|
|
23
23
|
size: "medium",
|
|
24
24
|
"disable-transitions": ""
|
|
25
25
|
},
|
|
26
26
|
on: {
|
|
27
27
|
close: function(b) {
|
|
28
|
-
return
|
|
28
|
+
return e.$emit("close", e.tags[a], a);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
}, [
|
|
32
|
-
}) :
|
|
31
|
+
}, [e._v(" " + e._s(e.getTagName(s)) + " ")]);
|
|
32
|
+
}) : e.enable ? e._e() : [n("span", {
|
|
33
33
|
staticStyle: {
|
|
34
34
|
"margin-left": "4px",
|
|
35
35
|
color: "#b5b5b5",
|
|
36
36
|
"line-height": "16px"
|
|
37
37
|
}
|
|
38
|
-
}, [
|
|
38
|
+
}, [e._v("无")])], e.enable ? n("ElButton", {
|
|
39
39
|
staticClass: "add-tag",
|
|
40
40
|
attrs: {
|
|
41
41
|
size: "mini"
|
|
42
42
|
},
|
|
43
43
|
on: {
|
|
44
44
|
click: function(s) {
|
|
45
|
-
return
|
|
45
|
+
return e.$emit("add");
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
}, [
|
|
48
|
+
}, [e._v("+ 添加")]) : e._e(), e.count ? n("span", {
|
|
49
49
|
staticClass: "tags-count"
|
|
50
|
-
}, [
|
|
50
|
+
}, [e._v(e._s(e.tags.length && e.tags[0] ? e.tags.length : ""))]) : e._e()], 2);
|
|
51
51
|
}, d = [];
|
|
52
52
|
const p = {
|
|
53
53
|
name: "TagRender",
|
|
@@ -76,21 +76,21 @@ const p = {
|
|
|
76
76
|
},
|
|
77
77
|
computed: {
|
|
78
78
|
internalTags() {
|
|
79
|
-
return this.transfer ? this.tags.map((
|
|
80
|
-
const
|
|
81
|
-
return this.transfer(
|
|
79
|
+
return this.transfer ? this.tags.map((e) => {
|
|
80
|
+
const t = o({}, e);
|
|
81
|
+
return this.transfer(t);
|
|
82
82
|
}) : this.tags;
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
watch: {
|
|
86
|
-
tags(
|
|
87
|
-
var
|
|
88
|
-
this.elFormItem &&
|
|
86
|
+
tags(e) {
|
|
87
|
+
var t, n;
|
|
88
|
+
this.elFormItem && e && e.length > 0 && ((n = (t = this.elFormItem).clearValidate) == null || n.call(t));
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
methods: {
|
|
92
|
-
getTagName(
|
|
93
|
-
return i(
|
|
92
|
+
getTagName(e) {
|
|
93
|
+
return i(e, "name") ? e.name : i(e, "label") ? e.label : e;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}, u = {};
|
|
@@ -104,9 +104,9 @@ var h = /* @__PURE__ */ g(
|
|
|
104
104
|
null,
|
|
105
105
|
null
|
|
106
106
|
);
|
|
107
|
-
function v(
|
|
108
|
-
for (let
|
|
109
|
-
this[
|
|
107
|
+
function v(e) {
|
|
108
|
+
for (let t in u)
|
|
109
|
+
this[t] = u[t];
|
|
110
110
|
}
|
|
111
111
|
const $ = /* @__PURE__ */ function() {
|
|
112
112
|
return h.exports;
|
package/tag-render/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tag-render{background-color:#fff;border:1px solid #d7dae0;border-radius:4px;min-height:80px;padding-top:4px;padding-right:4px;line-height:0;overflow:hidden}.tag-render .el-tag{margin-bottom:4px;margin-left:4px}.tag-render .add-tag{margin-left:4px}.tag-render .el-tag .el-tag__close:hover{background-color:#ee8677}.tag-render .tags-count{color:#b7b7b7;font-size:.9em;position:absolute;bottom:10px;right:6px}
|
|
1
|
+
.tag-render{background-color:#fff;border:1px solid #d7dae0;border-radius:4px;min-height:80px;padding-top:4px;padding-right:4px;line-height:0;overflow:hidden}.tag-render .el-tag{margin-bottom:4px;margin-left:4px}.tag-render .add-tag{margin-left:4px}.tag-render .el-tag .el-tag__close:hover{background-color:#ee8677}.tag-render .tags-count{color:#b7b7b7;font-size:.9em;position:absolute;bottom:10px;right:6px}
|
package/text-ellipsis/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as o } from "../chunks/util.
|
|
2
|
-
import { n as r } from "../chunks/vueComponentNormalizer.
|
|
1
|
+
import { s as o } from "../chunks/util.ae730cde.mjs";
|
|
2
|
+
import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
3
|
var h = function() {
|
|
4
4
|
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
5
5
|
return i("div", {
|
|
@@ -75,10 +75,7 @@ const f = {
|
|
|
75
75
|
i.style.display = "inline-block";
|
|
76
76
|
let s = this.text;
|
|
77
77
|
for (; e.offsetHeight > this.height && n > 0; )
|
|
78
|
-
e.offsetHeight > this.height * 3 ? t.innerText = s = s.substring(
|
|
79
|
-
0,
|
|
80
|
-
Math.floor(s.length / 2)
|
|
81
|
-
) : t.innerText = s = s.substring(0, s.length - 1), n--;
|
|
78
|
+
e.offsetHeight > this.height * 3 ? t.innerText = s = s.substring(0, Math.floor(s.length / 2)) : t.innerText = s = s.substring(0, s.length - 1), n--;
|
|
82
79
|
this.$emit("hide"), this.isHide = !0;
|
|
83
80
|
} else
|
|
84
81
|
this.$emit("show"), this.isHide = !1;
|
|
@@ -86,23 +83,23 @@ const f = {
|
|
|
86
83
|
}
|
|
87
84
|
}
|
|
88
85
|
}, l = {};
|
|
89
|
-
var
|
|
86
|
+
var _ = /* @__PURE__ */ r(
|
|
90
87
|
f,
|
|
91
88
|
h,
|
|
92
89
|
a,
|
|
93
90
|
!1,
|
|
94
|
-
|
|
91
|
+
m,
|
|
95
92
|
null,
|
|
96
93
|
null,
|
|
97
94
|
null
|
|
98
95
|
);
|
|
99
|
-
function
|
|
96
|
+
function m(t) {
|
|
100
97
|
for (let e in l)
|
|
101
98
|
this[e] = l[e];
|
|
102
99
|
}
|
|
103
|
-
const
|
|
104
|
-
return
|
|
100
|
+
const u = /* @__PURE__ */ function() {
|
|
101
|
+
return _.exports;
|
|
105
102
|
}();
|
|
106
103
|
export {
|
|
107
|
-
|
|
104
|
+
u as default
|
|
108
105
|
};
|
package/text-ellipsis/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-text-ellipsis__more{padding:0 2px}
|
|
1
|
+
.avue-text-ellipsis__more{padding:0 2px}
|
package/tinymce-editor/index.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var F = Object.defineProperty, C = Object.defineProperties;
|
|
2
|
+
var _ = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var y = Object.getOwnPropertySymbols;
|
|
4
|
-
var T = Object.prototype.hasOwnProperty,
|
|
5
|
-
var w = (e, t, i) => t in e ?
|
|
4
|
+
var T = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var w = (e, t, i) => t in e ? F(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, h = (e, t) => {
|
|
6
6
|
for (var i in t || (t = {}))
|
|
7
7
|
T.call(t, i) && w(e, i, t[i]);
|
|
8
8
|
if (y)
|
|
9
9
|
for (var i of y(t))
|
|
10
|
-
|
|
10
|
+
B.call(t, i) && w(e, i, t[i]);
|
|
11
11
|
return e;
|
|
12
|
-
}, f = (e, t) => C(e,
|
|
13
|
-
var p = (e, t, i) => new Promise((a,
|
|
14
|
-
var
|
|
12
|
+
}, f = (e, t) => C(e, _(t));
|
|
13
|
+
var p = (e, t, i) => new Promise((a, n) => {
|
|
14
|
+
var o = (s) => {
|
|
15
15
|
try {
|
|
16
16
|
r(i.next(s));
|
|
17
17
|
} catch (d) {
|
|
18
|
-
|
|
18
|
+
n(d);
|
|
19
19
|
}
|
|
20
20
|
}, l = (s) => {
|
|
21
21
|
try {
|
|
22
22
|
r(i.throw(s));
|
|
23
23
|
} catch (d) {
|
|
24
|
-
|
|
24
|
+
n(d);
|
|
25
25
|
}
|
|
26
|
-
}, r = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(
|
|
26
|
+
}, r = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(o, l);
|
|
27
27
|
r((i = i.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
29
|
import "tinymce/skins/lightgray/skin.min.css";
|
|
30
|
-
import
|
|
31
|
-
import
|
|
30
|
+
import P from "tinymce";
|
|
31
|
+
import S from "@tinymce/tinymce-vue";
|
|
32
32
|
import "tinymce/themes/modern/theme";
|
|
33
33
|
import "tinymce/plugins/contextmenu";
|
|
34
34
|
import "tinymce/plugins/wordcount";
|
|
@@ -37,8 +37,8 @@ import "tinymce/plugins/image";
|
|
|
37
37
|
import "tinymce/plugins/fullscreen";
|
|
38
38
|
import "tinymce/plugins/preview";
|
|
39
39
|
import "tinymce/plugins/imagetools";
|
|
40
|
-
import { getFilePrefix as
|
|
41
|
-
import { n as
|
|
40
|
+
import { getFilePrefix as D, guid as A } from "@web-utils/core";
|
|
41
|
+
import { n as I } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
42
42
|
const $ = {
|
|
43
43
|
Redo: "重做",
|
|
44
44
|
Undo: "撤销",
|
|
@@ -457,27 +457,27 @@ function U(e) {
|
|
|
457
457
|
let t;
|
|
458
458
|
const i = e.naturalHeight, a = document.createElement("canvas");
|
|
459
459
|
a.width = 1, a.height = i;
|
|
460
|
-
const
|
|
461
|
-
|
|
460
|
+
const n = a.getContext("2d");
|
|
461
|
+
n.drawImage(e, 0, 0);
|
|
462
462
|
try {
|
|
463
|
-
t =
|
|
463
|
+
t = n.getImageData(0, 0, 1, i).data;
|
|
464
464
|
} catch (d) {
|
|
465
465
|
return console.log("Cannot check verticalSquash: CORS?"), 1;
|
|
466
466
|
}
|
|
467
|
-
let
|
|
468
|
-
for (; r >
|
|
469
|
-
t[(r - 1) * 4 + 3] === 0 ? l = r :
|
|
467
|
+
let o = 0, l = i, r = i;
|
|
468
|
+
for (; r > o; )
|
|
469
|
+
t[(r - 1) * 4 + 3] === 0 ? l = r : o = r, r = l + o >> 1;
|
|
470
470
|
const s = r / i;
|
|
471
471
|
return s === 0 ? 1 : s;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function k(e) {
|
|
474
474
|
const t = atob(e.split(",")[1]), i = new ArrayBuffer(t.length), a = new Uint8Array(i);
|
|
475
|
-
for (let
|
|
476
|
-
a[
|
|
475
|
+
for (let n = 0; n < t.length; n++)
|
|
476
|
+
a[n] = t.charCodeAt(n);
|
|
477
477
|
return i;
|
|
478
478
|
}
|
|
479
479
|
function L(e) {
|
|
480
|
-
const t = e.split(",")[0].split(":")[1].split(";")[0], i =
|
|
480
|
+
const t = e.split(",")[0].split(":")[1].split(";")[0], i = k(e);
|
|
481
481
|
return new Blob([i], { type: t });
|
|
482
482
|
}
|
|
483
483
|
function x(e) {
|
|
@@ -487,19 +487,19 @@ function x(e) {
|
|
|
487
487
|
const i = t.byteLength;
|
|
488
488
|
let a = 2;
|
|
489
489
|
for (; a < i; ) {
|
|
490
|
-
const
|
|
491
|
-
if (a += 2,
|
|
490
|
+
const n = t.getUint16(a, !1);
|
|
491
|
+
if (a += 2, n === 65505) {
|
|
492
492
|
if (t.getUint32(a += 2, !1) !== 1165519206)
|
|
493
493
|
return -1;
|
|
494
|
-
const
|
|
495
|
-
a += t.getUint32(a + 4,
|
|
496
|
-
const l = t.getUint16(a,
|
|
494
|
+
const o = t.getUint16(a += 6, !1) === 18761;
|
|
495
|
+
a += t.getUint32(a + 4, o);
|
|
496
|
+
const l = t.getUint16(a, o);
|
|
497
497
|
a += 2;
|
|
498
498
|
for (let r = 0; r < l; r++)
|
|
499
|
-
if (t.getUint16(a + r * 12,
|
|
500
|
-
return t.getUint16(a + r * 12 + 8,
|
|
499
|
+
if (t.getUint16(a + r * 12, o) === 274)
|
|
500
|
+
return t.getUint16(a + r * 12 + 8, o);
|
|
501
501
|
} else {
|
|
502
|
-
if ((
|
|
502
|
+
if ((n & 65280) !== 65280)
|
|
503
503
|
break;
|
|
504
504
|
a += t.getUint16(a, !1);
|
|
505
505
|
}
|
|
@@ -507,25 +507,25 @@ function x(e) {
|
|
|
507
507
|
return -1;
|
|
508
508
|
}
|
|
509
509
|
function H(e, t, i) {
|
|
510
|
-
const a = e.width,
|
|
511
|
-
switch (i > 4 && (e.width =
|
|
510
|
+
const a = e.width, n = e.height;
|
|
511
|
+
switch (i > 4 && (e.width = n, e.height = a), i) {
|
|
512
512
|
case 2:
|
|
513
513
|
t.translate(a, 0), t.scale(-1, 1);
|
|
514
514
|
break;
|
|
515
515
|
case 3:
|
|
516
|
-
t.translate(a,
|
|
516
|
+
t.translate(a, n), t.rotate(Math.PI);
|
|
517
517
|
break;
|
|
518
518
|
case 4:
|
|
519
|
-
t.translate(0,
|
|
519
|
+
t.translate(0, n), t.scale(1, -1);
|
|
520
520
|
break;
|
|
521
521
|
case 5:
|
|
522
522
|
t.rotate(0.5 * Math.PI), t.scale(1, -1);
|
|
523
523
|
break;
|
|
524
524
|
case 6:
|
|
525
|
-
t.rotate(0.5 * Math.PI), t.translate(0, -
|
|
525
|
+
t.rotate(0.5 * Math.PI), t.translate(0, -n);
|
|
526
526
|
break;
|
|
527
527
|
case 7:
|
|
528
|
-
t.rotate(0.5 * Math.PI), t.translate(a, -
|
|
528
|
+
t.rotate(0.5 * Math.PI), t.translate(a, -n), t.scale(-1, 1);
|
|
529
529
|
break;
|
|
530
530
|
case 8:
|
|
531
531
|
t.rotate(-0.5 * Math.PI), t.translate(-a, 0);
|
|
@@ -541,30 +541,30 @@ function q(e) {
|
|
|
541
541
|
function O(e, t) {
|
|
542
542
|
return p(this, null, function* () {
|
|
543
543
|
return new Promise((i, a) => {
|
|
544
|
-
const
|
|
545
|
-
|
|
546
|
-
const
|
|
547
|
-
let c =
|
|
548
|
-
c < u && u > g ? (c = parseInt(`${g *
|
|
549
|
-
const
|
|
550
|
-
/;base64,null/.test(
|
|
551
|
-
},
|
|
544
|
+
const n = new Image();
|
|
545
|
+
n.onload = function() {
|
|
546
|
+
const o = U(n), l = x(k(n.src)), r = document.createElement("canvas"), s = r.getContext("2d"), d = t.compress.width, g = t.compress.height;
|
|
547
|
+
let c = n.width, u = n.height;
|
|
548
|
+
c < u && u > g ? (c = parseInt(`${g * n.width / n.height}`), u = g) : c >= u && c > d && (u = parseInt(`${d * n.height / n.width}`), c = d), r.width = c, r.height = u, l > 0 && H(r, s, l), s.drawImage(n, 0, 0, c, u / o);
|
|
549
|
+
const m = r.toDataURL("image/jpeg", t.compress.quality);
|
|
550
|
+
/;base64,null/.test(m) || /;base64,$/.test(m) ? (t.onError(new Error(`Compress fail, dataURL is ${m}.`)), a(Error("图片压缩失败"))) : i(j(m, `${D(t.fileName)}.jpg`));
|
|
551
|
+
}, n.src = e;
|
|
552
552
|
});
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
function z(e, t) {
|
|
556
556
|
return p(this, null, function* () {
|
|
557
557
|
const i = yield N(e);
|
|
558
|
-
return O(i,
|
|
558
|
+
return O(i, h({ fileName: e.name }, t));
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
function N(e) {
|
|
562
562
|
return new Promise((t, i) => {
|
|
563
563
|
const a = new FileReader();
|
|
564
|
-
a.onload = function(
|
|
565
|
-
t(
|
|
566
|
-
}, a.onerror = function(
|
|
567
|
-
i(
|
|
564
|
+
a.onload = function(n) {
|
|
565
|
+
t(n.target.result);
|
|
566
|
+
}, a.onerror = function(n) {
|
|
567
|
+
i(n);
|
|
568
568
|
}, a.readAsDataURL(e);
|
|
569
569
|
});
|
|
570
570
|
}
|
|
@@ -572,7 +572,7 @@ function j(e = "", t) {
|
|
|
572
572
|
const i = L(e);
|
|
573
573
|
return i.name = t || `image${q(e)}`, i;
|
|
574
574
|
}
|
|
575
|
-
var
|
|
575
|
+
var W = function() {
|
|
576
576
|
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
577
577
|
return e.show ? i("div", {
|
|
578
578
|
class: ["tinymce-editor", {
|
|
@@ -605,12 +605,12 @@ var G = function() {
|
|
|
605
605
|
accept: ".jpg,.jpeg,.png,.gif,.bmp"
|
|
606
606
|
}
|
|
607
607
|
}, [i("span")])], 1) : e._e();
|
|
608
|
-
},
|
|
609
|
-
|
|
608
|
+
}, G = [];
|
|
609
|
+
P.addI18n("zh_CN", $);
|
|
610
610
|
const V = {
|
|
611
611
|
name: "TinymceWrapper",
|
|
612
612
|
components: {
|
|
613
|
-
Editor:
|
|
613
|
+
Editor: S
|
|
614
614
|
},
|
|
615
615
|
inject: {
|
|
616
616
|
elForm: {
|
|
@@ -657,27 +657,27 @@ const V = {
|
|
|
657
657
|
data() {
|
|
658
658
|
const t = ["fullscreen", "image", "wordcount", "paste"].join(","), i = this.buttons || [];
|
|
659
659
|
let a = this.toolbar || " | ";
|
|
660
|
-
return a = `undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect | removeformat | | ${a}`, i && (a += ` ${i.map((
|
|
660
|
+
return a = `undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect | removeformat | | ${a}`, i && (a += ` ${i.map((o) => o.name).join(" ")}`), a += " | fullscreen", {
|
|
661
661
|
val: "",
|
|
662
662
|
show: !0,
|
|
663
663
|
init: {
|
|
664
|
-
setup: (
|
|
665
|
-
|
|
664
|
+
setup: (o) => {
|
|
665
|
+
o.settings.dialog_title = this.dialogTitle, o.settings.show_types = this.showTypes, o.on("paste", (r) => {
|
|
666
666
|
const s = r.clipboardData || r.dataTransfer;
|
|
667
667
|
return !(this.processItems(r, s.items) || this.processItems(r, s.files));
|
|
668
|
-
}),
|
|
668
|
+
}), o.on("PreInit", (r) => {
|
|
669
669
|
r.target.dom.doc.body.style.fontFamily = "微软雅黑";
|
|
670
|
-
}),
|
|
670
|
+
}), o.on("Blur", (r) => {
|
|
671
671
|
this.$emit("on-blur", r);
|
|
672
|
-
}),
|
|
672
|
+
}), o.on("DialogShow", (r) => {
|
|
673
673
|
this.$emit("dialog-show", r);
|
|
674
|
-
}),
|
|
674
|
+
}), o.on("DialogHide", (r) => {
|
|
675
675
|
this.$emit("dialog-hide", r);
|
|
676
676
|
}), i.forEach((r) => {
|
|
677
677
|
r.icon = ` ${r.icon}`;
|
|
678
678
|
const { onclick: s } = r;
|
|
679
|
-
|
|
680
|
-
onclick: () => s(
|
|
679
|
+
o.addButton(r.name, f(h({}, r), {
|
|
680
|
+
onclick: () => s(o)
|
|
681
681
|
}));
|
|
682
682
|
});
|
|
683
683
|
const l = {
|
|
@@ -686,8 +686,8 @@ const V = {
|
|
|
686
686
|
title: "上传图片",
|
|
687
687
|
onclick: this.upload
|
|
688
688
|
};
|
|
689
|
-
|
|
690
|
-
onclick: () => l.onclick(
|
|
689
|
+
o.addButton(l.name, f(h({}, l), {
|
|
690
|
+
onclick: () => l.onclick(o)
|
|
691
691
|
}));
|
|
692
692
|
},
|
|
693
693
|
toolbar: a,
|
|
@@ -745,9 +745,9 @@ const V = {
|
|
|
745
745
|
this.show = !0;
|
|
746
746
|
},
|
|
747
747
|
methods: {
|
|
748
|
-
uploadImageFile(
|
|
748
|
+
uploadImageFile(n) {
|
|
749
749
|
return p(this, arguments, function* ({ file: e, onError: t, onProgress: i, onSuccess: a }) {
|
|
750
|
-
var
|
|
750
|
+
var o, l;
|
|
751
751
|
try {
|
|
752
752
|
this.loading = this.$loading({ text: "压缩中...", background: "rgba(0,0,0,0.2)" });
|
|
753
753
|
const r = yield z(e, {
|
|
@@ -758,7 +758,7 @@ const V = {
|
|
|
758
758
|
}
|
|
759
759
|
});
|
|
760
760
|
this.loading.text = "上传中...";
|
|
761
|
-
const s = yield this.api((
|
|
761
|
+
const s = yield this.api((o = this.getUploadUrl) == null ? void 0 : o.call(this), r, {
|
|
762
762
|
data: { unid: A(), type: this.fileLabel },
|
|
763
763
|
onprogress(d) {
|
|
764
764
|
i == null || i(d);
|
|
@@ -774,10 +774,10 @@ const V = {
|
|
|
774
774
|
processItems(e, t) {
|
|
775
775
|
let i = !1;
|
|
776
776
|
for (let a = 0; a < t.length; a++) {
|
|
777
|
-
const
|
|
778
|
-
if (/^image\/(jpeg|png|gif|bmp)$/.test(
|
|
779
|
-
const
|
|
780
|
-
this.uploadImageFile({ file:
|
|
777
|
+
const n = t[a];
|
|
778
|
+
if (/^image\/(jpeg|png|gif|bmp)$/.test(n.type)) {
|
|
779
|
+
const o = n.getAsFile ? n.getAsFile() : n;
|
|
780
|
+
this.uploadImageFile({ file: o }), e.preventDefault(), i = !0;
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
return i;
|
|
@@ -799,10 +799,10 @@ const V = {
|
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
801
|
}, b = {};
|
|
802
|
-
var Y = /* @__PURE__ */
|
|
802
|
+
var Y = /* @__PURE__ */ I(
|
|
803
803
|
V,
|
|
804
|
-
G,
|
|
805
804
|
W,
|
|
805
|
+
G,
|
|
806
806
|
!1,
|
|
807
807
|
X,
|
|
808
808
|
null,
|
|
@@ -971,7 +971,7 @@ const Q = {
|
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
973
|
}, v = {};
|
|
974
|
-
var ee = /* @__PURE__ */
|
|
974
|
+
var ee = /* @__PURE__ */ I(
|
|
975
975
|
Q,
|
|
976
976
|
J,
|
|
977
977
|
K,
|
package/tinymce-editor/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tinymce-editor{height:100%}.tinymce-editor.none-resize .mce-resizehandle{display:none}.tinymce-editor .mce-tinymce{flex:1;height:calc(100% - 4px)}.tinymce-editor .mce-tinymce .mce-menubtn.mce-fixed-width span{width:60px}.tinymce-editor .mce-tinymce>.mce-container-body{flex-direction:column;height:100%;display:flex}.tinymce-editor .mce-tinymce>.mce-container-body>.mce-edit-area{flex:1}.tinymce-editor .fa-icon{font:14px/1 FontAwesome!important}.tinymce-editor .el-icon{font-family:element-icons,serif!important}.tinymce-editor .mce-label{display:none}.template-tag{color:#1e90ff;margin:0 10px;font-family:黑体,serif;font-style:italic;font-weight:700;cursor:help!important}.editor-shadow{text-align:left;word-break:normal;word-spacing:0;overflow-wrap:break-word;cursor:text;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;width:100%;height:100%;padding:10px;font-family:微软雅黑,serif;font-size:16px;line-height:normal;position:relative;overflow:auto}.editor-shadow img{max-width:100%!important}.show-placeholder{position:relative}.show-placeholder:after{color:#a9a9a9;content:attr(placeholder);pointer-events:none;position:absolute;top:10px;left:11px}
|
|
1
|
+
.tinymce-editor{height:100%}.tinymce-editor.none-resize .mce-resizehandle{display:none}.tinymce-editor .mce-tinymce{flex:1;height:calc(100% - 4px)}.tinymce-editor .mce-tinymce .mce-menubtn.mce-fixed-width span{width:60px}.tinymce-editor .mce-tinymce>.mce-container-body{flex-direction:column;height:100%;display:flex}.tinymce-editor .mce-tinymce>.mce-container-body>.mce-edit-area{flex:1}.tinymce-editor .fa-icon{font:14px/1 FontAwesome!important}.tinymce-editor .el-icon{font-family:element-icons,serif!important}.tinymce-editor .mce-label{display:none}.template-tag{color:#1e90ff;margin:0 10px;font-family:黑体,serif;font-style:italic;font-weight:700;cursor:help!important}.editor-shadow{text-align:left;word-break:normal;word-spacing:0;overflow-wrap:break-word;cursor:text;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;width:100%;height:100%;padding:10px;font-family:微软雅黑,serif;font-size:16px;line-height:normal;position:relative;overflow:auto}.editor-shadow img{max-width:100%!important}.show-placeholder{position:relative}.show-placeholder:after{color:#a9a9a9;content:attr(placeholder);pointer-events:none;position:absolute;top:10px;left:11px}
|
package/toolbar/index.mjs
CHANGED