@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
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
var __async = (__this, __arguments, generator) => {
|
|
2
|
+
return new Promise((resolve, reject) => {
|
|
3
|
+
var fulfilled = (value) => {
|
|
4
|
+
try {
|
|
5
|
+
step(generator.next(value));
|
|
6
|
+
} catch (e) {
|
|
7
|
+
reject(e);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var rejected = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
step(generator.throw(value));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
reject(e);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
import { ref, computed, onMounted, watch, resolveComponent, openBlock, createElementBlock, Fragment, renderSlot, createCommentVNode, createTextVNode, createElementVNode, normalizeClass, normalizeStyle, createVNode, withCtx, renderList, withModifiers, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
|
|
2
22
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
3
23
|
import { r as renderIcon } from "../renderIcon-CfE94nuJ.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { N as NutPopup } from "../index-
|
|
24
|
+
import { a as useTaroRectById, u as useTaroRect } from "../index-m0Wcof-q.js";
|
|
25
|
+
import { N as NutPopup } from "../index.taro-CNxLoYer.js";
|
|
26
|
+
import Taro from "@tarojs/taro";
|
|
6
27
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
7
28
|
const { create } = createComponent("popover");
|
|
8
29
|
const _sfc_main = create({
|
|
@@ -86,7 +107,10 @@ const _sfc_main = create({
|
|
|
86
107
|
};
|
|
87
108
|
const getRootPosition = computed(() => {
|
|
88
109
|
const styles = {};
|
|
89
|
-
if (!rootPosition.value)
|
|
110
|
+
if (!rootPosition.value) {
|
|
111
|
+
styles.visibility = "hidden";
|
|
112
|
+
return styles;
|
|
113
|
+
}
|
|
90
114
|
const contentWidth = elRect.value.width;
|
|
91
115
|
const contentHeight = elRect.value.height;
|
|
92
116
|
const { width, height, left, top, right } = rootPosition.value;
|
|
@@ -127,24 +151,61 @@ const _sfc_main = create({
|
|
|
127
151
|
}
|
|
128
152
|
}
|
|
129
153
|
}
|
|
154
|
+
if (elRect.value.width === 0) {
|
|
155
|
+
styles.visibility = "hidden";
|
|
156
|
+
} else {
|
|
157
|
+
styles.visibility = "initial";
|
|
158
|
+
}
|
|
130
159
|
return styles;
|
|
131
160
|
});
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
161
|
+
const getPopoverContentW = () => __async(this, null, function* () {
|
|
162
|
+
useTaroRect(popoverContentRef).then(
|
|
163
|
+
(rect) => {
|
|
164
|
+
elRect.value = {
|
|
165
|
+
height: rect.height,
|
|
166
|
+
width: rect.width
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
() => {
|
|
170
|
+
}
|
|
136
171
|
);
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
172
|
+
});
|
|
173
|
+
const getContentWidth = () => {
|
|
174
|
+
Taro.createSelectorQuery().selectViewport().scrollOffset((res) => {
|
|
175
|
+
const distance = res.scrollTop;
|
|
176
|
+
if (props.targetId) {
|
|
177
|
+
useTaroRectById(props.targetId).then(
|
|
178
|
+
(rect) => {
|
|
179
|
+
rootPosition.value = {
|
|
180
|
+
width: rect == null ? void 0 : rect.width,
|
|
181
|
+
height: rect == null ? void 0 : rect.height,
|
|
182
|
+
left: rect == null ? void 0 : rect.left,
|
|
183
|
+
top: (rect == null ? void 0 : rect.top) + distance,
|
|
184
|
+
right: rect == null ? void 0 : rect.right
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
() => {
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
} else {
|
|
191
|
+
useTaroRect(popoverRef).then(
|
|
192
|
+
(rect) => {
|
|
193
|
+
rootPosition.value = {
|
|
194
|
+
width: rect == null ? void 0 : rect.width,
|
|
195
|
+
height: rect == null ? void 0 : rect.height,
|
|
196
|
+
left: rect == null ? void 0 : rect.left,
|
|
197
|
+
top: (rect == null ? void 0 : rect.top) + distance,
|
|
198
|
+
right: rect == null ? void 0 : rect.right
|
|
199
|
+
};
|
|
200
|
+
},
|
|
201
|
+
() => {
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
}).exec();
|
|
206
|
+
setTimeout(() => {
|
|
207
|
+
getPopoverContentW();
|
|
208
|
+
}, 300);
|
|
148
209
|
};
|
|
149
210
|
onMounted(() => {
|
|
150
211
|
setTimeout(() => {
|
|
@@ -156,15 +217,18 @@ const _sfc_main = create({
|
|
|
156
217
|
(value) => {
|
|
157
218
|
showPopup.value = value;
|
|
158
219
|
if (value) {
|
|
159
|
-
|
|
160
|
-
nextTick(() => {
|
|
220
|
+
Taro.nextTick(() => {
|
|
161
221
|
getContentWidth();
|
|
162
222
|
});
|
|
163
|
-
} else {
|
|
164
|
-
window.removeEventListener("touchstart", clickAway, true);
|
|
165
223
|
}
|
|
166
224
|
}
|
|
167
225
|
);
|
|
226
|
+
watch(
|
|
227
|
+
() => props.location,
|
|
228
|
+
() => {
|
|
229
|
+
getContentWidth();
|
|
230
|
+
}
|
|
231
|
+
);
|
|
168
232
|
const update = (val) => {
|
|
169
233
|
emit("update", val);
|
|
170
234
|
emit("update:visible", val);
|
|
@@ -183,18 +247,10 @@ const _sfc_main = create({
|
|
|
183
247
|
closePopover();
|
|
184
248
|
}
|
|
185
249
|
};
|
|
186
|
-
const clickAway = (
|
|
187
|
-
|
|
188
|
-
const elContent = popoverContentRef.value;
|
|
189
|
-
let el = element && !element.contains(event.target);
|
|
190
|
-
if (props.targetId) {
|
|
191
|
-
const dom = document.querySelector(`#${props.targetId}`);
|
|
192
|
-
el = dom && !dom.contains(event.target);
|
|
193
|
-
}
|
|
194
|
-
if (el && elContent && !elContent.contains(event.target) && props.closeOnClickOutside) {
|
|
195
|
-
closePopover();
|
|
196
|
-
}
|
|
250
|
+
const clickAway = () => {
|
|
251
|
+
props.closeOnClickOutside && closePopover();
|
|
197
252
|
};
|
|
253
|
+
const refRandomId = Math.random().toString(36).slice(-8);
|
|
198
254
|
return {
|
|
199
255
|
showPopup,
|
|
200
256
|
openPopover,
|
|
@@ -205,72 +261,86 @@ const _sfc_main = create({
|
|
|
205
261
|
popoverContentRef,
|
|
206
262
|
getRootPosition,
|
|
207
263
|
popoverArrowStyle,
|
|
208
|
-
renderIcon
|
|
264
|
+
renderIcon,
|
|
265
|
+
refRandomId,
|
|
266
|
+
clickAway
|
|
209
267
|
};
|
|
210
268
|
}
|
|
211
269
|
});
|
|
212
|
-
const _hoisted_1 =
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
};
|
|
216
|
-
const _hoisted_2 = ["onClick"];
|
|
217
|
-
const _hoisted_3 = { class: "nut-popover-menu-item-name" };
|
|
270
|
+
const _hoisted_1 = ["id"];
|
|
271
|
+
const _hoisted_2 = ["id"];
|
|
272
|
+
const _hoisted_3 = ["onClick"];
|
|
273
|
+
const _hoisted_4 = { class: "nut-popover-menu-item-name" };
|
|
218
274
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
219
275
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
220
276
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
221
|
-
!_ctx.targetId ? (openBlock(), createElementBlock("
|
|
277
|
+
!_ctx.targetId ? (openBlock(), createElementBlock("view", {
|
|
222
278
|
key: 0,
|
|
279
|
+
id: "popoverRef" + _ctx.refRandomId,
|
|
223
280
|
ref: "popoverRef",
|
|
224
281
|
class: "nut-popover-wrapper",
|
|
225
282
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.openPopover && _ctx.openPopover(...args))
|
|
226
283
|
}, [
|
|
227
284
|
renderSlot(_ctx.$slots, "reference")
|
|
228
|
-
],
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
285
|
+
], 8, _hoisted_1)) : createCommentVNode("", true),
|
|
286
|
+
_cache[8] || (_cache[8] = createTextVNode()),
|
|
287
|
+
createElementVNode("view", {
|
|
288
|
+
class: normalizeClass(["nut-popover", `nut-popover--${_ctx.theme}`, `${_ctx.customClass}`]),
|
|
289
|
+
style: normalizeStyle(_ctx.getRootPosition)
|
|
290
|
+
}, [
|
|
291
|
+
createVNode(_component_nut_popup, {
|
|
292
|
+
visible: _ctx.showPopup,
|
|
293
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPopup = $event),
|
|
294
|
+
"pop-class": `nut-popover-content nut-popover-content--${_ctx.location}`,
|
|
295
|
+
style: normalizeStyle({ background: _ctx.bgColor }),
|
|
296
|
+
position: "",
|
|
297
|
+
transition: "nut-popover",
|
|
298
|
+
overlay: _ctx.overlay,
|
|
299
|
+
duration: _ctx.duration,
|
|
300
|
+
"overlay-style": _ctx.overlayStyle,
|
|
301
|
+
"overlay-class": _ctx.overlayClass,
|
|
302
|
+
"close-on-click-overlay": _ctx.closeOnClickOverlay
|
|
303
|
+
}, {
|
|
304
|
+
default: withCtx(() => [
|
|
305
|
+
createElementVNode("view", {
|
|
306
|
+
id: "popoverContentRef" + _ctx.refRandomId,
|
|
307
|
+
ref: "popoverContentRef",
|
|
308
|
+
class: "nut-popover-content-group"
|
|
309
|
+
}, [
|
|
310
|
+
_ctx.showArrow ? (openBlock(), createElementBlock("view", {
|
|
311
|
+
key: 0,
|
|
312
|
+
class: normalizeClass(_ctx.popoverArrow),
|
|
313
|
+
style: normalizeStyle(_ctx.popoverArrowStyle)
|
|
314
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
315
|
+
_cache[5] || (_cache[5] = createTextVNode()),
|
|
316
|
+
renderSlot(_ctx.$slots, "content"),
|
|
317
|
+
_cache[6] || (_cache[6] = createTextVNode()),
|
|
318
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
|
|
319
|
+
return openBlock(), createElementBlock("view", {
|
|
320
|
+
key: index,
|
|
321
|
+
class: normalizeClass([item.className, item.disabled && "nut-popover-menu-disabled", "nut-popover-menu-item"]),
|
|
322
|
+
onClick: withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
|
|
323
|
+
}, [
|
|
324
|
+
item.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(item.icon)), {
|
|
325
|
+
key: 0,
|
|
326
|
+
class: "nut-popover-item-img"
|
|
327
|
+
})) : createCommentVNode("", true),
|
|
328
|
+
_cache[4] || (_cache[4] = createTextVNode()),
|
|
329
|
+
createElementVNode("view", _hoisted_4, toDisplayString(item.name), 1)
|
|
330
|
+
], 10, _hoisted_3);
|
|
331
|
+
}), 128))
|
|
332
|
+
], 8, _hoisted_2)
|
|
333
|
+
]),
|
|
334
|
+
_: 3
|
|
335
|
+
}, 8, ["visible", "pop-class", "style", "overlay", "duration", "overlay-style", "overlay-class", "close-on-click-overlay"]),
|
|
336
|
+
_cache[7] || (_cache[7] = createTextVNode()),
|
|
337
|
+
_ctx.showPopup ? (openBlock(), createElementBlock("view", {
|
|
338
|
+
key: 0,
|
|
339
|
+
class: "nut-popover-content-bg",
|
|
340
|
+
onTouchmove: _cache[2] || (_cache[2] = (...args) => _ctx.clickAway && _ctx.clickAway(...args)),
|
|
341
|
+
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.clickAway && _ctx.clickAway(...args))
|
|
342
|
+
}, null, 32)) : createCommentVNode("", true)
|
|
343
|
+
], 6)
|
|
274
344
|
], 64);
|
|
275
345
|
}
|
|
276
346
|
const NutPopover = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -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, createCommentVNode, createElementVNode, toDisplayString } from "vue";
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createCommentVNode, createTextVNode, createElementVNode, toDisplayString } from "vue";
|
|
21
21
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
22
22
|
const _hoisted_1 = ["innerHTML"];
|
|
23
23
|
const _hoisted_2 = ["innerHTML"];
|
|
@@ -25,7 +25,7 @@ const prefix = "nut-price";
|
|
|
25
25
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
26
26
|
name: "NutPrice"
|
|
27
27
|
}), {
|
|
28
|
-
__name: "price",
|
|
28
|
+
__name: "price.taro",
|
|
29
29
|
props: {
|
|
30
30
|
price: { default: 0 },
|
|
31
31
|
needSymbol: { type: Boolean, default: true },
|
|
@@ -44,8 +44,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
44
44
|
[`${prefix}--strike`]: props.strikeThrough
|
|
45
45
|
};
|
|
46
46
|
});
|
|
47
|
+
const replaceSpecialChar = (url) => {
|
|
48
|
+
url = url.replace(/"/g, '"');
|
|
49
|
+
url = url.replace(/&/g, "&");
|
|
50
|
+
url = url.replace(/</g, "<");
|
|
51
|
+
url = url.replace(/>/g, ">");
|
|
52
|
+
url = url.replace(/ /g, " ");
|
|
53
|
+
url = url.replace(/¥/g, "¥");
|
|
54
|
+
return url;
|
|
55
|
+
};
|
|
47
56
|
const showSymbol = computed(() => {
|
|
48
|
-
const symbol = props.needSymbol ? props.symbol : "";
|
|
57
|
+
const symbol = props.needSymbol ? replaceSpecialChar(props.symbol) : "";
|
|
49
58
|
return symbol;
|
|
50
59
|
});
|
|
51
60
|
const checkPoint = (price) => {
|
|
@@ -90,16 +99,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
90
99
|
class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
91
100
|
innerHTML: showSymbol.value
|
|
92
101
|
}, null, 10, _hoisted_1)) : createCommentVNode("", true),
|
|
102
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
93
103
|
createElementVNode("view", {
|
|
94
104
|
class: normalizeClass(`nut-price--${_ctx.size}`)
|
|
95
105
|
}, toDisplayString(formatThousands(_ctx.price)), 3),
|
|
106
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
96
107
|
_ctx.decimalDigits != 0 ? (openBlock(), createElementBlock("view", {
|
|
97
108
|
key: 1,
|
|
98
109
|
class: normalizeClass(`nut-price--decimal-${_ctx.size}`)
|
|
99
110
|
}, ".", 2)) : createCommentVNode("", true),
|
|
111
|
+
_cache[2] || (_cache[2] = createTextVNode()),
|
|
100
112
|
createElementVNode("view", {
|
|
101
113
|
class: normalizeClass(`nut-price--decimal-${_ctx.size}`)
|
|
102
114
|
}, toDisplayString(formatDecimal(_ctx.price)), 3),
|
|
115
|
+
_cache[3] || (_cache[3] = createTextVNode()),
|
|
103
116
|
_ctx.needSymbol && _ctx.position === "after" ? (openBlock(), createElementBlock("view", {
|
|
104
117
|
key: 2,
|
|
105
118
|
class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
@@ -17,14 +17,14 @@ 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, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode, unref } from "vue";
|
|
21
|
-
import { Checked } from "@nutui/icons-vue";
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, createTextVNode, toDisplayString, createCommentVNode, renderSlot, createVNode, unref } from "vue";
|
|
21
|
+
import { Checked } from "@nutui/icons-vue-taro";
|
|
22
22
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
23
23
|
const _hoisted_1 = { class: "nut-progress" };
|
|
24
24
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
25
|
name: "NutProgress"
|
|
26
26
|
}), {
|
|
27
|
-
__name: "progress",
|
|
27
|
+
__name: "progress.taro",
|
|
28
28
|
props: {
|
|
29
29
|
percentage: { default: 0 },
|
|
30
30
|
size: { default: "base" },
|
|
@@ -60,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
60
60
|
};
|
|
61
61
|
});
|
|
62
62
|
return (_ctx, _cache) => {
|
|
63
|
-
return openBlock(), createElementBlock("
|
|
63
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
64
64
|
createElementVNode("div", {
|
|
65
65
|
class: normalizeClass(["nut-progress-outer", [_ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "", _ctx.size ? "nut-progress-" + _ctx.size : ""]]),
|
|
66
66
|
style: normalizeStyle({ height: height.value })
|
|
@@ -69,6 +69,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
69
69
|
class: normalizeClass(["nut-progress-inner", _ctx.status === "active" ? "nut-active" : ""]),
|
|
70
70
|
style: normalizeStyle(bgStyle.value)
|
|
71
71
|
}, null, 6),
|
|
72
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
72
73
|
_ctx.showText && _ctx.textInside && !_ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
73
74
|
key: 0,
|
|
74
75
|
class: "nut-progress-text nut-progress-insidetext",
|
|
@@ -83,6 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
83
84
|
style: normalizeStyle(textStyle.value)
|
|
84
85
|
}, toDisplayString(percentage.value) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)
|
|
85
86
|
], 4)) : createCommentVNode("", true),
|
|
87
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
86
88
|
_ctx.showText && _ctx.textInside && _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
87
89
|
key: 1,
|
|
88
90
|
class: "nut-progress-slot",
|
|
@@ -96,6 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
96
98
|
renderSlot(_ctx.$slots, "default")
|
|
97
99
|
], 4)) : createCommentVNode("", true)
|
|
98
100
|
], 6),
|
|
101
|
+
_cache[2] || (_cache[2] = createTextVNode()),
|
|
99
102
|
_ctx.showText && !_ctx.textInside ? (openBlock(), createElementBlock("div", {
|
|
100
103
|
key: 0,
|
|
101
104
|
class: "nut-progress-text",
|
|
@@ -17,8 +17,8 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, toRef, inject, computed, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, createVNode, unref, createElementVNode } from "vue";
|
|
21
|
-
import { CheckChecked, CheckNormal } from "@nutui/icons-vue";
|
|
20
|
+
import { defineComponent, toRef, inject, computed, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, createVNode, unref, createTextVNode, createElementVNode } from "vue";
|
|
21
|
+
import { CheckChecked, CheckNormal } from "@nutui/icons-vue-taro";
|
|
22
22
|
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
23
23
|
import { R as RADIO_KEY } from "../types-BODurTjN.js";
|
|
24
24
|
import { u as useFormDisabled } from "../common-BH7uB7Cn.js";
|
|
@@ -26,7 +26,7 @@ import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
|
26
26
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
27
27
|
name: "NutRadio"
|
|
28
28
|
}), {
|
|
29
|
-
__name: "radio",
|
|
29
|
+
__name: "radio.taro",
|
|
30
30
|
props: {
|
|
31
31
|
disabled: { type: Boolean, default: false },
|
|
32
32
|
shape: { default: "round" },
|
|
@@ -74,11 +74,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
74
74
|
};
|
|
75
75
|
});
|
|
76
76
|
return (_ctx, _cache) => {
|
|
77
|
-
return openBlock(), createElementBlock("
|
|
77
|
+
return openBlock(), createElementBlock("view", {
|
|
78
78
|
class: normalizeClass(radioClasses.value),
|
|
79
79
|
onClick: handleClick
|
|
80
80
|
}, [
|
|
81
|
-
_ctx.shape === "button" ? (openBlock(), createElementBlock("
|
|
81
|
+
_ctx.shape === "button" ? (openBlock(), createElementBlock("view", {
|
|
82
82
|
key: 0,
|
|
83
83
|
class: normalizeClass(buttonClasses.value)
|
|
84
84
|
}, [
|
|
@@ -86,18 +86,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
86
86
|
], 2)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
87
87
|
checked.value ? renderSlot(_ctx.$slots, "checkedIcon", { key: 0 }, () => [
|
|
88
88
|
createVNode(unref(CheckChecked), {
|
|
89
|
-
|
|
90
|
-
height: realIconSize.value,
|
|
89
|
+
size: realIconSize.value,
|
|
91
90
|
class: normalizeClass(iconClasses.value)
|
|
92
|
-
}, null, 8, ["
|
|
91
|
+
}, null, 8, ["size", "class"])
|
|
93
92
|
]) : renderSlot(_ctx.$slots, "icon", { key: 1 }, () => [
|
|
94
93
|
createVNode(unref(CheckNormal), {
|
|
95
|
-
|
|
96
|
-
height: realIconSize.value,
|
|
94
|
+
size: realIconSize.value,
|
|
97
95
|
class: normalizeClass(iconClasses.value)
|
|
98
|
-
}, null, 8, ["
|
|
96
|
+
}, null, 8, ["size", "class"])
|
|
99
97
|
]),
|
|
100
|
-
|
|
98
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
99
|
+
createElementVNode("view", {
|
|
101
100
|
class: normalizeClass(labelClasses.value)
|
|
102
101
|
}, [
|
|
103
102
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -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: "NutRadioGroup"
|
|
25
25
|
}), {
|
|
26
|
-
__name: "radio-group",
|
|
26
|
+
__name: "radio-group.taro",
|
|
27
27
|
props: {
|
|
28
28
|
modelValue: { type: [String, Number, Boolean], default: "" },
|
|
29
29
|
direction: { default: "vertical" },
|
|
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
return (_ctx, _cache) => {
|
|
51
|
-
return openBlock(), createElementBlock("
|
|
51
|
+
return openBlock(), createElementBlock("view", {
|
|
52
52
|
class: normalizeClass(["nut-radio-group", `nut-radio-group--${_ctx.direction}`])
|
|
53
53
|
}, [
|
|
54
54
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const _window = window;
|
|
2
|
-
const inBrowser = typeof window !== "undefined";
|
|
3
2
|
function requestAniFrame() {
|
|
4
3
|
if (typeof _window !== "undefined") {
|
|
5
4
|
return _window.requestAnimationFrame || _window.webkitRequestAnimationFrame || function(callback) {
|
|
@@ -11,15 +10,7 @@ function requestAniFrame() {
|
|
|
11
10
|
};
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
|
-
function cancelRaf(id) {
|
|
15
|
-
if (inBrowser) {
|
|
16
|
-
cancelAnimationFrame(id);
|
|
17
|
-
} else {
|
|
18
|
-
clearTimeout(id);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
13
|
const requestAniFrame$1 = requestAniFrame();
|
|
22
14
|
export {
|
|
23
|
-
cancelRaf as c,
|
|
24
15
|
requestAniFrame$1 as r
|
|
25
16
|
};
|