@nutui/nutui 4.3.15-beta.1 → 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/dist/nutui.es.js +1 -13
- 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 -97
- package/dist/packages/dialog/index.mjs +1 -2
- package/dist/packages/divider/Divider.js +1 -1
- package/dist/packages/drag/Drag.js +91 -55
- 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 +376 -775
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/themes/jda.scss +0 -1
- 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/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 +19 -96
- package/dist/nutui.js +0 -15856
- 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 -45
- 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
|
@@ -17,32 +17,31 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref, computed,
|
|
21
|
-
import {
|
|
22
|
-
import { Top } from "@nutui/icons-vue";
|
|
20
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, createVNode, normalizeStyle, withCtx, renderSlot, createTextVNode, createElementVNode, normalizeClass, withModifiers, unref } from "vue";
|
|
21
|
+
import { _ as _sfc_main$1 } from "../index.taro.vue_vue_type_script_setup_true_lang-JJ7hr71Y.js";
|
|
22
|
+
import { Top } from "@nutui/icons-vue-taro";
|
|
23
23
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
24
24
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
25
|
name: "NutBacktop"
|
|
26
26
|
}), {
|
|
27
|
-
__name: "backtop",
|
|
27
|
+
__name: "backtop.taro",
|
|
28
28
|
props: {
|
|
29
|
+
height: { default: "100vh" },
|
|
29
30
|
bottom: { default: 20 },
|
|
30
31
|
right: { default: 10 },
|
|
31
|
-
elId: { default: "body" },
|
|
32
32
|
distance: { default: 200 },
|
|
33
|
-
zIndex: { default: 10 }
|
|
34
|
-
isAnimation: { type: Boolean, default: true },
|
|
35
|
-
duration: { default: 1e3 }
|
|
33
|
+
zIndex: { default: 10 }
|
|
36
34
|
},
|
|
37
35
|
emits: ["click"],
|
|
38
36
|
setup(__props, { emit: __emit }) {
|
|
39
37
|
const props = __props;
|
|
40
38
|
const emit = __emit;
|
|
41
39
|
const backTop = ref(false);
|
|
42
|
-
const scrollTop = ref(
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
const scrollTop = ref(1);
|
|
41
|
+
const scroll = (e) => {
|
|
42
|
+
scrollTop.value = 2;
|
|
43
|
+
backTop.value = e.detail.scrollTop >= props.distance;
|
|
44
|
+
};
|
|
46
45
|
const classes = computed(() => {
|
|
47
46
|
const prefixCls = "nut-backtop";
|
|
48
47
|
return {
|
|
@@ -57,84 +56,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
57
56
|
zIndex: props.zIndex
|
|
58
57
|
};
|
|
59
58
|
});
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
scrollTop.value = scrollEl.value.scrollY;
|
|
63
|
-
} else {
|
|
64
|
-
scrollTop.value = scrollEl.value.scrollTop;
|
|
65
|
-
}
|
|
66
|
-
backTop.value = scrollTop.value >= props.distance;
|
|
67
|
-
}
|
|
68
|
-
function scroll(y = 0) {
|
|
69
|
-
if (scrollEl.value instanceof Window) {
|
|
70
|
-
window.scrollTo(0, y);
|
|
71
|
-
} else {
|
|
72
|
-
scrollEl.value.scrollTop = y;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function scrollAnimation() {
|
|
76
|
-
let cid = requestAniFrame(function fn() {
|
|
77
|
-
var t = props.duration - Math.max(0, startTime.value - +/* @__PURE__ */ new Date() + props.duration);
|
|
78
|
-
var y = t * -scrollTop.value / props.duration + scrollTop.value;
|
|
79
|
-
scroll(y);
|
|
80
|
-
cid = requestAniFrame(fn);
|
|
81
|
-
if (t == props.duration || y == 0) {
|
|
82
|
-
cancelRaf(cid);
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
function addEventListener() {
|
|
87
|
-
scrollEl.value.addEventListener("scroll", scrollListener, false);
|
|
88
|
-
scrollEl.value.addEventListener("resize", scrollListener, false);
|
|
89
|
-
}
|
|
90
|
-
function removeEventListener() {
|
|
91
|
-
scrollEl.value.removeEventListener("scroll", scrollListener, false);
|
|
92
|
-
scrollEl.value.removeEventListener("resize", scrollListener, false);
|
|
93
|
-
}
|
|
94
|
-
function handleClick(e) {
|
|
95
|
-
startTime.value = +/* @__PURE__ */ new Date();
|
|
96
|
-
props.isAnimation && props.duration > 0 ? scrollAnimation() : scroll();
|
|
59
|
+
const handleClick = (e) => {
|
|
60
|
+
scrollTop.value = 1;
|
|
97
61
|
emit("click", e);
|
|
98
|
-
}
|
|
99
|
-
function init() {
|
|
100
|
-
if (props.elId && document.getElementById(props.elId)) {
|
|
101
|
-
scrollEl.value = document.getElementById(props.elId);
|
|
102
|
-
}
|
|
103
|
-
addEventListener();
|
|
104
|
-
}
|
|
105
|
-
onMounted(() => {
|
|
106
|
-
if (props.distance == 0) {
|
|
107
|
-
backTop.value = true;
|
|
108
|
-
}
|
|
109
|
-
init();
|
|
110
|
-
});
|
|
111
|
-
onUnmounted(() => {
|
|
112
|
-
removeEventListener();
|
|
113
|
-
});
|
|
114
|
-
onActivated(() => {
|
|
115
|
-
if (keepAlive.value) {
|
|
116
|
-
keepAlive.value = false;
|
|
117
|
-
init();
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
onDeactivated(() => {
|
|
121
|
-
keepAlive.value = true;
|
|
122
|
-
removeEventListener();
|
|
123
|
-
});
|
|
62
|
+
};
|
|
124
63
|
return (_ctx, _cache) => {
|
|
125
|
-
return openBlock(), createElementBlock("
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
64
|
+
return openBlock(), createElementBlock("view", null, [
|
|
65
|
+
createVNode(_sfc_main$1, {
|
|
66
|
+
"scroll-y": true,
|
|
67
|
+
style: normalizeStyle({ height: _ctx.height }),
|
|
68
|
+
"scroll-top": scrollTop.value,
|
|
69
|
+
"scroll-with-animation": "true",
|
|
70
|
+
onScroll: scroll
|
|
71
|
+
}, {
|
|
72
|
+
default: withCtx(() => [
|
|
73
|
+
renderSlot(_ctx.$slots, "content")
|
|
74
|
+
]),
|
|
75
|
+
_: 3
|
|
76
|
+
}, 8, ["style", "scroll-top"]),
|
|
77
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
78
|
+
createElementVNode("view", {
|
|
79
|
+
class: normalizeClass(classes.value),
|
|
80
|
+
style: normalizeStyle(style.value),
|
|
81
|
+
onClick: withModifiers(handleClick, ["stop"])
|
|
82
|
+
}, [
|
|
83
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
84
|
+
createVNode(unref(Top), {
|
|
85
|
+
width: "19px",
|
|
86
|
+
height: "19px",
|
|
87
|
+
class: "nut-backtop-main"
|
|
88
|
+
})
|
|
89
|
+
])
|
|
90
|
+
], 6)
|
|
91
|
+
]);
|
|
138
92
|
};
|
|
139
93
|
}
|
|
140
94
|
}));
|
|
@@ -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, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, normalizeClass, toDisplayString } from "vue";
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, createTextVNode, normalizeClass, toDisplayString } from "vue";
|
|
21
21
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
22
22
|
const _hoisted_1 = { class: "nut-badge" };
|
|
23
23
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
24
24
|
name: "NutBadge"
|
|
25
25
|
}), {
|
|
26
|
-
__name: "badge",
|
|
26
|
+
__name: "badge.taro",
|
|
27
27
|
props: {
|
|
28
28
|
value: {},
|
|
29
29
|
max: { default: 1e4 },
|
|
@@ -64,7 +64,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
64
64
|
], 4), [
|
|
65
65
|
[vShow, !_ctx.hidden && !_ctx.dot && _ctx.$slots.icon]
|
|
66
66
|
]),
|
|
67
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
67
68
|
renderSlot(_ctx.$slots, "default"),
|
|
69
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
68
70
|
withDirectives(createElementVNode("view", {
|
|
69
71
|
class: normalizeClass(["nut-badge__content nut-badge__content--sup", { "nut-badge__content--dot": _ctx.dot, "nut-badge__content--bubble": !_ctx.dot && _ctx.bubble }]),
|
|
70
72
|
style: normalizeStyle(style.value)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useSlots, ref,
|
|
1
|
+
import { useSlots, ref, computed, onMounted, watch, reactive, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
3
|
+
import Taro from "@tarojs/taro";
|
|
3
4
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
4
|
-
const { create } = createComponent("barrage");
|
|
5
|
+
const { componentName, create } = createComponent("barrage");
|
|
5
6
|
const _sfc_main = create({
|
|
6
|
-
name: "barrage",
|
|
7
7
|
props: {
|
|
8
8
|
danmu: {
|
|
9
9
|
type: Array,
|
|
@@ -30,160 +30,106 @@ const _sfc_main = create({
|
|
|
30
30
|
default: true
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
+
emits: ["click"],
|
|
33
34
|
setup(props) {
|
|
34
35
|
const classTime = (/* @__PURE__ */ new Date()).getTime();
|
|
35
36
|
const slotDefault = !!useSlots().default;
|
|
36
|
-
|
|
37
|
-
let dmContainer = ref(document.createElement("div"));
|
|
38
|
-
let timer = null;
|
|
37
|
+
const timeId = ref((/* @__PURE__ */ new Date()).getTime());
|
|
39
38
|
const danmuList = ref(props.danmu);
|
|
39
|
+
const danmuListSlots = ref([]);
|
|
40
40
|
const rows = ref(props.rows);
|
|
41
41
|
const top = ref(props.top);
|
|
42
|
-
const index2 = ref(0);
|
|
43
42
|
const speeds = props.speeds;
|
|
44
|
-
const
|
|
43
|
+
const classes = computed(() => {
|
|
44
|
+
const prefixCls = componentName;
|
|
45
|
+
return {
|
|
46
|
+
[prefixCls]: true,
|
|
47
|
+
["nut-barrage--dmBody" + timeId.value]: true
|
|
48
|
+
};
|
|
49
|
+
});
|
|
45
50
|
onMounted(() => {
|
|
46
|
-
|
|
51
|
+
var _a;
|
|
47
52
|
if (slotDefault) {
|
|
48
|
-
document.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
index2.value = 0;
|
|
52
|
-
eleSlot("hidden");
|
|
53
|
-
} else if (document.visibilityState === "visible") {
|
|
54
|
-
init();
|
|
55
|
-
}
|
|
56
|
-
});
|
|
53
|
+
const list = document.getElementsByClassName("nut-barrage__slotBody" + classTime)[0].getElementsByClassName("nut-barrage__item");
|
|
54
|
+
let childrens = ((_a = list == null ? void 0 : list[0]) == null ? void 0 : _a.children) || [];
|
|
55
|
+
danmuList.value = childrens;
|
|
57
56
|
}
|
|
57
|
+
runStep();
|
|
58
58
|
});
|
|
59
|
-
onUnmounted(() => {
|
|
60
|
-
danmuList.value = [];
|
|
61
|
-
clearTime();
|
|
62
|
-
});
|
|
63
|
-
const init = () => {
|
|
64
|
-
danmuCWidth.value = dmBody.value.offsetWidth;
|
|
65
|
-
if (slotDefault) {
|
|
66
|
-
eleSlot("init");
|
|
67
|
-
}
|
|
68
|
-
setTimeout(() => {
|
|
69
|
-
var _a;
|
|
70
|
-
(_a = dmBody.value) == null ? void 0 : _a.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
|
|
71
|
-
run();
|
|
72
|
-
}, 300);
|
|
73
|
-
};
|
|
74
|
-
const eleSlot = (flag) => {
|
|
75
|
-
var _a;
|
|
76
|
-
const list = document.getElementsByClassName("slotBody" + classTime);
|
|
77
|
-
let childrens = ((_a = list == null ? void 0 : list[0]) == null ? void 0 : _a.children) || [];
|
|
78
|
-
const dmList = [];
|
|
79
|
-
if (childrens) {
|
|
80
|
-
Array.from(childrens).forEach((item) => {
|
|
81
|
-
if (flag == "init") {
|
|
82
|
-
item.style.opacity = "0";
|
|
83
|
-
dmList.push(item);
|
|
84
|
-
} else {
|
|
85
|
-
item.classList = "";
|
|
86
|
-
item.style = {};
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
if (flag == "init") {
|
|
91
|
-
danmuList.value = dmList;
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
const clearTime = () => {
|
|
95
|
-
if (timer) {
|
|
96
|
-
clearTimeout(timer);
|
|
97
|
-
timer = null;
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
59
|
watch(
|
|
101
60
|
() => props.danmu,
|
|
102
61
|
(newValue) => {
|
|
103
|
-
|
|
104
|
-
danmuList.value = [...newValue];
|
|
105
|
-
}
|
|
62
|
+
danmuList.value = [...newValue];
|
|
106
63
|
}
|
|
107
64
|
);
|
|
108
65
|
const add = (word) => {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
66
|
+
danmuList.value = [...danmuList.value, word];
|
|
67
|
+
runStep();
|
|
68
|
+
};
|
|
69
|
+
const getNode = (index) => {
|
|
70
|
+
const query = Taro.createSelectorQuery();
|
|
71
|
+
setTimeout(() => {
|
|
72
|
+
let width = 100;
|
|
73
|
+
query.select(".nut-barrage--dmBody" + timeId.value).boundingClientRect((rec) => {
|
|
74
|
+
width = (rec == null ? void 0 : rec.width) || 300;
|
|
75
|
+
});
|
|
76
|
+
query.select(".nut-barrage__item" + index).boundingClientRect((recs) => {
|
|
77
|
+
let height = recs == null ? void 0 : recs.height;
|
|
78
|
+
let nodeTop = index % rows.value * (height + top.value) + 20 + "px";
|
|
79
|
+
styleInfo(index, nodeTop, width);
|
|
80
|
+
}).exec();
|
|
81
|
+
}, 500);
|
|
115
82
|
};
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}, props.frequency);
|
|
83
|
+
const runStep = () => {
|
|
84
|
+
danmuList.value.forEach((item, index) => {
|
|
85
|
+
getNode(index);
|
|
86
|
+
});
|
|
121
87
|
};
|
|
122
|
-
|
|
88
|
+
let styleList = reactive([]);
|
|
89
|
+
const styleInfo = (index, nodeTop, width) => {
|
|
123
90
|
var _a;
|
|
124
|
-
|
|
125
|
-
let
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
91
|
+
let timeIndex = index - rows.value > 0 ? index - rows.value : 0;
|
|
92
|
+
let list = styleList;
|
|
93
|
+
let time = list[timeIndex] ? Number(list[timeIndex]["--time"]) : 0;
|
|
94
|
+
let obj = {
|
|
95
|
+
top: nodeTop,
|
|
96
|
+
"--time": `${props.frequency * index + time}`,
|
|
97
|
+
animationDuration: `${speeds}ms`,
|
|
98
|
+
animationIterationCount: `${props.loop ? "infinite" : 1}`,
|
|
99
|
+
animationDelay: `${props.frequency * index + time}ms`,
|
|
100
|
+
"--move-distance": `-${width}px`
|
|
101
|
+
};
|
|
102
|
+
if (slotDefault && ((_a = danmuList.value[index]) == null ? void 0 : _a.el)) {
|
|
103
|
+
let orginalSty = danmuList.value[index].el.style;
|
|
104
|
+
danmuList.value[index].el.style = Object.assign(orginalSty, obj);
|
|
129
105
|
} else {
|
|
130
|
-
|
|
131
|
-
el.classList.add("nut-barrage__item");
|
|
132
|
-
dmContainer.value.appendChild(el);
|
|
106
|
+
styleList.push(obj);
|
|
133
107
|
}
|
|
134
|
-
nextTick(() => {
|
|
135
|
-
var _a2;
|
|
136
|
-
const height = el.offsetHeight;
|
|
137
|
-
(_a2 = el == null ? void 0 : el.classList) == null ? void 0 : _a2.add("move");
|
|
138
|
-
el.style.animationDuration = `${speeds}ms`;
|
|
139
|
-
el.style.top = _index % rows.value * (height + top.value) + 20 + "px";
|
|
140
|
-
el.style.opacity = "1";
|
|
141
|
-
if (!slotDefault) {
|
|
142
|
-
const width = el.offsetWidth;
|
|
143
|
-
el.style.width = width + 20 + "px";
|
|
144
|
-
}
|
|
145
|
-
el.addEventListener("animationend", () => {
|
|
146
|
-
if (slotDefault) {
|
|
147
|
-
el.classList.remove("move");
|
|
148
|
-
} else {
|
|
149
|
-
dmContainer.value.removeChild(el);
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
if (!props.loop && index2.value >= danmuList.value.length - 1) {
|
|
153
|
-
return;
|
|
154
|
-
}
|
|
155
|
-
index2.value++;
|
|
156
|
-
if (index2.value >= danmuList.value.length) {
|
|
157
|
-
index2.value = 0;
|
|
158
|
-
}
|
|
159
|
-
el.removeEventListener("animationend", () => {
|
|
160
|
-
});
|
|
161
|
-
run();
|
|
162
|
-
});
|
|
163
108
|
};
|
|
164
|
-
return { classTime, danmuList,
|
|
109
|
+
return { classTime, classes, danmuList, add, styleList, danmuListSlots };
|
|
165
110
|
}
|
|
166
111
|
});
|
|
167
|
-
const _hoisted_1 = {
|
|
168
|
-
ref: "dmBody",
|
|
169
|
-
class: "nut-barrage"
|
|
170
|
-
};
|
|
112
|
+
const _hoisted_1 = { ref: "dmContainer" };
|
|
171
113
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
172
|
-
return openBlock(), createElementBlock("
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
key: 0,
|
|
179
|
-
class: normalizeClass(["slotBody", "slotBody" + _ctx.classTime])
|
|
114
|
+
return openBlock(), createElementBlock("view", {
|
|
115
|
+
class: normalizeClass(_ctx.classes)
|
|
116
|
+
}, [
|
|
117
|
+
createElementVNode("div", _hoisted_1, [
|
|
118
|
+
createElementVNode("div", {
|
|
119
|
+
class: normalizeClass(["nut-barrage__slotBody" + _ctx.classTime])
|
|
180
120
|
}, [
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
121
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.danmuList, (item, index) => {
|
|
122
|
+
return openBlock(), createElementBlock("view", {
|
|
123
|
+
key: "danmu" + index,
|
|
124
|
+
class: normalizeClass(["nut-barrage__item", "nut-barrage__item" + index, "move"]),
|
|
125
|
+
style: normalizeStyle(_ctx.styleList[index])
|
|
126
|
+
}, toDisplayString(item.length > 8 ? item.substr(0, 8) + "..." : item), 7);
|
|
127
|
+
}), 128))
|
|
128
|
+
], 2)
|
|
129
|
+
], 512)
|
|
130
|
+
], 2);
|
|
185
131
|
}
|
|
186
|
-
const
|
|
132
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
187
133
|
export {
|
|
188
|
-
|
|
134
|
+
index_taro as default
|
|
189
135
|
};
|
|
@@ -17,14 +17,16 @@ 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, createElementVNode, createBlock,
|
|
21
|
-
import { Loading } from "@nutui/icons-vue";
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, unref, createElementVNode, createBlock, createCommentVNode, createTextVNode, renderSlot } from "vue";
|
|
21
|
+
import { Loading } from "@nutui/icons-vue-taro";
|
|
22
|
+
import Taro from "@tarojs/taro";
|
|
22
23
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
23
|
-
const _hoisted_1 =
|
|
24
|
+
const _hoisted_1 = ["type", "formType"];
|
|
25
|
+
const _hoisted_2 = { class: "nut-button__wrap" };
|
|
24
26
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
27
|
name: "NutButton"
|
|
26
28
|
}), {
|
|
27
|
-
__name: "button",
|
|
29
|
+
__name: "button.taro",
|
|
28
30
|
props: {
|
|
29
31
|
color: { default: "" },
|
|
30
32
|
shape: { default: "round" },
|
|
@@ -33,7 +35,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
33
35
|
disabled: { type: Boolean, default: false },
|
|
34
36
|
type: { default: "default" },
|
|
35
37
|
size: { default: "normal" },
|
|
36
|
-
block: { type: Boolean, default: false }
|
|
38
|
+
block: { type: Boolean, default: false },
|
|
39
|
+
formType: { default: "button" }
|
|
37
40
|
},
|
|
38
41
|
emits: ["click"],
|
|
39
42
|
setup(__props, { emit: __emit }) {
|
|
@@ -73,17 +76,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
73
76
|
return style;
|
|
74
77
|
});
|
|
75
78
|
return (_ctx, _cache) => {
|
|
76
|
-
return openBlock(), createElementBlock("
|
|
79
|
+
return openBlock(), createElementBlock("button", {
|
|
77
80
|
class: normalizeClass(classes.value),
|
|
78
81
|
style: normalizeStyle(getStyle.value),
|
|
82
|
+
type: unref(Taro).getEnv() === unref(Taro).ENV_TYPE.WEB ? _ctx.formType : void 0,
|
|
83
|
+
formType: _ctx.formType === "button" ? void 0 : _ctx.formType,
|
|
79
84
|
onClick: handleClick
|
|
80
85
|
}, [
|
|
81
|
-
createElementVNode("view",
|
|
86
|
+
createElementVNode("view", _hoisted_2, [
|
|
82
87
|
_ctx.loading ? (openBlock(), createBlock(unref(Loading), {
|
|
83
88
|
key: 0,
|
|
84
89
|
class: "nut-icon-loading"
|
|
85
90
|
})) : createCommentVNode("", true),
|
|
91
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
86
92
|
_ctx.$slots.icon && !_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 1 }) : createCommentVNode("", true),
|
|
93
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
87
94
|
_ctx.$slots.default ? (openBlock(), createElementBlock("view", {
|
|
88
95
|
key: 2,
|
|
89
96
|
class: normalizeClass({ "nut-button__text": _ctx.$slots.icon || _ctx.loading })
|
|
@@ -91,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
91
98
|
renderSlot(_ctx.$slots, "default")
|
|
92
99
|
], 2)) : createCommentVNode("", true)
|
|
93
100
|
])
|
|
94
|
-
],
|
|
101
|
+
], 14, _hoisted_1);
|
|
95
102
|
};
|
|
96
103
|
}
|
|
97
104
|
}));
|