@das-fed/ui 6.4.0-hot.1 → 6.4.0-hot.2
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/package.json +5 -5
- package/packages/business-components/app-container/index.js +255 -47
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/index.js +298 -90
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/index.js +0 -1
- package/packages/business-components/currency-page/index.js +0 -1
- package/packages/business-components/device-panel/index.js +28123 -23290
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/index.js +0 -1
- package/packages/business-components/import-button/index.js +0 -1
- package/packages/business-components/layout-breadcrumb/index.js +0 -1
- package/packages/business-components/model-table-dialog/index.js +0 -1
- package/packages/business-components/process-configuration/index.js +0 -1
- package/packages/business-components/process-form/index.js +1010 -802
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/index.js +3669 -332
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +0 -1
- package/packages/business-components/urgent-panel/index.js +2338 -1554
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +0 -1
- package/packages/business-components/video-dialog/index.js +0 -1
- package/packages/components/alert/index.js +3418 -52
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/audio-video/index.js +0 -1
- package/packages/components/autocomplete/index.js +2875 -457
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/breadcrumb/index.js +271 -48
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/button/index.js +9800 -212
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/calendar/index.js +0 -1
- package/packages/components/cascader/index.js +6406 -140
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +3837 -180
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/collapse-panel/index.js +3624 -31
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collapse-transition/index.js +0 -1
- package/packages/components/collaspe/index.js +3624 -31
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/color-picker/index.js +5346 -107
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/index.js +0 -1
- package/packages/components/date-picker/index.js +13993 -530
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/index.js +1835 -187
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +0 -1
- package/packages/components/drawer/index.js +1614 -39
- package/packages/components/drawer/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +4615 -55
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +0 -1
- package/packages/components/empty/index.js +800 -40
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/form/index.js +0 -1
- package/packages/components/form-item/index.js +0 -1
- package/packages/components/icon/index.js +0 -1
- package/packages/components/image-preview/index.js +1283 -34
- package/packages/components/image-preview/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +11722 -112
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +13168 -387
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +1086 -158
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/index.js +0 -1
- package/packages/components/input-number/index.js +1831 -146
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +3669 -2884
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/index.js +0 -1
- package/packages/components/map/index.js +5214 -1191
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +8297 -604
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-header/index.js +10077 -39
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/message/index.js +1289 -54
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/index.js +3269 -48
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/index.js +8025 -149
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/index.js +2495 -45
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/popup-mask/index.js +0 -1
- package/packages/components/preview/index.js +0 -1
- package/packages/components/progress/index.js +517 -108
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/radio/index.js +3724 -160
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +0 -1
- package/packages/components/rich-editor/index.js +0 -1
- package/packages/components/scrollbar/index.js +1442 -916
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +5261 -90
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search-form/index.js +1010 -921
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/index.js +10505 -380
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-input/index.js +0 -1
- package/packages/components/select-list/index.js +1433 -1174
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +2645 -197
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +2710 -260
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +3534 -49
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +0 -1
- package/packages/components/step/index.js +4085 -29
- package/packages/components/step/index.js.gz +0 -0
- package/packages/components/steps/index.js +4070 -15
- package/packages/components/steps/index.js.gz +0 -0
- package/packages/components/switch/index.js +547 -32
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/table/index.js +17503 -5202
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/index.js +12630 -173
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tag/index.js +325 -56
- package/packages/components/tag/index.js.gz +0 -0
- package/packages/components/text-tooltip/index.js +0 -1
- package/packages/components/time-line/index.js +3397 -61
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/index.js +2174 -66
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/index.js +6747 -1882
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +2778 -359
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-table/index.js +0 -1
- package/packages/components/upload/index.js +11726 -116
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +2928 -87
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/watermark/index.js +368 -18
- package/packages/components/watermark/index.js.gz +0 -0
- /package/packages/business-components/app-container/{style.css → index.css} +0 -0
- /package/packages/business-components/app-container/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/change-enterprises/{style.css → index.css} +0 -0
- /package/packages/business-components/change-enterprises/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/change-pwd/{style.css → index.css} +0 -0
- /package/packages/business-components/currency-page/{style.css → index.css} +0 -0
- /package/packages/business-components/device-panel/{style.css → index.css} +0 -0
- /package/packages/business-components/device-panel/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/export-button/{style.css → index.css} +0 -0
- /package/packages/business-components/import-button/{style.css → index.css} +0 -0
- /package/packages/business-components/layout-breadcrumb/{style.css → index.css} +0 -0
- /package/packages/business-components/model-table-dialog/{style.css → index.css} +0 -0
- /package/packages/business-components/model-table-dialog/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/process-configuration/{style.css → index.css} +0 -0
- /package/packages/business-components/process-configuration/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/process-form/{style.css → index.css} +0 -0
- /package/packages/business-components/process-log/{style.css → index.css} +0 -0
- /package/packages/business-components/process-log/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/process-table/{style.css → index.css} +0 -0
- /package/packages/business-components/urgent-panel/{style.css → index.css} +0 -0
- /package/packages/business-components/urgent-panel/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/user-org-dialog/{style.css → index.css} +0 -0
- /package/packages/business-components/user-org-dialog/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/video-dialog/{style.css → index.css} +0 -0
- /package/packages/business-components/video-dialog/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/alert/{style.css → index.css} +0 -0
- /package/packages/components/alert/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/audio-video/{style.css → index.css} +0 -0
- /package/packages/components/autocomplete/{style.css → index.css} +0 -0
- /package/packages/components/autocomplete/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/breadcrumb/{style.css → index.css} +0 -0
- /package/packages/components/breadcrumb/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/button/{style.css → index.css} +0 -0
- /package/packages/components/button/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/calendar/{style.css → index.css} +0 -0
- /package/packages/components/calendar/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/cascader/{style.css → index.css} +0 -0
- /package/packages/components/cascader/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/checkbox/{style.css → index.css} +0 -0
- /package/packages/components/checkbox/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/collapse-panel/{style.css → index.css} +0 -0
- /package/packages/components/collapse-panel/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/collapse-transition/{style.css → index.css} +0 -0
- /package/packages/components/collaspe/{style.css → index.css} +0 -0
- /package/packages/components/color-picker/{style.css → index.css} +0 -0
- /package/packages/components/color-picker/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/custom-search-item/{style.css → index.css} +0 -0
- /package/packages/components/date-picker/{style.css → index.css} +0 -0
- /package/packages/components/date-picker/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/dialog/{style.css → index.css} +0 -0
- /package/packages/components/dialog/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/dimple-layout/{style.css → index.css} +0 -0
- /package/packages/components/dimple-layout/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/drawer/{style.css → index.css} +0 -0
- /package/packages/components/dropdown/{style.css → index.css} +0 -0
- /package/packages/components/dropdown/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/edit-table/{style.css → index.css} +0 -0
- /package/packages/components/edit-table/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/empty/{style.css → index.css} +0 -0
- /package/packages/components/form/{style.css → index.css} +0 -0
- /package/packages/components/form-item/{style.css → index.css} +0 -0
- /package/packages/components/form-item/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/icon/{style.css → index.css} +0 -0
- /package/packages/components/image-upload/{style.css → index.css} +0 -0
- /package/packages/components/image-upload/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/image-viewer/{style.css → index.css} +0 -0
- /package/packages/components/image-viewer/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/input/{style.css → index.css} +0 -0
- /package/packages/components/input/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/input-dialog-select/{style.css → index.css} +0 -0
- /package/packages/components/input-dialog-select/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/input-number/{style.css → index.css} +0 -0
- /package/packages/components/input-number/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/live-player/{style.css → index.css} +0 -0
- /package/packages/components/loading/{style.css → index.css} +0 -0
- /package/packages/components/loading/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/map/{style.css → index.css} +0 -0
- /package/packages/components/menu-aside/{style.css → index.css} +0 -0
- /package/packages/components/menu-aside/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/menu-header/{style.css → index.css} +0 -0
- /package/packages/components/menu-header/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/message/{style.css → index.css} +0 -0
- /package/packages/components/message/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/notification/{style.css → index.css} +0 -0
- /package/packages/components/notification/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/pagination/{style.css → index.css} +0 -0
- /package/packages/components/pagination/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/popover/{style.css → index.css} +0 -0
- /package/packages/components/popover/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/popup-mask/{style.css → index.css} +0 -0
- /package/packages/components/preview/{style.css → index.css} +0 -0
- /package/packages/components/progress/{style.css → index.css} +0 -0
- /package/packages/components/progress/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/radio/{style.css → index.css} +0 -0
- /package/packages/components/radio/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/radio-tabs/{style.css → index.css} +0 -0
- /package/packages/components/radio-tabs/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/rich-editor/{style.css → index.css} +0 -0
- /package/packages/components/rich-editor/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/scrollbar/{style.css → index.css} +0 -0
- /package/packages/components/scrollbar/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/search/{style.css → index.css} +0 -0
- /package/packages/components/search/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/search-form/{style.css → index.css} +0 -0
- /package/packages/components/search-form/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/select/{style.css → index.css} +0 -0
- /package/packages/components/select/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/select-input/{style.css → index.css} +0 -0
- /package/packages/components/select-input/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/select-list/{style.css → index.css} +0 -0
- /package/packages/components/select-list/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/special-range-picker-month/{style.css → index.css} +0 -0
- /package/packages/components/special-range-picker-month/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/special-range-picker-year/{style.css → index.css} +0 -0
- /package/packages/components/special-range-picker-year/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/spin/{style.css → index.css} +0 -0
- /package/packages/components/spin/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/split-panel/{style.css → index.css} +0 -0
- /package/packages/components/split-panel/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/step/{style.css → index.css} +0 -0
- /package/packages/components/steps/{style.css → index.css} +0 -0
- /package/packages/components/steps/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/switch/{style.css → index.css} +0 -0
- /package/packages/components/switch/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/table/{style.css → index.css} +0 -0
- /package/packages/components/table/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tabs/{style.css → index.css} +0 -0
- /package/packages/components/tabs/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tag/{style.css → index.css} +0 -0
- /package/packages/components/tag/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/text-tooltip/{style.css → index.css} +0 -0
- /package/packages/components/text-tooltip/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/time-line/{style.css → index.css} +0 -0
- /package/packages/components/time-line/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tooltip/{style.css → index.css} +0 -0
- /package/packages/components/tooltip/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tree/{style.css → index.css} +0 -0
- /package/packages/components/tree/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tree-select/{style.css → index.css} +0 -0
- /package/packages/components/tree-select/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tree-table/{style.css → index.css} +0 -0
- /package/packages/components/tree-table/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/upload/{style.css → index.css} +0 -0
- /package/packages/components/upload/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/virtual-tree/{style.css → index.css} +0 -0
- /package/packages/components/virtual-tree/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/watermark/{style.css → index.css} +0 -0
|
Binary file
|
|
@@ -1,25 +1,375 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { getCurrentScope as he, onScopeDispose as _e, unref as ne, getCurrentInstance as ye, onMounted as oe, nextTick as be, watch as ae, ref as re, warn as we, defineComponent as F, computed as p, shallowRef as U, onBeforeUnmount as Oe, openBlock as se, createElementBlock as xe, normalizeStyle as Ie, renderSlot as le, createBlock as Se, mergeProps as $e, withCtx as Pe } from "vue";
|
|
2
|
+
import { withInstall as ke } from "@das-fed/utils/with-install/index";
|
|
3
|
+
var X;
|
|
4
|
+
const ie = typeof window < "u";
|
|
5
|
+
ie && ((X = window == null ? void 0 : window.navigator) != null && X.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
6
|
+
function Ee(e) {
|
|
7
|
+
return typeof e == "function" ? e() : ne(e);
|
|
8
|
+
}
|
|
9
|
+
function Ce(e) {
|
|
10
|
+
return e;
|
|
11
|
+
}
|
|
12
|
+
function Me(e) {
|
|
13
|
+
return he() ? (_e(e), !0) : !1;
|
|
14
|
+
}
|
|
15
|
+
function We(e, t = !0) {
|
|
16
|
+
ye() ? oe(e) : t ? e() : be(e);
|
|
17
|
+
}
|
|
18
|
+
function Ne(e) {
|
|
19
|
+
var t;
|
|
20
|
+
const n = Ee(e);
|
|
21
|
+
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
22
|
+
}
|
|
23
|
+
const Ae = ie ? window : void 0;
|
|
24
|
+
function Te(e, t = !1) {
|
|
25
|
+
const n = re(), r = () => n.value = !!e();
|
|
26
|
+
return r(), We(r, t), n;
|
|
27
|
+
}
|
|
28
|
+
const Y = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, K = "__vueuse_ssr_handlers__";
|
|
29
|
+
Y[K] = Y[K] || {};
|
|
30
|
+
var q = Object.getOwnPropertySymbols, je = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable, ze = (e, t) => {
|
|
31
|
+
var n = {};
|
|
32
|
+
for (var r in e)
|
|
33
|
+
je.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
34
|
+
if (e != null && q)
|
|
35
|
+
for (var r of q(e))
|
|
36
|
+
t.indexOf(r) < 0 && Be.call(e, r) && (n[r] = e[r]);
|
|
37
|
+
return n;
|
|
38
|
+
};
|
|
39
|
+
function Re(e, t, n = {}) {
|
|
40
|
+
const r = n, { window: s = Ae } = r, v = ze(r, ["window"]);
|
|
41
|
+
let u;
|
|
42
|
+
const I = Te(() => s && "MutationObserver" in s), y = () => {
|
|
43
|
+
u && (u.disconnect(), u = void 0);
|
|
44
|
+
}, f = ae(() => Ne(e), (i) => {
|
|
45
|
+
y(), I.value && s && i && (u = new MutationObserver(t), u.observe(i, v));
|
|
46
|
+
}, { immediate: !0 }), d = () => {
|
|
47
|
+
y(), f();
|
|
48
|
+
};
|
|
49
|
+
return Me(d), {
|
|
50
|
+
isSupported: I,
|
|
51
|
+
stop: d
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
var J;
|
|
55
|
+
(function(e) {
|
|
56
|
+
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
57
|
+
})(J || (J = {}));
|
|
58
|
+
var He = Object.defineProperty, Z = Object.getOwnPropertySymbols, Le = Object.prototype.hasOwnProperty, Qe = Object.prototype.propertyIsEnumerable, ee = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fe = (e, t) => {
|
|
59
|
+
for (var n in t || (t = {}))
|
|
60
|
+
Le.call(t, n) && ee(e, n, t[n]);
|
|
61
|
+
if (Z)
|
|
62
|
+
for (var n of Z(t))
|
|
63
|
+
Qe.call(t, n) && ee(e, n, t[n]);
|
|
64
|
+
return e;
|
|
65
|
+
};
|
|
66
|
+
const De = {
|
|
67
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
68
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
69
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
70
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
71
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
72
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
73
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
74
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
75
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
76
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
77
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
78
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
79
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
80
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
81
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
82
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
83
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
84
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
85
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
86
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
87
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
88
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
89
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
90
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
91
|
+
};
|
|
92
|
+
Fe({
|
|
93
|
+
linear: Ce
|
|
94
|
+
}, De);
|
|
95
|
+
/**
|
|
96
|
+
* @vue/shared v3.4.35
|
|
97
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
98
|
+
* @license MIT
|
|
99
|
+
**/
|
|
100
|
+
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
101
|
+
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
102
|
+
const Ve = Object.prototype.hasOwnProperty, te = (e, t) => Ve.call(e, t), ue = (e) => e !== null && typeof e == "object";
|
|
103
|
+
function Ge(e) {
|
|
104
|
+
for (var t = -1, n = e == null ? 0 : e.length, r = {}; ++t < n; ) {
|
|
105
|
+
var s = e[t];
|
|
106
|
+
r[s[0]] = s[1];
|
|
107
|
+
}
|
|
108
|
+
return r;
|
|
109
|
+
}
|
|
110
|
+
const ce = "__epPropKey", H = (e) => e, Ue = (e) => ue(e) && !!e[ce], Xe = (e, t) => {
|
|
111
|
+
if (!ue(e) || Ue(e))
|
|
112
|
+
return e;
|
|
113
|
+
const { values: n, required: r, default: s, type: v, validator: u } = e, y = {
|
|
114
|
+
type: v,
|
|
115
|
+
required: !!r,
|
|
116
|
+
validator: n || u ? (f) => {
|
|
117
|
+
let d = !1, i = [];
|
|
118
|
+
if (n && (i = Array.from(n), te(e, "default") && i.push(s), d || (d = i.includes(f))), u && (d || (d = u(f))), !d && i.length > 0) {
|
|
119
|
+
const b = [...new Set(i)].map((g) => JSON.stringify(g)).join(", ");
|
|
120
|
+
we(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${b}], got value ${JSON.stringify(f)}.`);
|
|
121
|
+
}
|
|
122
|
+
return d;
|
|
123
|
+
} : void 0,
|
|
124
|
+
[ce]: !0
|
|
125
|
+
};
|
|
126
|
+
return te(e, "default") && (y.default = s), y;
|
|
127
|
+
}, Ye = (e) => Ge(Object.entries(e).map(([t, n]) => [
|
|
128
|
+
t,
|
|
129
|
+
Xe(n, t)
|
|
130
|
+
])), Ke = (e, t) => (e.install = (n) => {
|
|
131
|
+
for (const r of [e, ...Object.values({})])
|
|
132
|
+
n.component(r.name, r);
|
|
133
|
+
}, e);
|
|
134
|
+
var qe = (e, t) => {
|
|
135
|
+
const n = e.__vccOpts || e;
|
|
136
|
+
for (const [r, s] of t)
|
|
137
|
+
n[r] = s;
|
|
138
|
+
return n;
|
|
139
|
+
};
|
|
140
|
+
const Je = Ye({
|
|
141
|
+
zIndex: {
|
|
142
|
+
type: Number,
|
|
143
|
+
default: 9
|
|
144
|
+
},
|
|
145
|
+
rotate: {
|
|
146
|
+
type: Number,
|
|
147
|
+
default: -22
|
|
148
|
+
},
|
|
149
|
+
width: Number,
|
|
150
|
+
height: Number,
|
|
151
|
+
image: String,
|
|
152
|
+
content: {
|
|
153
|
+
type: H([String, Array]),
|
|
154
|
+
default: "Element Plus"
|
|
155
|
+
},
|
|
156
|
+
font: {
|
|
157
|
+
type: H(Object)
|
|
158
|
+
},
|
|
159
|
+
gap: {
|
|
160
|
+
type: H(Array),
|
|
161
|
+
default: () => [100, 100]
|
|
162
|
+
},
|
|
163
|
+
offset: {
|
|
164
|
+
type: H(Array)
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
function Ze(e) {
|
|
168
|
+
return e.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
169
|
+
}
|
|
170
|
+
function et(e) {
|
|
171
|
+
return Object.keys(e).map((t) => `${Ze(t)}: ${e[t]};`).join(" ");
|
|
172
|
+
}
|
|
173
|
+
function tt() {
|
|
174
|
+
return window.devicePixelRatio || 1;
|
|
175
|
+
}
|
|
176
|
+
const nt = (e, t) => {
|
|
177
|
+
let n = !1;
|
|
178
|
+
return e.removedNodes.length && t && (n = Array.from(e.removedNodes).includes(t)), e.type === "attributes" && e.target === t && (n = !0), n;
|
|
179
|
+
}, fe = 3;
|
|
180
|
+
function Q(e, t, n = 1) {
|
|
181
|
+
const r = document.createElement("canvas"), s = r.getContext("2d"), v = e * n, u = t * n;
|
|
182
|
+
return r.setAttribute("width", `${v}px`), r.setAttribute("height", `${u}px`), s.save(), [s, r, v, u];
|
|
183
|
+
}
|
|
184
|
+
function ot() {
|
|
185
|
+
function e(t, n, r, s, v, u, I, y) {
|
|
186
|
+
const [f, d, i, b] = Q(s, v, r);
|
|
187
|
+
if (t instanceof HTMLImageElement)
|
|
188
|
+
f.drawImage(t, 0, 0, i, b);
|
|
189
|
+
else {
|
|
190
|
+
const {
|
|
191
|
+
color: _,
|
|
192
|
+
fontSize: C,
|
|
193
|
+
fontStyle: T,
|
|
194
|
+
fontWeight: j,
|
|
195
|
+
fontFamily: pe,
|
|
196
|
+
textAlign: ve,
|
|
197
|
+
textBaseline: me
|
|
198
|
+
} = u, D = Number(C) * r;
|
|
199
|
+
f.font = `${T} normal ${j} ${D}px/${v}px ${pe}`, f.fillStyle = _, f.textAlign = ve, f.textBaseline = me;
|
|
200
|
+
const V = Array.isArray(t) ? t : [t];
|
|
201
|
+
V == null || V.forEach((G, ge) => {
|
|
202
|
+
f.fillText(G ?? "", i / 2, ge * (D + fe * r));
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
const g = Math.PI / 180 * Number(n), R = Math.max(s, v), [B, L, w] = Q(R, R, r);
|
|
206
|
+
B.translate(w / 2, w / 2), B.rotate(g), i > 0 && b > 0 && B.drawImage(d, -i / 2, -b / 2);
|
|
207
|
+
function m(_, C) {
|
|
208
|
+
const T = _ * Math.cos(g) - C * Math.sin(g), j = _ * Math.sin(g) + C * Math.cos(g);
|
|
209
|
+
return [T, j];
|
|
210
|
+
}
|
|
211
|
+
let S = 0, W = 0, N = 0, z = 0;
|
|
212
|
+
const A = i / 2, $ = b / 2;
|
|
213
|
+
[
|
|
214
|
+
[0 - A, 0 - $],
|
|
215
|
+
[0 + A, 0 - $],
|
|
216
|
+
[0 + A, 0 + $],
|
|
217
|
+
[0 - A, 0 + $]
|
|
218
|
+
].forEach(([_, C]) => {
|
|
219
|
+
const [T, j] = m(_, C);
|
|
220
|
+
S = Math.min(S, T), W = Math.max(W, T), N = Math.min(N, j), z = Math.max(z, j);
|
|
221
|
+
});
|
|
222
|
+
const o = S + w / 2, a = N + w / 2, l = W - S, h = z - N, O = I * r, P = y * r, M = (l + O) * 2, k = h + P, [E, c] = Q(M, k);
|
|
223
|
+
function x(_ = 0, C = 0) {
|
|
224
|
+
E.drawImage(L, o, a, l, h, _, C, l, h);
|
|
225
|
+
}
|
|
226
|
+
return x(), x(l + O, -h / 2 - P / 2), x(l + O, +h / 2 + P / 2), [c.toDataURL(), M / r, k / r];
|
|
227
|
+
}
|
|
228
|
+
return e;
|
|
229
|
+
}
|
|
230
|
+
const at = F({
|
|
231
|
+
name: "ElWatermark"
|
|
232
|
+
}), rt = /* @__PURE__ */ F({
|
|
233
|
+
...at,
|
|
234
|
+
props: Je,
|
|
235
|
+
setup(e) {
|
|
236
|
+
const t = e, n = {
|
|
237
|
+
position: "relative"
|
|
238
|
+
}, r = p(() => {
|
|
239
|
+
var o, a;
|
|
240
|
+
return (a = (o = t.font) == null ? void 0 : o.color) != null ? a : "rgba(0,0,0,.15)";
|
|
241
|
+
}), s = p(() => {
|
|
242
|
+
var o, a;
|
|
243
|
+
return (a = (o = t.font) == null ? void 0 : o.fontSize) != null ? a : 16;
|
|
244
|
+
}), v = p(() => {
|
|
245
|
+
var o, a;
|
|
246
|
+
return (a = (o = t.font) == null ? void 0 : o.fontWeight) != null ? a : "normal";
|
|
247
|
+
}), u = p(() => {
|
|
248
|
+
var o, a;
|
|
249
|
+
return (a = (o = t.font) == null ? void 0 : o.fontStyle) != null ? a : "normal";
|
|
250
|
+
}), I = p(() => {
|
|
251
|
+
var o, a;
|
|
252
|
+
return (a = (o = t.font) == null ? void 0 : o.fontFamily) != null ? a : "sans-serif";
|
|
253
|
+
}), y = p(() => {
|
|
254
|
+
var o, a;
|
|
255
|
+
return (a = (o = t.font) == null ? void 0 : o.textAlign) != null ? a : "center";
|
|
256
|
+
}), f = p(() => {
|
|
257
|
+
var o, a;
|
|
258
|
+
return (a = (o = t.font) == null ? void 0 : o.textBaseline) != null ? a : "top";
|
|
259
|
+
}), d = p(() => t.gap[0]), i = p(() => t.gap[1]), b = p(() => d.value / 2), g = p(() => i.value / 2), R = p(() => {
|
|
260
|
+
var o, a;
|
|
261
|
+
return (a = (o = t.offset) == null ? void 0 : o[0]) != null ? a : b.value;
|
|
262
|
+
}), B = p(() => {
|
|
263
|
+
var o, a;
|
|
264
|
+
return (a = (o = t.offset) == null ? void 0 : o[1]) != null ? a : g.value;
|
|
265
|
+
}), L = () => {
|
|
266
|
+
const o = {
|
|
267
|
+
zIndex: t.zIndex,
|
|
268
|
+
position: "absolute",
|
|
269
|
+
left: 0,
|
|
270
|
+
top: 0,
|
|
271
|
+
width: "100%",
|
|
272
|
+
height: "100%",
|
|
273
|
+
pointerEvents: "none",
|
|
274
|
+
backgroundRepeat: "repeat"
|
|
275
|
+
};
|
|
276
|
+
let a = R.value - b.value, l = B.value - g.value;
|
|
277
|
+
return a > 0 && (o.left = `${a}px`, o.width = `calc(100% - ${a}px)`, a = 0), l > 0 && (o.top = `${l}px`, o.height = `calc(100% - ${l}px)`, l = 0), o.backgroundPosition = `${a}px ${l}px`, o;
|
|
278
|
+
}, w = U(null), m = U(), S = re(!1), W = () => {
|
|
279
|
+
m.value && (m.value.remove(), m.value = void 0);
|
|
280
|
+
}, N = (o, a) => {
|
|
281
|
+
var l;
|
|
282
|
+
w.value && m.value && (S.value = !0, m.value.setAttribute("style", et({
|
|
283
|
+
...L(),
|
|
284
|
+
backgroundImage: `url('${o}')`,
|
|
285
|
+
backgroundSize: `${Math.floor(a)}px`
|
|
286
|
+
})), (l = w.value) == null || l.append(m.value), setTimeout(() => {
|
|
287
|
+
S.value = !1;
|
|
288
|
+
}));
|
|
289
|
+
}, z = (o) => {
|
|
290
|
+
let a = 120, l = 64;
|
|
291
|
+
const h = t.image, O = t.content, P = t.width, M = t.height;
|
|
292
|
+
if (!h && o.measureText) {
|
|
293
|
+
o.font = `${Number(s.value)}px ${I.value}`;
|
|
294
|
+
const k = Array.isArray(O) ? O : [O], E = k.map((c) => {
|
|
295
|
+
const x = o.measureText(c);
|
|
296
|
+
return [
|
|
297
|
+
x.width,
|
|
298
|
+
x.fontBoundingBoxAscent + x.fontBoundingBoxDescent
|
|
299
|
+
];
|
|
300
|
+
});
|
|
301
|
+
a = Math.ceil(Math.max(...E.map((c) => c[0]))), l = Math.ceil(Math.max(...E.map((c) => c[1]))) * k.length + (k.length - 1) * fe;
|
|
302
|
+
}
|
|
303
|
+
return [P ?? a, M ?? l];
|
|
304
|
+
}, A = ot(), $ = () => {
|
|
305
|
+
const a = document.createElement("canvas").getContext("2d"), l = t.image, h = t.content, O = t.rotate;
|
|
306
|
+
if (a) {
|
|
307
|
+
m.value || (m.value = document.createElement("div"));
|
|
308
|
+
const P = tt(), [M, k] = z(a), E = (c) => {
|
|
309
|
+
const [x, _] = A(c || "", O, P, M, k, {
|
|
310
|
+
color: r.value,
|
|
311
|
+
fontSize: s.value,
|
|
312
|
+
fontStyle: u.value,
|
|
313
|
+
fontWeight: v.value,
|
|
314
|
+
fontFamily: I.value,
|
|
315
|
+
textAlign: y.value,
|
|
316
|
+
textBaseline: f.value
|
|
317
|
+
}, d.value, i.value);
|
|
318
|
+
N(x, _);
|
|
319
|
+
};
|
|
320
|
+
if (l) {
|
|
321
|
+
const c = new Image();
|
|
322
|
+
c.onload = () => {
|
|
323
|
+
E(c);
|
|
324
|
+
}, c.onerror = () => {
|
|
325
|
+
E(h);
|
|
326
|
+
}, c.crossOrigin = "anonymous", c.referrerPolicy = "no-referrer", c.src = l;
|
|
327
|
+
} else
|
|
328
|
+
E(h);
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
return oe(() => {
|
|
332
|
+
$();
|
|
333
|
+
}), ae(() => t, () => {
|
|
334
|
+
$();
|
|
335
|
+
}, {
|
|
336
|
+
deep: !0,
|
|
337
|
+
flush: "post"
|
|
338
|
+
}), Oe(() => {
|
|
339
|
+
W();
|
|
340
|
+
}), Re(w, (o) => {
|
|
341
|
+
S.value || o.forEach((a) => {
|
|
342
|
+
nt(a, m.value) && (W(), $());
|
|
343
|
+
});
|
|
344
|
+
}, {
|
|
345
|
+
attributes: !0
|
|
346
|
+
}), (o, a) => (se(), xe("div", {
|
|
347
|
+
ref_key: "containerRef",
|
|
348
|
+
ref: w,
|
|
349
|
+
style: Ie([n])
|
|
350
|
+
}, [
|
|
351
|
+
le(o.$slots, "default")
|
|
352
|
+
], 4));
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
var st = /* @__PURE__ */ qe(rt, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);
|
|
356
|
+
const lt = Ke(st), it = /* @__PURE__ */ F({
|
|
7
357
|
__name: "index",
|
|
8
|
-
setup(
|
|
9
|
-
return (t,
|
|
10
|
-
default:
|
|
11
|
-
|
|
358
|
+
setup(e) {
|
|
359
|
+
return (t, n) => (se(), Se(ne(lt), $e({ class: "das-watermark" }, t.$attrs), {
|
|
360
|
+
default: Pe(() => [
|
|
361
|
+
le(t.$slots, "default", {}, void 0, !0)
|
|
12
362
|
]),
|
|
13
363
|
_: 3
|
|
14
364
|
}, 16));
|
|
15
365
|
}
|
|
16
|
-
}),
|
|
17
|
-
const
|
|
18
|
-
for (const [
|
|
19
|
-
|
|
20
|
-
return
|
|
21
|
-
},
|
|
366
|
+
}), ut = (e, t) => {
|
|
367
|
+
const n = e.__vccOpts || e;
|
|
368
|
+
for (const [r, s] of t)
|
|
369
|
+
n[r] = s;
|
|
370
|
+
return n;
|
|
371
|
+
}, ct = /* @__PURE__ */ ut(it, [["__scopeId", "data-v-adae4d4c"]]), pt = ke(ct), vt = { title: "watermark 水印" };
|
|
22
372
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
373
|
+
pt as DasWatermark,
|
|
374
|
+
vt as default
|
|
25
375
|
};
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|