@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,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 { getCurrentInstance,
|
|
20
|
+
import { getCurrentInstance, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createTextVNode, createCommentVNode, toDisplayString } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
22
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
23
23
|
function useExtend(apis) {
|
|
@@ -96,7 +96,7 @@ const _sfc_main = create({
|
|
|
96
96
|
type: Number,
|
|
97
97
|
default: 0
|
|
98
98
|
},
|
|
99
|
-
|
|
99
|
+
machineTrunMore: {
|
|
100
100
|
type: Number,
|
|
101
101
|
default: 0
|
|
102
102
|
}
|
|
@@ -104,13 +104,6 @@ const _sfc_main = create({
|
|
|
104
104
|
components: {},
|
|
105
105
|
emits: ["click", "scrollEnd"],
|
|
106
106
|
setup(props, { emit }) {
|
|
107
|
-
const runNumberImg = ref(null);
|
|
108
|
-
const numberItemRef = ref([]);
|
|
109
|
-
const setRef = (el) => {
|
|
110
|
-
if (el) {
|
|
111
|
-
numberItemRef.value.push(el);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
107
|
const data = reactive({
|
|
115
108
|
valFlag: false,
|
|
116
109
|
current: 0,
|
|
@@ -202,44 +195,42 @@ const _sfc_main = create({
|
|
|
202
195
|
return m / baseNum;
|
|
203
196
|
}
|
|
204
197
|
};
|
|
205
|
-
const topNumber = (
|
|
198
|
+
const topNumber = (index) => {
|
|
206
199
|
let { num_total_len, pointNum, initDigit1, initDigit2, sortFlag } = data;
|
|
207
|
-
let idx1 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit2)[
|
|
208
|
-
let idx2 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit1)[
|
|
209
|
-
let num =
|
|
200
|
+
let idx1 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit2)[index - (num_total_len - pointNum)] : 10 - Number(String(initDigit2)[index - (num_total_len - pointNum)]);
|
|
201
|
+
let idx2 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit1)[index] : 10 - Number(String(initDigit1)[index]);
|
|
202
|
+
let num = index > num_total_len - pointNum - 1 ? -idx1 * 100 + "%" : index <= String(initDigit1).length - 1 ? -idx2 * 100 + "%" : 0;
|
|
210
203
|
if (num == "-1000%") {
|
|
211
204
|
num = 0;
|
|
212
205
|
}
|
|
213
206
|
return num;
|
|
214
207
|
};
|
|
215
|
-
const turnNumber = (
|
|
208
|
+
const turnNumber = (index) => {
|
|
216
209
|
let { num_total_len, pointNum, initDigit1, initDigit2 } = data;
|
|
217
|
-
let idx1 = String(initDigit2)[
|
|
218
|
-
let num =
|
|
210
|
+
let idx1 = String(initDigit2)[index - (num_total_len - pointNum)];
|
|
211
|
+
let num = index > num_total_len - pointNum - 1 ? idx1 ? idx1 : 0 : index <= String(initDigit1).length - 1 ? String(initDigit1)[index] : 0;
|
|
219
212
|
return num;
|
|
220
213
|
};
|
|
221
214
|
const countChange = () => {
|
|
222
215
|
let { endNum, initNum, speed, toFixed } = props;
|
|
223
216
|
let countTimer = setInterval(() => {
|
|
224
217
|
if (initNum > endNum) {
|
|
225
|
-
if (
|
|
226
|
-
data.current = endNum.toFixed(toFixed);
|
|
218
|
+
if (data.current <= endNum || data.current <= speed) {
|
|
219
|
+
data.current = Number(endNum.toFixed(toFixed));
|
|
227
220
|
clearInterval(countTimer);
|
|
228
221
|
emit("scrollEnd");
|
|
229
222
|
data.valFlag = false;
|
|
230
223
|
} else {
|
|
231
|
-
|
|
232
|
-
data.current = num.toFixed(toFixed);
|
|
224
|
+
data.current = Number((parseFloat(String(data.current)) - parseFloat(String(speed))).toFixed(toFixed));
|
|
233
225
|
}
|
|
234
226
|
} else {
|
|
235
|
-
if (
|
|
236
|
-
data.current = endNum.toFixed(toFixed);
|
|
227
|
+
if (data.current >= endNum) {
|
|
228
|
+
data.current = Number(endNum.toFixed(toFixed));
|
|
237
229
|
clearInterval(countTimer);
|
|
238
230
|
emit("scrollEnd");
|
|
239
231
|
data.valFlag = false;
|
|
240
232
|
} else {
|
|
241
|
-
|
|
242
|
-
data.current = num.toFixed(toFixed);
|
|
233
|
+
data.current = Number((parseFloat(String(data.current)) + parseFloat(String(speed))).toFixed(toFixed));
|
|
243
234
|
}
|
|
244
235
|
}
|
|
245
236
|
}, props.during);
|
|
@@ -320,7 +311,8 @@ const _sfc_main = create({
|
|
|
320
311
|
if (data.sortFlag == "equal") {
|
|
321
312
|
return false;
|
|
322
313
|
}
|
|
323
|
-
let
|
|
314
|
+
let refsDom = document.getElementsByClassName("nut-countup__number-item");
|
|
315
|
+
let element = refsDom[data.num_total_len - 1];
|
|
324
316
|
runTurn(element);
|
|
325
317
|
});
|
|
326
318
|
} else {
|
|
@@ -346,26 +338,30 @@ const _sfc_main = create({
|
|
|
346
338
|
}, props.during);
|
|
347
339
|
};
|
|
348
340
|
const runStep = (el) => {
|
|
349
|
-
let currentTurn = el.
|
|
341
|
+
let currentTurn = el.style.all;
|
|
350
342
|
let turningNum;
|
|
351
343
|
if (data.sortFlag == "add") {
|
|
352
344
|
turningNum = parseInt(String(currentTurn)) + 1;
|
|
353
345
|
} else {
|
|
354
346
|
turningNum = parseInt(String(currentTurn)) - 1 >= 0 ? parseInt(String(currentTurn)) - 1 : 9;
|
|
355
347
|
}
|
|
356
|
-
el.
|
|
357
|
-
if (el.style.transition == "none
|
|
348
|
+
el.style.all = String(turningNum);
|
|
349
|
+
if (el.style.transition == "none" || turningNum == 1 || !el.style.transition) {
|
|
358
350
|
el.style.transition = `all linear ${props.during}ms`;
|
|
359
351
|
}
|
|
360
352
|
if (turningNum == 10 || data.sortFlag == "reduce" && turningNum == 0) {
|
|
361
353
|
var timeOut = null;
|
|
362
354
|
el.style.top = `-${data.sortFlag == "add" ? turningNum * 100 : (10 - turningNum) * 100}%`;
|
|
363
|
-
el.
|
|
355
|
+
el.style.all = "0";
|
|
364
356
|
timeOut = setTimeout(() => {
|
|
365
357
|
timeOut && clearTimeout(timeOut);
|
|
366
358
|
el.style.transition = "none";
|
|
367
359
|
el.style.top = "0";
|
|
368
|
-
|
|
360
|
+
if (turningNum == 10) {
|
|
361
|
+
if (el.previousSibling) {
|
|
362
|
+
runStep(el.previousSibling);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
369
365
|
}, 0.975 * props.during);
|
|
370
366
|
} else {
|
|
371
367
|
el.style.top = `-${data.sortFlag == "add" ? turningNum * 100 : (10 - turningNum) * 100}%`;
|
|
@@ -374,18 +370,10 @@ const _sfc_main = create({
|
|
|
374
370
|
runStep(el.previousSibling);
|
|
375
371
|
}
|
|
376
372
|
};
|
|
377
|
-
const reset = (el, turningNum) => {
|
|
378
|
-
setTimeout(() => {
|
|
379
|
-
if (turningNum == 10) {
|
|
380
|
-
if (el.previousSibling) {
|
|
381
|
-
runStep(el.previousSibling);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}, 200);
|
|
385
|
-
};
|
|
386
373
|
const imgNumberScroll = () => {
|
|
387
374
|
nextTick(() => {
|
|
388
|
-
|
|
375
|
+
let f = document.getElementsByClassName("nut-countup__numberimg")[0];
|
|
376
|
+
f.addEventListener("webkitTransitionEnd", () => {
|
|
389
377
|
emit("scrollEnd");
|
|
390
378
|
data.valFlag = false;
|
|
391
379
|
});
|
|
@@ -401,14 +389,14 @@ const _sfc_main = create({
|
|
|
401
389
|
}
|
|
402
390
|
};
|
|
403
391
|
const machineLuck = () => {
|
|
404
|
-
const
|
|
392
|
+
const machineTrunMoreNum = props.machineTrunMore < 0 ? 0 : props.machineTrunMore;
|
|
405
393
|
let distance = props.numHeight * props.machinePrizeNum;
|
|
406
394
|
if (data.prizeLevelTrun < 0) {
|
|
407
395
|
generateRandom();
|
|
408
396
|
}
|
|
409
397
|
for (let i = 0; i < props.machineNum; i++) {
|
|
410
398
|
setTimeout(() => {
|
|
411
|
-
let turn = distance * (i + 1 + parseFloat(String(
|
|
399
|
+
let turn = distance * (i + 1 + parseFloat(String(machineTrunMoreNum)));
|
|
412
400
|
if (data.prizeYPrev.length != 0) {
|
|
413
401
|
data.prizeY[i] = data.prizeYPrev[i];
|
|
414
402
|
}
|
|
@@ -427,16 +415,16 @@ const _sfc_main = create({
|
|
|
427
415
|
}
|
|
428
416
|
};
|
|
429
417
|
useExtend({ machineLuck });
|
|
430
|
-
const scrollTime = (
|
|
418
|
+
const scrollTime = (index, total, num) => {
|
|
431
419
|
let t = setInterval(() => {
|
|
432
420
|
if (num <= total) {
|
|
433
421
|
num += 10;
|
|
434
|
-
data.prizeY[
|
|
422
|
+
data.prizeY[index] = parseFloat(String(num));
|
|
435
423
|
} else {
|
|
436
424
|
clearInterval(t);
|
|
437
425
|
t = null;
|
|
438
426
|
data.finshMachine += 1;
|
|
439
|
-
data.prizeY[
|
|
427
|
+
data.prizeY[index] = total;
|
|
440
428
|
if (data.finshMachine == props.machineNum) {
|
|
441
429
|
let distance = props.numHeight * props.machinePrizeNum;
|
|
442
430
|
data.prizeYPrev = [];
|
|
@@ -473,8 +461,6 @@ const _sfc_main = create({
|
|
|
473
461
|
data.timer = null;
|
|
474
462
|
});
|
|
475
463
|
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(data)), toRefs(reactive(props))), {
|
|
476
|
-
runNumberImg,
|
|
477
|
-
setRef,
|
|
478
464
|
topNumber,
|
|
479
465
|
turnNumber
|
|
480
466
|
});
|
|
@@ -490,39 +476,38 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
490
476
|
class: "nut-countup__machine",
|
|
491
477
|
style: normalizeStyle({ height: _ctx.numHeight + "px" })
|
|
492
478
|
}, [
|
|
493
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val,
|
|
479
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val, index) => {
|
|
494
480
|
return openBlock(), createElementBlock("view", {
|
|
495
|
-
key: "mImg" +
|
|
481
|
+
key: "mImg" + index,
|
|
496
482
|
class: "nut-countup__machine-item",
|
|
497
483
|
style: normalizeStyle({
|
|
498
484
|
width: _ctx.numWidth + "px",
|
|
499
485
|
height: _ctx.numHeight + "px",
|
|
500
|
-
|
|
501
|
-
|
|
486
|
+
background: "url(" + _ctx.customBgImg + ") ",
|
|
487
|
+
backgroundPosition: "0 " + _ctx.prizeY[index] + "px"
|
|
502
488
|
})
|
|
503
489
|
}, null, 4);
|
|
504
490
|
}), 128))
|
|
505
491
|
], 4)) : (openBlock(), createElementBlock("view", {
|
|
506
492
|
key: 1,
|
|
507
|
-
ref: "runNumberImg",
|
|
508
493
|
class: "nut-countup__numberimg",
|
|
509
494
|
style: normalizeStyle({ height: _ctx.numHeight + "px" })
|
|
510
495
|
}, [
|
|
511
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val,
|
|
496
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index) => {
|
|
512
497
|
return openBlock(), createElementBlock("view", {
|
|
513
|
-
key: "cImg" +
|
|
498
|
+
key: "cImg" + index,
|
|
514
499
|
class: "nut-countup__numberimg__item",
|
|
515
500
|
style: normalizeStyle({
|
|
516
501
|
width: _ctx.numWidth + "px",
|
|
517
502
|
height: _ctx.numHeight + "px",
|
|
518
|
-
left: _ctx.numWidth * (
|
|
503
|
+
left: _ctx.numWidth * (index > _ctx.num_total_len - _ctx.pointNum - 1 ? index == _ctx.num_total_len - _ctx.pointNum ? index * 1.5 : index * 1.3 : index) + "px",
|
|
519
504
|
backgroundImage: "url(" + _ctx.customBgImg + ")",
|
|
520
|
-
|
|
521
|
-
backgroundPositionY: -(+String(_ctx.relNum)[index2] * _ctx.numHeight + _ctx.customSpacNum * +String(_ctx.relNum)[index2]) + "px",
|
|
505
|
+
backgroundPosition: "0 " + -(+String(_ctx.relNum)[index] * _ctx.numHeight + _ctx.customSpacNum * +String(_ctx.relNum)[index]) + "px",
|
|
522
506
|
transition: "all linear " + _ctx.during / 10 + "ms"
|
|
523
507
|
})
|
|
524
508
|
}, null, 4);
|
|
525
509
|
}), 128)),
|
|
510
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
526
511
|
_ctx.pointNum > 0 ? (openBlock(), createElementBlock("view", {
|
|
527
512
|
key: 0,
|
|
528
513
|
class: "nut-countup-pointstyl",
|
|
@@ -532,7 +517,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
532
517
|
left: _ctx.numWidth * (_ctx.num_total_len - _ctx.pointNum) * 1.1 + "px",
|
|
533
518
|
fontSize: "30px"
|
|
534
519
|
})
|
|
535
|
-
}, "
|
|
520
|
+
}, "\n .\n ", 4)) : createCommentVNode("", true)
|
|
536
521
|
], 4))
|
|
537
522
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
538
523
|
_ctx.scrolling ? (openBlock(), createElementBlock("view", {
|
|
@@ -544,17 +529,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
544
529
|
lineHeight: _ctx.numHeight + "px"
|
|
545
530
|
})
|
|
546
531
|
}, [
|
|
547
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val,
|
|
532
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index) => {
|
|
548
533
|
return openBlock(), createElementBlock("view", {
|
|
549
534
|
ref_for: true,
|
|
550
|
-
ref:
|
|
535
|
+
ref: "nut-countup__number-item",
|
|
551
536
|
key: val,
|
|
552
537
|
class: "nut-countup__number-item",
|
|
553
538
|
style: normalizeStyle({
|
|
554
|
-
|
|
555
|
-
|
|
539
|
+
all: _ctx.turnNumber(index),
|
|
540
|
+
top: _ctx.topNumber(index),
|
|
541
|
+
left: _ctx.numWidth * (index > _ctx.num_total_len - _ctx.pointNum - 1 ? index * 1.1 : index) + "px"
|
|
556
542
|
}),
|
|
557
|
-
"turn-number": _ctx.turnNumber(
|
|
543
|
+
"turn-number": _ctx.turnNumber(index)
|
|
558
544
|
}, [
|
|
559
545
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.to0_10, (item, idx) => {
|
|
560
546
|
return openBlock(), createElementBlock("view", {
|
|
@@ -569,6 +555,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
569
555
|
}), 128))
|
|
570
556
|
], 12, _hoisted_2);
|
|
571
557
|
}), 128)),
|
|
558
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
572
559
|
_ctx.pointNum > 0 ? (openBlock(), createElementBlock("view", {
|
|
573
560
|
key: 0,
|
|
574
561
|
class: "nut-countup-pointstyl",
|
|
@@ -579,14 +566,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
579
566
|
top: 0,
|
|
580
567
|
left: _ctx.numWidth * (_ctx.num_total_len - _ctx.pointNum) + "px"
|
|
581
568
|
})
|
|
582
|
-
}, "
|
|
569
|
+
}, "\n .\n ", 4)) : createCommentVNode("", true)
|
|
583
570
|
], 4)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
584
571
|
createTextVNode(toDisplayString(_ctx.current), 1)
|
|
585
572
|
], 64))
|
|
586
573
|
], 64))
|
|
587
574
|
]);
|
|
588
575
|
}
|
|
589
|
-
const
|
|
576
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
590
577
|
export {
|
|
591
|
-
|
|
578
|
+
index_taro as default
|
|
592
579
|
};
|
|
@@ -17,10 +17,11 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { reactive, computed, onBeforeMount, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from "vue";
|
|
20
|
+
import { reactive, computed, onBeforeMount, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createTextVNode } from "vue";
|
|
21
21
|
import NutPicker from "../picker/Picker.js";
|
|
22
22
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
23
|
-
import {
|
|
23
|
+
import { b as isDate$1, p as padZero } from "../util-2G3mRQeF.js";
|
|
24
|
+
import { nextTick } from "@tarojs/taro";
|
|
24
25
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
25
26
|
const { create } = createComponent("date-picker");
|
|
26
27
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
@@ -245,7 +246,7 @@ const _sfc_main = create({
|
|
|
245
246
|
};
|
|
246
247
|
const generateValue = (min, max, val, type, columnIndex) => {
|
|
247
248
|
const arr = [];
|
|
248
|
-
let
|
|
249
|
+
let index = 0;
|
|
249
250
|
while (min <= max) {
|
|
250
251
|
arr.push(formatterOption(type, min));
|
|
251
252
|
if (type === "minute") {
|
|
@@ -254,10 +255,10 @@ const _sfc_main = create({
|
|
|
254
255
|
min++;
|
|
255
256
|
}
|
|
256
257
|
if (min <= Number(val)) {
|
|
257
|
-
|
|
258
|
+
index++;
|
|
258
259
|
}
|
|
259
260
|
}
|
|
260
|
-
state.selectedValue[columnIndex] = arr[
|
|
261
|
+
state.selectedValue[columnIndex] = arr[index].value;
|
|
261
262
|
return props.filter ? props.filter(type, arr) : arr;
|
|
262
263
|
};
|
|
263
264
|
const getDateIndex = (type) => {
|
|
@@ -339,6 +340,9 @@ const _sfc_main = create({
|
|
|
339
340
|
const isSameValue = JSON.stringify(newValues) === JSON.stringify(props.modelValue);
|
|
340
341
|
if (!isSameValue) {
|
|
341
342
|
emit("update:modelValue", newValues);
|
|
343
|
+
nextTick(() => {
|
|
344
|
+
state.selectedValue = getSelectedValue(newValues);
|
|
345
|
+
});
|
|
342
346
|
}
|
|
343
347
|
}
|
|
344
348
|
);
|
|
@@ -378,12 +382,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
378
382
|
renderSlot(_ctx.$slots, "top")
|
|
379
383
|
]),
|
|
380
384
|
default: withCtx(() => [
|
|
385
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
381
386
|
renderSlot(_ctx.$slots, "default")
|
|
382
387
|
]),
|
|
383
388
|
_: 3
|
|
384
389
|
}, 8, ["modelValue", "ok-text", "cancel-text", "columns", "title", "three-dimensional", "swipe-duration", "show-toolbar", "visible-option-num", "option-height", "onCancel", "onChange", "onConfirm"]);
|
|
385
390
|
}
|
|
386
|
-
const
|
|
391
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
387
392
|
export {
|
|
388
|
-
|
|
393
|
+
index_taro as default
|
|
389
394
|
};
|
|
@@ -17,16 +17,13 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
|
|
21
|
-
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, nextTick, h } from "vue";
|
|
20
|
+
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent } from "vue";
|
|
22
21
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
23
|
-
import {
|
|
24
|
-
import { N as NutPopup, p as popupProps } from "../index-
|
|
22
|
+
import { d as isPromise } from "../util-2G3mRQeF.js";
|
|
23
|
+
import { N as NutPopup, p as popupProps } from "../index.taro-CNxLoYer.js";
|
|
25
24
|
import { Button as _sfc_main$1 } from "../button/Button.js";
|
|
26
|
-
import { u as useLocale } from "../index-
|
|
25
|
+
import { u as useLocale } from "../index-IxPZmHlb.js";
|
|
27
26
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
28
|
-
import { Overlay as _sfc_main$2 } from "../overlay/Overlay.js";
|
|
29
|
-
import { C as CreateComponent } from "../mountComponent-CLi4Nz91.js";
|
|
30
27
|
const { create } = createComponent("dialog");
|
|
31
28
|
const cN = "NutDialog";
|
|
32
29
|
const _sfc_main = create({
|
|
@@ -96,7 +93,9 @@ const _sfc_main = create({
|
|
|
96
93
|
popStyle: {
|
|
97
94
|
type: Object
|
|
98
95
|
},
|
|
99
|
-
beforeClose:
|
|
96
|
+
beforeClose: {
|
|
97
|
+
type: Function
|
|
98
|
+
}
|
|
100
99
|
}),
|
|
101
100
|
emits: ["update", "update:visible", "ok", "cancel", "opened", "closed"],
|
|
102
101
|
setup(props, { emit }) {
|
|
@@ -123,19 +122,24 @@ const _sfc_main = create({
|
|
|
123
122
|
emit("update:visible", val);
|
|
124
123
|
};
|
|
125
124
|
const closed = (action) => {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
125
|
+
if (props.beforeClose) {
|
|
126
|
+
const result = props.beforeClose(action);
|
|
127
|
+
if (isPromise(result)) {
|
|
128
|
+
result.then((bool) => {
|
|
129
|
+
if (bool) {
|
|
130
|
+
update(false);
|
|
131
|
+
emit("closed");
|
|
132
|
+
}
|
|
133
|
+
});
|
|
132
134
|
}
|
|
133
|
-
}
|
|
135
|
+
} else {
|
|
136
|
+
update(false);
|
|
137
|
+
emit("closed");
|
|
138
|
+
}
|
|
134
139
|
};
|
|
135
140
|
const onCancel = () => {
|
|
136
141
|
emit("cancel");
|
|
137
142
|
if (props.cancelAutoClose) {
|
|
138
|
-
showPopup.value = false;
|
|
139
143
|
closed("cancel");
|
|
140
144
|
}
|
|
141
145
|
};
|
|
@@ -146,10 +150,7 @@ const _sfc_main = create({
|
|
|
146
150
|
}
|
|
147
151
|
};
|
|
148
152
|
const onClickOverlay = () => {
|
|
149
|
-
console.log(1);
|
|
150
|
-
console.log(props.closeOnClickOverlay);
|
|
151
153
|
if (props.closeOnClickOverlay) {
|
|
152
|
-
console.log(2);
|
|
153
154
|
closed("");
|
|
154
155
|
}
|
|
155
156
|
};
|
|
@@ -183,6 +184,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
183
184
|
teleport: _ctx.teleport,
|
|
184
185
|
"close-on-click-overlay": false,
|
|
185
186
|
"lock-scroll": _ctx.lockScroll,
|
|
187
|
+
"catch-move": _ctx.lockScroll,
|
|
186
188
|
"pop-class": _ctx.popClass,
|
|
187
189
|
"overlay-class": _ctx.overlayClass,
|
|
188
190
|
"overlay-style": _ctx.overlayStyle,
|
|
@@ -201,6 +203,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
201
203
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
202
204
|
], 64))
|
|
203
205
|
])) : createCommentVNode("", true),
|
|
206
|
+
_cache[2] || (_cache[2] = createTextVNode()),
|
|
204
207
|
createElementVNode("view", {
|
|
205
208
|
class: "nut-dialog__content",
|
|
206
209
|
style: normalizeStyle(_ctx.contentStyle)
|
|
@@ -210,6 +213,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
210
213
|
innerHTML: _ctx.content
|
|
211
214
|
}, null, 8, _hoisted_2)) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.content), { key: 2 }))
|
|
212
215
|
], 4),
|
|
216
|
+
_cache[3] || (_cache[3] = createTextVNode()),
|
|
213
217
|
!_ctx.noFooter ? (openBlock(), createElementBlock("view", {
|
|
214
218
|
key: 1,
|
|
215
219
|
class: normalizeClass(["nut-dialog__footer", { [_ctx.footerDirection]: _ctx.footerDirection }])
|
|
@@ -228,6 +232,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
228
232
|
]),
|
|
229
233
|
_: 1
|
|
230
234
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
235
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
231
236
|
!_ctx.noOkBtn ? (openBlock(), createBlock(_component_nut_button, {
|
|
232
237
|
key: 1,
|
|
233
238
|
size: "small",
|
|
@@ -245,84 +250,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
245
250
|
], 2)
|
|
246
251
|
]),
|
|
247
252
|
_: 3
|
|
248
|
-
}, 8, ["visible", "teleport", "lock-scroll", "pop-class", "overlay-class", "overlay-style", "style", "z-index", "onClickOverlay", "onClickCloseIcon"]);
|
|
249
|
-
}
|
|
250
|
-
const Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
251
|
-
class DialogOptions {
|
|
252
|
-
constructor() {
|
|
253
|
-
__publicField(this, "title", "");
|
|
254
|
-
__publicField(this, "content", "");
|
|
255
|
-
__publicField(this, "cancelText", "");
|
|
256
|
-
__publicField(this, "okText", "");
|
|
257
|
-
__publicField(this, "textAlign", "center");
|
|
258
|
-
__publicField(this, "customClass", "");
|
|
259
|
-
__publicField(this, "overlayStyle", {});
|
|
260
|
-
__publicField(this, "overlayClass", "");
|
|
261
|
-
__publicField(this, "popStyle", {});
|
|
262
|
-
__publicField(this, "popClass", "");
|
|
263
|
-
__publicField(this, "teleport", "body");
|
|
264
|
-
__publicField(this, "id", (/* @__PURE__ */ new Date()).getTime());
|
|
265
|
-
__publicField(this, "footerDirection", "horizontal");
|
|
266
|
-
// 使用横纵方向 可选值 horizontal、vertical
|
|
267
|
-
// function
|
|
268
|
-
__publicField(this, "onUpdate");
|
|
269
|
-
__publicField(this, "onOk");
|
|
270
|
-
__publicField(this, "onCancel");
|
|
271
|
-
__publicField(this, "onOpened");
|
|
272
|
-
__publicField(this, "onClosed");
|
|
273
|
-
__publicField(this, "beforeClose");
|
|
274
|
-
__publicField(this, "visible", true);
|
|
275
|
-
__publicField(this, "noFooter", false);
|
|
276
|
-
__publicField(this, "noOkBtn", false);
|
|
277
|
-
__publicField(this, "noCancelBtn", false);
|
|
278
|
-
__publicField(this, "okBtnDisabled", false);
|
|
279
|
-
__publicField(this, "closeOnPopstate", false);
|
|
280
|
-
__publicField(this, "closeOnClickOverlay", true);
|
|
281
|
-
__publicField(this, "lockScroll", true);
|
|
282
|
-
__publicField(this, "cancelAutoClose", true);
|
|
283
|
-
__publicField(this, "okAutoClose", true);
|
|
284
|
-
__publicField(this, "zIndex", 2e3);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
class DialogFunction {
|
|
288
|
-
constructor(_options) {
|
|
289
|
-
__publicField(this, "options", new DialogOptions());
|
|
290
|
-
__publicField(this, "instance");
|
|
291
|
-
const options = Object.assign(this.options, _options);
|
|
292
|
-
const { unmount } = CreateComponent(options, {
|
|
293
|
-
name: "dialog",
|
|
294
|
-
components: [NutPopup, _sfc_main$1, _sfc_main$2],
|
|
295
|
-
wrapper: (elWrap, root) => {
|
|
296
|
-
return {
|
|
297
|
-
setup() {
|
|
298
|
-
options.onUpdate = (val) => {
|
|
299
|
-
if (val === false) {
|
|
300
|
-
nextTick(() => {
|
|
301
|
-
unmount();
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
if (options == null ? void 0 : options.onOpened) {
|
|
306
|
-
options == null ? void 0 : options.onOpened();
|
|
307
|
-
}
|
|
308
|
-
options.teleport = `#${root.id}`;
|
|
309
|
-
return () => {
|
|
310
|
-
return h(Dialog, options);
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
});
|
|
316
|
-
}
|
|
253
|
+
}, 8, ["visible", "teleport", "lock-scroll", "catch-move", "pop-class", "overlay-class", "overlay-style", "style", "z-index", "onClickOverlay", "onClickCloseIcon"]);
|
|
317
254
|
}
|
|
318
|
-
const
|
|
319
|
-
return new DialogFunction(options);
|
|
320
|
-
};
|
|
321
|
-
showDialog.install = (app) => {
|
|
322
|
-
app.use(Dialog);
|
|
323
|
-
};
|
|
255
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
324
256
|
export {
|
|
325
|
-
|
|
326
|
-
Dialog as default,
|
|
327
|
-
showDialog
|
|
257
|
+
index_taro as default
|
|
328
258
|
};
|
|
@@ -22,7 +22,7 @@ import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "NutDivider"
|
|
24
24
|
}), {
|
|
25
|
-
__name: "divider",
|
|
25
|
+
__name: "divider.taro",
|
|
26
26
|
props: {
|
|
27
27
|
contentPosition: { default: "center" },
|
|
28
28
|
dashed: { type: Boolean, default: false },
|