@web-utils/component 2.7.29 → 2.7.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{config.7dec2bf2.js → config.75161c38.js} +29 -29
- package/dist/chunks/confirmable-mixin.851d6299.js +137 -0
- package/dist/chunks/dataformat.b8c8c01a.js +237 -0
- package/dist/chunks/detail.6135ade5.js +55 -0
- package/dist/chunks/dic.e57b75f2.js +215 -0
- package/dist/chunks/{event.fc358074.js → event.812c361c.js} +54 -23
- package/dist/chunks/{form-input-mixin.760cd65d.js → form-input-mixin.3e63b57f.js} +4 -4
- package/dist/chunks/{form-item-mixin.fa314b67.js → form-item-mixin.a56c101a.js} +44 -17
- package/dist/chunks/{form-pick-mixin.c4e0391b.js → form-pick-mixin.822300f3.js} +1 -1
- package/dist/chunks/{init.e0133910.js → init.38cbb3a2.js} +41 -21
- package/dist/chunks/{input-number-mixin.6849fa63.js → input-number-mixin.44b78389.js} +4 -4
- package/dist/chunks/{mixins.6a394a6c.js → mixins.e1939731.js} +3 -2
- package/dist/chunks/{packages.419bde01.js → packages.c4ea639d.js} +12 -6
- package/dist/chunks/{permission.07c49abf.js → permission.9c766972.js} +6 -1
- package/dist/chunks/slot.55598d0f.js +35 -0
- package/dist/chunks/{tab-mixin.9d568df9.js → tab-mixin.9d848bf6.js} +29 -11
- package/dist/chunks/util.b0d0b0ad.js +478 -0
- package/dist/chunks/{utils.d7f73f8d.js → utils.2a3ffac9.js} +89 -24
- package/dist/chunks/{utils.f44207f4.js → utils.a8891d2c.js} +9 -5
- package/dist/chunks/vueComponentNormalizer.9c6b8b3d.js +59 -0
- package/dist/components/address-input/index.js +30 -17
- package/dist/components/address-input/style.css +15 -1
- package/dist/components/affix/index.js +78 -28
- package/dist/components/affix/style.css +5 -1
- package/dist/components/aside-menu/index.js +14 -8
- package/dist/components/aside-menu/style.css +9 -1
- package/dist/components/avatar/index.js +33 -15
- package/dist/components/avatar/style.css +57 -1
- package/dist/components/awesome-button/index.js +45 -31
- package/dist/components/base.css +410 -1
- package/dist/components/capsule-tab/index.js +13 -7
- package/dist/components/capsule-tab/style.css +32 -1
- package/dist/components/card/index.js +33 -20
- package/dist/components/card/style.css +90 -1
- package/dist/components/carousel/index.js +18 -12
- package/dist/components/carousel/style.css +41 -1
- package/dist/components/chat/index.js +245 -139
- package/dist/components/chat/style.css +279 -1
- package/dist/components/chunk-file-uploader/index.js +63 -29
- package/dist/components/chunk-file-uploader/style.css +4 -1
- package/dist/components/chunk-file-uploader-button/index.js +15 -9
- package/dist/components/chunk-file-uploader-button/style.css +17 -1
- package/dist/components/chunk-file-uploader-drop/index.js +45 -27
- package/dist/components/chunk-file-uploader-drop/style.css +12 -1
- package/dist/components/chunk-file-uploader-file/index.js +150 -73
- package/dist/components/chunk-file-uploader-file/style.css +125 -1
- package/dist/components/chunk-file-uploader-files/index.js +15 -9
- package/dist/components/chunk-file-uploader-files/style.css +9 -1
- package/dist/components/chunk-file-uploader-list/index.js +16 -10
- package/dist/components/chunk-file-uploader-list/style.css +9 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +18 -10
- package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
- package/dist/components/code-mirror-editor/index.js +75 -47
- package/dist/components/code-mirror-editor/style.css +17 -1
- package/dist/components/color-picker/index.js +62 -39
- package/dist/components/column/index.js +54 -29
- package/dist/components/column-default/index.js +47 -33
- package/dist/components/column-dynamic/index.js +26 -19
- package/dist/components/column-menu/index.js +98 -86
- package/dist/components/column-slot/index.js +135 -75
- package/dist/components/comment/index.js +28 -15
- package/dist/components/comment/style.css +92 -1
- package/dist/components/confirm-button/index.js +7 -5
- package/dist/components/confirmable/index.js +5 -4
- package/dist/components/context-menu/index.js +54 -32
- package/dist/components/context-menu/style.css +88 -1
- package/dist/components/count-up/index.js +55 -38
- package/dist/components/custom-scrollbar/index.js +45 -21
- package/dist/components/data-box/index.js +22 -16
- package/dist/components/data-box/style.css +58 -1
- package/dist/components/data-card/index.js +21 -15
- package/dist/components/data-card/style.css +46 -1
- package/dist/components/data-cardtext/index.js +19 -13
- package/dist/components/data-cardtext/style.css +36 -1
- package/dist/components/data-display/index.js +22 -16
- package/dist/components/data-display/style.css +37 -1
- package/dist/components/data-icons/index.js +23 -17
- package/dist/components/data-icons/style.css +53 -1
- package/dist/components/data-imgtext/index.js +26 -20
- package/dist/components/data-imgtext/style.css +70 -1
- package/dist/components/data-operatext/index.js +20 -14
- package/dist/components/data-operatext/style.css +81 -1
- package/dist/components/data-panel/index.js +21 -15
- package/dist/components/data-panel/style.css +37 -1
- package/dist/components/data-pay/index.js +29 -23
- package/dist/components/data-pay/style.css +102 -1
- package/dist/components/data-price/index.js +19 -13
- package/dist/components/data-price/style.css +81 -1
- package/dist/components/data-progress/index.js +26 -20
- package/dist/components/data-progress/style.css +30 -1
- package/dist/components/data-rotate/index.js +21 -15
- package/dist/components/data-rotate/style.css +50 -1
- package/dist/components/data-table-picker/index.js +47 -28
- package/dist/components/data-tabs/index.js +22 -16
- package/dist/components/data-tabs/style.css +70 -1
- package/dist/components/dialog-column/index.js +46 -33
- package/dist/components/dialog-excel/index.js +102 -53
- package/dist/components/dialog-filter/index.js +64 -51
- package/dist/components/dialog-form/index.js +56 -115
- package/dist/components/dialog-form/style.css +10 -1
- package/dist/components/dynamic-table/index.js +66 -42
- package/dist/components/dynamic-table/style.css +30 -1
- package/dist/components/e-charts/index.js +127 -46
- package/dist/components/e-charts/style.css +10 -1
- package/dist/components/easy-popup/index.js +32 -14
- package/dist/components/easy-popup/style.css +18 -1
- package/dist/components/editable-progress/index.js +64 -31
- package/dist/components/editable-progress/style.css +37 -1
- package/dist/components/editable-tree/index.js +513 -287
- package/dist/components/editable-tree/style.css +82 -1
- package/dist/components/egd-collapse/index.js +25 -12
- package/dist/components/egd-collapse-item/index.js +41 -25
- package/dist/components/element-dialog/index.js +101 -48
- package/dist/components/element-dialog/style.css +88 -1
- package/dist/components/empty-view/index.js +13 -7
- package/dist/components/empty-view/style.css +17 -1
- package/dist/components/error-view/index.js +12 -6
- package/dist/components/error-view/style.css +17 -1
- package/dist/components/flex-column/index.js +39 -17
- package/dist/components/flex-item/index.js +59 -24
- package/dist/components/flex-row/index.js +39 -17
- package/dist/components/flex-scroller/index.js +13 -7
- package/dist/components/flex-scroller/style.css +20 -1
- package/dist/components/flow/index.js +116 -64
- package/dist/components/flow/style.css +44 -1
- package/dist/components/flow-node/index.js +29 -21
- package/dist/components/flow-viewer/index.js +97 -52
- package/dist/components/flow-viewer/style.css +19 -1
- package/dist/components/form-button/index.js +12 -8
- package/dist/components/form-cascader/index.js +55 -40
- package/dist/components/form-checkbox-group/index.js +90 -60
- package/dist/components/form-checkbox-group/style.css +51 -1
- package/dist/components/form-date-picker/index.js +113 -44
- package/dist/components/form-group/index.js +23 -17
- package/dist/components/form-group/style.css +76 -1
- package/dist/components/form-holder/index.js +41 -30
- package/dist/components/form-input/index.js +42 -31
- package/dist/components/form-input-email/index.js +47 -30
- package/dist/components/form-input-id-card/index.js +40 -29
- package/dist/components/form-input-number/index.js +50 -38
- package/dist/components/form-input-number/style.css +12 -1
- package/dist/components/form-input-phone-number/index.js +40 -29
- package/dist/components/form-input-time/index.js +40 -29
- package/dist/components/form-item/index.js +99 -47
- package/dist/components/form-item/style.css +11 -1
- package/dist/components/form-item-config-provider/index.js +9 -8
- package/dist/components/form-item-group/index.js +69 -43
- package/dist/components/form-item-group/style.css +30 -1
- package/dist/components/form-radio-group/index.js +77 -53
- package/dist/components/form-radio-group/style.css +53 -1
- package/dist/components/form-select/index.js +71 -51
- package/dist/components/form-switch/index.js +41 -30
- package/dist/components/form-temp/index.js +49 -29
- package/dist/components/form-textarea/index.js +45 -34
- package/dist/components/form-view/index.js +152 -81
- package/dist/components/form-view/style.css +158 -1
- package/dist/components/fy-array/index.js +51 -43
- package/dist/components/fy-array/style.css +18 -1
- package/dist/components/fy-article/index.js +24 -13
- package/dist/components/fy-article/style.css +40 -1
- package/dist/components/fy-cascader/index.js +39 -29
- package/dist/components/fy-checkbox/index.js +38 -27
- package/dist/components/fy-checkbox/style.css +15 -1
- package/dist/components/fy-code/index.js +19 -12
- package/dist/components/fy-curd/index.js +290 -152
- package/dist/components/fy-curd/style.css +239 -1
- package/dist/components/fy-date/index.js +24 -18
- package/dist/components/fy-date/style.css +21 -1
- package/dist/components/fy-dialog-form/index.js +127 -54
- package/dist/components/fy-draggable/index.js +196 -73
- package/dist/components/fy-draggable/style.css +136 -1
- package/dist/components/fy-dynamic/index.js +116 -73
- package/dist/components/fy-dynamic/style.css +35 -1
- package/dist/components/fy-empty/index.js +15 -9
- package/dist/components/fy-empty/style.css +24 -1
- package/dist/components/fy-form/index.js +399 -221
- package/dist/components/fy-form/style.css +79 -1
- package/dist/components/fy-form-design/index.js +2267 -1630
- package/dist/components/fy-form-design/style.css +578 -1
- package/dist/components/fy-form-menu/index.js +43 -35
- package/dist/components/fy-input/index.js +46 -35
- package/dist/components/fy-input-color/index.js +40 -33
- package/dist/components/fy-input-icon/index.js +58 -37
- package/dist/components/fy-input-icon/style.css +39 -1
- package/dist/components/fy-input-map/index.js +113 -68
- package/dist/components/fy-input-map/style.css +50 -1
- package/dist/components/fy-input-number/index.js +29 -24
- package/dist/components/fy-input-table/index.js +82 -48
- package/dist/components/fy-input-table/style.css +10 -1
- package/dist/components/fy-input-tree/index.js +104 -60
- package/dist/components/fy-input-tree/style.css +25 -1
- package/dist/components/fy-progress/index.js +15 -10
- package/dist/components/fy-radio/index.js +20 -14
- package/dist/components/fy-radio/style.css +12 -1
- package/dist/components/fy-rate/index.js +21 -15
- package/dist/components/fy-rate/style.css +9 -1
- package/dist/components/fy-select/index.js +73 -55
- package/dist/components/fy-select/style.css +25 -1
- package/dist/components/fy-slider/index.js +22 -17
- package/dist/components/fy-switch/index.js +17 -12
- package/dist/components/fy-tabs/index.js +20 -12
- package/dist/components/fy-tabs/style.css +6 -0
- package/dist/components/fy-time/index.js +29 -18
- package/dist/components/fy-title/index.js +16 -8
- package/dist/components/fy-title/style.css +11 -1
- package/dist/components/fy-tree/index.js +135 -72
- package/dist/components/fy-tree/style.css +46 -1
- package/dist/components/fy-u-editor/index.js +172 -67
- package/dist/components/fy-u-editor/style.css +15 -1
- package/dist/components/fy-upload/index.js +317 -148
- package/dist/components/fy-upload/style.css +60 -1
- package/dist/components/guide-steps/index.js +31 -17
- package/dist/components/guide-steps/style.css +34 -1
- package/dist/components/header-menu/index.js +86 -66
- package/dist/components/header-search/index.js +92 -60
- package/dist/components/highlight-j-s/index.js +28 -15
- package/dist/components/highlight-j-s/style.css +21 -1
- package/dist/components/icon-card/index.js +13 -7
- package/dist/components/icon-card/style.css +56 -1
- package/dist/components/icon-temp/index.js +12 -6
- package/dist/components/icon-temp/style.css +21 -1
- package/dist/components/iframe-window/index.js +20 -14
- package/dist/components/iframe-window/style.css +20 -1
- package/dist/components/image-cropper/index.js +71 -162
- package/dist/components/image-cropper/style.css +34 -1
- package/dist/components/image-preview/index.js +78 -170
- package/dist/components/image-preview/style.css +72 -1
- package/dist/components/image-viewer/index.js +40 -22
- package/dist/components/image-viewer/style.css +21 -1
- package/dist/components/input-number/index.js +122 -56
- package/dist/components/input-number/style.css +15 -1
- package/dist/components/input-number-range/index.js +32 -20
- package/dist/components/input-number-range/style.css +12 -1
- package/dist/components/keep-view-alive/index.js +68 -21
- package/dist/components/keyboard/index.js +217 -132
- package/dist/components/keyboard/style.css +547 -1
- package/dist/components/license/index.js +81 -35
- package/dist/components/loading-view/index.js +12 -6
- package/dist/components/loading-view/style.css +17 -1
- package/dist/components/login/index.js +91 -62
- package/dist/components/login/style.css +25 -1
- package/dist/components/name-avatar/index.js +32 -10
- package/dist/components/name-avatar/style.css +35 -1
- package/dist/components/nav-bar/index.js +21 -11
- package/dist/components/nav-bar/style.css +17 -1
- package/dist/components/not-implement/index.js +16 -8
- package/dist/components/not-implement/style.css +15 -1
- package/dist/components/notice/index.js +40 -27
- package/dist/components/notice/style.css +54 -1
- package/dist/components/page/index.js +13 -7
- package/dist/components/page/style.css +12 -1
- package/dist/components/page-header/index.js +15 -9
- package/dist/components/page-header/style.css +14 -1
- package/dist/components/page-index/index.js +62 -37
- package/dist/components/page-index/style.css +23 -1
- package/dist/components/page-index-top/index.js +53 -34
- package/dist/components/page-skeleton/index.js +15 -9
- package/dist/components/page-skeleton/style.css +23 -1
- package/dist/components/page-skeleton-new/index.js +15 -9
- package/dist/components/page-skeleton-new/style.css +42 -1
- package/dist/components/pageable-table/index.js +187 -106
- package/dist/components/pageable-table/style.css +72 -1
- package/dist/components/pageable-view/index.js +164 -80
- package/dist/components/pageable-view/style.css +69 -1
- package/dist/components/photo-swipe/index.js +92 -46
- package/dist/components/process-designer/index.js +961 -772
- package/dist/components/process-designer/style.css +1186 -1
- package/dist/components/properties-panel/index.js +1488 -1044
- package/dist/components/properties-panel/style.css +122 -1
- package/dist/components/queue/index.js +24 -12
- package/dist/components/record-video/index.js +53 -27
- package/dist/components/record-video/style.css +53 -1
- package/dist/components/resize-observer/index.js +52 -18
- package/dist/components/resize-observer/style.css +31 -1
- package/dist/components/search/index.js +41 -22
- package/dist/components/search/style.css +57 -1
- package/dist/components/search-popover/index.js +153 -91
- package/dist/components/search-popover/style.css +93 -1
- package/dist/components/sign/index.js +138 -35
- package/dist/components/sign/style.css +12 -1
- package/dist/components/sign-panel/index.js +96 -46
- package/dist/components/sign-panel/style.css +97 -1
- package/dist/components/skeleton/index.js +22 -12
- package/dist/components/skeleton/style.css +61 -1
- package/dist/components/split-pane/index.js +125 -60
- package/dist/components/split-pane/style.css +100 -1
- package/dist/components/stateful/index.js +8 -5
- package/dist/components/stateful/style.css +33 -1
- package/dist/components/static-pageable-table/index.js +22 -15
- package/dist/components/static-pageable-table/style.css +9 -1
- package/dist/components/swiper/index.js +127 -58
- package/dist/components/swiper/style.css +43 -1
- package/dist/components/tab/index.js +34 -16
- package/dist/components/tab/style.css +122 -1
- package/dist/components/tab-item/index.js +14 -9
- package/dist/components/table-column/index.js +26 -17
- package/dist/components/table-page/index.js +42 -23
- package/dist/components/table-view/index.js +162 -87
- package/dist/components/table-view/style.css +95 -1
- package/dist/components/tag-render/index.js +41 -22
- package/dist/components/tag-render/style.css +33 -1
- package/dist/components/text-ellipsis/index.js +48 -26
- package/dist/components/text-ellipsis/style.css +9 -1
- package/dist/components/tinymce-editor/index.js +80 -60
- package/dist/components/tinymce-editor/style.css +43 -1
- package/dist/components/tinymce-wrapper/index.js +77 -41
- package/dist/components/tinymce-wrapper/style.css +36 -1
- package/dist/components/toolbar/index.js +46 -25
- package/dist/components/toolbar/style.css +39 -1
- package/dist/components/toolbar-button/index.js +46 -35
- package/dist/components/toolbar-button/style.css +21 -1
- package/dist/components/trigger/index.js +15 -8
- package/dist/components/verify/index.js +15 -8
- package/dist/components/verify/style.css +15 -1
- package/dist/components/vue-tags-input/index.js +233 -113
- package/dist/components/vue-tags-input/style.css +688 -1
- package/dist/components/watermark/index.js +33 -14
- package/dist/components/watermark/style.css +11 -1
- package/dist/index.css +2434 -1750
- package/dist/index.es.js +15982 -9409
- package/package.json +4 -4
- package/web-types.json +1 -1
- package/dist/chunks/confirmable-mixin.35bd1934.js +0 -104
- package/dist/chunks/dataformat.9cc4428a.js +0 -158
- package/dist/chunks/detail.544c52b0.js +0 -29
- package/dist/chunks/dic.9de2fe5a.js +0 -135
- package/dist/chunks/slot.a7387ecc.js +0 -27
- package/dist/chunks/util.89913643.js +0 -261
- package/dist/chunks/vueComponentNormalizer.77ec6792.js +0 -32
|
@@ -1,30 +1,50 @@
|
|
|
1
1
|
import { isObject, isString, hasOwn, isPlainObject, isArray, camelize, isFunction } from "@web-utils/core";
|
|
2
2
|
import Vue from "vue";
|
|
3
|
-
const
|
|
3
|
+
const util = "";
|
|
4
|
+
const index = "";
|
|
5
|
+
const getClass = (customClass, fixedClass) => {
|
|
6
|
+
if (isPlainObject(customClass) || isString(customClass)) {
|
|
7
|
+
return [fixedClass, customClass];
|
|
8
|
+
} else if (isArray(customClass)) {
|
|
9
|
+
return [fixedClass, ...customClass];
|
|
10
|
+
} else {
|
|
11
|
+
return [fixedClass];
|
|
12
|
+
}
|
|
13
|
+
};
|
|
4
14
|
function getInternetExplorerVersion() {
|
|
5
|
-
const ua = window.navigator.userAgent
|
|
6
|
-
|
|
15
|
+
const ua = window.navigator.userAgent;
|
|
16
|
+
const msie = ua.indexOf("MSIE ");
|
|
17
|
+
if (msie > 0) {
|
|
7
18
|
return parseInt(ua.substring(msie + 5, ua.indexOf(".", msie)), 10);
|
|
8
|
-
|
|
19
|
+
}
|
|
20
|
+
const trident = ua.indexOf("Trident/");
|
|
21
|
+
if (trident > 0) {
|
|
9
22
|
const rv = ua.indexOf("rv:");
|
|
10
23
|
return parseInt(ua.substring(rv + 3, ua.indexOf(".", rv)), 10);
|
|
11
24
|
}
|
|
12
25
|
const edge = ua.indexOf("Edge/");
|
|
13
|
-
|
|
26
|
+
if (edge > 0) {
|
|
27
|
+
return parseInt(ua.substring(edge + 5, ua.indexOf(".", edge)), 10);
|
|
28
|
+
}
|
|
29
|
+
return -1;
|
|
14
30
|
}
|
|
15
31
|
function assignReactiveProperties(raw, properties) {
|
|
16
|
-
for (const propertiesKey in properties)
|
|
32
|
+
for (const propertiesKey in properties) {
|
|
17
33
|
Vue.set(raw, propertiesKey, properties[propertiesKey]);
|
|
34
|
+
}
|
|
18
35
|
return raw;
|
|
19
36
|
}
|
|
20
37
|
const findParent = (vm, predicate) => {
|
|
21
|
-
if (!vm || !predicate)
|
|
38
|
+
if (!vm || !predicate) {
|
|
22
39
|
return null;
|
|
40
|
+
}
|
|
23
41
|
let parent = vm;
|
|
24
|
-
|
|
42
|
+
while (parent && predicate(parent)) {
|
|
25
43
|
parent = parent.$parent;
|
|
44
|
+
}
|
|
26
45
|
return parent;
|
|
27
|
-
}
|
|
46
|
+
};
|
|
47
|
+
const elTableProperties = [
|
|
28
48
|
"data",
|
|
29
49
|
"height",
|
|
30
50
|
"max-height",
|
|
@@ -58,7 +78,8 @@ const findParent = (vm, predicate) => {
|
|
|
58
78
|
"lazy",
|
|
59
79
|
"load",
|
|
60
80
|
"tree-props"
|
|
61
|
-
]
|
|
81
|
+
];
|
|
82
|
+
const elTableEvents = [
|
|
62
83
|
"select",
|
|
63
84
|
"select-all",
|
|
64
85
|
"selection-change",
|
|
@@ -76,7 +97,8 @@ const findParent = (vm, predicate) => {
|
|
|
76
97
|
"current-change",
|
|
77
98
|
"header-dragend",
|
|
78
99
|
"expand-change"
|
|
79
|
-
]
|
|
100
|
+
];
|
|
101
|
+
const elTableColumnProperties = [
|
|
80
102
|
"type",
|
|
81
103
|
"index",
|
|
82
104
|
"column-key",
|
|
@@ -104,7 +126,8 @@ const findParent = (vm, predicate) => {
|
|
|
104
126
|
"filter-multiple",
|
|
105
127
|
"filter-method",
|
|
106
128
|
"filtered-value"
|
|
107
|
-
]
|
|
129
|
+
];
|
|
130
|
+
const elTreeProperties = [
|
|
108
131
|
"data",
|
|
109
132
|
"empty-text",
|
|
110
133
|
"node-key",
|
|
@@ -130,7 +153,8 @@ const findParent = (vm, predicate) => {
|
|
|
130
153
|
"draggable",
|
|
131
154
|
"allow-drag",
|
|
132
155
|
"allow-drop"
|
|
133
|
-
]
|
|
156
|
+
];
|
|
157
|
+
const elTreeEvents = [
|
|
134
158
|
"node-click",
|
|
135
159
|
"node-contextmenu",
|
|
136
160
|
"check-change",
|
|
@@ -144,31 +168,72 @@ const findParent = (vm, predicate) => {
|
|
|
144
168
|
"node-drag-over",
|
|
145
169
|
"node-drag-end",
|
|
146
170
|
"node-drop"
|
|
147
|
-
]
|
|
171
|
+
];
|
|
172
|
+
const filterProperties = (obj, allowProperties, allow = true) => {
|
|
148
173
|
if (isObject(obj)) {
|
|
149
174
|
let arr = allowProperties;
|
|
150
|
-
isString(allowProperties)
|
|
175
|
+
if (isString(allowProperties)) {
|
|
176
|
+
arr = arr.split(",");
|
|
177
|
+
}
|
|
151
178
|
const temp = {};
|
|
152
|
-
|
|
153
|
-
hasOwn(obj, key)
|
|
154
|
-
|
|
179
|
+
arr.forEach((key) => {
|
|
180
|
+
if (hasOwn(obj, key)) {
|
|
181
|
+
if (allow) {
|
|
182
|
+
temp[key] = obj[key];
|
|
183
|
+
} else {
|
|
184
|
+
if (!arr.includes(key)) {
|
|
185
|
+
temp[key] = obj[key];
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
return temp;
|
|
155
191
|
}
|
|
156
192
|
return obj;
|
|
157
|
-
}
|
|
193
|
+
};
|
|
194
|
+
const normalizeProps = (attrs) => {
|
|
158
195
|
const props = {};
|
|
159
|
-
for (const attrsKey in attrs)
|
|
196
|
+
for (const attrsKey in attrs) {
|
|
160
197
|
props[camelize(attrsKey)] = attrs[attrsKey];
|
|
198
|
+
}
|
|
161
199
|
return props;
|
|
162
|
-
}
|
|
200
|
+
};
|
|
201
|
+
const filterTableProperties = (obj) => {
|
|
202
|
+
return filterProperties(obj, elTableProperties);
|
|
203
|
+
};
|
|
204
|
+
const filterTableColumnProperties = (obj) => {
|
|
205
|
+
return filterProperties(obj, elTableColumnProperties);
|
|
206
|
+
};
|
|
207
|
+
const filterTableEvents = (obj) => {
|
|
208
|
+
return filterProperties(obj, elTableEvents);
|
|
209
|
+
};
|
|
210
|
+
const filterTreeProperties = (obj) => {
|
|
211
|
+
return filterProperties(obj, elTreeProperties);
|
|
212
|
+
};
|
|
213
|
+
const filterTreeEvents = (obj) => {
|
|
214
|
+
return filterProperties(obj, elTreeEvents);
|
|
215
|
+
};
|
|
216
|
+
const pathArgReplacer = (path = "", row) => {
|
|
163
217
|
const rw = row || {};
|
|
164
|
-
|
|
218
|
+
const p = path || "";
|
|
219
|
+
return p.replace(/{(.*?)}/g, (_, key) => {
|
|
165
220
|
if (key.indexOf(":")) {
|
|
166
221
|
const [k, defaultVal] = key.split(":");
|
|
167
222
|
return rw[k] ? rw[k] : defaultVal;
|
|
168
|
-
} else
|
|
223
|
+
} else {
|
|
169
224
|
return rw[key] || "";
|
|
225
|
+
}
|
|
170
226
|
});
|
|
171
|
-
}
|
|
227
|
+
};
|
|
228
|
+
const fillPath = (path, args) => {
|
|
229
|
+
if (isFunction(path)) {
|
|
230
|
+
return pathArgReplacer(path(args), args);
|
|
231
|
+
} else if (isString(path)) {
|
|
232
|
+
return pathArgReplacer(path, args);
|
|
233
|
+
} else {
|
|
234
|
+
return null;
|
|
235
|
+
}
|
|
236
|
+
};
|
|
172
237
|
export {
|
|
173
238
|
filterTreeProperties as a,
|
|
174
239
|
filterTreeEvents as b,
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
function secondsToStr(temp) {
|
|
2
2
|
const years = Math.floor(temp / 31536e3);
|
|
3
|
-
if (years)
|
|
3
|
+
if (years) {
|
|
4
4
|
return `${years} 年${numberEnding(years)}`;
|
|
5
|
+
}
|
|
5
6
|
const days = Math.floor((temp %= 31536e3) / 86400);
|
|
6
|
-
if (days)
|
|
7
|
+
if (days) {
|
|
7
8
|
return `${days} 天${numberEnding(days)}`;
|
|
9
|
+
}
|
|
8
10
|
const hours = Math.floor((temp %= 86400) / 3600);
|
|
9
|
-
if (hours)
|
|
11
|
+
if (hours) {
|
|
10
12
|
return `${hours} 时${numberEnding(hours)}`;
|
|
13
|
+
}
|
|
11
14
|
const minutes = Math.floor((temp %= 3600) / 60);
|
|
12
|
-
if (minutes)
|
|
15
|
+
if (minutes) {
|
|
13
16
|
return `${minutes} 分${numberEnding(minutes)}`;
|
|
17
|
+
}
|
|
14
18
|
const seconds = temp % 60;
|
|
15
19
|
return `${seconds} 秒${numberEnding(seconds)}`;
|
|
16
20
|
function numberEnding(number) {
|
|
17
|
-
return number > 1
|
|
21
|
+
return number > 1 ? "" : "";
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
function kebabCase(s) {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
2
|
+
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
3
|
+
if (render) {
|
|
4
|
+
options.render = render;
|
|
5
|
+
options.staticRenderFns = staticRenderFns;
|
|
6
|
+
options._compiled = true;
|
|
7
|
+
}
|
|
8
|
+
if (functionalTemplate) {
|
|
9
|
+
options.functional = true;
|
|
10
|
+
}
|
|
11
|
+
if (scopeId) {
|
|
12
|
+
options._scopeId = "data-v-" + scopeId;
|
|
13
|
+
}
|
|
14
|
+
var hook;
|
|
15
|
+
if (moduleIdentifier) {
|
|
16
|
+
hook = function(context) {
|
|
17
|
+
context = context || // cached call
|
|
18
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
19
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
20
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
21
|
+
context = __VUE_SSR_CONTEXT__;
|
|
22
|
+
}
|
|
23
|
+
if (injectStyles) {
|
|
24
|
+
injectStyles.call(this, context);
|
|
25
|
+
}
|
|
26
|
+
if (context && context._registeredComponents) {
|
|
27
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
options._ssrRegister = hook;
|
|
31
|
+
} else if (injectStyles) {
|
|
32
|
+
hook = shadowMode ? function() {
|
|
33
|
+
injectStyles.call(
|
|
34
|
+
this,
|
|
35
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
36
|
+
);
|
|
37
|
+
} : injectStyles;
|
|
38
|
+
}
|
|
39
|
+
if (hook) {
|
|
40
|
+
if (options.functional) {
|
|
41
|
+
options._injectStyles = hook;
|
|
42
|
+
var originalRender = options.render;
|
|
43
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
44
|
+
hook.call(context);
|
|
45
|
+
return originalRender(h, context);
|
|
46
|
+
};
|
|
47
|
+
} else {
|
|
48
|
+
var existing = options.beforeCreate;
|
|
49
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
exports: scriptExports,
|
|
54
|
+
options
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
normalizeComponent as n
|
|
59
|
+
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
1
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
2
2
|
var render = function() {
|
|
3
|
-
var _vm = this
|
|
3
|
+
var _vm = this;
|
|
4
|
+
var _h = _vm.$createElement;
|
|
5
|
+
var _c = _vm._self._c || _h;
|
|
4
6
|
return _c("div", {
|
|
5
7
|
staticClass: "address-input-wrapper flex-row"
|
|
6
8
|
}, [_c("div", {
|
|
7
9
|
staticClass: "address-input-item-wrapper"
|
|
8
10
|
}, [_c("ElCascader", {
|
|
9
11
|
attrs: {
|
|
10
|
-
options: _vm.options,
|
|
11
|
-
disabled: _vm.inputDisabled,
|
|
12
|
-
props: {
|
|
12
|
+
"options": _vm.options,
|
|
13
|
+
"disabled": _vm.inputDisabled,
|
|
14
|
+
"props": {
|
|
13
15
|
label: "name",
|
|
14
16
|
value: _vm.labelAsValue ? "name" : "id"
|
|
15
17
|
}
|
|
@@ -25,8 +27,8 @@ var render = function() {
|
|
|
25
27
|
staticClass: "address-input-item-wrapper flex-item"
|
|
26
28
|
}, [_c("ElInput", {
|
|
27
29
|
attrs: {
|
|
28
|
-
placeholder: "请输入详细地址!",
|
|
29
|
-
disabled: _vm.inputDisabled
|
|
30
|
+
"placeholder": "请输入详细地址!",
|
|
31
|
+
"disabled": _vm.inputDisabled
|
|
30
32
|
},
|
|
31
33
|
model: {
|
|
32
34
|
value: _vm.internalVal.detailAddress,
|
|
@@ -36,7 +38,9 @@ var render = function() {
|
|
|
36
38
|
expression: "internalVal.detailAddress"
|
|
37
39
|
}
|
|
38
40
|
})], 1)]);
|
|
39
|
-
}
|
|
41
|
+
};
|
|
42
|
+
var staticRenderFns = [];
|
|
43
|
+
const AddressInput_vue_vue_type_style_index_0_lang = "";
|
|
40
44
|
const __vue2_script = {
|
|
41
45
|
name: "AddressInput",
|
|
42
46
|
inject: {
|
|
@@ -76,34 +80,43 @@ const __vue2_script = {
|
|
|
76
80
|
},
|
|
77
81
|
watch: {
|
|
78
82
|
value: {
|
|
79
|
-
immediate:
|
|
80
|
-
deep:
|
|
83
|
+
immediate: true,
|
|
84
|
+
deep: true,
|
|
81
85
|
handler(newVal) {
|
|
82
|
-
|
|
86
|
+
if (newVal) {
|
|
87
|
+
this.internalVal.address = newVal.address;
|
|
88
|
+
this.internalVal.detailAddress = newVal.detailAddress;
|
|
89
|
+
}
|
|
83
90
|
}
|
|
84
91
|
},
|
|
85
92
|
internalVal: {
|
|
86
|
-
immediate:
|
|
87
|
-
deep:
|
|
93
|
+
immediate: true,
|
|
94
|
+
deep: true,
|
|
88
95
|
handler(newVal) {
|
|
89
|
-
!newVal.address && !newVal.detailAddress
|
|
96
|
+
if (!newVal.address && !newVal.detailAddress) {
|
|
97
|
+
this.$emit("input", void 0);
|
|
98
|
+
} else {
|
|
99
|
+
this.$emit("input", newVal);
|
|
100
|
+
}
|
|
90
101
|
}
|
|
91
102
|
}
|
|
92
103
|
}
|
|
93
|
-
}
|
|
104
|
+
};
|
|
105
|
+
const __cssModules = {};
|
|
94
106
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
95
107
|
__vue2_script,
|
|
96
108
|
render,
|
|
97
109
|
staticRenderFns,
|
|
98
|
-
|
|
110
|
+
false,
|
|
99
111
|
__vue2_injectStyles,
|
|
100
112
|
null,
|
|
101
113
|
null,
|
|
102
114
|
null
|
|
103
115
|
);
|
|
104
116
|
function __vue2_injectStyles(context) {
|
|
105
|
-
for (let o in __cssModules)
|
|
117
|
+
for (let o in __cssModules) {
|
|
106
118
|
this[o] = __cssModules[o];
|
|
119
|
+
}
|
|
107
120
|
}
|
|
108
121
|
const AddressInput = /* @__PURE__ */ function() {
|
|
109
122
|
return __component__.exports;
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.address-input-wrapper {
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
.address-input-item-wrapper {
|
|
11
|
+
padding-right: 5px;
|
|
12
|
+
}
|
|
13
|
+
.address-input-item-wrapper .el-cascader, .address-input-item-wrapper .el-input {
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
1
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
2
2
|
var render = function() {
|
|
3
|
-
var _vm = this
|
|
3
|
+
var _vm = this;
|
|
4
|
+
var _h = _vm.$createElement;
|
|
5
|
+
var _c = _vm._self._c || _h;
|
|
4
6
|
return _c("div", [_c("div", {
|
|
5
7
|
ref: "point",
|
|
6
8
|
class: {
|
|
7
|
-
affix: _vm.affix
|
|
9
|
+
"affix": _vm.affix
|
|
8
10
|
},
|
|
9
11
|
style: _vm.styles
|
|
10
12
|
}, [_vm._t("default")], 2), _c("div", {
|
|
@@ -16,7 +18,9 @@ var render = function() {
|
|
|
16
18
|
}],
|
|
17
19
|
style: _vm.slotStyle
|
|
18
20
|
})]);
|
|
19
|
-
}
|
|
21
|
+
};
|
|
22
|
+
var staticRenderFns = [];
|
|
23
|
+
const Affix_vue_vue_type_style_index_0_lang = "";
|
|
20
24
|
const __vue2_script = {
|
|
21
25
|
name: "Affix",
|
|
22
26
|
props: {
|
|
@@ -32,67 +36,113 @@ const __vue2_script = {
|
|
|
32
36
|
data() {
|
|
33
37
|
return {
|
|
34
38
|
container: null,
|
|
35
|
-
affix:
|
|
39
|
+
affix: false,
|
|
36
40
|
styles: {},
|
|
37
|
-
slot:
|
|
41
|
+
slot: false,
|
|
38
42
|
slotStyle: {}
|
|
39
43
|
};
|
|
40
44
|
},
|
|
41
45
|
computed: {
|
|
42
46
|
offsetType() {
|
|
43
47
|
let type = "top";
|
|
44
|
-
|
|
48
|
+
if (this.offsetBottom >= 0) {
|
|
49
|
+
type = "bottom";
|
|
50
|
+
}
|
|
51
|
+
return type;
|
|
45
52
|
}
|
|
46
53
|
},
|
|
47
54
|
mounted() {
|
|
48
|
-
|
|
55
|
+
if (this.target) {
|
|
56
|
+
this.container = document.querySelector(this.target);
|
|
57
|
+
} else {
|
|
58
|
+
this.container = document;
|
|
59
|
+
}
|
|
60
|
+
this.container.addEventListener("scroll", this.handleScroll, false);
|
|
61
|
+
this.container.addEventListener("resize", this.handleScroll, false);
|
|
49
62
|
},
|
|
50
63
|
beforeDestroy() {
|
|
51
|
-
this.container.removeEventListener("scroll", this.handleScroll,
|
|
64
|
+
this.container.removeEventListener("scroll", this.handleScroll, false);
|
|
65
|
+
this.container.removeEventListener("resize", this.handleScroll, false);
|
|
52
66
|
},
|
|
53
67
|
methods: {
|
|
54
68
|
getScroll(target, top) {
|
|
55
|
-
const prop = top ? "pageYOffset" : "pageXOffset"
|
|
69
|
+
const prop = top ? "pageYOffset" : "pageXOffset";
|
|
70
|
+
const method = top ? "scrollTop" : "scrollLeft";
|
|
56
71
|
let ret = target[prop];
|
|
57
|
-
|
|
72
|
+
if (typeof ret !== "number") {
|
|
73
|
+
ret = document.documentElement[method];
|
|
74
|
+
}
|
|
75
|
+
return ret;
|
|
58
76
|
},
|
|
59
77
|
getOffset(element) {
|
|
60
|
-
const rect = element.getBoundingClientRect()
|
|
78
|
+
const rect = element.getBoundingClientRect();
|
|
79
|
+
const scrollTop = this.getScroll(this.container, true);
|
|
80
|
+
const scrollLeft = this.getScroll(this.container);
|
|
81
|
+
const docEl = document.body;
|
|
82
|
+
const clientTop = docEl.clientTop || 0;
|
|
83
|
+
const clientLeft = docEl.clientLeft || 0;
|
|
61
84
|
return {
|
|
62
85
|
top: rect.top + scrollTop - clientTop,
|
|
63
86
|
left: rect.left + scrollLeft - clientLeft
|
|
64
87
|
};
|
|
65
88
|
},
|
|
66
89
|
handleScroll() {
|
|
67
|
-
const affix = this.affix
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
90
|
+
const affix = this.affix;
|
|
91
|
+
const scrollTop = this.getScroll(this.container, true);
|
|
92
|
+
const elOffset = this.getOffset(this.$el);
|
|
93
|
+
const windowHeight = this.container.innerHeight;
|
|
94
|
+
const elHeight = this.$el.getElementsByTagName("div")[0].offsetHeight;
|
|
95
|
+
if (elOffset.top - this.offsetTop < scrollTop && this.offsetType === "top" && !affix) {
|
|
96
|
+
this.affix = true;
|
|
97
|
+
this.slotStyle = {
|
|
98
|
+
width: `${this.$refs.point.clientWidth}px`,
|
|
99
|
+
height: `${this.$refs.point.clientHeight}px`
|
|
100
|
+
};
|
|
101
|
+
this.slot = true;
|
|
102
|
+
this.styles = {
|
|
103
|
+
top: `${this.offsetTop}px`,
|
|
104
|
+
left: `${elOffset.left}px`,
|
|
105
|
+
width: `${this.$el.offsetWidth}px`
|
|
106
|
+
};
|
|
107
|
+
this.$emit("on-change", true);
|
|
108
|
+
} else if (elOffset.top - this.offsetTop > scrollTop && this.offsetType === "top" && affix) {
|
|
109
|
+
this.slot = false;
|
|
110
|
+
this.slotStyle = {};
|
|
111
|
+
this.affix = false;
|
|
112
|
+
this.styles = null;
|
|
113
|
+
this.$emit("on-change", false);
|
|
114
|
+
}
|
|
115
|
+
if (elOffset.top + this.offsetBottom + elHeight > scrollTop + windowHeight && this.offsetType === "bottom" && !affix) {
|
|
116
|
+
this.affix = true;
|
|
117
|
+
this.styles = {
|
|
118
|
+
bottom: `${this.offsetBottom}px`,
|
|
119
|
+
left: `${elOffset.left}px`,
|
|
120
|
+
width: `${this.$el.offsetWidth}px`
|
|
121
|
+
};
|
|
122
|
+
this.$emit("on-change", true);
|
|
123
|
+
} else if (elOffset.top + this.offsetBottom + elHeight < scrollTop + windowHeight && this.offsetType === "bottom" && affix) {
|
|
124
|
+
this.affix = false;
|
|
125
|
+
this.styles = null;
|
|
126
|
+
this.$emit("on-change", false);
|
|
127
|
+
}
|
|
80
128
|
}
|
|
81
129
|
}
|
|
82
|
-
}
|
|
130
|
+
};
|
|
131
|
+
const __cssModules = {};
|
|
83
132
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
84
133
|
__vue2_script,
|
|
85
134
|
render,
|
|
86
135
|
staticRenderFns,
|
|
87
|
-
|
|
136
|
+
false,
|
|
88
137
|
__vue2_injectStyles,
|
|
89
138
|
null,
|
|
90
139
|
null,
|
|
91
140
|
null
|
|
92
141
|
);
|
|
93
142
|
function __vue2_injectStyles(context) {
|
|
94
|
-
for (let o in __cssModules)
|
|
143
|
+
for (let o in __cssModules) {
|
|
95
144
|
this[o] = __cssModules[o];
|
|
145
|
+
}
|
|
96
146
|
}
|
|
97
147
|
const Affix = /* @__PURE__ */ function() {
|
|
98
148
|
return __component__.exports;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
1
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
2
2
|
var render = function() {
|
|
3
|
-
var _vm = this
|
|
3
|
+
var _vm = this;
|
|
4
|
+
var _h = _vm.$createElement;
|
|
5
|
+
var _c = _vm._self._c || _h;
|
|
4
6
|
return _c("div", {
|
|
5
7
|
staticStyle: {
|
|
6
8
|
"padding-top": "4px"
|
|
@@ -13,7 +15,7 @@ var render = function() {
|
|
|
13
15
|
active: _vm.$route.path === item.path
|
|
14
16
|
},
|
|
15
17
|
on: {
|
|
16
|
-
click: function($event) {
|
|
18
|
+
"click": function($event) {
|
|
17
19
|
return _vm.$router.push(item.path);
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -23,10 +25,12 @@ var render = function() {
|
|
|
23
25
|
class: item.icon
|
|
24
26
|
}), _vm._v(" " + _vm._s(item.label) + " ")];
|
|
25
27
|
}, {
|
|
26
|
-
item
|
|
28
|
+
"item": item
|
|
27
29
|
})], 2);
|
|
28
30
|
}), 0);
|
|
29
|
-
}
|
|
31
|
+
};
|
|
32
|
+
var staticRenderFns = [];
|
|
33
|
+
const AsideMenu_vue_vue_type_style_index_0_lang = "";
|
|
30
34
|
const __vue2_script = {
|
|
31
35
|
name: "AsideMenu",
|
|
32
36
|
props: {
|
|
@@ -35,20 +39,22 @@ const __vue2_script = {
|
|
|
35
39
|
default: () => []
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
|
-
}
|
|
42
|
+
};
|
|
43
|
+
const __cssModules = {};
|
|
39
44
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
40
45
|
__vue2_script,
|
|
41
46
|
render,
|
|
42
47
|
staticRenderFns,
|
|
43
|
-
|
|
48
|
+
false,
|
|
44
49
|
__vue2_injectStyles,
|
|
45
50
|
null,
|
|
46
51
|
null,
|
|
47
52
|
null
|
|
48
53
|
);
|
|
49
54
|
function __vue2_injectStyles(context) {
|
|
50
|
-
for (let o in __cssModules)
|
|
55
|
+
for (let o in __cssModules) {
|
|
51
56
|
this[o] = __cssModules[o];
|
|
57
|
+
}
|
|
52
58
|
}
|
|
53
59
|
const AsideMenu = /* @__PURE__ */ function() {
|
|
54
60
|
return __component__.exports;
|