@web-utils/component 2.7.30 → 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 +54 -34
- package/dist/components/dialog-form/style.css +10 -0
- 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 +69 -51
- package/dist/components/image-cropper/style.css +34 -1
- package/dist/components/image-preview/index.js +77 -46
- 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 +15944 -9317
- 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
- package/dist/components/fy-dialog-form/style.css +0 -1
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { chunk } from "lodash";
|
|
2
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
2
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
3
3
|
var render = function() {
|
|
4
|
-
var _vm = this
|
|
4
|
+
var _vm = this;
|
|
5
|
+
var _h = _vm.$createElement;
|
|
6
|
+
var _c = _vm._self._c || _h;
|
|
5
7
|
return _c("div", {
|
|
6
8
|
staticClass: "static-pageable-table"
|
|
7
9
|
}, [_c("ElTable", _vm._g(_vm._b({
|
|
8
10
|
attrs: {
|
|
9
|
-
size: "mini",
|
|
10
|
-
data: _vm.records
|
|
11
|
+
"size": "mini",
|
|
12
|
+
"data": _vm.records
|
|
11
13
|
}
|
|
12
|
-
}, "ElTable", _vm.$attrs,
|
|
14
|
+
}, "ElTable", _vm.$attrs, false), _vm.$listeners), [_vm._t("default", function() {
|
|
13
15
|
return [_vm._v("请添加表格列")];
|
|
14
16
|
})], 2), _c("ElPagination", {
|
|
15
17
|
attrs: {
|
|
16
18
|
"current-page": _vm.page.page,
|
|
17
|
-
"hide-on-single-page":
|
|
19
|
+
"hide-on-single-page": true,
|
|
18
20
|
"page-size": _vm.page.limit,
|
|
19
|
-
total: _vm.page.total,
|
|
20
|
-
background: "",
|
|
21
|
-
layout: "total, prev, pager, next"
|
|
21
|
+
"total": _vm.page.total,
|
|
22
|
+
"background": "",
|
|
23
|
+
"layout": "total, prev, pager, next"
|
|
22
24
|
},
|
|
23
25
|
on: {
|
|
24
26
|
"current-change": function(curPage) {
|
|
@@ -26,7 +28,9 @@ var render = function() {
|
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
})], 1);
|
|
29
|
-
}
|
|
31
|
+
};
|
|
32
|
+
var staticRenderFns = [];
|
|
33
|
+
const StaticPageableTable_vue_vue_type_style_index_0_lang = "";
|
|
30
34
|
const __vue2_script = {
|
|
31
35
|
name: "StaticPageableTable",
|
|
32
36
|
props: {
|
|
@@ -58,9 +62,10 @@ const __vue2_script = {
|
|
|
58
62
|
this.page.page = 1;
|
|
59
63
|
},
|
|
60
64
|
observer: {
|
|
61
|
-
immediate:
|
|
65
|
+
immediate: true,
|
|
62
66
|
handler() {
|
|
63
|
-
this.page.total = this.rows.length
|
|
67
|
+
this.page.total = this.rows.length;
|
|
68
|
+
this.fetchData();
|
|
64
69
|
}
|
|
65
70
|
}
|
|
66
71
|
},
|
|
@@ -69,20 +74,22 @@ const __vue2_script = {
|
|
|
69
74
|
this.records = chunk(this.rows, this.page.limit)[this.page.page - 1];
|
|
70
75
|
}
|
|
71
76
|
}
|
|
72
|
-
}
|
|
77
|
+
};
|
|
78
|
+
const __cssModules = {};
|
|
73
79
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
74
80
|
__vue2_script,
|
|
75
81
|
render,
|
|
76
82
|
staticRenderFns,
|
|
77
|
-
|
|
83
|
+
false,
|
|
78
84
|
__vue2_injectStyles,
|
|
79
85
|
null,
|
|
80
86
|
null,
|
|
81
87
|
null
|
|
82
88
|
);
|
|
83
89
|
function __vue2_injectStyles(context) {
|
|
84
|
-
for (let o in __cssModules)
|
|
90
|
+
for (let o in __cssModules) {
|
|
85
91
|
this[o] = __cssModules[o];
|
|
92
|
+
}
|
|
86
93
|
}
|
|
87
94
|
const StaticPageableTable = /* @__PURE__ */ function() {
|
|
88
95
|
return __component__.exports;
|
|
@@ -1,40 +1,48 @@
|
|
|
1
|
-
var __async = (__this, __arguments, generator) =>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
var __async = (__this, __arguments, generator) => {
|
|
2
|
+
return new Promise((resolve, reject) => {
|
|
3
|
+
var fulfilled = (value) => {
|
|
4
|
+
try {
|
|
5
|
+
step(generator.next(value));
|
|
6
|
+
} catch (e) {
|
|
7
|
+
reject(e);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var rejected = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
step(generator.throw(value));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
reject(e);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
17
21
|
import { getEleWidth } from "@web-utils/core";
|
|
18
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
22
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
19
23
|
var render = function() {
|
|
20
|
-
var _vm = this
|
|
24
|
+
var _vm = this;
|
|
25
|
+
var _h = _vm.$createElement;
|
|
26
|
+
var _c = _vm._self._c || _h;
|
|
21
27
|
return _c("div", {
|
|
22
28
|
staticClass: "egd-swiper"
|
|
23
29
|
}, [_c("ElButton", {
|
|
24
30
|
staticClass: "el-carousel__arrow el-carousel__arrow--left",
|
|
25
31
|
attrs: {
|
|
26
|
-
disabled: _vm.reachedLeft,
|
|
27
|
-
icon: "el-icon-arrow-left"
|
|
32
|
+
"disabled": _vm.reachedLeft,
|
|
33
|
+
"icon": "el-icon-arrow-left"
|
|
28
34
|
},
|
|
29
35
|
on: {
|
|
30
|
-
click: _vm.clickLeft
|
|
36
|
+
"click": _vm.clickLeft
|
|
31
37
|
}
|
|
32
38
|
}), _c("div", {
|
|
33
39
|
ref: "swiperBox",
|
|
34
40
|
staticClass: "egd-swiper-box",
|
|
35
41
|
on: {
|
|
36
|
-
wheel: function($event) {
|
|
37
|
-
|
|
42
|
+
"wheel": function($event) {
|
|
43
|
+
$event.stopPropagation();
|
|
44
|
+
$event.preventDefault();
|
|
45
|
+
return _vm.onMouseWheel.apply(null, arguments);
|
|
38
46
|
}
|
|
39
47
|
}
|
|
40
48
|
}, [_c("div", {
|
|
@@ -44,28 +52,30 @@ var render = function() {
|
|
|
44
52
|
}, [_vm._t("default")], 2)]), _c("ElButton", {
|
|
45
53
|
staticClass: "el-carousel__arrow el-carousel__arrow--right",
|
|
46
54
|
attrs: {
|
|
47
|
-
disabled: _vm.reachedRight,
|
|
48
|
-
icon: "el-icon-arrow-right"
|
|
55
|
+
"disabled": _vm.reachedRight,
|
|
56
|
+
"icon": "el-icon-arrow-right"
|
|
49
57
|
},
|
|
50
58
|
on: {
|
|
51
|
-
click: _vm.clickRight
|
|
59
|
+
"click": _vm.clickRight
|
|
52
60
|
}
|
|
53
61
|
}), _c("ResizeObserver", {
|
|
54
62
|
on: {
|
|
55
|
-
notify: _vm.resize
|
|
63
|
+
"notify": _vm.resize
|
|
56
64
|
}
|
|
57
65
|
})], 1);
|
|
58
|
-
}
|
|
66
|
+
};
|
|
67
|
+
var staticRenderFns = [];
|
|
68
|
+
const Swiper_vue_vue_type_style_index_0_lang = "";
|
|
59
69
|
const __vue2_script = {
|
|
60
70
|
name: "Swiper",
|
|
61
71
|
data() {
|
|
62
72
|
return {
|
|
63
|
-
mouseDown:
|
|
73
|
+
mouseDown: false,
|
|
64
74
|
swiperBoxWith: 0,
|
|
65
75
|
swiperContentWidth: 0,
|
|
66
76
|
translateX: 0,
|
|
67
|
-
reachedLeft:
|
|
68
|
-
reachedRight:
|
|
77
|
+
reachedLeft: true,
|
|
78
|
+
reachedRight: false,
|
|
69
79
|
childrenWidth: [],
|
|
70
80
|
swiperContentStyle: {
|
|
71
81
|
transitionDuration: "0ms",
|
|
@@ -84,56 +94,107 @@ const __vue2_script = {
|
|
|
84
94
|
methods: {
|
|
85
95
|
layout() {
|
|
86
96
|
return __async(this, null, function* () {
|
|
87
|
-
yield this.$nextTick()
|
|
97
|
+
yield this.$nextTick();
|
|
98
|
+
this.computeContentWidth();
|
|
99
|
+
this.resize();
|
|
88
100
|
});
|
|
89
101
|
},
|
|
90
102
|
resize() {
|
|
91
|
-
console.log(1)
|
|
103
|
+
console.log(1);
|
|
104
|
+
this.swiperBoxWith = this.$refs.swiperBox.offsetWidth;
|
|
92
105
|
},
|
|
93
106
|
computeContentWidth() {
|
|
94
107
|
let width = 0;
|
|
95
|
-
const childrenWidth = []
|
|
108
|
+
const childrenWidth = [];
|
|
109
|
+
const { children } = this.$refs.swiperContent;
|
|
96
110
|
Array.prototype.forEach.call(children, (el) => {
|
|
97
111
|
const cw = getEleWidth(el);
|
|
98
|
-
width += cw
|
|
99
|
-
|
|
112
|
+
width += cw;
|
|
113
|
+
childrenWidth.push(cw);
|
|
114
|
+
});
|
|
115
|
+
this.childrenWidth = childrenWidth;
|
|
116
|
+
this.swiperContentWidth = width;
|
|
100
117
|
},
|
|
101
118
|
updateDuration(use) {
|
|
102
119
|
this.swiperContentStyle.transitionDuration = use ? "300ms" : "0ms";
|
|
103
120
|
},
|
|
104
121
|
setTranslateX(translateX) {
|
|
105
|
-
|
|
122
|
+
if (this.swiperContentWidth <= this.swiperBoxWith) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (translateX > 0) {
|
|
126
|
+
this.translateX = 0;
|
|
127
|
+
this.reachedLeft = true;
|
|
128
|
+
this.reachedRight = false;
|
|
129
|
+
} else if (translateX - this.swiperBoxWith < -this.swiperContentWidth) {
|
|
130
|
+
this.translateX = -this.swiperContentWidth + this.swiperBoxWith;
|
|
131
|
+
this.reachedLeft = false;
|
|
132
|
+
this.reachedRight = true;
|
|
133
|
+
} else {
|
|
134
|
+
this.translateX = translateX;
|
|
135
|
+
this.reachedLeft = false;
|
|
136
|
+
this.reachedRight = false;
|
|
137
|
+
}
|
|
138
|
+
this.swiperContentStyle.transform = `translate3d(${this.translateX}px, 0px, 0px)`;
|
|
106
139
|
},
|
|
107
140
|
clickLeft() {
|
|
108
|
-
this.updateDuration(
|
|
109
|
-
let translateX = this.translateX + this.swiperBoxWith
|
|
141
|
+
this.updateDuration(true);
|
|
142
|
+
let translateX = this.translateX + this.swiperBoxWith;
|
|
143
|
+
let width = translateX;
|
|
110
144
|
if (translateX < 0) {
|
|
111
|
-
width = 0
|
|
112
|
-
|
|
113
|
-
|
|
145
|
+
width = 0;
|
|
146
|
+
translateX = -translateX;
|
|
147
|
+
for (let i = 0, len = this.childrenWidth.length; i < len; i++) {
|
|
148
|
+
width += this.childrenWidth[i];
|
|
149
|
+
if (width >= translateX) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
114
153
|
width = -width;
|
|
115
154
|
}
|
|
116
155
|
this.setTranslateX(width);
|
|
117
156
|
},
|
|
118
157
|
clickRight() {
|
|
119
|
-
this.updateDuration(
|
|
158
|
+
this.updateDuration(true);
|
|
120
159
|
const translateX = Math.abs(this.translateX - this.swiperBoxWith);
|
|
121
160
|
let width = 0;
|
|
122
|
-
for (let i = 0, len = this.childrenWidth.length; i < len; i++)
|
|
123
|
-
|
|
124
|
-
|
|
161
|
+
for (let i = 0, len = this.childrenWidth.length; i < len; i++) {
|
|
162
|
+
width += this.childrenWidth[i];
|
|
163
|
+
if (width >= translateX) {
|
|
164
|
+
if (width > translateX) {
|
|
165
|
+
width -= this.childrenWidth[i];
|
|
166
|
+
}
|
|
125
167
|
break;
|
|
126
168
|
}
|
|
169
|
+
}
|
|
127
170
|
this.setTranslateX(-width);
|
|
128
171
|
},
|
|
129
172
|
onMouseWheel(e) {
|
|
130
|
-
this.updateDuration(
|
|
173
|
+
this.updateDuration(true);
|
|
174
|
+
if (e.deltaMode === WheelEvent.DOM_DELTA_LINE) {
|
|
175
|
+
this.setTranslateX(this.translateX - e.deltaY * 30);
|
|
176
|
+
} else if (e.deltaMode === WheelEvent.DOM_DELTA_PAGE) {
|
|
177
|
+
if (e.deltaY > 0) {
|
|
178
|
+
this.clickRight();
|
|
179
|
+
} else {
|
|
180
|
+
this.clickLeft();
|
|
181
|
+
}
|
|
182
|
+
} else {
|
|
183
|
+
this.setTranslateX(this.translateX - e.deltaY);
|
|
184
|
+
}
|
|
131
185
|
},
|
|
132
186
|
onMouseDown(e) {
|
|
133
|
-
this.mouseDown =
|
|
187
|
+
this.mouseDown = true;
|
|
188
|
+
this.startX = e.clientX;
|
|
189
|
+
this.translateXRaw = this.translateX;
|
|
190
|
+
window.addEventListener("mousemove", this.onMouseMove, { passive: false });
|
|
191
|
+
window.addEventListener("mouseup", this.onMouseUp, { passive: false });
|
|
134
192
|
},
|
|
135
193
|
onMouseUp(e) {
|
|
136
|
-
this.mouseDown =
|
|
194
|
+
this.mouseDown = false;
|
|
195
|
+
this.updateDuration(true);
|
|
196
|
+
this.$refs.swiperContent.addEventListener("transitionend", this.transitionend);
|
|
197
|
+
this.$refs.swiperContent.addEventListener("webkitTransitionEnd", this.transitionend);
|
|
137
198
|
const t = e.clientX - this.startX;
|
|
138
199
|
if (t < 0) {
|
|
139
200
|
const translateX = this.translateX + t;
|
|
@@ -143,32 +204,40 @@ const __vue2_script = {
|
|
|
143
204
|
const translateX = this.translateX + t;
|
|
144
205
|
this.setTranslateX(translateX);
|
|
145
206
|
}
|
|
146
|
-
window.removeEventListener("mousemove", this.onMouseMove)
|
|
207
|
+
window.removeEventListener("mousemove", this.onMouseMove);
|
|
208
|
+
window.removeEventListener("mouseup", this.onMouseUp);
|
|
147
209
|
},
|
|
148
210
|
onMouseMove(e) {
|
|
149
|
-
this.mouseDown
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
211
|
+
if (this.mouseDown) {
|
|
212
|
+
requestAnimationFrame(() => {
|
|
213
|
+
const disX = e.clientX - this.startX;
|
|
214
|
+
const translateX = this.translateXRaw + disX;
|
|
215
|
+
this.setTranslateX(translateX);
|
|
216
|
+
});
|
|
217
|
+
}
|
|
153
218
|
},
|
|
154
219
|
transitionend() {
|
|
155
|
-
this.updateDuration(
|
|
220
|
+
this.updateDuration(false);
|
|
221
|
+
this.$refs.swiperContent.removeEventListener("transitionend", this.transitionend);
|
|
222
|
+
this.$refs.swiperContent.removeEventListener("webkitTransitionEnd", this.transitionend);
|
|
156
223
|
}
|
|
157
224
|
}
|
|
158
|
-
}
|
|
225
|
+
};
|
|
226
|
+
const __cssModules = {};
|
|
159
227
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
160
228
|
__vue2_script,
|
|
161
229
|
render,
|
|
162
230
|
staticRenderFns,
|
|
163
|
-
|
|
231
|
+
false,
|
|
164
232
|
__vue2_injectStyles,
|
|
165
233
|
null,
|
|
166
234
|
null,
|
|
167
235
|
null
|
|
168
236
|
);
|
|
169
237
|
function __vue2_injectStyles(context) {
|
|
170
|
-
for (let o in __cssModules)
|
|
238
|
+
for (let o in __cssModules) {
|
|
171
239
|
this[o] = __cssModules[o];
|
|
240
|
+
}
|
|
172
241
|
}
|
|
173
242
|
const Swiper = /* @__PURE__ */ function() {
|
|
174
243
|
return __component__.exports;
|
|
@@ -1 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.egd-swiper {
|
|
8
|
+
position: relative;
|
|
9
|
+
height: 100%;
|
|
10
|
+
padding: 0 60px;
|
|
11
|
+
}
|
|
12
|
+
.egd-swiper .el-button.el-carousel__arrow {
|
|
13
|
+
padding: 0;
|
|
14
|
+
color: #fff;
|
|
15
|
+
font-size: 12px;
|
|
16
|
+
background-color: rgba(31, 45, 61, 0.11);
|
|
17
|
+
border-color: rgba(31, 45, 61, 0.01);
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
}
|
|
20
|
+
.egd-swiper .el-button.el-carousel__arrow i {
|
|
21
|
+
cursor: unset;
|
|
22
|
+
}
|
|
23
|
+
.egd-swiper .el-button.el-carousel__arrow.is-disabled {
|
|
24
|
+
color: white;
|
|
25
|
+
background-color: rgba(31, 45, 61, 0.11);
|
|
26
|
+
border-color: rgba(31, 45, 61, 0.01);
|
|
27
|
+
}
|
|
28
|
+
.egd-swiper .egd-swiper-box {
|
|
29
|
+
height: 100%;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
user-select: none;
|
|
32
|
+
}
|
|
33
|
+
.egd-swiper .egd-swiper-box .egd-swiper-content {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
flex-wrap: nowrap;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
padding-top: 14px;
|
|
40
|
+
overflow: visible;
|
|
41
|
+
transform: translate3d(0, 0, 0);
|
|
42
|
+
transition-property: transform;
|
|
43
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { p as parentMixin } from "../../chunks/tab-mixin.
|
|
2
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
1
|
+
import { p as parentMixin } from "../../chunks/tab-mixin.9d848bf6.js";
|
|
2
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
3
3
|
var render = function() {
|
|
4
|
-
var _vm = this
|
|
4
|
+
var _vm = this;
|
|
5
|
+
var _h = _vm.$createElement;
|
|
6
|
+
var _c = _vm._self._c || _h;
|
|
5
7
|
return _c("div", {
|
|
6
8
|
staticClass: "vux-tab-wrap",
|
|
7
9
|
class: _vm.barPosition === "top" ? "vux-tab-bar-top" : ""
|
|
@@ -22,7 +24,9 @@ var render = function() {
|
|
|
22
24
|
staticClass: "vux-tab-bar-inner",
|
|
23
25
|
style: _vm.innerBarStyle
|
|
24
26
|
}) : _vm._e()]) : _vm._e()], 2)])]);
|
|
25
|
-
}
|
|
27
|
+
};
|
|
28
|
+
var staticRenderFns = [];
|
|
29
|
+
const Tab_vue_vue_type_style_index_0_lang = "";
|
|
26
30
|
const __vue2_script = {
|
|
27
31
|
name: "Tab",
|
|
28
32
|
mixins: [parentMixin],
|
|
@@ -35,7 +39,7 @@ const __vue2_script = {
|
|
|
35
39
|
barActiveColor: String,
|
|
36
40
|
animate: {
|
|
37
41
|
type: Boolean,
|
|
38
|
-
default:
|
|
42
|
+
default: true
|
|
39
43
|
},
|
|
40
44
|
customBarWidth: [Function, String],
|
|
41
45
|
scrollThreshold: {
|
|
@@ -53,7 +57,7 @@ const __vue2_script = {
|
|
|
53
57
|
data() {
|
|
54
58
|
return {
|
|
55
59
|
direction: "forward",
|
|
56
|
-
hasReady:
|
|
60
|
+
hasReady: false
|
|
57
61
|
};
|
|
58
62
|
},
|
|
59
63
|
computed: {
|
|
@@ -74,7 +78,7 @@ const __vue2_script = {
|
|
|
74
78
|
// when prop:custom-bar-width
|
|
75
79
|
innerBarStyle() {
|
|
76
80
|
return {
|
|
77
|
-
width: typeof this.customBarWidth
|
|
81
|
+
width: typeof this.customBarWidth === "function" ? this.customBarWidth(this.currentIndex) : this.customBarWidth,
|
|
78
82
|
backgroundColor: this.barActiveColor || this.activeColor
|
|
79
83
|
};
|
|
80
84
|
},
|
|
@@ -85,9 +89,14 @@ const __vue2_script = {
|
|
|
85
89
|
right: this.barRight,
|
|
86
90
|
display: "block",
|
|
87
91
|
height: `${this.lineWidth}px`,
|
|
88
|
-
transition: this.hasReady ?
|
|
92
|
+
transition: !this.hasReady ? "none" : null
|
|
89
93
|
};
|
|
90
|
-
|
|
94
|
+
if (!this.customBarWidth) {
|
|
95
|
+
commonStyle.backgroundColor = this.barActiveColor || this.activeColor;
|
|
96
|
+
} else {
|
|
97
|
+
commonStyle.backgroundColor = "transparent";
|
|
98
|
+
}
|
|
99
|
+
return commonStyle;
|
|
91
100
|
},
|
|
92
101
|
barClass() {
|
|
93
102
|
return {
|
|
@@ -101,43 +110,52 @@ const __vue2_script = {
|
|
|
101
110
|
},
|
|
102
111
|
watch: {
|
|
103
112
|
currentIndex(newIndex, oldIndex) {
|
|
104
|
-
this.direction = newIndex > oldIndex ? "forward" : "backward"
|
|
113
|
+
this.direction = newIndex > oldIndex ? "forward" : "backward";
|
|
114
|
+
this.$emit("on-index-change", newIndex, oldIndex);
|
|
115
|
+
this.hasReady && this.scrollToActiveTab();
|
|
105
116
|
}
|
|
106
117
|
},
|
|
107
118
|
mounted() {
|
|
108
119
|
this.$nextTick(() => {
|
|
109
120
|
setTimeout(() => {
|
|
110
|
-
this.hasReady =
|
|
121
|
+
this.hasReady = true;
|
|
111
122
|
}, 0);
|
|
112
123
|
});
|
|
113
124
|
},
|
|
114
125
|
methods: {
|
|
115
126
|
scrollToActiveTab() {
|
|
116
|
-
if (!this.scrollable || !this.$children || !this.$children.length)
|
|
127
|
+
if (!this.scrollable || !this.$children || !this.$children.length) {
|
|
117
128
|
return;
|
|
129
|
+
}
|
|
118
130
|
const currentIndexTab = this.$children[this.currentIndex].$el;
|
|
119
131
|
let count = 0;
|
|
120
132
|
const step = () => {
|
|
133
|
+
const scrollDuration = 15;
|
|
121
134
|
const nav = this.$refs.nav;
|
|
122
|
-
nav.scrollLeft += (currentIndexTab.offsetLeft - (nav.offsetWidth - currentIndexTab.offsetWidth) / 2 - nav.scrollLeft) /
|
|
135
|
+
nav.scrollLeft += (currentIndexTab.offsetLeft - (nav.offsetWidth - currentIndexTab.offsetWidth) / 2 - nav.scrollLeft) / scrollDuration;
|
|
136
|
+
if (++count < scrollDuration) {
|
|
137
|
+
window.requestAnimationFrame(step);
|
|
138
|
+
}
|
|
123
139
|
};
|
|
124
140
|
window.requestAnimationFrame(step);
|
|
125
141
|
}
|
|
126
142
|
}
|
|
127
|
-
}
|
|
143
|
+
};
|
|
144
|
+
const __cssModules = {};
|
|
128
145
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
129
146
|
__vue2_script,
|
|
130
147
|
render,
|
|
131
148
|
staticRenderFns,
|
|
132
|
-
|
|
149
|
+
false,
|
|
133
150
|
__vue2_injectStyles,
|
|
134
151
|
null,
|
|
135
152
|
null,
|
|
136
153
|
null
|
|
137
154
|
);
|
|
138
155
|
function __vue2_injectStyles(context) {
|
|
139
|
-
for (let o in __cssModules)
|
|
156
|
+
for (let o in __cssModules) {
|
|
140
157
|
this[o] = __cssModules[o];
|
|
158
|
+
}
|
|
141
159
|
}
|
|
142
160
|
const Tab = /* @__PURE__ */ function() {
|
|
143
161
|
return __component__.exports;
|
|
@@ -1 +1,122 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.vux-tab-ink-bar {
|
|
8
|
+
position: absolute;
|
|
9
|
+
bottom: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
height: 2px;
|
|
12
|
+
text-align: center;
|
|
13
|
+
background-color: #1989fa;
|
|
14
|
+
}
|
|
15
|
+
.vux-tab-ink-bar-transition-forward {
|
|
16
|
+
transition: right 0.3s cubic-bezier(0.35, 0, 0.25, 1), left 0.3s cubic-bezier(0.35, 0, 0.25, 1) 0.09s;
|
|
17
|
+
}
|
|
18
|
+
.vux-tab-ink-bar-transition-backward {
|
|
19
|
+
transition: right 0.3s cubic-bezier(0.35, 0, 0.25, 1) 0.09s, left 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
20
|
+
}
|
|
21
|
+
.vux-tab-bar-top .vux-tab-ink-bar {
|
|
22
|
+
top: 0;
|
|
23
|
+
}
|
|
24
|
+
.vux-tab {
|
|
25
|
+
position: relative;
|
|
26
|
+
display: flex;
|
|
27
|
+
height: 36px;
|
|
28
|
+
background-color: #fff;
|
|
29
|
+
}
|
|
30
|
+
.vux-tab button {
|
|
31
|
+
padding: 0;
|
|
32
|
+
background: 0 0;
|
|
33
|
+
border: 0;
|
|
34
|
+
outline: 0;
|
|
35
|
+
appearance: none;
|
|
36
|
+
}
|
|
37
|
+
.vux-tab .vux-tab-item {
|
|
38
|
+
display: block;
|
|
39
|
+
flex: 1 1 auto;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 100%;
|
|
43
|
+
color: #666;
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
line-height: 36px;
|
|
46
|
+
text-align: center;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
/* background: linear-gradient(180deg, #e5e5e5, #e5e5e5, rgba(229, 229, 229, 0)) bottom left no-repeat; */
|
|
49
|
+
/* background-size: 100% 1px; */
|
|
50
|
+
}
|
|
51
|
+
.vux-tab .vux-tab-item.vux-tab-selected {
|
|
52
|
+
color: #1989fa;
|
|
53
|
+
border-bottom: 3px solid #1989fa;
|
|
54
|
+
}
|
|
55
|
+
.vux-tab-bar-top .vux-tab .vux-tab-item {
|
|
56
|
+
/* background: linear-gradient(180deg, #e5e5e5, #e5e5e5, rgba(229, 229, 229, 0)) top left no-repeat; */
|
|
57
|
+
/* background-size: 100% 1px; */
|
|
58
|
+
}
|
|
59
|
+
.vux-tab-bar-top .vux-tab .vux-tab-item.vux-tab-selected {
|
|
60
|
+
border-top: 3px solid #1989fa;
|
|
61
|
+
border-bottom: none;
|
|
62
|
+
}
|
|
63
|
+
.vux-tab .vux-tab-item.vux-tab-disabled {
|
|
64
|
+
color: #ddd;
|
|
65
|
+
}
|
|
66
|
+
.vux-tab.vux-tab-no-animate .vux-tab-item.vux-tab-selected {
|
|
67
|
+
background: 0 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** when=prop:custom-bar-width **/
|
|
71
|
+
.vux-tab-bar-inner {
|
|
72
|
+
display: block;
|
|
73
|
+
height: 100%;
|
|
74
|
+
margin: auto;
|
|
75
|
+
background-color: #1989fa;
|
|
76
|
+
transition: width 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
77
|
+
}
|
|
78
|
+
.vux-tab-item-badge {
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: 0;
|
|
81
|
+
bottom: 0;
|
|
82
|
+
display: inline-block;
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
min-width: 18px;
|
|
85
|
+
height: 18px;
|
|
86
|
+
margin: auto 0 auto 4px;
|
|
87
|
+
padding: 0 4px;
|
|
88
|
+
font-size: 11px;
|
|
89
|
+
line-height: 18px;
|
|
90
|
+
vertical-align: middle;
|
|
91
|
+
background-clip: padding-box;
|
|
92
|
+
border-radius: 30px;
|
|
93
|
+
}
|
|
94
|
+
.vux-tab-wrap {
|
|
95
|
+
position: relative;
|
|
96
|
+
padding-top: 36px;
|
|
97
|
+
}
|
|
98
|
+
.vux-tab-container {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 0;
|
|
101
|
+
right: 0;
|
|
102
|
+
left: 0;
|
|
103
|
+
height: 36px;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
}
|
|
106
|
+
.scrollable {
|
|
107
|
+
box-sizing: content-box;
|
|
108
|
+
padding-bottom: 17px;
|
|
109
|
+
overflow-x: auto;
|
|
110
|
+
overflow-y: hidden;
|
|
111
|
+
-webkit-overflow-scrolling: touch;
|
|
112
|
+
}
|
|
113
|
+
.scrollable::-webkit-scrollbar {
|
|
114
|
+
display: none;
|
|
115
|
+
}
|
|
116
|
+
.scrollable .vux-tab-ink-bar {
|
|
117
|
+
position: absolute;
|
|
118
|
+
bottom: 17px;
|
|
119
|
+
}
|
|
120
|
+
.scrollable .vux-tab-item {
|
|
121
|
+
flex: 0 0 22%;
|
|
122
|
+
}
|