@web-utils/component 2.0.13 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/address-input/index.mjs +113 -0
- package/address-input/style.css +1 -0
- package/affix/index.mjs +102 -0
- package/affix/style.css +1 -0
- package/aside-menu/index.mjs +58 -0
- package/aside-menu/style.css +1 -0
- package/avatar/index.mjs +106 -0
- package/avatar/style.css +1 -0
- package/awesome-button/index.mjs +112 -0
- package/base.css +1 -0
- package/capsule-tab/index.mjs +52 -0
- package/capsule-tab/style.css +1 -0
- package/card/index.mjs +126 -0
- package/card/style.css +1 -0
- package/carousel/index.mjs +70 -0
- package/carousel/style.css +1 -0
- package/chat/index.mjs +576 -0
- package/chat/style.css +1 -0
- package/chunk-file-uploader/index.mjs +121 -0
- package/chunk-file-uploader/style.css +1 -0
- package/chunks/FormTemp.FX8xmbVB.mjs +165 -0
- package/chunks/confirmable-mixin.rTUMhoRH.mjs +106 -0
- package/chunks/dataformat.X_61lMA7.mjs +158 -0
- package/chunks/dic.6tk91Dmq.mjs +130 -0
- package/chunks/event.NHA7rYFE.mjs +236 -0
- package/chunks/form-input-mixin.IKogWBfn.mjs +24 -0
- package/chunks/form-item-mixin.BilKDUlK.mjs +140 -0
- package/{dist/chunks/822300f3.js → chunks/form-pick-mixin.y-qhZJi6.mjs} +3 -3
- package/chunks/index.LGsb2aDq.mjs +185 -0
- package/chunks/init.Ac4dKUJB.mjs +122 -0
- package/{dist/chunks/44b78389.js → chunks/input-number-mixin.GE2zr_3s.mjs} +8 -8
- package/chunks/json-beautifier.fUZFSW5j.mjs +126 -0
- package/chunks/packages.v6r2Hr7E.mjs +58 -0
- package/chunks/permission.E9kZbW48.mjs +16 -0
- package/chunks/slot.j1uMmBnG.mjs +27 -0
- package/chunks/tab-mixin.tM9jcRT8.mjs +81 -0
- package/chunks/util.C2Bhx22L.mjs +259 -0
- package/chunks/vueComponentNormalizer.JwmUNtgn.mjs +32 -0
- package/code-mirror-editor/index.mjs +313 -0
- package/code-mirror-editor/style.css +1 -0
- package/color-picker/index.mjs +128 -0
- package/comment/index.mjs +90 -0
- package/comment/style.css +1 -0
- package/confirm-button/index.mjs +57 -0
- package/confirmable/index.mjs +28 -0
- package/context-menu/index.mjs +255 -0
- package/context-menu/style.css +1 -0
- package/count-up/index.mjs +131 -0
- package/custom-scrollbar/index.mjs +116 -0
- package/data-box/index.mjs +97 -0
- package/data-box/style.css +1 -0
- package/data-card/index.mjs +98 -0
- package/data-card/style.css +1 -0
- package/data-cardtext/index.mjs +82 -0
- package/data-cardtext/style.css +1 -0
- package/data-display/index.mjs +97 -0
- package/data-display/style.css +1 -0
- package/data-icons/index.mjs +104 -0
- package/data-icons/style.css +1 -0
- package/data-imgtext/index.mjs +106 -0
- package/data-imgtext/style.css +1 -0
- package/data-operatext/index.mjs +99 -0
- package/data-operatext/style.css +1 -0
- package/data-panel/index.mjs +93 -0
- package/data-panel/style.css +1 -0
- package/data-pay/index.mjs +152 -0
- package/data-pay/style.css +1 -0
- package/data-price/index.mjs +84 -0
- package/data-price/style.css +1 -0
- package/data-progress/index.mjs +97 -0
- package/data-progress/style.css +1 -0
- package/data-rotate/index.mjs +96 -0
- package/data-rotate/style.css +1 -0
- package/data-table-picker/index.mjs +137 -0
- package/data-tabs/index.mjs +94 -0
- package/data-tabs/style.css +1 -0
- package/dialog-form/index.mjs +148 -0
- package/dialog-form/style.css +1 -0
- package/dynamic-table/index.mjs +195 -0
- package/dynamic-table/style.css +1 -0
- package/e-charts/index.mjs +216 -0
- package/e-charts/style.css +1 -0
- package/easy-popup/index.mjs +136 -0
- package/easy-popup/style.css +1 -0
- package/editable-progress/index.mjs +141 -0
- package/editable-progress/style.css +1 -0
- package/editable-tree/index.mjs +844 -0
- package/editable-tree/style.css +1 -0
- package/egd-collapse/index.mjs +79 -0
- package/egd-collapse-item/index.mjs +134 -0
- package/element-dialog/index.mjs +296 -0
- package/element-dialog/style.css +1 -0
- package/empty-view/index.mjs +69 -0
- package/empty-view/style.css +1 -0
- package/error-view/index.mjs +61 -0
- package/error-view/style.css +1 -0
- package/flex-column/index.mjs +62 -0
- package/flex-item/index.mjs +81 -0
- package/flex-row/index.mjs +62 -0
- package/flex-scroller/index.mjs +47 -0
- package/flex-scroller/style.css +1 -0
- package/flow/index.mjs +277 -0
- package/flow/style.css +1 -0
- package/flow-designer/index.mjs +10184 -0
- package/flow-designer/style.css +1 -0
- package/flow-node/index.mjs +102 -0
- package/flow-viewer/index.mjs +209 -0
- package/flow-viewer/style.css +1 -0
- package/form-block/index.mjs +156 -0
- package/form-block/style.css +1 -0
- package/form-button/index.mjs +58 -0
- package/form-cascader/index.mjs +163 -0
- package/form-checkbox-group/index.mjs +203 -0
- package/form-checkbox-group/style.css +1 -0
- package/form-date-picker/index.mjs +191 -0
- package/form-holder/index.mjs +129 -0
- package/form-input/index.mjs +117 -0
- package/form-input-email/index.mjs +108 -0
- package/form-input-id-card/index.mjs +115 -0
- package/form-input-number/index.mjs +134 -0
- package/form-input-number/style.css +1 -0
- package/form-input-phone-number/index.mjs +109 -0
- package/form-input-tag/index.mjs +108 -0
- package/form-input-time/index.mjs +135 -0
- package/form-item/index.mjs +147 -0
- package/form-item/style.css +1 -0
- package/form-item-config-provider/index.mjs +63 -0
- package/form-item-group/index.mjs +169 -0
- package/form-item-group/style.css +1 -0
- package/form-radio-group/index.mjs +181 -0
- package/form-radio-group/style.css +1 -0
- package/form-select/index.mjs +165 -0
- package/form-switch/index.mjs +108 -0
- package/form-textarea/index.mjs +113 -0
- package/form-view/index.mjs +371 -0
- package/form-view/style.css +1 -0
- package/fy-array/index.mjs +158 -0
- package/fy-array/style.css +1 -0
- package/fy-article/index.mjs +93 -0
- package/fy-article/style.css +1 -0
- package/fy-cascader/index.mjs +132 -0
- package/fy-checkbox/index.mjs +117 -0
- package/fy-checkbox/style.css +1 -0
- package/fy-code/index.mjs +66 -0
- package/fy-curd/index.mjs +3119 -0
- package/fy-curd/style.css +1 -0
- package/fy-date/index.mjs +84 -0
- package/fy-date/style.css +1 -0
- package/fy-draggable/index.mjs +382 -0
- package/fy-draggable/style.css +1 -0
- package/fy-dynamic/index.mjs +337 -0
- package/fy-dynamic/style.css +1 -0
- package/fy-empty/index.mjs +59 -0
- package/fy-empty/style.css +1 -0
- package/fy-form/index.mjs +993 -0
- package/fy-form/style.css +1 -0
- package/fy-form-design/index.mjs +7483 -0
- package/fy-form-design/style.css +1 -0
- package/fy-input/index.mjs +171 -0
- package/fy-input-color/index.mjs +101 -0
- package/fy-input-icon/index.mjs +169 -0
- package/fy-input-icon/style.css +1 -0
- package/fy-input-map/index.mjs +279 -0
- package/fy-input-map/style.css +1 -0
- package/fy-input-number/index.mjs +87 -0
- package/fy-input-table/index.mjs +172 -0
- package/fy-input-table/style.css +1 -0
- package/fy-input-tree/index.mjs +267 -0
- package/fy-input-tree/style.css +1 -0
- package/fy-progress/index.mjs +60 -0
- package/fy-radio/index.mjs +70 -0
- package/fy-radio/style.css +1 -0
- package/fy-rate/index.mjs +106 -0
- package/fy-rate/style.css +1 -0
- package/fy-select/index.mjs +225 -0
- package/fy-select/style.css +1 -0
- package/fy-slider/index.mjs +79 -0
- package/fy-switch/index.mjs +74 -0
- package/fy-tabs/index.mjs +92 -0
- package/fy-time/index.mjs +95 -0
- package/fy-title/index.mjs +40 -0
- package/fy-title/style.css +1 -0
- package/fy-tree/index.mjs +433 -0
- package/fy-tree/style.css +1 -0
- package/fy-u-editor/index.mjs +398 -0
- package/fy-u-editor/style.css +1 -0
- package/fy-upload/index.mjs +592 -0
- package/fy-upload/style.css +1 -0
- package/guide-steps/index.mjs +94 -0
- package/guide-steps/style.css +1 -0
- package/highlight-j-s/index.mjs +76 -0
- package/highlight-j-s/style.css +1 -0
- package/icon-card/index.mjs +62 -0
- package/icon-card/style.css +1 -0
- package/icon-temp/index.mjs +50 -0
- package/icon-temp/style.css +1 -0
- package/iframe-window/index.mjs +61 -0
- package/iframe-window/style.css +1 -0
- package/image-cropper/index.mjs +249 -0
- package/image-cropper/style.css +1 -0
- package/image-preview/index.mjs +260 -0
- package/image-preview/style.css +1 -0
- package/image-viewer/index.mjs +95 -0
- package/image-viewer/style.css +1 -0
- package/index.mjs +627 -0
- package/input-number/index.mjs +274 -0
- package/input-number/style.css +1 -0
- package/input-number-range/index.mjs +110 -0
- package/input-number-range/style.css +1 -0
- package/{dist/components/j-s-x-component/index.js → j-s-x-component/index.mjs} +4 -4
- package/keep-view-alive/index.mjs +123 -0
- package/keyboard/index.mjs +384 -0
- package/keyboard/style.css +1 -0
- package/license/index.mjs +134 -0
- package/loading-view/index.mjs +61 -0
- package/loading-view/style.css +1 -0
- package/login/index.mjs +250 -0
- package/login/style.css +1 -0
- package/monaco-editor/index.mjs +197 -0
- package/name-avatar/index.mjs +66 -0
- package/name-avatar/style.css +1 -0
- package/nav-bar/index.mjs +52 -0
- package/nav-bar/style.css +1 -0
- package/not-implement/index.mjs +35 -0
- package/not-implement/style.css +1 -0
- package/notice/index.mjs +143 -0
- package/notice/style.css +1 -0
- package/package.json +41 -148
- package/page/index.mjs +40 -0
- package/page/style.css +1 -0
- package/page-header/index.mjs +56 -0
- package/page-header/style.css +1 -0
- package/page-index/index.mjs +175 -0
- package/page-index/style.css +1 -0
- package/page-index-top/index.mjs +141 -0
- package/page-skeleton/index.mjs +67 -0
- package/page-skeleton/style.css +1 -0
- package/page-skeleton-new/index.mjs +98 -0
- package/page-skeleton-new/style.css +1 -0
- package/pageable-table/index.mjs +478 -0
- package/pageable-table/style.css +1 -0
- package/pageable-view/index.mjs +378 -0
- package/pageable-view/style.css +1 -0
- package/photo-swipe/index.mjs +129 -0
- package/present-view/index.mjs +365 -0
- package/present-view/style.css +1 -0
- package/queue/index.mjs +71 -0
- package/queue/style.css +1 -0
- package/record-video/index.mjs +173 -0
- package/record-video/style.css +1 -0
- package/resize-observer/index.mjs +62 -0
- package/resize-observer/style.css +1 -0
- package/search/index.mjs +143 -0
- package/search/style.css +1 -0
- package/search-popover/index.mjs +412 -0
- package/search-popover/style.css +1 -0
- package/sign/index.mjs +132 -0
- package/sign/style.css +1 -0
- package/sign-panel/index.mjs +255 -0
- package/sign-panel/style.css +1 -0
- package/skeleton/index.mjs +82 -0
- package/skeleton/style.css +1 -0
- package/split-pane/index.mjs +306 -0
- package/split-pane/style.css +1 -0
- package/stateful/index.mjs +84 -0
- package/stateful/style.css +1 -0
- package/static-pageable-table/index.mjs +92 -0
- package/static-pageable-table/style.css +1 -0
- package/swiper/index.mjs +183 -0
- package/swiper/style.css +1 -0
- package/tab/index.mjs +147 -0
- package/tab/style.css +1 -0
- package/tab-item/index.mjs +73 -0
- package/table-column/index.mjs +102 -0
- package/table-view/index.mjs +390 -0
- package/table-view/style.css +1 -0
- package/tag-render/index.mjs +116 -0
- package/tag-render/style.css +1 -0
- package/text-ellipsis/index.mjs +108 -0
- package/text-ellipsis/style.css +1 -0
- package/{dist/components/tinymce-wrapper/index.js → tinymce-editor/index.mjs} +479 -133
- package/tinymce-editor/style.css +1 -0
- package/toolbar/index.mjs +217 -0
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.mjs +108 -0
- package/toolbar-button/style.css +1 -0
- package/verify/index.mjs +80 -0
- package/verify/style.css +1 -0
- package/vue-cron/index.mjs +1410 -0
- package/vue-cron/style.css +1 -0
- package/vue-qr-code/index.mjs +83 -0
- package/vue-quill-editor/index.mjs +117 -0
- package/vue-quill-editor/style.css +1 -0
- package/vue-tags-input/index.mjs +553 -0
- package/vue-tags-input/style.css +1 -0
- package/vue-tree-select/index.mjs +2881 -0
- package/vue-tree-select/style.css +1 -0
- package/vue-video-player/index.mjs +192 -0
- package/vue-video-player/style.css +1 -0
- package/watermark/index.mjs +95 -0
- package/watermark/style.css +1 -0
- package/web-types.json +14033 -2752
- package/x-input-tag/index.mjs +203 -0
- package/x-input-tag/style.css +1 -0
- package/README.md +0 -27
- package/dist/chunks/3d28cc08.js +0 -57
- package/dist/chunks/5d33812d.js +0 -147
- package/dist/chunks/9d848bf6.js +0 -99
- package/dist/chunks/a0bb327b.js +0 -96
- package/dist/chunks/a8891d2c.js +0 -30
- package/dist/chunks/c69d5628.js +0 -248
- package/dist/chunks/de9fe802.js +0 -24
- package/dist/chunks/e1939731.js +0 -17
- package/dist/components/address-input/index.js +0 -126
- package/dist/components/address-input/style.css +0 -15
- package/dist/components/aside-menu/index.js +0 -64
- package/dist/components/aside-menu/style.css +0 -9
- package/dist/components/awesome-button/index.js +0 -85
- package/dist/components/base.css +0 -66
- package/dist/components/capsule-tab/index.js +0 -58
- package/dist/components/capsule-tab/style.css +0 -32
- package/dist/components/chunk-file-uploader/index.js +0 -153
- package/dist/components/chunk-file-uploader/style.css +0 -4
- package/dist/components/chunk-file-uploader-button/index.js +0 -66
- package/dist/components/chunk-file-uploader-button/style.css +0 -17
- package/dist/components/chunk-file-uploader-drop/index.js +0 -79
- package/dist/components/chunk-file-uploader-drop/style.css +0 -12
- package/dist/components/chunk-file-uploader-file/index.js +0 -388
- package/dist/components/chunk-file-uploader-file/style.css +0 -125
- package/dist/components/chunk-file-uploader-files/index.js +0 -55
- package/dist/components/chunk-file-uploader-files/style.css +0 -9
- package/dist/components/chunk-file-uploader-list/index.js +0 -56
- package/dist/components/chunk-file-uploader-list/style.css +0 -9
- package/dist/components/chunk-file-uploader-un-support/index.js +0 -59
- package/dist/components/chunk-file-uploader-un-support/style.css +0 -6
- package/dist/components/code-mirror-editor/index.js +0 -338
- package/dist/components/code-mirror-editor/style.css +0 -17
- package/dist/components/color-picker/index.js +0 -129
- package/dist/components/confirm-button/index.js +0 -59
- package/dist/components/confirmable/index.js +0 -29
- package/dist/components/context-menu/index.js +0 -265
- package/dist/components/context-menu/style.css +0 -88
- package/dist/components/custom-scrollbar/index.js +0 -167
- package/dist/components/data-table-picker/index.js +0 -156
- package/dist/components/dynamic-table/index.js +0 -219
- package/dist/components/dynamic-table/style.css +0 -30
- package/dist/components/e-charts/index.js +0 -310
- package/dist/components/e-charts/style.css +0 -10
- package/dist/components/editable-progress/index.js +0 -174
- package/dist/components/editable-progress/style.css +0 -37
- package/dist/components/editable-tree/index.js +0 -1004
- package/dist/components/editable-tree/style.css +0 -82
- package/dist/components/egd-collapse/index.js +0 -92
- package/dist/components/egd-collapse-item/index.js +0 -148
- package/dist/components/element-dialog/index.js +0 -295
- package/dist/components/element-dialog/style.css +0 -102
- package/dist/components/empty-view/index.js +0 -75
- package/dist/components/empty-view/style.css +0 -17
- package/dist/components/error-view/index.js +0 -67
- package/dist/components/error-view/style.css +0 -17
- package/dist/components/flex-column/index.js +0 -65
- package/dist/components/flex-item/index.js +0 -94
- package/dist/components/flex-row/index.js +0 -65
- package/dist/components/flex-scroller/index.js +0 -53
- package/dist/components/flex-scroller/style.css +0 -20
- package/dist/components/form-button/index.js +0 -84
- package/dist/components/form-cascader/index.js +0 -161
- package/dist/components/form-checkbox-group/index.js +0 -217
- package/dist/components/form-checkbox-group/style.css +0 -51
- package/dist/components/form-date-picker/index.js +0 -244
- package/dist/components/form-holder/index.js +0 -97
- package/dist/components/form-input/index.js +0 -112
- package/dist/components/form-input-email/index.js +0 -109
- package/dist/components/form-input-id-card/index.js +0 -110
- package/dist/components/form-input-number/index.js +0 -130
- package/dist/components/form-input-number/style.css +0 -12
- package/dist/components/form-input-phone-number/index.js +0 -104
- package/dist/components/form-input-time/index.js +0 -130
- package/dist/components/form-item/index.js +0 -162
- package/dist/components/form-item/style.css +0 -11
- package/dist/components/form-item-config-provider/index.js +0 -64
- package/dist/components/form-item-group/index.js +0 -195
- package/dist/components/form-item-group/style.css +0 -30
- package/dist/components/form-radio-group/index.js +0 -189
- package/dist/components/form-radio-group/style.css +0 -53
- package/dist/components/form-select/index.js +0 -169
- package/dist/components/form-switch/index.js +0 -103
- package/dist/components/form-textarea/index.js +0 -108
- package/dist/components/form-view/index.js +0 -410
- package/dist/components/form-view/style.css +0 -158
- package/dist/components/guide-steps/index.js +0 -108
- package/dist/components/guide-steps/style.css +0 -34
- package/dist/components/icon-card/index.js +0 -68
- package/dist/components/icon-card/style.css +0 -56
- package/dist/components/iframe-window/index.js +0 -67
- package/dist/components/iframe-window/style.css +0 -20
- package/dist/components/image-viewer/index.js +0 -113
- package/dist/components/image-viewer/style.css +0 -21
- package/dist/components/input-number/index.js +0 -340
- package/dist/components/input-number/style.css +0 -15
- package/dist/components/input-number-range/index.js +0 -122
- package/dist/components/input-number-range/style.css +0 -12
- package/dist/components/keep-view-alive/index.js +0 -166
- package/dist/components/loading-view/index.js +0 -67
- package/dist/components/loading-view/style.css +0 -17
- package/dist/components/nav-bar/index.js +0 -62
- package/dist/components/nav-bar/style.css +0 -17
- package/dist/components/not-implement/index.js +0 -43
- package/dist/components/not-implement/style.css +0 -15
- package/dist/components/page/index.js +0 -46
- package/dist/components/page/style.css +0 -12
- package/dist/components/page-header/index.js +0 -62
- package/dist/components/page-header/style.css +0 -14
- package/dist/components/page-index/index.js +0 -172
- package/dist/components/page-index/style.css +0 -23
- package/dist/components/page-index-top/index.js +0 -134
- package/dist/components/page-skeleton/index.js +0 -62
- package/dist/components/page-skeleton/style.css +0 -23
- package/dist/components/page-skeleton-new/index.js +0 -104
- package/dist/components/page-skeleton-new/style.css +0 -42
- package/dist/components/pageable-table/index.js +0 -496
- package/dist/components/pageable-table/style.css +0 -72
- package/dist/components/pageable-view/index.js +0 -398
- package/dist/components/pageable-view/style.css +0 -69
- package/dist/components/photo-swipe/index.js +0 -228
- package/dist/components/photo-swipe/style.css +0 -20
- package/dist/components/resize-observer/index.js +0 -96
- package/dist/components/resize-observer/style.css +0 -31
- package/dist/components/search-popover/index.js +0 -449
- package/dist/components/search-popover/style.css +0 -93
- package/dist/components/sign-panel/index.js +0 -292
- package/dist/components/sign-panel/style.css +0 -97
- package/dist/components/split-pane/index.js +0 -270
- package/dist/components/split-pane/style.css +0 -100
- package/dist/components/stateful/index.js +0 -87
- package/dist/components/stateful/style.css +0 -33
- package/dist/components/static-pageable-table/index.js +0 -99
- package/dist/components/static-pageable-table/style.css +0 -9
- package/dist/components/swiper/index.js +0 -223
- package/dist/components/swiper/style.css +0 -43
- package/dist/components/tab/index.js +0 -163
- package/dist/components/tab/style.css +0 -122
- package/dist/components/tab-item/index.js +0 -78
- package/dist/components/table-column/index.js +0 -91
- package/dist/components/table-view/index.js +0 -434
- package/dist/components/table-view/style.css +0 -95
- package/dist/components/tag-render/index.js +0 -111
- package/dist/components/tag-render/style.css +0 -33
- package/dist/components/tinymce-editor/index.js +0 -189
- package/dist/components/tinymce-editor/style.css +0 -43
- package/dist/components/tinymce-wrapper/style.css +0 -36
- package/dist/components/toolbar/index.js +0 -238
- package/dist/components/toolbar/style.css +0 -39
- package/dist/components/toolbar-button/index.js +0 -97
- package/dist/components/toolbar-button/style.css +0 -21
- package/dist/components/trigger/index.js +0 -78
- package/dist/components/vue-tags-input/index.js +0 -559
- package/dist/components/vue-tags-input/style.css +0 -682
- package/dist/components/watermark/index.js +0 -75
- package/dist/components/watermark/style.css +0 -11
- package/dist/components/x-dialog/index.js +0 -199
- package/dist/components/x-dialog/style.css +0 -15
- package/dist/index.css +0 -2972
- package/dist/index.es.js +0 -15689
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { n as _ } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
2
|
+
const g = {
|
|
3
|
+
name: "Stateful",
|
|
4
|
+
functional: !0,
|
|
5
|
+
props: {
|
|
6
|
+
tag: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "div"
|
|
9
|
+
},
|
|
10
|
+
draft: {
|
|
11
|
+
type: [Array, Boolean],
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
doing: {
|
|
15
|
+
type: [Array, Boolean],
|
|
16
|
+
default: () => []
|
|
17
|
+
},
|
|
18
|
+
overdue: {
|
|
19
|
+
type: [Array, Boolean],
|
|
20
|
+
default: () => []
|
|
21
|
+
},
|
|
22
|
+
error: {
|
|
23
|
+
type: [Array, Boolean],
|
|
24
|
+
default: () => []
|
|
25
|
+
},
|
|
26
|
+
done: {
|
|
27
|
+
type: [Array, Boolean],
|
|
28
|
+
default: () => []
|
|
29
|
+
},
|
|
30
|
+
closed: {
|
|
31
|
+
type: [Array, Boolean],
|
|
32
|
+
default: () => []
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
type: String,
|
|
36
|
+
validator: (r) => ["doing", "overdue", "error", "done", "closed"].indexOf(r) > -1
|
|
37
|
+
},
|
|
38
|
+
status: {
|
|
39
|
+
type: [String, Number]
|
|
40
|
+
},
|
|
41
|
+
size: {
|
|
42
|
+
type: String
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
render(r, { props: t, data: y, children: c }) {
|
|
46
|
+
const { draft: a, doing: n, overdue: o, error: s, done: l, closed: d, status: e, tag: f, size: u, type: p } = t, A = {
|
|
47
|
+
draft: Array.isArray(a) ? a.includes(e) : a,
|
|
48
|
+
doing: Array.isArray(n) ? n.includes(e) : n,
|
|
49
|
+
overdue: Array.isArray(o) ? o.includes(e) : o,
|
|
50
|
+
error: Array.isArray(s) ? s.includes(e) : s,
|
|
51
|
+
done: Array.isArray(l) ? l.includes(e) : l,
|
|
52
|
+
closed: Array.isArray(d) ? d.includes(e) : d
|
|
53
|
+
};
|
|
54
|
+
return r(f, y, [
|
|
55
|
+
r("span", {
|
|
56
|
+
style: { width: u, height: u },
|
|
57
|
+
class: ["stateful", p, A]
|
|
58
|
+
}),
|
|
59
|
+
c
|
|
60
|
+
]);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
let v, S;
|
|
64
|
+
const i = {};
|
|
65
|
+
var m = /* @__PURE__ */ _(
|
|
66
|
+
g,
|
|
67
|
+
v,
|
|
68
|
+
S,
|
|
69
|
+
!1,
|
|
70
|
+
B,
|
|
71
|
+
null,
|
|
72
|
+
null,
|
|
73
|
+
null
|
|
74
|
+
);
|
|
75
|
+
function B(r) {
|
|
76
|
+
for (let t in i)
|
|
77
|
+
this[t] = i[t];
|
|
78
|
+
}
|
|
79
|
+
const x = /* @__PURE__ */ function() {
|
|
80
|
+
return m.exports;
|
|
81
|
+
}();
|
|
82
|
+
export {
|
|
83
|
+
x as default
|
|
84
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.stateful{vertical-align:middle;content:"";border-radius:2px;width:14px;height:14px;margin-right:6px;display:inline-block}.stateful.draft{background-color:#d7d7d7}.stateful.doing{background-color:#14ca7a}.stateful.overdue{background-color:#feae3d}.stateful.error{background-color:red}.stateful.done{background-color:#45a3e7}.stateful.closed{background-color:#d7d7d7}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { chunk as n } from "@web-utils/integrations/lodash";
|
|
2
|
+
import { n as o } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
5
|
+
return a("div", {
|
|
6
|
+
staticClass: "static-pageable-table"
|
|
7
|
+
}, [a("ElTable", e._g(e._b({
|
|
8
|
+
attrs: {
|
|
9
|
+
size: "mini",
|
|
10
|
+
data: e.records
|
|
11
|
+
}
|
|
12
|
+
}, "ElTable", e.$attrs, !1), e.$listeners), [e._t("default", function() {
|
|
13
|
+
return [e._v("请添加表格列")];
|
|
14
|
+
})], 2), a("ElPagination", {
|
|
15
|
+
attrs: {
|
|
16
|
+
"current-page": e.page.page,
|
|
17
|
+
"hide-on-single-page": !0,
|
|
18
|
+
"page-size": e.page.limit,
|
|
19
|
+
total: e.page.total,
|
|
20
|
+
background: "",
|
|
21
|
+
layout: "total, prev, pager, next"
|
|
22
|
+
},
|
|
23
|
+
on: {
|
|
24
|
+
"current-change": function(s) {
|
|
25
|
+
e.page.page = s;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
})], 1);
|
|
29
|
+
}, l = [];
|
|
30
|
+
const p = {
|
|
31
|
+
name: "StaticPageableTable",
|
|
32
|
+
props: {
|
|
33
|
+
rows: {
|
|
34
|
+
type: Array,
|
|
35
|
+
default: () => []
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
data() {
|
|
39
|
+
return {
|
|
40
|
+
page: {
|
|
41
|
+
total: 0,
|
|
42
|
+
page: 1,
|
|
43
|
+
limit: 25
|
|
44
|
+
},
|
|
45
|
+
records: []
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
computed: {
|
|
49
|
+
observer() {
|
|
50
|
+
return {
|
|
51
|
+
page: this.page.page,
|
|
52
|
+
rows: this.rows
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
watch: {
|
|
57
|
+
rows() {
|
|
58
|
+
this.page.page = 1;
|
|
59
|
+
},
|
|
60
|
+
observer: {
|
|
61
|
+
immediate: !0,
|
|
62
|
+
handler() {
|
|
63
|
+
this.page.total = this.rows.length, this.fetchData();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
methods: {
|
|
68
|
+
fetchData() {
|
|
69
|
+
this.records = n(this.rows, this.page.limit)[this.page.page - 1];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}, r = {};
|
|
73
|
+
var c = /* @__PURE__ */ o(
|
|
74
|
+
p,
|
|
75
|
+
i,
|
|
76
|
+
l,
|
|
77
|
+
!1,
|
|
78
|
+
g,
|
|
79
|
+
null,
|
|
80
|
+
null,
|
|
81
|
+
null
|
|
82
|
+
);
|
|
83
|
+
function g(e) {
|
|
84
|
+
for (let t in r)
|
|
85
|
+
this[t] = r[t];
|
|
86
|
+
}
|
|
87
|
+
const _ = /* @__PURE__ */ function() {
|
|
88
|
+
return c.exports;
|
|
89
|
+
}();
|
|
90
|
+
export {
|
|
91
|
+
_ as default
|
|
92
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.static-pageable-table{flex:auto}
|
package/swiper/index.mjs
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
var h = (t, e, s) => new Promise((i, r) => {
|
|
2
|
+
var d = (n) => {
|
|
3
|
+
try {
|
|
4
|
+
a(s.next(n));
|
|
5
|
+
} catch (o) {
|
|
6
|
+
r(o);
|
|
7
|
+
}
|
|
8
|
+
}, c = (n) => {
|
|
9
|
+
try {
|
|
10
|
+
a(s.throw(n));
|
|
11
|
+
} catch (o) {
|
|
12
|
+
r(o);
|
|
13
|
+
}
|
|
14
|
+
}, a = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(d, c);
|
|
15
|
+
a((s = s.apply(t, e)).next());
|
|
16
|
+
});
|
|
17
|
+
import { getEleWidth as u } from "@web-utils/core";
|
|
18
|
+
import p from "@web-utils/component/resize-observer";
|
|
19
|
+
import "@web-utils/component/resize-observer/style.css";
|
|
20
|
+
import { n as f } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
21
|
+
var w = function() {
|
|
22
|
+
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
23
|
+
return s("div", {
|
|
24
|
+
staticClass: "egd-swiper"
|
|
25
|
+
}, [s("ElButton", {
|
|
26
|
+
staticClass: "el-carousel__arrow el-carousel__arrow--left",
|
|
27
|
+
attrs: {
|
|
28
|
+
disabled: t.reachedLeft,
|
|
29
|
+
icon: "el-icon-arrow-left"
|
|
30
|
+
},
|
|
31
|
+
on: {
|
|
32
|
+
click: t.clickLeft
|
|
33
|
+
}
|
|
34
|
+
}), s("div", {
|
|
35
|
+
ref: "swiperBox",
|
|
36
|
+
staticClass: "egd-swiper-box",
|
|
37
|
+
on: {
|
|
38
|
+
wheel: function(i) {
|
|
39
|
+
return i.stopPropagation(), i.preventDefault(), t.onMouseWheel.apply(null, arguments);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, [s("div", {
|
|
43
|
+
ref: "swiperContent",
|
|
44
|
+
staticClass: "egd-swiper-content",
|
|
45
|
+
style: t.swiperContentStyle
|
|
46
|
+
}, [t._t("default")], 2)]), s("ElButton", {
|
|
47
|
+
staticClass: "el-carousel__arrow el-carousel__arrow--right",
|
|
48
|
+
attrs: {
|
|
49
|
+
disabled: t.reachedRight,
|
|
50
|
+
icon: "el-icon-arrow-right"
|
|
51
|
+
},
|
|
52
|
+
on: {
|
|
53
|
+
click: t.clickRight
|
|
54
|
+
}
|
|
55
|
+
}), s("ResizeObserver", {
|
|
56
|
+
on: {
|
|
57
|
+
notify: t.resize
|
|
58
|
+
}
|
|
59
|
+
})], 1);
|
|
60
|
+
}, m = [];
|
|
61
|
+
const v = {
|
|
62
|
+
name: "Swiper",
|
|
63
|
+
components: {
|
|
64
|
+
ResizeObserver: p
|
|
65
|
+
},
|
|
66
|
+
data() {
|
|
67
|
+
return {
|
|
68
|
+
mouseDown: !1,
|
|
69
|
+
swiperBoxWith: 0,
|
|
70
|
+
swiperContentWidth: 0,
|
|
71
|
+
translateX: 0,
|
|
72
|
+
reachedLeft: !0,
|
|
73
|
+
reachedRight: !1,
|
|
74
|
+
childrenWidth: [],
|
|
75
|
+
swiperContentStyle: {
|
|
76
|
+
transitionDuration: "0ms",
|
|
77
|
+
transform: "translate3d(0px, 0px, 0px)"
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
mounted() {
|
|
82
|
+
return h(this, null, function* () {
|
|
83
|
+
yield this.layout();
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
updated() {
|
|
87
|
+
this.computeContentWidth();
|
|
88
|
+
},
|
|
89
|
+
methods: {
|
|
90
|
+
layout() {
|
|
91
|
+
return h(this, null, function* () {
|
|
92
|
+
yield this.$nextTick(), this.computeContentWidth(), this.resize();
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
resize() {
|
|
96
|
+
this.swiperBoxWith = this.$refs.swiperBox.offsetWidth;
|
|
97
|
+
},
|
|
98
|
+
computeContentWidth() {
|
|
99
|
+
let t = 0;
|
|
100
|
+
const e = [], { children: s } = this.$refs.swiperContent;
|
|
101
|
+
Array.prototype.forEach.call(s, (i) => {
|
|
102
|
+
const r = u(i);
|
|
103
|
+
t += r, e.push(r);
|
|
104
|
+
}), this.childrenWidth = e, this.swiperContentWidth = t;
|
|
105
|
+
},
|
|
106
|
+
updateDuration(t) {
|
|
107
|
+
this.swiperContentStyle.transitionDuration = t ? "300ms" : "0ms";
|
|
108
|
+
},
|
|
109
|
+
setTranslateX(t) {
|
|
110
|
+
this.swiperContentWidth <= this.swiperBoxWith || (t > 0 ? (this.translateX = 0, this.reachedLeft = !0, this.reachedRight = !1) : t - this.swiperBoxWith < -this.swiperContentWidth ? (this.translateX = -this.swiperContentWidth + this.swiperBoxWith, this.reachedLeft = !1, this.reachedRight = !0) : (this.translateX = t, this.reachedLeft = !1, this.reachedRight = !1), this.swiperContentStyle.transform = `translate3d(${this.translateX}px, 0px, 0px)`);
|
|
111
|
+
},
|
|
112
|
+
clickLeft() {
|
|
113
|
+
this.updateDuration(!0);
|
|
114
|
+
let t = this.translateX + this.swiperBoxWith, e = t;
|
|
115
|
+
if (t < 0) {
|
|
116
|
+
e = 0, t = -t;
|
|
117
|
+
for (let s = 0, i = this.childrenWidth.length; s < i && (e += this.childrenWidth[s], !(e >= t)); s++)
|
|
118
|
+
;
|
|
119
|
+
e = -e;
|
|
120
|
+
}
|
|
121
|
+
this.setTranslateX(e);
|
|
122
|
+
},
|
|
123
|
+
clickRight() {
|
|
124
|
+
this.updateDuration(!0);
|
|
125
|
+
const t = Math.abs(this.translateX - this.swiperBoxWith);
|
|
126
|
+
let e = 0;
|
|
127
|
+
for (let s = 0, i = this.childrenWidth.length; s < i; s++)
|
|
128
|
+
if (e += this.childrenWidth[s], e >= t) {
|
|
129
|
+
e > t && (e -= this.childrenWidth[s]);
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
this.setTranslateX(-e);
|
|
133
|
+
},
|
|
134
|
+
onMouseWheel(t) {
|
|
135
|
+
this.updateDuration(!0), t.deltaMode === WheelEvent.DOM_DELTA_LINE ? this.setTranslateX(this.translateX - t.deltaY * 30) : t.deltaMode === WheelEvent.DOM_DELTA_PAGE ? t.deltaY > 0 ? this.clickRight() : this.clickLeft() : this.setTranslateX(this.translateX - t.deltaY);
|
|
136
|
+
},
|
|
137
|
+
onMouseDown(t) {
|
|
138
|
+
this.mouseDown = !0, this.startX = t.clientX, this.translateXRaw = this.translateX, window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("mouseup", this.onMouseUp, { passive: !1 });
|
|
139
|
+
},
|
|
140
|
+
onMouseUp(t) {
|
|
141
|
+
this.mouseDown = !1, this.updateDuration(!0), this.$refs.swiperContent.addEventListener("transitionend", this.transitionend), this.$refs.swiperContent.addEventListener("webkitTransitionEnd", this.transitionend);
|
|
142
|
+
const e = t.clientX - this.startX;
|
|
143
|
+
if (e < 0) {
|
|
144
|
+
const s = this.translateX + e;
|
|
145
|
+
this.setTranslateX(s);
|
|
146
|
+
}
|
|
147
|
+
if (e > 0) {
|
|
148
|
+
const s = this.translateX + e;
|
|
149
|
+
this.setTranslateX(s);
|
|
150
|
+
}
|
|
151
|
+
window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("mouseup", this.onMouseUp);
|
|
152
|
+
},
|
|
153
|
+
onMouseMove(t) {
|
|
154
|
+
this.mouseDown && requestAnimationFrame(() => {
|
|
155
|
+
const e = t.clientX - this.startX, s = this.translateXRaw + e;
|
|
156
|
+
this.setTranslateX(s);
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
transitionend() {
|
|
160
|
+
this.updateDuration(!1), this.$refs.swiperContent.removeEventListener("transitionend", this.transitionend), this.$refs.swiperContent.removeEventListener("webkitTransitionEnd", this.transitionend);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}, l = {};
|
|
164
|
+
var X = /* @__PURE__ */ f(
|
|
165
|
+
v,
|
|
166
|
+
w,
|
|
167
|
+
m,
|
|
168
|
+
!1,
|
|
169
|
+
_,
|
|
170
|
+
null,
|
|
171
|
+
null,
|
|
172
|
+
null
|
|
173
|
+
);
|
|
174
|
+
function _(t) {
|
|
175
|
+
for (let e in l)
|
|
176
|
+
this[e] = l[e];
|
|
177
|
+
}
|
|
178
|
+
const g = /* @__PURE__ */ function() {
|
|
179
|
+
return X.exports;
|
|
180
|
+
}();
|
|
181
|
+
export {
|
|
182
|
+
g as default
|
|
183
|
+
};
|
package/swiper/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.egd-swiper{height:100%;padding:0 60px;position:relative}.egd-swiper .el-button.el-carousel__arrow{color:#fff;background-color:rgba(31,45,61,.11);border-color:rgba(31,45,61,.01);border-radius:50%;padding:0;font-size:12px}.egd-swiper .el-button.el-carousel__arrow i{cursor:unset}.egd-swiper .el-button.el-carousel__arrow.is-disabled{color:#fff;background-color:rgba(31,45,61,.11);border-color:rgba(31,45,61,.01)}.egd-swiper .egd-swiper-box{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:100%;overflow:hidden}.egd-swiper .egd-swiper-box .egd-swiper-content{flex-flow:row;width:100%;height:100%;padding-top:14px;transition-property:transform;display:flex;overflow:visible;transform:translate(0,0)}
|
package/tab/index.mjs
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { p as a } from "../chunks/tab-mixin.tM9jcRT8.mjs";
|
|
2
|
+
import { n as s } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
3
|
+
var o = function() {
|
|
4
|
+
var t = this, r = t.$createElement, e = t._self._c || r;
|
|
5
|
+
return e("div", {
|
|
6
|
+
staticClass: "vux-tab-wrap",
|
|
7
|
+
class: t.barPosition === "top" ? "vux-tab-bar-top" : ""
|
|
8
|
+
}, [e("div", {
|
|
9
|
+
staticClass: "vux-tab-container"
|
|
10
|
+
}, [e("div", {
|
|
11
|
+
ref: "nav",
|
|
12
|
+
staticClass: "vux-tab",
|
|
13
|
+
class: [{
|
|
14
|
+
"vux-tab-no-animate": !t.animate,
|
|
15
|
+
scrollable: t.scrollable
|
|
16
|
+
}]
|
|
17
|
+
}, [t._t("default"), t.animate ? e("div", {
|
|
18
|
+
staticClass: "vux-tab-ink-bar",
|
|
19
|
+
class: t.barClass,
|
|
20
|
+
style: t.barStyle
|
|
21
|
+
}, [t.customBarWidth ? e("span", {
|
|
22
|
+
staticClass: "vux-tab-bar-inner",
|
|
23
|
+
style: t.innerBarStyle
|
|
24
|
+
}) : t._e()]) : t._e()], 2)])]);
|
|
25
|
+
}, l = [];
|
|
26
|
+
const c = {
|
|
27
|
+
name: "Tab",
|
|
28
|
+
mixins: [a],
|
|
29
|
+
props: {
|
|
30
|
+
lineWidth: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: 3
|
|
33
|
+
},
|
|
34
|
+
activeColor: String,
|
|
35
|
+
barActiveColor: String,
|
|
36
|
+
animate: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !0
|
|
39
|
+
},
|
|
40
|
+
customBarWidth: [Function, String],
|
|
41
|
+
scrollThreshold: {
|
|
42
|
+
type: Number,
|
|
43
|
+
default: 4
|
|
44
|
+
},
|
|
45
|
+
barPosition: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: "bottom",
|
|
48
|
+
validator(t) {
|
|
49
|
+
return ["bottom", "top"].indexOf(t) !== -1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
data() {
|
|
54
|
+
return {
|
|
55
|
+
direction: "forward",
|
|
56
|
+
hasReady: !1
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
computed: {
|
|
60
|
+
barLeft() {
|
|
61
|
+
if (this.hasReady) {
|
|
62
|
+
const t = this.scrollable ? window.innerWidth / this.$children[this.currentIndex || 0].$el.getBoundingClientRect().width : this.number;
|
|
63
|
+
return `${this.currentIndex * (100 / t)}%`;
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
},
|
|
67
|
+
barRight() {
|
|
68
|
+
if (this.hasReady) {
|
|
69
|
+
const t = this.scrollable ? window.innerWidth / this.$children[this.currentIndex || 0].$el.getBoundingClientRect().width : this.number;
|
|
70
|
+
return `${(t - this.currentIndex - 1) * (100 / t)}%`;
|
|
71
|
+
}
|
|
72
|
+
return null;
|
|
73
|
+
},
|
|
74
|
+
// when prop:custom-bar-width
|
|
75
|
+
innerBarStyle() {
|
|
76
|
+
return {
|
|
77
|
+
width: typeof this.customBarWidth == "function" ? this.customBarWidth(this.currentIndex) : this.customBarWidth,
|
|
78
|
+
backgroundColor: this.barActiveColor || this.activeColor
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
// end
|
|
82
|
+
barStyle() {
|
|
83
|
+
const t = {
|
|
84
|
+
left: this.barLeft,
|
|
85
|
+
right: this.barRight,
|
|
86
|
+
display: "block",
|
|
87
|
+
height: `${this.lineWidth}px`,
|
|
88
|
+
transition: this.hasReady ? null : "none"
|
|
89
|
+
};
|
|
90
|
+
return this.customBarWidth ? t.backgroundColor = "transparent" : t.backgroundColor = this.barActiveColor || this.activeColor, t;
|
|
91
|
+
},
|
|
92
|
+
barClass() {
|
|
93
|
+
return {
|
|
94
|
+
"vux-tab-ink-bar-transition-forward": this.direction === "forward",
|
|
95
|
+
"vux-tab-ink-bar-transition-backward": this.direction === "backward"
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
scrollable() {
|
|
99
|
+
return this.number > this.scrollThreshold;
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
watch: {
|
|
103
|
+
currentIndex(t, r) {
|
|
104
|
+
this.direction = t > r ? "forward" : "backward", this.$emit("on-index-change", t, r), this.hasReady && this.scrollToActiveTab();
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
mounted() {
|
|
108
|
+
this.$nextTick(() => {
|
|
109
|
+
setTimeout(() => {
|
|
110
|
+
this.hasReady = !0;
|
|
111
|
+
}, 0);
|
|
112
|
+
});
|
|
113
|
+
},
|
|
114
|
+
methods: {
|
|
115
|
+
scrollToActiveTab() {
|
|
116
|
+
if (!this.scrollable || !this.$children || !this.$children.length)
|
|
117
|
+
return;
|
|
118
|
+
const t = this.$children[this.currentIndex].$el;
|
|
119
|
+
let r = 0;
|
|
120
|
+
const e = () => {
|
|
121
|
+
const i = this.$refs.nav;
|
|
122
|
+
i.scrollLeft += (t.offsetLeft - (i.offsetWidth - t.offsetWidth) / 2 - i.scrollLeft) / 15, ++r < 15 && window.requestAnimationFrame(e);
|
|
123
|
+
};
|
|
124
|
+
window.requestAnimationFrame(e);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}, n = {};
|
|
128
|
+
var h = /* @__PURE__ */ s(
|
|
129
|
+
c,
|
|
130
|
+
o,
|
|
131
|
+
l,
|
|
132
|
+
!1,
|
|
133
|
+
u,
|
|
134
|
+
null,
|
|
135
|
+
null,
|
|
136
|
+
null
|
|
137
|
+
);
|
|
138
|
+
function u(t) {
|
|
139
|
+
for (let r in n)
|
|
140
|
+
this[r] = n[r];
|
|
141
|
+
}
|
|
142
|
+
const m = /* @__PURE__ */ function() {
|
|
143
|
+
return h.exports;
|
|
144
|
+
}();
|
|
145
|
+
export {
|
|
146
|
+
m as default
|
|
147
|
+
};
|
package/tab/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vux-tab-ink-bar{text-align:center;background-color:#1989fa;height:2px;position:absolute;bottom:0;left:0}.vux-tab-ink-bar-transition-forward{transition:right .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1) 90ms}.vux-tab-ink-bar-transition-backward{transition:right .3s cubic-bezier(.35,0,.25,1) 90ms,left .3s cubic-bezier(.35,0,.25,1)}.vux-tab-bar-top .vux-tab-ink-bar{top:0}.vux-tab{background-color:#fff;height:36px;display:flex;position:relative}.vux-tab button{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;background:0 0;border:0;outline:0;padding:0}.vux-tab .vux-tab-item{box-sizing:border-box;color:#666;text-align:center;cursor:pointer;flex:auto;width:100%;height:100%;font-size:14px;line-height:36px;display:block}.vux-tab .vux-tab-item.vux-tab-selected{color:#1989fa;border-bottom:3px solid #1989fa}.vux-tab-bar-top .vux-tab .vux-tab-item.vux-tab-selected{border-top:3px solid #1989fa;border-bottom:none}.vux-tab .vux-tab-item.vux-tab-disabled{color:#ddd}.vux-tab.vux-tab-no-animate .vux-tab-item.vux-tab-selected{background:0 0}.vux-tab-bar-inner{background-color:#1989fa;height:100%;margin:auto;transition:width .3s cubic-bezier(.35,0,.25,1);display:block}.vux-tab-item-badge{box-sizing:border-box;vertical-align:middle;background-clip:padding-box;border-radius:30px;min-width:18px;height:18px;margin:auto 0 auto 4px;padding:0 4px;font-size:11px;line-height:18px;display:inline-block;position:absolute;top:0;bottom:0}.vux-tab-wrap{padding-top:36px;position:relative}.vux-tab-container{height:36px;position:absolute;top:0;left:0;right:0;overflow:hidden}.scrollable{box-sizing:content-box;-webkit-overflow-scrolling:touch;padding-bottom:17px;overflow-x:auto;overflow-y:hidden}.scrollable::-webkit-scrollbar{display:none}.scrollable .vux-tab-ink-bar{position:absolute;bottom:17px}.scrollable .vux-tab-item{flex:0 0 22%}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { c as n } from "../chunks/tab-mixin.tM9jcRT8.mjs";
|
|
2
|
+
import { n as l } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
3
|
+
var o = function() {
|
|
4
|
+
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
5
|
+
return a("div", {
|
|
6
|
+
staticClass: "vux-tab-item",
|
|
7
|
+
class: [e.currentSelected ? e.activeClass : "", {
|
|
8
|
+
"vux-tab-selected": e.currentSelected,
|
|
9
|
+
"vux-tab-disabled": e.disabled
|
|
10
|
+
}],
|
|
11
|
+
style: e.style,
|
|
12
|
+
on: {
|
|
13
|
+
click: e.onItemClick
|
|
14
|
+
}
|
|
15
|
+
}, [e._t("default"), typeof e.badgeLabel != "undefined" && e.badgeLabel !== "" ? a("span", {
|
|
16
|
+
staticClass: "vux-tab-item-badge",
|
|
17
|
+
style: {
|
|
18
|
+
background: e.badgeBackground,
|
|
19
|
+
color: e.badgeColor
|
|
20
|
+
}
|
|
21
|
+
}, [e._v(" " + e._s(e.badgeLabel) + " ")]) : e._e()], 2);
|
|
22
|
+
}, s = [];
|
|
23
|
+
const i = {
|
|
24
|
+
name: "TabItem",
|
|
25
|
+
mixins: [n],
|
|
26
|
+
props: {
|
|
27
|
+
activeClass: {
|
|
28
|
+
type: String
|
|
29
|
+
},
|
|
30
|
+
disabled: Boolean,
|
|
31
|
+
badgeBackground: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "#f74c31"
|
|
34
|
+
},
|
|
35
|
+
badgeColor: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "#fff"
|
|
38
|
+
},
|
|
39
|
+
badgeLabel: {
|
|
40
|
+
type: String
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
computed: {
|
|
44
|
+
style() {
|
|
45
|
+
return {
|
|
46
|
+
borderWidth: `${this.$parent.lineWidth}px`,
|
|
47
|
+
borderColor: this.$parent.activeColor,
|
|
48
|
+
color: this.currentSelected ? this.$parent.activeColor : this.disabled ? this.$parent.disabledColor : this.$parent.defaultColor,
|
|
49
|
+
border: this.$parent.animate ? "none" : "auto"
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}, r = {};
|
|
54
|
+
var d = /* @__PURE__ */ l(
|
|
55
|
+
i,
|
|
56
|
+
o,
|
|
57
|
+
s,
|
|
58
|
+
!1,
|
|
59
|
+
c,
|
|
60
|
+
null,
|
|
61
|
+
null,
|
|
62
|
+
null
|
|
63
|
+
);
|
|
64
|
+
function c(e) {
|
|
65
|
+
for (let t in r)
|
|
66
|
+
this[t] = r[t];
|
|
67
|
+
}
|
|
68
|
+
const p = /* @__PURE__ */ function() {
|
|
69
|
+
return d.exports;
|
|
70
|
+
}();
|
|
71
|
+
export {
|
|
72
|
+
p as default
|
|
73
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
var u = Object.defineProperty, d = Object.defineProperties;
|
|
2
|
+
var c = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var o = Object.getOwnPropertySymbols;
|
|
4
|
+
var f = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var i = (n, e, t) => e in n ? u(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, l = (n, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
f.call(e, t) && i(n, t, e[t]);
|
|
8
|
+
if (o)
|
|
9
|
+
for (var t of o(e))
|
|
10
|
+
p.call(e, t) && i(n, t, e[t]);
|
|
11
|
+
return n;
|
|
12
|
+
}, r = (n, e) => d(n, c(e));
|
|
13
|
+
import { n as g } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
14
|
+
const m = {
|
|
15
|
+
props: {
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "default"
|
|
19
|
+
},
|
|
20
|
+
label: String,
|
|
21
|
+
className: String,
|
|
22
|
+
labelClassName: String,
|
|
23
|
+
property: String,
|
|
24
|
+
prop: String,
|
|
25
|
+
width: {},
|
|
26
|
+
minWidth: {},
|
|
27
|
+
renderHeader: Function,
|
|
28
|
+
sortable: {
|
|
29
|
+
type: [Boolean, String],
|
|
30
|
+
default: !1
|
|
31
|
+
},
|
|
32
|
+
sortMethod: Function,
|
|
33
|
+
sortBy: [String, Function, Array],
|
|
34
|
+
resizable: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !0
|
|
37
|
+
},
|
|
38
|
+
columnKey: String,
|
|
39
|
+
align: String,
|
|
40
|
+
headerAlign: String,
|
|
41
|
+
showTooltipWhenOverflow: Boolean,
|
|
42
|
+
showOverflowTooltip: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
fixed: [Boolean, String],
|
|
47
|
+
formatter: Function,
|
|
48
|
+
selectable: Function,
|
|
49
|
+
reserveSelection: Boolean,
|
|
50
|
+
filterMethod: Function,
|
|
51
|
+
filteredValue: Array,
|
|
52
|
+
filters: Array,
|
|
53
|
+
filterPlacement: String,
|
|
54
|
+
filterMultiple: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !0
|
|
57
|
+
},
|
|
58
|
+
index: [Number, Function],
|
|
59
|
+
sortOrders: {
|
|
60
|
+
type: Array,
|
|
61
|
+
default() {
|
|
62
|
+
return ["ascending", "descending", null];
|
|
63
|
+
},
|
|
64
|
+
validator(n) {
|
|
65
|
+
return n.every((e) => ["ascending", "descending", null].indexOf(e) > -1);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, _ = {
|
|
70
|
+
name: "TableColumn",
|
|
71
|
+
functional: !0,
|
|
72
|
+
mixins: [m],
|
|
73
|
+
render(n, { data: e, props: t, children: s }) {
|
|
74
|
+
return n("ElTableColumn", r(l({}, e), {
|
|
75
|
+
props: r(l({}, t), {
|
|
76
|
+
showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(t.type) ? !1 : t.showOverflowTooltip
|
|
77
|
+
})
|
|
78
|
+
}), s);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
let y, S;
|
|
82
|
+
const a = {};
|
|
83
|
+
var v = /* @__PURE__ */ g(
|
|
84
|
+
_,
|
|
85
|
+
y,
|
|
86
|
+
S,
|
|
87
|
+
!1,
|
|
88
|
+
h,
|
|
89
|
+
null,
|
|
90
|
+
null,
|
|
91
|
+
null
|
|
92
|
+
);
|
|
93
|
+
function h(n) {
|
|
94
|
+
for (let e in a)
|
|
95
|
+
this[e] = a[e];
|
|
96
|
+
}
|
|
97
|
+
const x = /* @__PURE__ */ function() {
|
|
98
|
+
return v.exports;
|
|
99
|
+
}();
|
|
100
|
+
export {
|
|
101
|
+
x as default
|
|
102
|
+
};
|