@nutui/nutui 4.3.14 → 4.3.15-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +2 -2
- package/dist/nutui.es.js +2 -14
- package/dist/nutui.umd.js +19829 -1
- package/dist/packages/{Interceptor-CBzqGJrl.js → Interceptor-aNUpilAP.js} +1 -1
- package/dist/packages/actionsheet/ActionSheet.js +17 -11
- package/dist/packages/address/Address.js +139 -121
- package/dist/packages/addresslist/AddressList.js +22 -11
- package/dist/packages/animate/Animate.js +1 -1
- package/dist/packages/avatar/Avatar.js +1 -1
- package/dist/packages/avatarcropper/AvatarCropper.js +329 -126
- package/dist/packages/avatargroup/AvatarGroup.js +17 -10
- package/dist/packages/backtop/Backtop.js +42 -88
- package/dist/packages/badge/Badge.js +4 -2
- package/dist/packages/barrage/Barrage.js +76 -130
- package/dist/packages/button/Button.js +15 -8
- package/dist/packages/calendar/Calendar.js +173 -152
- package/dist/packages/calendarcard/CalendarCard.js +33 -61
- package/dist/packages/card/Card.js +12 -4
- package/dist/packages/cascader/Cascader.js +49 -37
- package/dist/packages/category/Category.js +13 -12
- package/dist/packages/categorypane/CategoryPane.js +13 -8
- package/dist/packages/cell/Cell.js +10 -16
- package/dist/packages/cellgroup/CellGroup.js +4 -2
- package/dist/packages/checkbox/Checkbox.js +1 -1
- package/dist/packages/circleprogress/CircleProgress.js +53 -69
- package/dist/packages/col/Col.js +1 -1
- package/dist/packages/collapse/Collapse.js +1 -1
- package/dist/packages/collapseitem/CollapseItem.js +74 -39
- package/dist/packages/comment/Comment.js +46 -24
- package/dist/packages/configprovider/ConfigProvider.js +1 -1
- package/dist/packages/countdown/Countdown.js +2 -2
- package/dist/packages/countup/Countup.js +53 -66
- package/dist/packages/datepicker/DatePicker.js +12 -7
- package/dist/packages/dialog/Dialog.js +27 -96
- package/dist/packages/dialog/index.mjs +1 -2
- package/dist/packages/divider/Divider.js +1 -1
- package/dist/packages/drag/Drag.js +95 -58
- package/dist/packages/ecard/Ecard.js +19 -16
- package/dist/packages/elevator/Elevator.js +86 -73
- package/dist/packages/ellipsis/Ellipsis.js +223 -121
- package/dist/packages/empty/Empty.js +5 -3
- package/dist/packages/fixednav/FixedNav.js +12 -7
- package/dist/packages/form/Form.js +2 -2
- package/dist/packages/formitem/FormItem.js +3 -1
- package/dist/packages/grid/Grid.js +1 -1
- package/dist/packages/griditem/GridItem.js +5 -15
- package/dist/packages/imagepreview/ImagePreview.js +192 -400
- package/dist/packages/imagepreview/index.mjs +1 -2
- package/dist/packages/{index-BOB4ytqZ.js → index-IxPZmHlb.js} +2 -2
- package/dist/packages/index-m0Wcof-q.js +69 -0
- package/dist/packages/{index-wLaOjIn1.js → index.taro-CNxLoYer.js} +6 -7
- package/dist/packages/index.taro.vue_vue_type_script_setup_true_lang-JJ7hr71Y.js +17 -0
- package/dist/packages/indicator/Indicator.js +2 -2
- package/dist/packages/input/Input.js +87 -70
- package/dist/packages/inputnumber/InputNumber.js +22 -14
- package/dist/packages/invoice/Invoice.js +3 -2
- package/dist/packages/list/List.js +114 -56
- package/dist/packages/menu/Menu.js +45 -40
- package/dist/packages/menuitem/MenuItem.js +53 -47
- package/dist/packages/navbar/Navbar.js +31 -17
- package/dist/packages/noticebar/Noticebar.js +68 -43
- package/dist/packages/notify/Notify.js +10 -157
- package/dist/packages/notify/index.mjs +1 -2
- package/dist/packages/numberkeyboard/NumberKeyboard.js +103 -109
- package/dist/packages/overlay/Overlay.js +6 -34
- package/dist/packages/pagination/Pagination.js +8 -5
- package/dist/packages/picker/Picker.js +113 -26
- package/dist/packages/popover/Popover.js +158 -88
- package/dist/packages/popup/Popup.js +1 -1
- package/dist/packages/price/Price.js +16 -3
- package/dist/packages/progress/Progress.js +7 -4
- package/dist/packages/radio/Radio.js +11 -12
- package/dist/packages/radiogroup/RadioGroup.js +2 -2
- package/dist/packages/{raf-c01wDYCo.js → raf-CzJhCkQo.js} +0 -9
- package/dist/packages/range/Range.js +139 -71
- package/dist/packages/rate/Rate.js +15 -49
- package/dist/packages/row/Row.js +1 -1
- package/dist/packages/searchbar/Searchbar.js +35 -27
- package/dist/packages/shortpassword/ShortPassword.js +51 -43
- package/dist/packages/sidenavbar/SideNavbar.js +3 -14
- package/dist/packages/sidenavbaritem/SideNavbarItem.js +2 -2
- package/dist/packages/signature/Signature.js +148 -106
- package/dist/packages/skeleton/Skeleton.js +6 -3
- package/dist/packages/sku/Sku.js +66 -42
- package/dist/packages/space/Space.js +2 -2
- package/dist/packages/step/Step.js +5 -2
- package/dist/packages/steps/Steps.js +1 -1
- package/dist/packages/sticky/Sticky.js +32 -71
- package/dist/packages/subsidenavbar/SubSideNavbar.js +13 -5
- package/dist/packages/swipe/Swipe.js +37 -14
- package/dist/packages/swipegroup/SwipeGroup.js +2 -2
- package/dist/packages/swiper/Swiper.js +73 -24
- package/dist/packages/switch/Switch.js +6 -4
- package/dist/packages/tabbar/Tabbar.js +23 -24
- package/dist/packages/tabbaritem/TabbarItem.js +8 -3
- package/dist/packages/table/Table.js +10 -6
- package/dist/packages/tabs/Tabs.js +146 -150
- package/dist/packages/tag/Tag.js +5 -5
- package/dist/packages/textarea/Textarea.js +144 -69
- package/dist/packages/timedetail/TimeDetail.js +2 -2
- package/dist/packages/timepannel/TimePannel.js +2 -2
- package/dist/packages/timeselect/TimeSelect.js +9 -11
- package/dist/packages/toast/Toast.js +50 -186
- package/dist/packages/toast/index.mjs +1 -2
- package/dist/packages/tour/Tour.js +145 -99
- package/dist/packages/trendarrow/TrendArrow.js +7 -4
- package/dist/packages/uploader/Uploader.js +263 -106
- package/dist/packages/{util-D1pvnUYu.js → util-2G3mRQeF.js} +5 -17
- package/dist/packages/watermark/Watermark.js +95 -35
- package/dist/smartips/web-types.json +380 -770
- package/dist/style.css +1 -1
- package/dist/styles/base-jda.css +1 -0
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/themes/jda.scss +106 -0
- package/dist/styles/themes/jdb.scss +0 -1
- package/dist/styles/themes/jddkh.scss +0 -1
- package/dist/styles/themes/jdt.scss +0 -1
- package/dist/styles/variables-jda.scss +945 -0
- package/dist/types/__VUE/actionsheet/{index.vue.d.ts → index.taro.vue.d.ts} +5 -112
- package/dist/types/__VUE/address/{index.vue.d.ts → index.taro.vue.d.ts} +139 -412
- package/dist/types/__VUE/addresslist/components/{GeneralShell.vue.d.ts → GeneralShell.taro.vue.d.ts} +45 -134
- package/dist/types/__VUE/addresslist/components/ItemContents.taro.vue.d.ts +27 -0
- package/dist/types/__VUE/addresslist/{index.vue.d.ts → index.taro.vue.d.ts} +85 -155
- package/dist/types/__VUE/animate/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/avatarcropper/{index.vue.d.ts → index.taro.vue.d.ts} +90 -147
- package/dist/types/__VUE/backtop/{backtop.vue.d.ts → backtop.taro.vue.d.ts} +8 -19
- package/dist/types/__VUE/backtop/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/badge/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/barrage/{index.vue.d.ts → index.taro.vue.d.ts} +10 -5
- package/dist/types/__VUE/button/{button.vue.d.ts → button.taro.vue.d.ts} +7 -1
- package/dist/types/__VUE/button/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/calendar/{index.vue.d.ts → index.taro.vue.d.ts} +59 -94
- package/dist/types/__VUE/calendarcard/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/calendaritem/{index.vue.d.ts → index.taro.vue.d.ts} +22 -4
- package/dist/types/__VUE/card/{index.vue.d.ts → index.taro.vue.d.ts} +13 -13
- package/dist/types/__VUE/cascader/{cascader-item.vue.d.ts → cascader-item.taro.vue.d.ts} +47 -229
- package/dist/types/__VUE/cascader/{index.vue.d.ts → index.taro.vue.d.ts} +50 -287
- package/dist/types/__VUE/category/{index.vue.d.ts → index.taro.vue.d.ts} +2 -2
- package/dist/types/__VUE/cell/{cell.vue.d.ts → cell.taro.vue.d.ts} +0 -15
- package/dist/types/__VUE/cell/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/cellgroup/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/circleprogress/{circle-progress.vue.d.ts → circle-progress.taro.vue.d.ts} +0 -4
- package/dist/types/__VUE/circleprogress/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/col/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/collapse/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/collapseitem/collapse-item.taro.vue.d.ts +94 -0
- package/dist/types/__VUE/collapseitem/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/comment/components/CmtBottom.taro.vue.d.ts +47 -0
- package/dist/types/__VUE/comment/components/CmtHeader.taro.vue.d.ts +122 -0
- package/dist/types/__VUE/comment/components/{CmtImages.vue.d.ts → CmtImages.taro.vue.d.ts} +2 -55
- package/dist/types/__VUE/comment/index.taro.vue.d.ts +333 -0
- package/dist/types/__VUE/countdown/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/countup/{index.vue.d.ts → index.taro.vue.d.ts} +5 -7
- package/dist/types/__VUE/datepicker/{index.vue.d.ts → index.taro.vue.d.ts} +31 -2
- package/dist/types/__VUE/dialog/{index.vue.d.ts → index.taro.vue.d.ts} +52 -85
- package/dist/types/__VUE/divider/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/drag/{index.vue.d.ts → index.taro.vue.d.ts} +2 -0
- package/dist/types/__VUE/elevator/{index.vue.d.ts → index.taro.vue.d.ts} +40 -5
- package/dist/types/__VUE/ellipsis/{index.vue.d.ts → index.taro.vue.d.ts} +11 -6
- package/dist/types/__VUE/empty/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/fixednav/{index.vue.d.ts → index.taro.vue.d.ts} +2 -55
- package/dist/types/__VUE/form/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/formitem/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/grid/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/griditem/{grid-item.vue.d.ts → grid-item.taro.vue.d.ts} +3 -21
- package/dist/types/__VUE/griditem/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +732 -0
- package/dist/types/__VUE/indicator/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/input/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/input/{input.vue.d.ts → input.taro.vue.d.ts} +14 -6
- package/dist/types/__VUE/inputnumber/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/invoice/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/layout/{index.d.ts → index.taro.d.ts} +1 -1
- package/dist/types/__VUE/list/{index.vue.d.ts → index.taro.vue.d.ts} +32 -4
- package/dist/types/__VUE/menu/index.taro.vue.d.ts +104 -0
- package/dist/types/__VUE/menuitem/{index.vue.d.ts → index.taro.vue.d.ts} +22 -114
- package/dist/types/__VUE/navbar/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/noticebar/{index.vue.d.ts → index.taro.vue.d.ts} +9 -116
- package/dist/types/__VUE/notify/{index.vue.d.ts → index.taro.vue.d.ts} +2 -66
- package/dist/types/__VUE/numberkeyboard/{index.vue.d.ts → index.taro.vue.d.ts} +14 -60
- package/dist/types/__VUE/overlay/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/picker/{index.vue.d.ts → index.taro.vue.d.ts} +31 -2
- package/dist/types/__VUE/popover/{index.vue.d.ts → index.taro.vue.d.ts} +4 -56
- package/dist/types/__VUE/popup/{index.vue.d.ts → index.taro.vue.d.ts} +3 -56
- package/dist/types/__VUE/price/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/progress/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/radio/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/radiogroup/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/range/{index.vue.d.ts → index.taro.vue.d.ts} +3 -2
- package/dist/types/__VUE/rate/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/rate/rate.taro.vue.d.ts +95 -0
- package/dist/types/__VUE/row/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/scroll-view/index.taro.vue.d.ts +9 -0
- package/dist/types/__VUE/searchbar/{index.vue.d.ts → index.taro.vue.d.ts} +23 -121
- package/dist/types/__VUE/shortpassword/{index.vue.d.ts → index.taro.vue.d.ts} +5 -112
- package/dist/types/__VUE/sidenavbar/{index.vue.d.ts → index.taro.vue.d.ts} +0 -9
- package/dist/types/__VUE/signature/{index.vue.d.ts → index.taro.vue.d.ts} +53 -31
- package/dist/types/__VUE/skeleton/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/sku/components/{SkuHeader.vue.d.ts → SkuHeader.taro.vue.d.ts} +6 -6
- package/dist/types/__VUE/sku/{index.vue.d.ts → index.taro.vue.d.ts} +25 -62
- package/dist/types/__VUE/step/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/steps/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/sticky/{index.vue.d.ts → index.taro.vue.d.ts} +7 -26
- package/dist/types/__VUE/subsidenavbar/index.taro.vue.d.ts +45 -0
- package/dist/types/__VUE/swipe/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/swipegroup/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/swiper/{index.vue.d.ts → index.taro.vue.d.ts} +6 -5
- package/dist/types/__VUE/switch/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/tabbar/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/tabbaritem/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/table/{index.vue.d.ts → index.taro.vue.d.ts} +2 -55
- package/dist/types/__VUE/tabs/{index.vue.d.ts → index.taro.vue.d.ts} +27 -118
- package/dist/types/__VUE/tag/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/textarea/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/textarea/{textarea.vue.d.ts → textarea.taro.vue.d.ts} +1 -1
- package/dist/types/__VUE/timeselect/{index.vue.d.ts → index.taro.vue.d.ts} +3 -66
- package/dist/types/__VUE/toast/{index.vue.d.ts → index.taro.vue.d.ts} +16 -12
- package/dist/types/__VUE/tour/{index.vue.d.ts → index.taro.vue.d.ts} +13 -121
- package/dist/types/__VUE/trendarrow/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/__VUE/uploader/{index.vue.d.ts → index.taro.vue.d.ts} +268 -286
- package/dist/types/__VUE/watermark/{index.d.ts → index.taro.d.ts} +2 -2
- package/dist/types/index.d.ts +145 -155
- package/package.json +1 -1
- package/dist/nutui.js +0 -15854
- package/dist/packages/audio/Audio.js +0 -271
- package/dist/packages/audio/index.mjs +0 -2
- package/dist/packages/audiooperate/AudioOperate.js +0 -125
- package/dist/packages/audiooperate/index.mjs +0 -2
- package/dist/packages/image/Image.js +0 -167
- package/dist/packages/image/index.mjs +0 -2
- package/dist/packages/index-B1qsj2XR.js +0 -33
- package/dist/packages/index-BvmDLUYP.js +0 -31
- package/dist/packages/index-aiGQ-EiA.js +0 -8
- package/dist/packages/infiniteloading/InfiniteLoading.js +0 -184
- package/dist/packages/infiniteloading/index.mjs +0 -2
- package/dist/packages/mountComponent-CLi4Nz91.js +0 -39
- package/dist/packages/pullrefresh/PullRefresh.js +0 -240
- package/dist/packages/pullrefresh/index.mjs +0 -2
- package/dist/packages/types-BMA1Y94E.js +0 -4
- package/dist/packages/video/Video.js +0 -449
- package/dist/packages/video/index.mjs +0 -2
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +0 -134
- package/dist/types/__VUE/audio/index.vue.d.ts +0 -323
- package/dist/types/__VUE/audio/types.d.ts +0 -3
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +0 -229
- package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +0 -201
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +0 -208
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +0 -248
- package/dist/types/__VUE/comment/index.vue.d.ts +0 -728
- package/dist/types/__VUE/dialog/index.d.ts +0 -44
- package/dist/types/__VUE/image/image.vue.d.ts +0 -111
- package/dist/types/__VUE/image/index.d.ts +0 -6
- package/dist/types/__VUE/image/types.d.ts +0 -2
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +0 -267
- package/dist/types/__VUE/imagepreview/index.d.ts +0 -36
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -1088
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -140
- package/dist/types/__VUE/menu/index.vue.d.ts +0 -210
- package/dist/types/__VUE/notify/index.d.ts +0 -22
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -200
- package/dist/types/__VUE/rate/rate.vue.d.ts +0 -208
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +0 -152
- package/dist/types/__VUE/toast/index.d.ts +0 -12
- package/dist/types/__VUE/video/index.vue.d.ts +0 -149
- package/dist/packages/{index-Do4_KY74.js → index.taro-Do4_KY74.js} +0 -0
- package/dist/types/__VUE/animate/{animate.vue.d.ts → animate.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/avatar/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/avatargroup/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/badge/{badge.vue.d.ts → badge.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/calendarcard/{calendar-card.vue.d.ts → calendar-card.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/calendarcard/{icon.d.ts → icon.taro.d.ts} +0 -0
- package/dist/types/__VUE/categorypane/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/cellgroup/{cell-group.vue.d.ts → cell-group.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/checkbox/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/checkboxgroup/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/col/{col.vue.d.ts → col.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/collapse/{collapse.vue.d.ts → collapse.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/configprovider/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/countdown/{countdown.vue.d.ts → countdown.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/divider/{divider.vue.d.ts → divider.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/ecard/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/empty/{empty.vue.d.ts → empty.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/form/{form.vue.d.ts → form.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/formitem/{form-item.vue.d.ts → form-item.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/grid/{grid.vue.d.ts → grid.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/indicator/{indicator.vue.d.ts → indicator.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/inputnumber/{input-number.vue.d.ts → input-number.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/invoice/{invoice.vue.d.ts → invoice.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/layout/{layout.vue.d.ts → layout.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/navbar/{navbar.vue.d.ts → navbar.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/overlay/{overlay.vue.d.ts → overlay.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/pagination/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/price/{price.vue.d.ts → price.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/progress/{progress.vue.d.ts → progress.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/radio/{radio.vue.d.ts → radio.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/radiogroup/{radio-group.vue.d.ts → radio-group.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/row/{row.vue.d.ts → row.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/sidenavbaritem/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/skeleton/{skeleton.vue.d.ts → skeleton.taro.vue.d.ts} +2 -2
- package/dist/types/__VUE/sku/components/{SkuStepper.vue.d.ts → SkuStepper.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/space/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/step/{step.vue.d.ts → step.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/steps/{steps.vue.d.ts → steps.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/swipe/{swipe.vue.d.ts → swipe.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/swipegroup/{swipe-group.vue.d.ts → swipe-group.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/swiperitem/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/switch/{switch.vue.d.ts → switch.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabbar/{tabbar.vue.d.ts → tabbar.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabbaritem/{tabbar-item.vue.d.ts → tabbar-item.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabpane/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/tag/{tag.vue.d.ts → tag.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/timedetail/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/timepannel/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/trendarrow/{trend-arrow.vue.d.ts → trend-arrow.taro.vue.d.ts} +1 -1
- package/dist/types/__VUE/watermark/{watermark.vue.d.ts → watermark.taro.vue.d.ts} +2 -2
|
@@ -35,24 +35,25 @@ var __async = (__this, __arguments, generator) => {
|
|
|
35
35
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import {
|
|
38
|
+
import Taro from "@tarojs/taro";
|
|
39
|
+
import { ref, onMounted, reactive, provide, computed, watch, onActivated, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, normalizeStyle, withCtx, createElementVNode, renderSlot, Fragment, renderList, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
40
|
+
import { _ as _sfc_main$1 } from "../index.taro.vue_vue_type_script_setup_true_lang-JJ7hr71Y.js";
|
|
41
|
+
import { JoySmile } from "@nutui/icons-vue-taro";
|
|
41
42
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
42
|
-
import { T as TypeOfFun } from "../util-
|
|
43
|
+
import { T as TypeOfFun } from "../util-2G3mRQeF.js";
|
|
43
44
|
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
44
|
-
import {
|
|
45
|
-
import { r as requestAniFrame } from "../raf-c01wDYCo.js";
|
|
45
|
+
import { r as requestAniFrame } from "../raf-CzJhCkQo.js";
|
|
46
46
|
import { u as useTouch } from "../index-I8tfW3Kf.js";
|
|
47
|
+
import { u as useTaroRect } from "../index-m0Wcof-q.js";
|
|
47
48
|
import { T as TABS_KEY } from "../types-BXlnzugj.js";
|
|
48
49
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
49
|
-
const useTabContentTouch = (props, tabMethods, taro,
|
|
50
|
+
const useTabContentTouch = (props, tabMethods, taro, useTaroRect2) => {
|
|
50
51
|
const tabsContentRef = ref();
|
|
51
52
|
const tabsContentRefRect = ref({ width: 0, height: 0 });
|
|
52
53
|
const initTaroWidth = () => __async(void 0, null, function* () {
|
|
53
54
|
var _a, _b;
|
|
54
55
|
if (taro && taro.getEnv() !== taro.ENV_TYPE.WEB) {
|
|
55
|
-
|
|
56
|
+
useTaroRect2(tabsContentRef).then(
|
|
56
57
|
(rect) => {
|
|
57
58
|
tabsContentRefRect.value.width = rect.width || 0;
|
|
58
59
|
tabsContentRefRect.value.height = rect.height || 0;
|
|
@@ -160,7 +161,10 @@ class Title {
|
|
|
160
161
|
}
|
|
161
162
|
const { create } = createComponent("tabs");
|
|
162
163
|
const _sfc_main = create({
|
|
163
|
-
components: {
|
|
164
|
+
components: {
|
|
165
|
+
JoySmile,
|
|
166
|
+
NutScrollView: _sfc_main$1
|
|
167
|
+
},
|
|
164
168
|
props: {
|
|
165
169
|
modelValue: {
|
|
166
170
|
type: [String, Number],
|
|
@@ -225,8 +229,8 @@ const _sfc_main = create({
|
|
|
225
229
|
},
|
|
226
230
|
emits: ["update:modelValue", "click", "change"],
|
|
227
231
|
setup(props, { emit, slots }) {
|
|
232
|
+
const refRandomId = Math.random().toString(36).slice(-8);
|
|
228
233
|
const container = ref(null);
|
|
229
|
-
let stickyFixed;
|
|
230
234
|
provide(TABS_KEY, {
|
|
231
235
|
activeKey: computed(() => props.modelValue || "0"),
|
|
232
236
|
autoHeight: computed(() => props.autoHeight),
|
|
@@ -267,36 +271,82 @@ const _sfc_main = create({
|
|
|
267
271
|
currentIndex.value = index;
|
|
268
272
|
}
|
|
269
273
|
};
|
|
274
|
+
const getScrollX = computed(() => {
|
|
275
|
+
return props.titleScroll && props.direction === "horizontal";
|
|
276
|
+
});
|
|
270
277
|
const getScrollY = computed(() => {
|
|
271
278
|
return props.titleScroll && props.direction === "vertical";
|
|
272
279
|
});
|
|
273
|
-
const navRef = ref();
|
|
274
280
|
const titleRef = ref([]);
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
289
|
-
scrollDirection(nav, to, immediate ? 0 : 0.3, props.direction);
|
|
281
|
+
const scrollLeft = ref(0);
|
|
282
|
+
const scrollTop = ref(0);
|
|
283
|
+
const scrollWithAnimation = ref(false);
|
|
284
|
+
const getRect = (selector) => {
|
|
285
|
+
return new Promise((resolve) => {
|
|
286
|
+
Taro.createSelectorQuery().select(selector).boundingClientRect().exec((rect = []) => {
|
|
287
|
+
resolve(rect[0]);
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
};
|
|
291
|
+
const getAllRect = (selector) => {
|
|
292
|
+
return new Promise((resolve) => {
|
|
293
|
+
Taro.createSelectorQuery().selectAll(selector).boundingClientRect().exec((rect = []) => resolve(rect[0]));
|
|
294
|
+
});
|
|
290
295
|
};
|
|
291
|
-
const
|
|
296
|
+
const navRectRef = ref();
|
|
297
|
+
const titleRectRef = ref([]);
|
|
298
|
+
const canShowLabel = ref(false);
|
|
299
|
+
const scrollIntoView = () => {
|
|
300
|
+
requestAniFrame(() => {
|
|
301
|
+
Promise.all([
|
|
302
|
+
getRect(`#nut-tabs__titles_${refRandomId}`),
|
|
303
|
+
getAllRect(`#nut-tabs__titles_${refRandomId} .nut-tabs__titles-item`)
|
|
304
|
+
]).then(([navRect, titleRects]) => {
|
|
305
|
+
var _a, _b, _c, _d;
|
|
306
|
+
navRectRef.value = navRect;
|
|
307
|
+
titleRectRef.value = titleRects;
|
|
308
|
+
if (navRectRef.value) {
|
|
309
|
+
if (props.direction === "vertical") {
|
|
310
|
+
const titlesTotalHeight = titleRects.reduce((prev, curr) => prev + (curr == null ? void 0 : curr.height), 0);
|
|
311
|
+
if (titlesTotalHeight > ((_a = navRectRef.value) == null ? void 0 : _a.height)) {
|
|
312
|
+
canShowLabel.value = true;
|
|
313
|
+
} else {
|
|
314
|
+
canShowLabel.value = false;
|
|
315
|
+
}
|
|
316
|
+
} else {
|
|
317
|
+
const titlesTotalWidth = titleRects.reduce((prev, curr) => prev + (curr == null ? void 0 : curr.width), 0);
|
|
318
|
+
if (titlesTotalWidth > ((_b = navRectRef.value) == null ? void 0 : _b.width)) {
|
|
319
|
+
canShowLabel.value = true;
|
|
320
|
+
} else {
|
|
321
|
+
canShowLabel.value = false;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
const titleRect = titleRectRef.value[currentIndex.value];
|
|
326
|
+
let to = 0;
|
|
327
|
+
if (props.direction === "vertical") {
|
|
328
|
+
const top = titleRects.slice(0, currentIndex.value).reduce((prev, curr) => prev + (curr == null ? void 0 : curr.height), 0);
|
|
329
|
+
to = top - (((_c = navRectRef.value) == null ? void 0 : _c.height) - (titleRect == null ? void 0 : titleRect.height)) / 2;
|
|
330
|
+
} else {
|
|
331
|
+
const left = titleRects.slice(0, currentIndex.value).reduce((prev, curr) => prev + (curr == null ? void 0 : curr.width), 0);
|
|
332
|
+
to = left - (((_d = navRectRef.value) == null ? void 0 : _d.width) - (titleRect == null ? void 0 : titleRect.width)) / 2;
|
|
333
|
+
}
|
|
334
|
+
nextTick(() => {
|
|
335
|
+
scrollWithAnimation.value = true;
|
|
336
|
+
});
|
|
337
|
+
scrollDirection(to, props.direction);
|
|
338
|
+
});
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
const scrollDirection = (to, direction) => {
|
|
292
342
|
let count = 0;
|
|
293
|
-
const from = direction === "horizontal" ?
|
|
294
|
-
const frames =
|
|
343
|
+
const from = direction === "horizontal" ? scrollLeft.value : scrollTop.value;
|
|
344
|
+
const frames = 1;
|
|
295
345
|
function animate() {
|
|
296
346
|
if (direction === "horizontal") {
|
|
297
|
-
|
|
347
|
+
scrollLeft.value += (to - from) / frames;
|
|
298
348
|
} else {
|
|
299
|
-
|
|
349
|
+
scrollTop.value += (to - from) / frames;
|
|
300
350
|
}
|
|
301
351
|
if (++count < frames) {
|
|
302
352
|
requestAniFrame(animate);
|
|
@@ -311,12 +361,9 @@ const _sfc_main = create({
|
|
|
311
361
|
renderTitles(vnodes);
|
|
312
362
|
}
|
|
313
363
|
findTabsIndex(props.modelValue);
|
|
314
|
-
|
|
364
|
+
setTimeout(() => {
|
|
315
365
|
scrollIntoView();
|
|
316
|
-
});
|
|
317
|
-
};
|
|
318
|
-
const onStickyScroll = (params) => {
|
|
319
|
-
stickyFixed = params.fixed;
|
|
366
|
+
}, 500);
|
|
320
367
|
};
|
|
321
368
|
watch(
|
|
322
369
|
() => {
|
|
@@ -327,22 +374,11 @@ const _sfc_main = create({
|
|
|
327
374
|
init(vnodes);
|
|
328
375
|
}
|
|
329
376
|
);
|
|
330
|
-
const getScrollTopRoot = () => {
|
|
331
|
-
return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
|
332
|
-
};
|
|
333
377
|
watch(
|
|
334
378
|
() => props.modelValue,
|
|
335
379
|
(value) => {
|
|
336
380
|
findTabsIndex(value);
|
|
337
381
|
scrollIntoView();
|
|
338
|
-
if (stickyFixed) {
|
|
339
|
-
let top = useRect(container.value).top + getScrollTopRoot();
|
|
340
|
-
let value2 = Math.ceil(top - props.top);
|
|
341
|
-
window.scrollTo({
|
|
342
|
-
top: value2,
|
|
343
|
-
behavior: "smooth"
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
382
|
}
|
|
347
383
|
);
|
|
348
384
|
onMounted(init);
|
|
@@ -356,28 +392,10 @@ const _sfc_main = create({
|
|
|
356
392
|
},
|
|
357
393
|
next: () => {
|
|
358
394
|
currentIndex.value += 1;
|
|
359
|
-
const nextDisabled = titles.value[currentIndex.value].disabled;
|
|
360
|
-
if (tabMethods.isEnd() && nextDisabled) {
|
|
361
|
-
tabMethods.prev();
|
|
362
|
-
return;
|
|
363
|
-
}
|
|
364
|
-
if (nextDisabled && currentIndex.value < titles.value.length - 1) {
|
|
365
|
-
tabMethods.next();
|
|
366
|
-
return;
|
|
367
|
-
}
|
|
368
395
|
tabMethods.updateValue(titles.value[currentIndex.value]);
|
|
369
396
|
},
|
|
370
397
|
prev: () => {
|
|
371
398
|
currentIndex.value -= 1;
|
|
372
|
-
const prevDisabled = titles.value[currentIndex.value].disabled;
|
|
373
|
-
if (tabMethods.isBegin() && prevDisabled) {
|
|
374
|
-
tabMethods.next();
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
if (prevDisabled && currentIndex.value > 0) {
|
|
378
|
-
tabMethods.prev();
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
399
|
tabMethods.updateValue(titles.value[currentIndex.value]);
|
|
382
400
|
},
|
|
383
401
|
updateValue: (item) => {
|
|
@@ -396,7 +414,7 @@ const _sfc_main = create({
|
|
|
396
414
|
titleRef.value[index] = el;
|
|
397
415
|
}
|
|
398
416
|
};
|
|
399
|
-
const { tabsContentRef, touchState, touchMethods } = useTabContentTouch(props, tabMethods);
|
|
417
|
+
const { tabsContentRef, touchState, touchMethods } = useTabContentTouch(props, tabMethods, Taro, useTaroRect);
|
|
400
418
|
const contentStyle = computed(() => {
|
|
401
419
|
let offsetPercent = currentIndex.value * 100;
|
|
402
420
|
if (touchState.moving) {
|
|
@@ -431,114 +449,92 @@ const _sfc_main = create({
|
|
|
431
449
|
return { paddingLeft: px, paddingRight: px };
|
|
432
450
|
});
|
|
433
451
|
return __spreadValues(__spreadValues({
|
|
434
|
-
navRef,
|
|
435
|
-
tabsContentRef,
|
|
436
452
|
titles,
|
|
453
|
+
tabsContentRef,
|
|
437
454
|
contentStyle,
|
|
438
455
|
tabsNavStyle,
|
|
439
456
|
titleStyle,
|
|
440
457
|
tabsActiveStyle,
|
|
441
458
|
container,
|
|
459
|
+
scrollLeft,
|
|
460
|
+
scrollTop,
|
|
461
|
+
getScrollX,
|
|
442
462
|
getScrollY,
|
|
443
|
-
|
|
463
|
+
scrollWithAnimation,
|
|
464
|
+
canShowLabel,
|
|
465
|
+
refRandomId
|
|
444
466
|
}, tabMethods), touchMethods);
|
|
445
467
|
}
|
|
446
468
|
});
|
|
447
469
|
const _hoisted_1 = ["onClick"];
|
|
448
|
-
const _hoisted_2 =
|
|
470
|
+
const _hoisted_2 = {
|
|
471
|
+
key: 0,
|
|
472
|
+
class: "nut-tabs__titles-placeholder"
|
|
473
|
+
};
|
|
474
|
+
const _hoisted_3 = ["id"];
|
|
449
475
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
450
476
|
const _component_JoySmile = resolveComponent("JoySmile");
|
|
451
|
-
const
|
|
477
|
+
const _component_nut_scroll_view = resolveComponent("nut-scroll-view");
|
|
452
478
|
return openBlock(), createElementBlock("view", {
|
|
453
479
|
ref: "container",
|
|
454
480
|
class: normalizeClass(["nut-tabs", [_ctx.direction]])
|
|
455
481
|
}, [
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
482
|
+
createVNode(_component_nut_scroll_view, {
|
|
483
|
+
id: `nut-tabs__titles_${_ctx.refRandomId}`,
|
|
484
|
+
"scroll-x": _ctx.getScrollX,
|
|
485
|
+
"scroll-y": _ctx.getScrollY,
|
|
486
|
+
"scroll-with-animation": _ctx.scrollWithAnimation,
|
|
487
|
+
"scroll-left": _ctx.scrollLeft,
|
|
488
|
+
"scroll-top": _ctx.scrollTop,
|
|
489
|
+
"enable-flex": true,
|
|
490
|
+
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
491
|
+
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
461
492
|
}, {
|
|
462
493
|
default: withCtx(() => [
|
|
463
494
|
createElementVNode("view", {
|
|
464
|
-
|
|
465
|
-
class: normalizeClass(["nut-tabs__titles", {
|
|
466
|
-
"nut-tabs__titles-left": _ctx.align === "left",
|
|
467
|
-
[_ctx.type]: _ctx.type,
|
|
468
|
-
scrollable: _ctx.titleScroll,
|
|
469
|
-
[_ctx.size]: _ctx.size
|
|
470
|
-
}]),
|
|
471
|
-
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
495
|
+
class: normalizeClass(["nut-tabs__list", { "nut-tabs__titles-left": _ctx.align === "left" }])
|
|
472
496
|
}, [
|
|
473
|
-
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
"nut-tabs__titles-item
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
485
|
-
key: 0,
|
|
486
|
-
class: "nut-tabs__titles-item__line",
|
|
487
|
-
style: normalizeStyle(_ctx.tabsActiveStyle)
|
|
488
|
-
}, null, 4)) : createCommentVNode("", true),
|
|
489
|
-
_ctx.type == "smile" ? (openBlock(), createElementBlock("view", {
|
|
490
|
-
key: 1,
|
|
491
|
-
class: "nut-tabs__titles-item__smile",
|
|
492
|
-
style: normalizeStyle(_ctx.tabsActiveStyle)
|
|
497
|
+
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
498
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.titles, (item, index) => {
|
|
499
|
+
return openBlock(), createElementBlock("view", {
|
|
500
|
+
key: item.paneKey,
|
|
501
|
+
class: normalizeClass(["nut-tabs__titles-item taro", {
|
|
502
|
+
"nut-tabs__titles-item-left": _ctx.align === "left",
|
|
503
|
+
active: item.paneKey == _ctx.modelValue,
|
|
504
|
+
disabled: item.disabled
|
|
505
|
+
}]),
|
|
506
|
+
style: normalizeStyle(_ctx.titleStyle),
|
|
507
|
+
onClick: ($event) => _ctx.tabChange(item, index)
|
|
493
508
|
}, [
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
509
|
+
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
510
|
+
key: 0,
|
|
511
|
+
class: "nut-tabs__titles-item__line",
|
|
512
|
+
style: normalizeStyle(_ctx.tabsActiveStyle)
|
|
513
|
+
}, null, 4)) : createCommentVNode("", true),
|
|
514
|
+
_cache[4] || (_cache[4] = createTextVNode()),
|
|
515
|
+
_ctx.type == "smile" ? (openBlock(), createElementBlock("view", {
|
|
516
|
+
key: 1,
|
|
517
|
+
class: "nut-tabs__titles-item__smile",
|
|
518
|
+
style: normalizeStyle(_ctx.tabsActiveStyle)
|
|
519
|
+
}, [
|
|
520
|
+
createVNode(_component_JoySmile, { color: _ctx.color }, null, 8, ["color"])
|
|
521
|
+
], 4)) : createCommentVNode("", true),
|
|
522
|
+
_cache[5] || (_cache[5] = createTextVNode()),
|
|
523
|
+
createElementVNode("view", {
|
|
524
|
+
class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis }])
|
|
525
|
+
}, toDisplayString(item.title), 3)
|
|
526
|
+
], 14, _hoisted_1);
|
|
527
|
+
}), 128)),
|
|
528
|
+
_cache[6] || (_cache[6] = createTextVNode()),
|
|
529
|
+
_ctx.canShowLabel && _ctx.titleScroll ? (openBlock(), createElementBlock("view", _hoisted_2)) : createCommentVNode("", true)
|
|
530
|
+
], 64))
|
|
531
|
+
], 2)
|
|
502
532
|
]),
|
|
503
533
|
_: 3
|
|
504
|
-
}, 8, ["
|
|
505
|
-
|
|
506
|
-
ref: "navRef",
|
|
507
|
-
class: normalizeClass(["nut-tabs__titles", { "nut-tabs__titles-left": _ctx.align === "left", [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
508
|
-
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
509
|
-
}, [
|
|
510
|
-
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
511
|
-
return openBlock(), createElementBlock("view", {
|
|
512
|
-
key: item.paneKey,
|
|
513
|
-
ref_for: true,
|
|
514
|
-
ref: (e) => _ctx.setTabItemRef(e, index),
|
|
515
|
-
class: normalizeClass(["nut-tabs__titles-item", {
|
|
516
|
-
"nut-tabs__titles-item-left": _ctx.align === "left",
|
|
517
|
-
active: item.paneKey == _ctx.modelValue,
|
|
518
|
-
disabled: item.disabled
|
|
519
|
-
}]),
|
|
520
|
-
style: normalizeStyle(_ctx.titleStyle),
|
|
521
|
-
onClick: ($event) => _ctx.tabChange(item, index)
|
|
522
|
-
}, [
|
|
523
|
-
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
524
|
-
key: 0,
|
|
525
|
-
class: "nut-tabs__titles-item__line",
|
|
526
|
-
style: normalizeStyle(_ctx.tabsActiveStyle)
|
|
527
|
-
}, null, 4)) : createCommentVNode("", true),
|
|
528
|
-
_ctx.type == "smile" ? (openBlock(), createElementBlock("view", {
|
|
529
|
-
key: 1,
|
|
530
|
-
class: "nut-tabs__titles-item__smile",
|
|
531
|
-
style: normalizeStyle(_ctx.tabsActiveStyle)
|
|
532
|
-
}, [
|
|
533
|
-
createVNode(_component_JoySmile, { color: _ctx.color }, null, 8, ["color"])
|
|
534
|
-
], 4)) : createCommentVNode("", true),
|
|
535
|
-
createElementVNode("view", {
|
|
536
|
-
class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis }])
|
|
537
|
-
}, toDisplayString(item.title), 3)
|
|
538
|
-
], 14, _hoisted_2);
|
|
539
|
-
}), 128))
|
|
540
|
-
], 6)),
|
|
534
|
+
}, 8, ["id", "scroll-x", "scroll-y", "scroll-with-animation", "scroll-left", "scroll-top", "class", "style"]),
|
|
535
|
+
_cache[7] || (_cache[7] = createTextVNode()),
|
|
541
536
|
createElementVNode("view", {
|
|
537
|
+
id: "tabsContentRef-" + _ctx.refRandomId,
|
|
542
538
|
ref: "tabsContentRef",
|
|
543
539
|
class: "nut-tabs__content",
|
|
544
540
|
style: normalizeStyle(_ctx.contentStyle),
|
|
@@ -548,7 +544,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
548
544
|
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
549
545
|
}, [
|
|
550
546
|
renderSlot(_ctx.$slots, "default")
|
|
551
|
-
],
|
|
547
|
+
], 44, _hoisted_3)
|
|
552
548
|
], 2);
|
|
553
549
|
}
|
|
554
550
|
const NutTabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
package/dist/packages/tag/Tag.js
CHANGED
|
@@ -17,13 +17,13 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, unref, withModifiers, createCommentVNode } from "vue";
|
|
21
|
-
import { Close } from "@nutui/icons-vue";
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createTextVNode, createBlock, unref, withModifiers, createCommentVNode } from "vue";
|
|
21
|
+
import { Close } from "@nutui/icons-vue-taro";
|
|
22
22
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
23
23
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
24
24
|
name: "NutTag"
|
|
25
25
|
}), {
|
|
26
|
-
__name: "tag",
|
|
26
|
+
__name: "tag.taro",
|
|
27
27
|
props: {
|
|
28
28
|
color: { default: "" },
|
|
29
29
|
textColor: { default: "" },
|
|
@@ -75,11 +75,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
75
75
|
onClick
|
|
76
76
|
}, [
|
|
77
77
|
renderSlot(_ctx.$slots, "default"),
|
|
78
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
78
79
|
_ctx.closeable ? (openBlock(), createBlock(unref(Close), {
|
|
79
80
|
key: 0,
|
|
80
81
|
class: "nut-tag--close",
|
|
81
|
-
|
|
82
|
-
height: "12px",
|
|
82
|
+
size: "12px",
|
|
83
83
|
onClick: withModifiers(onClose, ["stop"])
|
|
84
84
|
})) : createCommentVNode("", true)
|
|
85
85
|
], 6);
|