@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
package/dist/packages/sku/Sku.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
|
|
2
2
|
import { Price as _sfc_main$5 } from "../price/Price.js";
|
|
3
3
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
4
|
-
import { u as useLocale } from "../index-
|
|
4
|
+
import { u as useLocale } from "../index-IxPZmHlb.js";
|
|
5
5
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
6
6
|
import { InputNumber as _sfc_main$6 } from "../inputnumber/InputNumber.js";
|
|
7
|
-
import { N as NutPopup } from "../index-
|
|
7
|
+
import { N as NutPopup } from "../index.taro-CNxLoYer.js";
|
|
8
|
+
import { _ as _sfc_main$7 } from "../index.taro.vue_vue_type_script_setup_true_lang-JJ7hr71Y.js";
|
|
8
9
|
const { create: create$4 } = createComponent("sku-header");
|
|
9
10
|
const cN$1 = "NutSkuHeader";
|
|
10
11
|
const _sfc_main$4 = create$4({
|
|
@@ -27,7 +28,7 @@ const _sfc_main$4 = create$4({
|
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
30
|
const _hoisted_1$4 = { class: "nut-sku-header" };
|
|
30
|
-
const _hoisted_2$
|
|
31
|
+
const _hoisted_2$3 = ["src"];
|
|
31
32
|
const _hoisted_3$3 = { class: "nut-sku-header-right" };
|
|
32
33
|
const _hoisted_4$3 = {
|
|
33
34
|
key: 3,
|
|
@@ -39,7 +40,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39
40
|
createElementVNode("img", {
|
|
40
41
|
class: "nut-sku-header-img",
|
|
41
42
|
src: _ctx.goods.imagePath
|
|
42
|
-
}, null, 8, _hoisted_2$
|
|
43
|
+
}, null, 8, _hoisted_2$3),
|
|
44
|
+
_cache[2] || (_cache[2] = createTextVNode()),
|
|
43
45
|
createElementVNode("view", _hoisted_3$3, [
|
|
44
46
|
_ctx.getSlots("sku-header-price") ? renderSlot(_ctx.$slots, "sku-header-price", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
|
|
45
47
|
key: 1,
|
|
@@ -47,7 +49,9 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
47
49
|
"need-symbol": true,
|
|
48
50
|
thousands: false
|
|
49
51
|
}, null, 8, ["price"])),
|
|
52
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
50
53
|
_ctx.getSlots("sku-header-extra") ? renderSlot(_ctx.$slots, "sku-header-extra", { key: 2 }) : createCommentVNode("", true),
|
|
54
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
51
55
|
_ctx.goods.skuId && !_ctx.getSlots("sku-header-extra") ? (openBlock(), createElementBlock("view", _hoisted_4$3, toDisplayString(_ctx.translate("skuId")) + " : " + toDisplayString(_ctx.goods.skuId), 1)) : createCommentVNode("", true)
|
|
52
56
|
])
|
|
53
57
|
]);
|
|
@@ -76,13 +80,13 @@ const _sfc_main$3 = create$3({
|
|
|
76
80
|
skuInfo.value = [].slice.call(props.sku);
|
|
77
81
|
}
|
|
78
82
|
});
|
|
79
|
-
const changeSaleChild = (attrItem,
|
|
83
|
+
const changeSaleChild = (attrItem, index, parentItem, parentIndex) => {
|
|
80
84
|
if (attrItem.checkFlag || attrItem.disable) {
|
|
81
85
|
return;
|
|
82
86
|
}
|
|
83
87
|
emit("selectSku", {
|
|
84
88
|
sku: attrItem,
|
|
85
|
-
skuIndex:
|
|
89
|
+
skuIndex: index,
|
|
86
90
|
parentSku: parentItem,
|
|
87
91
|
parentIndex
|
|
88
92
|
});
|
|
@@ -94,23 +98,24 @@ const _sfc_main$3 = create$3({
|
|
|
94
98
|
}
|
|
95
99
|
});
|
|
96
100
|
const _hoisted_1$3 = { class: "nut-sku-select" };
|
|
97
|
-
const _hoisted_2$
|
|
101
|
+
const _hoisted_2$2 = { class: "nut-sku-select-item-title" };
|
|
98
102
|
const _hoisted_3$2 = { class: "nut-sku-select-item-skus" };
|
|
99
103
|
const _hoisted_4$2 = ["onClick"];
|
|
100
104
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
101
105
|
return openBlock(), createElementBlock("view", _hoisted_1$3, [
|
|
102
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.skuInfo, (item,
|
|
106
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.skuInfo, (item, index) => {
|
|
103
107
|
return openBlock(), createElementBlock("view", {
|
|
104
108
|
key: item.id,
|
|
105
109
|
class: "nut-sku-select-item"
|
|
106
110
|
}, [
|
|
107
|
-
createElementVNode("view", _hoisted_2$
|
|
111
|
+
createElementVNode("view", _hoisted_2$2, toDisplayString(item.name), 1),
|
|
112
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
108
113
|
createElementVNode("view", _hoisted_3$2, [
|
|
109
114
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (itemAttr, itemAttrIndex) => {
|
|
110
115
|
return openBlock(), createElementBlock("view", {
|
|
111
116
|
key: itemAttr.name,
|
|
112
117
|
class: normalizeClass(["nut-sku-select-item-skus-sku", [{ active: !itemAttr.disable && itemAttr.active }, { disable: itemAttr.disable }]]),
|
|
113
|
-
onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item,
|
|
118
|
+
onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index)
|
|
114
119
|
}, toDisplayString(itemAttr.name), 11, _hoisted_4$2);
|
|
115
120
|
}), 128))
|
|
116
121
|
])
|
|
@@ -187,17 +192,19 @@ const _sfc_main$2 = create$2({
|
|
|
187
192
|
}
|
|
188
193
|
});
|
|
189
194
|
const _hoisted_1$2 = { class: "nut-sku-stepper" };
|
|
190
|
-
const _hoisted_2$
|
|
195
|
+
const _hoisted_2$1 = { class: "nut-sku-stepper-title" };
|
|
191
196
|
const _hoisted_3$1 = ["innerHTML"];
|
|
192
197
|
const _hoisted_4$1 = { class: "nut-sku-stepper-count" };
|
|
193
198
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
194
199
|
const _component_nut_input_number = resolveComponent("nut-input-number");
|
|
195
200
|
return openBlock(), createElementBlock("view", _hoisted_1$2, [
|
|
196
|
-
createElementVNode("view", _hoisted_2$
|
|
201
|
+
createElementVNode("view", _hoisted_2$1, toDisplayString(_ctx.stepperTitle), 1),
|
|
202
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
197
203
|
createElementVNode("view", {
|
|
198
204
|
class: "nut-sku-stepper-limit",
|
|
199
205
|
innerHTML: _ctx.getExtraText()
|
|
200
206
|
}, null, 8, _hoisted_3$1),
|
|
207
|
+
_cache[2] || (_cache[2] = createTextVNode()),
|
|
201
208
|
createElementVNode("view", _hoisted_4$1, [
|
|
202
209
|
createVNode(_component_nut_input_number, {
|
|
203
210
|
modelValue: _ctx.goodsCount,
|
|
@@ -265,7 +272,7 @@ const _hoisted_1$1 = {
|
|
|
265
272
|
key: 0,
|
|
266
273
|
class: "nut-sku-operate"
|
|
267
274
|
};
|
|
268
|
-
const _hoisted_2
|
|
275
|
+
const _hoisted_2 = {
|
|
269
276
|
key: 0,
|
|
270
277
|
class: "nut-sku-operate-desc"
|
|
271
278
|
};
|
|
@@ -276,8 +283,10 @@ const _hoisted_3 = {
|
|
|
276
283
|
const _hoisted_4 = ["onClick"];
|
|
277
284
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
278
285
|
return _ctx.btnOptions.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_1$1, [
|
|
279
|
-
_ctx.btnExtraText ? (openBlock(), createElementBlock("view", _hoisted_2
|
|
286
|
+
_ctx.btnExtraText ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.btnExtraText), 1)) : createCommentVNode("", true),
|
|
287
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
280
288
|
renderSlot(_ctx.$slots, "operate-btn"),
|
|
289
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
281
290
|
!_ctx.getSlots("operate-btn") ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
282
291
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.btnOptions, (btn, i) => {
|
|
283
292
|
return openBlock(), createElementBlock("view", {
|
|
@@ -372,7 +381,8 @@ const _sfc_main = create({
|
|
|
372
381
|
SkuSelect,
|
|
373
382
|
SkuStepper,
|
|
374
383
|
SkuOperate,
|
|
375
|
-
NutPopup
|
|
384
|
+
NutPopup,
|
|
385
|
+
NutScrollView: _sfc_main$7
|
|
376
386
|
},
|
|
377
387
|
setup(props, { emit, slots }) {
|
|
378
388
|
const translate = useLocale(cN);
|
|
@@ -445,11 +455,11 @@ const _sfc_main = create({
|
|
|
445
455
|
}
|
|
446
456
|
});
|
|
447
457
|
const _hoisted_1 = { class: "nut-sku" };
|
|
448
|
-
const _hoisted_2 = { class: "nut-sku-content" };
|
|
449
458
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
450
459
|
const _component_sku_header = resolveComponent("sku-header");
|
|
451
460
|
const _component_SkuSelect = resolveComponent("SkuSelect");
|
|
452
461
|
const _component_sku_stepper = resolveComponent("sku-stepper");
|
|
462
|
+
const _component_nut_scroll_view = resolveComponent("nut-scroll-view");
|
|
453
463
|
const _component_sku_operate = resolveComponent("sku-operate");
|
|
454
464
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
455
465
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
@@ -468,6 +478,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
468
478
|
default: withCtx(() => [
|
|
469
479
|
createElementVNode("view", _hoisted_1, [
|
|
470
480
|
renderSlot(_ctx.$slots, "sku-header"),
|
|
481
|
+
_cache[10] || (_cache[10] = createTextVNode()),
|
|
471
482
|
!_ctx.getSlots("sku-header") ? (openBlock(), createBlock(_component_sku_header, {
|
|
472
483
|
key: 0,
|
|
473
484
|
goods: _ctx.goods
|
|
@@ -487,29 +498,42 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
487
498
|
key: "1"
|
|
488
499
|
} : void 0
|
|
489
500
|
]), 1032, ["goods"])) : createCommentVNode("", true),
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
"
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
501
|
+
_cache[11] || (_cache[11] = createTextVNode()),
|
|
502
|
+
createVNode(_component_nut_scroll_view, {
|
|
503
|
+
class: "nut-sku-content",
|
|
504
|
+
"scroll-y": true
|
|
505
|
+
}, {
|
|
506
|
+
default: withCtx(() => [
|
|
507
|
+
renderSlot(_ctx.$slots, "sku-select-top"),
|
|
508
|
+
_cache[5] || (_cache[5] = createTextVNode()),
|
|
509
|
+
renderSlot(_ctx.$slots, "sku-select"),
|
|
510
|
+
_cache[6] || (_cache[6] = createTextVNode()),
|
|
511
|
+
!_ctx.getSlots("sku-select") ? (openBlock(), createBlock(_component_SkuSelect, {
|
|
512
|
+
key: 0,
|
|
513
|
+
sku: _ctx.sku,
|
|
514
|
+
onSelectSku: _ctx.selectSku
|
|
515
|
+
}, null, 8, ["sku", "onSelectSku"])) : createCommentVNode("", true),
|
|
516
|
+
_cache[7] || (_cache[7] = createTextVNode()),
|
|
517
|
+
renderSlot(_ctx.$slots, "sku-stepper"),
|
|
518
|
+
_cache[8] || (_cache[8] = createTextVNode()),
|
|
519
|
+
!_ctx.getSlots("sku-stepper") ? (openBlock(), createBlock(_component_sku_stepper, {
|
|
520
|
+
key: 1,
|
|
521
|
+
goods: _ctx.goods,
|
|
522
|
+
"stepper-title": _ctx.stepperTitle || _ctx.translate("buyNumber"),
|
|
523
|
+
"stepper-max": _ctx.stepperMax,
|
|
524
|
+
"stepper-min": _ctx.stepperMin,
|
|
525
|
+
"stepper-extra-text": _ctx.stepperExtraText,
|
|
526
|
+
onAdd: _ctx.add,
|
|
527
|
+
onReduce: _ctx.reduce,
|
|
528
|
+
onChangeStepper: _ctx.changeStepper,
|
|
529
|
+
onOverLimit: _ctx.stepperOverLimit
|
|
530
|
+
}, null, 8, ["goods", "stepper-title", "stepper-max", "stepper-min", "stepper-extra-text", "onAdd", "onReduce", "onChangeStepper", "onOverLimit"])) : createCommentVNode("", true),
|
|
531
|
+
_cache[9] || (_cache[9] = createTextVNode()),
|
|
532
|
+
renderSlot(_ctx.$slots, "sku-stepper-bottom")
|
|
533
|
+
]),
|
|
534
|
+
_: 3
|
|
535
|
+
}),
|
|
536
|
+
_cache[12] || (_cache[12] = createTextVNode()),
|
|
513
537
|
createVNode(_component_sku_operate, {
|
|
514
538
|
"btn-extra-text": _ctx.btnExtraText,
|
|
515
539
|
"btn-options": _ctx.btnOptions,
|
|
@@ -531,7 +555,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
531
555
|
_: 3
|
|
532
556
|
}, 8, ["visible", "lock-scroll", "catch-move"]);
|
|
533
557
|
}
|
|
534
|
-
const
|
|
558
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
535
559
|
export {
|
|
536
|
-
|
|
560
|
+
index_taro as default
|
|
537
561
|
};
|
|
@@ -61,7 +61,7 @@ const _sfc_main = create({
|
|
|
61
61
|
const renderChildren = () => {
|
|
62
62
|
return children.map((child, i) => {
|
|
63
63
|
return h(
|
|
64
|
-
"
|
|
64
|
+
"view",
|
|
65
65
|
{
|
|
66
66
|
class: `${componentName}-item`,
|
|
67
67
|
style: getMarginStyle(i === children.length - 1)
|
|
@@ -71,7 +71,7 @@ const _sfc_main = create({
|
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
73
|
return h(
|
|
74
|
-
"
|
|
74
|
+
"view",
|
|
75
75
|
{
|
|
76
76
|
class: [
|
|
77
77
|
componentName,
|
|
@@ -17,7 +17,7 @@ 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, createElementVNode, renderSlot, toDisplayString, unref, createCommentVNode } from "vue";
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createTextVNode, renderSlot, toDisplayString, unref, createCommentVNode } from "vue";
|
|
21
21
|
import { u as useParent } from "../useParent-D6DiuxZZ.js";
|
|
22
22
|
import { S as STEPS_KEY } from "../types-1HzUV14W.js";
|
|
23
23
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
@@ -37,7 +37,7 @@ const _hoisted_7 = ["innerHTML"];
|
|
|
37
37
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
38
38
|
name: "NutStep"
|
|
39
39
|
}), {
|
|
40
|
-
__name: "step",
|
|
40
|
+
__name: "step.taro",
|
|
41
41
|
props: {
|
|
42
42
|
title: { default: "" },
|
|
43
43
|
content: { default: "" }
|
|
@@ -67,6 +67,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
67
67
|
}, [
|
|
68
68
|
createElementVNode("view", _hoisted_1, [
|
|
69
69
|
_cache[0] || (_cache[0] = createElementVNode("view", { class: "nut-step-line" }, null, -1)),
|
|
70
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
70
71
|
createElementVNode("view", {
|
|
71
72
|
class: normalizeClass(["nut-step-icon", [!dot.value ? "is-icon" : ""]])
|
|
72
73
|
}, [
|
|
@@ -77,12 +78,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
77
78
|
])
|
|
78
79
|
], 2)
|
|
79
80
|
]),
|
|
81
|
+
_cache[3] || (_cache[3] = createTextVNode()),
|
|
80
82
|
createElementVNode("view", _hoisted_4, [
|
|
81
83
|
createElementVNode("view", _hoisted_5, [
|
|
82
84
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
83
85
|
createElementVNode("span", null, toDisplayString(_ctx.title), 1)
|
|
84
86
|
])
|
|
85
87
|
]),
|
|
88
|
+
_cache[2] || (_cache[2] = createTextVNode()),
|
|
86
89
|
_ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("view", _hoisted_6, [
|
|
87
90
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
88
91
|
createElementVNode("span", { innerHTML: _ctx.content }, null, 8, _hoisted_7)
|
|
@@ -24,7 +24,7 @@ import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
|
24
24
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
25
|
name: "NutSteps"
|
|
26
26
|
}), {
|
|
27
|
-
__name: "steps",
|
|
27
|
+
__name: "steps.taro",
|
|
28
28
|
props: {
|
|
29
29
|
direction: { default: "horizontal" },
|
|
30
30
|
current: { default: "0" },
|
|
@@ -1,44 +1,32 @@
|
|
|
1
|
-
import { ref, reactive, computed, watch, onMounted,
|
|
1
|
+
import { ref, reactive, computed, watch, onMounted, openBlock, createElementBlock, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { u as useTaroRect } from "../index-m0Wcof-q.js";
|
|
4
|
+
import { usePageScroll } from "@tarojs/taro";
|
|
5
5
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
6
6
|
const { create } = createComponent("sticky");
|
|
7
7
|
const _sfc_main = create({
|
|
8
8
|
props: {
|
|
9
|
-
position: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: "top"
|
|
12
|
-
},
|
|
13
9
|
top: {
|
|
14
10
|
type: [Number, String],
|
|
15
11
|
default: 0
|
|
16
12
|
},
|
|
17
|
-
bottom: {
|
|
18
|
-
type: [Number, String],
|
|
19
|
-
default: 0
|
|
20
|
-
},
|
|
21
|
-
container: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default: null
|
|
24
|
-
},
|
|
25
13
|
zIndex: {
|
|
26
14
|
type: [Number, String],
|
|
27
15
|
default: 99
|
|
16
|
+
},
|
|
17
|
+
scrollTop: {
|
|
18
|
+
type: [Number, String],
|
|
19
|
+
default: -1
|
|
28
20
|
}
|
|
29
21
|
},
|
|
30
22
|
emits: ["change"],
|
|
31
23
|
setup(props, { emit }) {
|
|
24
|
+
const refRandomId = Math.random().toString(36).slice(-8);
|
|
32
25
|
const rootRef = ref();
|
|
33
|
-
const stickyRef = ref();
|
|
34
26
|
const state = reactive({
|
|
35
27
|
fixed: false,
|
|
36
28
|
height: 0,
|
|
37
|
-
width: 0
|
|
38
|
-
transform: 0
|
|
39
|
-
});
|
|
40
|
-
const threshold = computed(() => {
|
|
41
|
-
return props.position === "top" ? Number(props.top) : Number(props.bottom);
|
|
29
|
+
width: 0
|
|
42
30
|
});
|
|
43
31
|
const rootStyle = computed(() => {
|
|
44
32
|
if (state.fixed) return { height: `${state.height}px` };
|
|
@@ -47,48 +35,23 @@ const _sfc_main = create({
|
|
|
47
35
|
const stickyStyle = computed(() => {
|
|
48
36
|
if (!state.fixed) return {};
|
|
49
37
|
return {
|
|
50
|
-
|
|
38
|
+
top: `${props.top}px`,
|
|
51
39
|
height: `${state.height}px`,
|
|
52
40
|
width: `${state.width}px`,
|
|
53
|
-
transform: state.transform ? `translate3d(0, ${state.transform}px, 0)` : void 0,
|
|
54
41
|
position: state.fixed ? "fixed" : void 0,
|
|
55
42
|
zIndex: Number(props.zIndex)
|
|
56
43
|
};
|
|
57
44
|
});
|
|
58
45
|
const handleScroll = () => {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
state.width = rootRect.width;
|
|
67
|
-
const getFixed = () => {
|
|
68
|
-
let fixed = false;
|
|
69
|
-
if (props.position === "top") {
|
|
70
|
-
fixed = containerEle ? threshold.value > rootRect.top && containerRect.bottom > 0 : threshold.value > rootRect.top;
|
|
71
|
-
} else {
|
|
72
|
-
const clientHeight = document.documentElement.clientHeight;
|
|
73
|
-
fixed = containerEle ? containerRect.bottom > 0 && clientHeight - threshold.value - stickyRect.height > containerRect.top : clientHeight - threshold.value < rootRect.bottom;
|
|
74
|
-
}
|
|
75
|
-
return fixed;
|
|
76
|
-
};
|
|
77
|
-
const getTransform = () => {
|
|
78
|
-
if (containerEle) {
|
|
79
|
-
if (props.position === "top") {
|
|
80
|
-
const diff = containerRect.bottom - threshold.value - stickyRect.height;
|
|
81
|
-
return diff < 0 ? diff : 0;
|
|
82
|
-
} else {
|
|
83
|
-
const clientHeight = document.documentElement.clientHeight;
|
|
84
|
-
const diff = containerRect.bottom - (clientHeight - threshold.value);
|
|
85
|
-
return diff < 0 ? diff : 0;
|
|
86
|
-
}
|
|
46
|
+
useTaroRect(rootRef).then(
|
|
47
|
+
(rootRect) => {
|
|
48
|
+
state.height = rootRect.height;
|
|
49
|
+
state.width = rootRect.width;
|
|
50
|
+
state.fixed = Number(props.top) >= rootRect.top;
|
|
51
|
+
},
|
|
52
|
+
() => {
|
|
87
53
|
}
|
|
88
|
-
|
|
89
|
-
};
|
|
90
|
-
state.transform = getTransform();
|
|
91
|
-
state.fixed = getFixed();
|
|
54
|
+
);
|
|
92
55
|
};
|
|
93
56
|
watch(
|
|
94
57
|
() => state.fixed,
|
|
@@ -96,34 +59,32 @@ const _sfc_main = create({
|
|
|
96
59
|
emit("change", val);
|
|
97
60
|
}
|
|
98
61
|
);
|
|
99
|
-
|
|
100
|
-
handleScroll
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
el.removeEventListener("scroll", handleScroll);
|
|
107
|
-
});
|
|
108
|
-
return { rootRef, rootStyle, stickyRef, stickyStyle };
|
|
62
|
+
if (props.scrollTop === -1) {
|
|
63
|
+
usePageScroll(handleScroll);
|
|
64
|
+
} else {
|
|
65
|
+
watch(() => props.scrollTop, handleScroll);
|
|
66
|
+
}
|
|
67
|
+
onMounted(handleScroll);
|
|
68
|
+
return { rootRef, rootStyle, stickyStyle, refRandomId };
|
|
109
69
|
}
|
|
110
70
|
});
|
|
71
|
+
const _hoisted_1 = ["id"];
|
|
111
72
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
112
|
-
return openBlock(), createElementBlock("
|
|
73
|
+
return openBlock(), createElementBlock("view", {
|
|
74
|
+
id: "rootRef-" + _ctx.refRandomId,
|
|
113
75
|
ref: "rootRef",
|
|
114
76
|
class: "nut-sticky",
|
|
115
77
|
style: normalizeStyle(_ctx.rootStyle)
|
|
116
78
|
}, [
|
|
117
|
-
createElementVNode("
|
|
118
|
-
ref: "stickyRef",
|
|
79
|
+
createElementVNode("view", {
|
|
119
80
|
class: "nut-sticky__box",
|
|
120
81
|
style: normalizeStyle(_ctx.stickyStyle)
|
|
121
82
|
}, [
|
|
122
83
|
renderSlot(_ctx.$slots, "default")
|
|
123
84
|
], 4)
|
|
124
|
-
],
|
|
85
|
+
], 12, _hoisted_1);
|
|
125
86
|
}
|
|
126
|
-
const
|
|
87
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
127
88
|
export {
|
|
128
|
-
|
|
89
|
+
index_taro as default
|
|
129
90
|
};
|
|
@@ -17,9 +17,9 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, withModifiers, toDisplayString, createBlock, withDirectives, normalizeClass, normalizeStyle, renderSlot, vShow } from "vue";
|
|
20
|
+
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, withModifiers, toDisplayString, createTextVNode, createBlock, withDirectives, normalizeClass, normalizeStyle, renderSlot, vShow } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
|
-
import { ArrowDown2, ArrowUp2 } from "@nutui/icons-vue";
|
|
22
|
+
import { ArrowDown2, ArrowUp2 } from "@nutui/icons-vue-taro";
|
|
23
23
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
24
24
|
const { create } = createComponent("sub-side-navbar");
|
|
25
25
|
const _sfc_main = create({
|
|
@@ -69,10 +69,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
69
69
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
70
70
|
}, [
|
|
71
71
|
createElementVNode("span", _hoisted_2, toDisplayString(_ctx.title), 1),
|
|
72
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
72
73
|
createElementVNode("span", _hoisted_3, [
|
|
73
|
-
!_ctx.direction ? (openBlock(), createBlock(_component_ArrowDown2, {
|
|
74
|
+
!_ctx.direction ? (openBlock(), createBlock(_component_ArrowDown2, {
|
|
75
|
+
key: 0,
|
|
76
|
+
size: "10"
|
|
77
|
+
})) : (openBlock(), createBlock(_component_ArrowUp2, {
|
|
78
|
+
key: 1,
|
|
79
|
+
size: "10"
|
|
80
|
+
}))
|
|
74
81
|
])
|
|
75
82
|
]),
|
|
83
|
+
_cache[2] || (_cache[2] = createTextVNode()),
|
|
76
84
|
withDirectives(createElementVNode("view", {
|
|
77
85
|
class: normalizeClass(["nut-sub-side-navbar__list", !_ctx.direction ? "nutFadeIn" : "nutFadeOut"]),
|
|
78
86
|
style: normalizeStyle(_ctx.style)
|
|
@@ -83,7 +91,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83
91
|
])
|
|
84
92
|
]);
|
|
85
93
|
}
|
|
86
|
-
const
|
|
94
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
87
95
|
export {
|
|
88
|
-
|
|
96
|
+
index_taro as default
|
|
89
97
|
};
|
|
@@ -17,14 +17,17 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref,
|
|
20
|
+
import { defineComponent, ref, inject, watch, onMounted, reactive, computed, openBlock, createElementBlock, normalizeStyle, createElementVNode, unref, renderSlot, createTextVNode } from "vue";
|
|
21
21
|
import { u as useTouch } from "../index-I8tfW3Kf.js";
|
|
22
|
+
import { u as useTaroRect } from "../index-m0Wcof-q.js";
|
|
22
23
|
import { S as SWIPE_KEY } from "../types-BWhKcf4T.js";
|
|
23
24
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
25
|
+
const _hoisted_1 = ["id"];
|
|
26
|
+
const _hoisted_2 = ["id"];
|
|
24
27
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
28
|
name: "NutSwipe"
|
|
26
29
|
}), {
|
|
27
|
-
__name: "swipe",
|
|
30
|
+
__name: "swipe.taro",
|
|
28
31
|
props: {
|
|
29
32
|
name: { default: "" },
|
|
30
33
|
touchMoveStopPropagation: { type: Boolean, default: false },
|
|
@@ -35,17 +38,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
35
38
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
36
39
|
const props = __props;
|
|
37
40
|
const emit = __emit;
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
const refRandomId = Math.random().toString(36).slice(-8);
|
|
42
|
+
const leftRef = ref();
|
|
43
|
+
const leftRefWidth = ref(0);
|
|
44
|
+
const rightRef = ref();
|
|
45
|
+
const rightRefWidth = ref(0);
|
|
42
46
|
const lockClick = ref(false);
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
const initWidth = () => {
|
|
48
|
+
useTaroRect(leftRef).then(
|
|
49
|
+
(rect) => {
|
|
50
|
+
leftRefWidth.value = (rect == null ? void 0 : rect.width) || 0;
|
|
51
|
+
},
|
|
52
|
+
() => {
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
useTaroRect(rightRef).then(
|
|
56
|
+
(rect) => {
|
|
57
|
+
rightRefWidth.value = (rect == null ? void 0 : rect.width) || 0;
|
|
58
|
+
},
|
|
59
|
+
() => {
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
};
|
|
49
63
|
const parent = inject(SWIPE_KEY, null);
|
|
50
64
|
watch(
|
|
51
65
|
() => {
|
|
@@ -58,6 +72,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
58
72
|
}
|
|
59
73
|
}
|
|
60
74
|
);
|
|
75
|
+
onMounted(() => {
|
|
76
|
+
setTimeout(() => {
|
|
77
|
+
initWidth();
|
|
78
|
+
}, 100);
|
|
79
|
+
});
|
|
61
80
|
const opened = ref(false);
|
|
62
81
|
let position = "";
|
|
63
82
|
let oldPosition = "";
|
|
@@ -181,27 +200,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
181
200
|
onTouchcancel: onTouchEnd
|
|
182
201
|
}, [
|
|
183
202
|
createElementVNode("view", {
|
|
203
|
+
id: "leftRef-" + unref(refRandomId),
|
|
184
204
|
ref_key: "leftRef",
|
|
185
205
|
ref: leftRef,
|
|
186
206
|
class: "nut-swipe__left",
|
|
187
207
|
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event, "left", true))
|
|
188
208
|
}, [
|
|
189
209
|
renderSlot(_ctx.$slots, "left")
|
|
190
|
-
],
|
|
210
|
+
], 8, _hoisted_1),
|
|
211
|
+
_cache[3] || (_cache[3] = createTextVNode()),
|
|
191
212
|
createElementVNode("view", {
|
|
192
213
|
class: "nut-swipe__content",
|
|
193
214
|
onClick: _cache[1] || (_cache[1] = ($event) => onClick($event, "content", lockClick.value))
|
|
194
215
|
}, [
|
|
195
216
|
renderSlot(_ctx.$slots, "default")
|
|
196
217
|
]),
|
|
218
|
+
_cache[4] || (_cache[4] = createTextVNode()),
|
|
197
219
|
createElementVNode("view", {
|
|
220
|
+
id: "rightRef-" + unref(refRandomId),
|
|
198
221
|
ref_key: "rightRef",
|
|
199
222
|
ref: rightRef,
|
|
200
223
|
class: "nut-swipe__right",
|
|
201
224
|
onClick: _cache[2] || (_cache[2] = ($event) => onClick($event, "right", true))
|
|
202
225
|
}, [
|
|
203
226
|
renderSlot(_ctx.$slots, "right")
|
|
204
|
-
],
|
|
227
|
+
], 8, _hoisted_2)
|
|
205
228
|
], 36);
|
|
206
229
|
};
|
|
207
230
|
}
|
|
@@ -23,7 +23,7 @@ import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
|
23
23
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
24
24
|
name: "NutSwipeGroup"
|
|
25
25
|
}), {
|
|
26
|
-
__name: "swipe-group",
|
|
26
|
+
__name: "swipe-group.taro",
|
|
27
27
|
props: {
|
|
28
28
|
lock: { type: Boolean, default: false }
|
|
29
29
|
},
|
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
40
40
|
name
|
|
41
41
|
});
|
|
42
42
|
return (_ctx, _cache) => {
|
|
43
|
-
return openBlock(), createElementBlock("
|
|
43
|
+
return openBlock(), createElementBlock("view", {
|
|
44
44
|
ref_key: "swipeGroupRef",
|
|
45
45
|
ref: swipeGroupRef,
|
|
46
46
|
class: "nut-swipe-group"
|