@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,8 +17,30 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
|
|
20
|
+
var __async = (__this, __arguments, generator) => {
|
|
21
|
+
return new Promise((resolve, reject) => {
|
|
22
|
+
var fulfilled = (value) => {
|
|
23
|
+
try {
|
|
24
|
+
step(generator.next(value));
|
|
25
|
+
} catch (e) {
|
|
26
|
+
reject(e);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var rejected = (value) => {
|
|
30
|
+
try {
|
|
31
|
+
step(generator.throw(value));
|
|
32
|
+
} catch (e) {
|
|
33
|
+
reject(e);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
import { ref, reactive, computed, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, createTextVNode, withModifiers, normalizeStyle } from "vue";
|
|
21
41
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
42
|
+
import { u as useTaroRect } from "../index-m0Wcof-q.js";
|
|
43
|
+
import Taro from "@tarojs/taro";
|
|
22
44
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
23
45
|
const { create } = createComponent("ellipsis");
|
|
24
46
|
const _sfc_main = create({
|
|
@@ -54,117 +76,157 @@ const _sfc_main = create({
|
|
|
54
76
|
},
|
|
55
77
|
emits: ["click", "change"],
|
|
56
78
|
setup(props, { emit }) {
|
|
57
|
-
const
|
|
58
|
-
|
|
79
|
+
const rootContain = ref(null);
|
|
80
|
+
const symbolContain = ref(null);
|
|
81
|
+
let contantCopy = ref(props.content);
|
|
59
82
|
let maxHeight = 0;
|
|
60
|
-
|
|
83
|
+
let lineHeight = 0;
|
|
84
|
+
let originHeight = 0;
|
|
85
|
+
const ellipsis = reactive({});
|
|
86
|
+
const refRandomId = Math.random().toString(36).slice(-8);
|
|
87
|
+
const rootId = ref("root" + refRandomId);
|
|
88
|
+
let widthRef = ref("auto");
|
|
61
89
|
const state = reactive({
|
|
62
90
|
exceeded: false,
|
|
63
91
|
// 是否超出
|
|
64
92
|
expanded: false
|
|
65
93
|
// 是否折叠
|
|
66
94
|
});
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
95
|
+
let widthBase = [14, 10, 7, 8.4, 10];
|
|
96
|
+
let symbolTextWidth = widthBase[0] * 0.7921;
|
|
97
|
+
const chineseReg = /^[\u4e00-\u9fa5]+$/;
|
|
98
|
+
const digitReg = /^[0-9]+$/;
|
|
99
|
+
const letterUpperReg = /^[A-Z]+$/;
|
|
100
|
+
const letterLowerReg = /^[a-z]+$/;
|
|
101
|
+
const symbolText = computed(() => {
|
|
102
|
+
if (props.direction == "end" || props.direction == "middle") {
|
|
103
|
+
return `${props.symbol}${props.expandText}`;
|
|
73
104
|
}
|
|
74
|
-
|
|
105
|
+
return `${props.symbol}${props.expandText}${props.symbol}`;
|
|
106
|
+
});
|
|
75
107
|
onMounted(() => {
|
|
76
|
-
|
|
108
|
+
setTimeout(() => {
|
|
109
|
+
getSymbolInfo();
|
|
110
|
+
getReference();
|
|
111
|
+
}, 100);
|
|
77
112
|
});
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
});
|
|
86
|
-
container.style.position = "fixed";
|
|
87
|
-
container.style.left = "999999px";
|
|
88
|
-
container.style.top = "999999px";
|
|
89
|
-
container.style.zIndex = "-1000";
|
|
90
|
-
container.style.height = "auto";
|
|
91
|
-
container.style.minHeight = "auto";
|
|
92
|
-
container.style.maxHeight = "auto";
|
|
93
|
-
container.style.textOverflow = "clip";
|
|
94
|
-
container.style.whiteSpace = "normal";
|
|
95
|
-
container.style.webkitLineClamp = "unset";
|
|
96
|
-
container.style.display = "block";
|
|
97
|
-
const lineHeight = pxToNumber(originStyle.lineHeight === "normal" ? props.lineHeight : originStyle.lineHeight);
|
|
98
|
-
maxHeight = Math.floor(
|
|
99
|
-
lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
|
|
113
|
+
const getSymbolInfo = () => {
|
|
114
|
+
useTaroRect(symbolContain).then(
|
|
115
|
+
(refe) => {
|
|
116
|
+
symbolTextWidth = refe.width ? Math.ceil(refe.width) : Math.ceil(widthBase[0] * 0.7921);
|
|
117
|
+
},
|
|
118
|
+
() => {
|
|
119
|
+
}
|
|
100
120
|
);
|
|
101
|
-
container.innerText = props.content;
|
|
102
|
-
document.body.appendChild(container);
|
|
103
|
-
calcEllipse();
|
|
104
121
|
};
|
|
122
|
+
const getReference = () => __async(this, null, function* () {
|
|
123
|
+
const query = Taro.createSelectorQuery();
|
|
124
|
+
query.select(`#${rootId.value}`) && query.select(`#${rootId.value}`).fields(
|
|
125
|
+
{
|
|
126
|
+
computedStyle: ["width", "height", "lineHeight", "paddingTop", "paddingBottom", "fontSize"]
|
|
127
|
+
},
|
|
128
|
+
(res) => {
|
|
129
|
+
lineHeight = pxToNumber(res.lineHeight === "normal" ? props.lineHeight : res.lineHeight);
|
|
130
|
+
maxHeight = Math.floor(
|
|
131
|
+
lineHeight * (Number(props.rows) + 0.5) + pxToNumber(res.paddingTop) + pxToNumber(res.paddingBottom)
|
|
132
|
+
);
|
|
133
|
+
originHeight = pxToNumber(res.height);
|
|
134
|
+
widthRef.value = res.width;
|
|
135
|
+
const bsize = pxToNumber(res.fontSize);
|
|
136
|
+
widthBase = [bsize, bsize * 0.72, bsize * 0.53, bsize * 0.4, bsize * 0.75];
|
|
137
|
+
calcEllipse();
|
|
138
|
+
}
|
|
139
|
+
).exec();
|
|
140
|
+
});
|
|
105
141
|
const calcEllipse = () => {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
142
|
+
useTaroRect(rootContain).then(
|
|
143
|
+
(refe) => {
|
|
144
|
+
if (refe.height <= maxHeight) {
|
|
145
|
+
state.exceeded = false;
|
|
146
|
+
} else {
|
|
147
|
+
const rowNum = Math.floor(props.content.length / (originHeight / lineHeight - 1));
|
|
148
|
+
if (props.direction === "middle") {
|
|
149
|
+
const end = props.content.length;
|
|
150
|
+
ellipsis.leading = tailorContent(0, rowNum * (Number(props.rows) + 0.5), "end");
|
|
151
|
+
ellipsis.tailing = tailorContent(props.content.length - rowNum * (Number(props.rows) + 0.5), end, "start");
|
|
152
|
+
} else if (props.direction === "end") {
|
|
153
|
+
const end = rowNum * (Number(props.rows) + 0.5);
|
|
154
|
+
ellipsis.leading = tailorContent(0, end);
|
|
155
|
+
} else {
|
|
156
|
+
const start = props.content.length - rowNum * (Number(props.rows) + 0.5) - 5;
|
|
157
|
+
ellipsis.tailing = tailorContent(start, props.content.length);
|
|
158
|
+
}
|
|
159
|
+
assignContent();
|
|
160
|
+
setTimeout(() => {
|
|
161
|
+
verifyEllipsis();
|
|
162
|
+
}, 100);
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
() => {
|
|
166
|
+
}
|
|
167
|
+
);
|
|
117
168
|
};
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
169
|
+
const verifyEllipsis = () => __async(this, null, function* () {
|
|
170
|
+
useTaroRect(rootContain).then(
|
|
171
|
+
(refe) => {
|
|
172
|
+
var _a, _b;
|
|
173
|
+
if (refe && refe.height && refe.height > maxHeight) {
|
|
174
|
+
if (props.direction == "end") {
|
|
175
|
+
ellipsis.leading = (_a = ellipsis.leading) == null ? void 0 : _a.slice(0, ellipsis.leading.length - 1);
|
|
176
|
+
} else {
|
|
177
|
+
ellipsis.tailing = (_b = ellipsis.tailing) == null ? void 0 : _b.slice(1, ellipsis.tailing.length);
|
|
178
|
+
}
|
|
179
|
+
assignContent();
|
|
180
|
+
setTimeout(() => {
|
|
181
|
+
verifyEllipsis();
|
|
182
|
+
}, 100);
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
() => {
|
|
130
186
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
187
|
+
);
|
|
188
|
+
});
|
|
189
|
+
const assignContent = () => {
|
|
190
|
+
contantCopy.value = `${ellipsis.leading || ""}${ellipsis.leading ? props.symbol : ""}${props.expandText || ""}${ellipsis.tailing ? props.symbol : ""}${ellipsis.tailing || ""}`;
|
|
191
|
+
};
|
|
192
|
+
const tailorContent = (left, right, type = "") => {
|
|
193
|
+
const threeDotWidth = symbolTextWidth;
|
|
194
|
+
const direc = props.direction === "middle" && type ? type : props.direction;
|
|
195
|
+
state.exceeded = true;
|
|
196
|
+
let widthPart = -1;
|
|
197
|
+
let start = left;
|
|
198
|
+
let end = right;
|
|
199
|
+
let cutoff = 0;
|
|
200
|
+
let marking = 0;
|
|
201
|
+
if (direc === "end") {
|
|
202
|
+
marking = start;
|
|
203
|
+
cutoff = end;
|
|
135
204
|
} else {
|
|
136
|
-
|
|
205
|
+
marking = end;
|
|
206
|
+
cutoff = start;
|
|
137
207
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
208
|
+
let contentWidth = pxToNumber(widthRef.value) * Number(props.rows) - threeDotWidth;
|
|
209
|
+
let contentPartWidth = props.direction === "middle" ? contentWidth / 2 : contentWidth;
|
|
210
|
+
while (widthPart < contentPartWidth) {
|
|
211
|
+
const zi = props.content[marking];
|
|
212
|
+
if (chineseReg.test(zi)) {
|
|
213
|
+
widthPart = Number(widthPart + widthBase[0]);
|
|
214
|
+
} else if (letterUpperReg.test(zi)) {
|
|
215
|
+
widthPart = Number(widthPart + widthBase[1]);
|
|
216
|
+
} else if (letterLowerReg.test(zi)) {
|
|
217
|
+
widthPart = Number(widthPart + widthBase[2]);
|
|
218
|
+
} else if (digitReg.test(zi)) {
|
|
219
|
+
widthPart = Number(widthPart + widthBase[3]);
|
|
141
220
|
} else {
|
|
142
|
-
|
|
221
|
+
widthPart = Number(widthPart + widthBase[4]);
|
|
143
222
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return tailor(left, middle);
|
|
147
|
-
} else {
|
|
148
|
-
return tailor(middle, right);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
const tailorMiddle = (leftPart, rightPart) => {
|
|
153
|
-
const actionText = state.expanded ? props.collapseText : props.expandText;
|
|
154
|
-
const end = props.content.length;
|
|
155
|
-
if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
|
|
156
|
-
return {
|
|
157
|
-
leading: props.content.slice(0, leftPart[0]) + props.symbol,
|
|
158
|
-
tailing: props.symbol + props.content.slice(rightPart[1], end)
|
|
159
|
-
};
|
|
223
|
+
cutoff = marking;
|
|
224
|
+
direc === "end" ? marking++ : marking--;
|
|
160
225
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
container.innerText = props.content.slice(0, leftPartMiddle) + props.symbol + actionText + props.symbol + props.content.slice(rightPartMiddle, end);
|
|
164
|
-
if (container.offsetHeight <= maxHeight) {
|
|
165
|
-
return tailorMiddle([leftPartMiddle, leftPart[1]], [rightPart[0], rightPartMiddle]);
|
|
226
|
+
if (direc === "end") {
|
|
227
|
+
return props.content.slice(0, cutoff);
|
|
166
228
|
} else {
|
|
167
|
-
return
|
|
229
|
+
return props.content.slice(cutoff, end);
|
|
168
230
|
}
|
|
169
231
|
};
|
|
170
232
|
const pxToNumber = (value) => {
|
|
@@ -184,39 +246,79 @@ const _sfc_main = create({
|
|
|
184
246
|
const handleClick = () => {
|
|
185
247
|
emit("click");
|
|
186
248
|
};
|
|
187
|
-
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
249
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
250
|
+
rootId,
|
|
251
|
+
rootContain,
|
|
252
|
+
symbolContain,
|
|
253
|
+
ellipsis,
|
|
254
|
+
contantCopy,
|
|
255
|
+
symbolText,
|
|
256
|
+
clickHandle,
|
|
257
|
+
handleClick,
|
|
258
|
+
refRandomId,
|
|
259
|
+
widthRef
|
|
260
|
+
});
|
|
188
261
|
}
|
|
189
262
|
});
|
|
190
|
-
const _hoisted_1 =
|
|
191
|
-
const _hoisted_2 = {
|
|
192
|
-
|
|
263
|
+
const _hoisted_1 = ["id"];
|
|
264
|
+
const _hoisted_2 = {
|
|
265
|
+
key: 0,
|
|
266
|
+
class: "nut-ellipsis__wordbreak"
|
|
267
|
+
};
|
|
268
|
+
const _hoisted_3 = {
|
|
269
|
+
key: 1,
|
|
270
|
+
class: "nut-ellipsis__wordbreak"
|
|
271
|
+
};
|
|
272
|
+
const _hoisted_4 = { key: 2 };
|
|
273
|
+
const _hoisted_5 = ["id"];
|
|
274
|
+
const _hoisted_6 = ["id"];
|
|
193
275
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
194
|
-
return openBlock(), createElementBlock("view",
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
_ctx.
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
276
|
+
return openBlock(), createElementBlock("view", null, [
|
|
277
|
+
createElementVNode("view", {
|
|
278
|
+
id: _ctx.rootId,
|
|
279
|
+
class: "nut-ellipsis ell",
|
|
280
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
281
|
+
}, [
|
|
282
|
+
!_ctx.exceeded ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true),
|
|
283
|
+
_cache[3] || (_cache[3] = createTextVNode()),
|
|
284
|
+
_ctx.exceeded && !_ctx.expanded ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
285
|
+
createTextVNode(toDisplayString(_ctx.ellipsis.leading) + toDisplayString(_ctx.ellipsis.leading && _ctx.symbol), 1),
|
|
286
|
+
_ctx.expandText ? (openBlock(), createElementBlock("view", {
|
|
287
|
+
key: 0,
|
|
288
|
+
class: "nut-ellipsis__text",
|
|
289
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.clickHandle(1), ["stop"]))
|
|
290
|
+
}, toDisplayString(_ctx.expandText), 1)) : createCommentVNode("", true),
|
|
291
|
+
createTextVNode(toDisplayString(_ctx.ellipsis.tailing && _ctx.symbol) + toDisplayString(_ctx.ellipsis.tailing), 1)
|
|
292
|
+
])) : createCommentVNode("", true),
|
|
293
|
+
_cache[4] || (_cache[4] = createTextVNode()),
|
|
294
|
+
_ctx.exceeded && _ctx.expanded ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
295
|
+
createTextVNode(toDisplayString(_ctx.content) + " ", 1),
|
|
296
|
+
_ctx.expandText ? (openBlock(), createElementBlock("span", {
|
|
297
|
+
key: 0,
|
|
298
|
+
class: "nut-ellipsis__text",
|
|
299
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.clickHandle(2), ["stop"]))
|
|
300
|
+
}, toDisplayString(_ctx.collapseText), 1)) : createCommentVNode("", true)
|
|
301
|
+
])) : createCommentVNode("", true)
|
|
302
|
+
], 8, _hoisted_1),
|
|
303
|
+
_cache[5] || (_cache[5] = createTextVNode()),
|
|
304
|
+
createElementVNode("view", {
|
|
305
|
+
id: "rootContain" + _ctx.refRandomId,
|
|
306
|
+
ref: "rootContain",
|
|
307
|
+
class: "nut-ellipsis__copy",
|
|
308
|
+
style: normalizeStyle({ width: _ctx.widthRef })
|
|
309
|
+
}, [
|
|
310
|
+
createElementVNode("view", null, toDisplayString(_ctx.contantCopy), 1)
|
|
311
|
+
], 12, _hoisted_5),
|
|
312
|
+
_cache[6] || (_cache[6] = createTextVNode()),
|
|
313
|
+
createElementVNode("view", {
|
|
314
|
+
id: "symbolContain" + _ctx.refRandomId,
|
|
315
|
+
ref: "symbolContain",
|
|
316
|
+
class: "nut-ellipsis__copy",
|
|
317
|
+
style: { "display": "inline" }
|
|
318
|
+
}, toDisplayString(_ctx.symbolText), 9, _hoisted_6)
|
|
319
|
+
]);
|
|
218
320
|
}
|
|
219
|
-
const
|
|
321
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
220
322
|
export {
|
|
221
|
-
|
|
323
|
+
index_taro as default
|
|
222
324
|
};
|
|
@@ -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 { defineComponent, computed, openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot, createCommentVNode, toDisplayString } from "vue";
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
21
21
|
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
22
|
-
import { u as useLocale } from "../index-
|
|
22
|
+
import { u as useLocale } from "../index-IxPZmHlb.js";
|
|
23
23
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
24
24
|
const _hoisted_1 = { class: "nut-empty" };
|
|
25
25
|
const _hoisted_2 = ["src"];
|
|
@@ -28,7 +28,7 @@ const cN = "NutEmpty";
|
|
|
28
28
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
29
29
|
name: cN
|
|
30
30
|
}), {
|
|
31
|
-
__name: "empty",
|
|
31
|
+
__name: "empty.taro",
|
|
32
32
|
props: {
|
|
33
33
|
image: { default: "empty" },
|
|
34
34
|
imageSize: { default: "" },
|
|
@@ -67,9 +67,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
67
67
|
}, null, 8, _hoisted_2)) : createCommentVNode("", true)
|
|
68
68
|
])
|
|
69
69
|
], 4),
|
|
70
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
70
71
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
71
72
|
createElementVNode("view", _hoisted_3, toDisplayString(descriptionText.value), 1)
|
|
72
73
|
]),
|
|
74
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
73
75
|
renderSlot(_ctx.$slots, "default")
|
|
74
76
|
]);
|
|
75
77
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
|
|
2
|
-
import { Left } from "@nutui/icons-vue";
|
|
1
|
+
import { computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, createTextVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
|
|
2
|
+
import { Left } from "@nutui/icons-vue-taro";
|
|
3
3
|
import { Overlay as _sfc_main$1 } from "../overlay/Overlay.js";
|
|
4
4
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
5
|
-
import { u as useLocale } from "../index-
|
|
5
|
+
import { u as useLocale } from "../index-IxPZmHlb.js";
|
|
6
6
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
7
7
|
const { create } = createComponent("fixed-nav");
|
|
8
8
|
const cN = "NutFixedNav";
|
|
@@ -97,35 +97,40 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
97
97
|
"z-index": 200,
|
|
98
98
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateValue(false))
|
|
99
99
|
}, null, 8, ["visible"])) : createCommentVNode("", true),
|
|
100
|
+
_cache[5] || (_cache[5] = createTextVNode()),
|
|
100
101
|
renderSlot(_ctx.$slots, "list", {}, () => [
|
|
101
102
|
createElementVNode("view", _hoisted_1, [
|
|
102
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item,
|
|
103
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index) => {
|
|
103
104
|
return openBlock(), createElementBlock("view", {
|
|
104
|
-
key: item.id ||
|
|
105
|
+
key: item.id || index,
|
|
105
106
|
class: normalizeClass(["nut-fixed-nav__list-item", { active: item.id == _ctx.current }]),
|
|
106
107
|
onClick: ($event) => _ctx.selected(item, $event)
|
|
107
108
|
}, [
|
|
108
109
|
createElementVNode("img", {
|
|
109
110
|
src: item.icon
|
|
110
111
|
}, null, 8, _hoisted_3),
|
|
112
|
+
_cache[2] || (_cache[2] = createTextVNode()),
|
|
111
113
|
createElementVNode("view", _hoisted_4, toDisplayString(item.text), 1),
|
|
114
|
+
_cache[3] || (_cache[3] = createTextVNode()),
|
|
112
115
|
item.num ? (openBlock(), createElementBlock("view", _hoisted_5, toDisplayString(item.num), 1)) : createCommentVNode("", true)
|
|
113
116
|
], 10, _hoisted_2);
|
|
114
117
|
}), 128))
|
|
115
118
|
])
|
|
116
119
|
]),
|
|
120
|
+
_cache[6] || (_cache[6] = createTextVNode()),
|
|
117
121
|
createElementVNode("div", {
|
|
118
122
|
class: "nut-fixed-nav__btn",
|
|
119
123
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.updateValue())
|
|
120
124
|
}, [
|
|
121
125
|
renderSlot(_ctx.$slots, "btn", {}, () => [
|
|
122
126
|
createVNode(_component_Left, { color: "#fff" }),
|
|
127
|
+
_cache[4] || (_cache[4] = createTextVNode()),
|
|
123
128
|
createElementVNode("view", _hoisted_6, toDisplayString(_ctx.visible ? _ctx.activeText || _ctx.translate("activeText") : _ctx.unActiveText || _ctx.translate("unActiveText")), 1)
|
|
124
129
|
])
|
|
125
130
|
])
|
|
126
131
|
], 6);
|
|
127
132
|
}
|
|
128
|
-
const
|
|
133
|
+
const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
129
134
|
export {
|
|
130
|
-
|
|
135
|
+
index_taro as default
|
|
131
136
|
};
|
|
@@ -51,14 +51,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
51
51
|
};
|
|
52
52
|
import { defineComponent, computed, reactive, provide, watch, openBlock, createElementBlock, withModifiers, createVNode, unref, withCtx, renderSlot } from "vue";
|
|
53
53
|
import { u as useChildren } from "../useChildren-BZ4-J79J.js";
|
|
54
|
-
import { g as getPropByPath,
|
|
54
|
+
import { g as getPropByPath, d as isPromise } from "../util-2G3mRQeF.js";
|
|
55
55
|
import { CellGroup as _sfc_main$1 } from "../cellgroup/CellGroup.js";
|
|
56
56
|
import { F as FORM_TIP_KEY, a as FORM_KEY, b as FORM_DISABLED_KEY } from "../common-BH7uB7Cn.js";
|
|
57
57
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
58
58
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
59
59
|
name: "NutForm"
|
|
60
60
|
}), {
|
|
61
|
-
__name: "form",
|
|
61
|
+
__name: "form.taro",
|
|
62
62
|
props: {
|
|
63
63
|
modelValue: { default: () => ({}) },
|
|
64
64
|
rules: { default: () => ({}) },
|
|
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
28
28
|
name: "NutFormItem",
|
|
29
29
|
inheritAttrs: false
|
|
30
30
|
}), {
|
|
31
|
-
__name: "form-item",
|
|
31
|
+
__name: "form-item.taro",
|
|
32
32
|
props: {
|
|
33
33
|
prop: { default: "" },
|
|
34
34
|
label: { default: "" },
|
|
@@ -99,6 +99,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
99
99
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
100
100
|
])
|
|
101
101
|
], 6)) : createCommentVNode("", true),
|
|
102
|
+
_cache[1] || (_cache[1] = createTextVNode()),
|
|
102
103
|
createElementVNode("view", _hoisted_1, [
|
|
103
104
|
createElementVNode("view", {
|
|
104
105
|
class: "nut-form-item__body__slots",
|
|
@@ -106,6 +107,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
106
107
|
}, [
|
|
107
108
|
renderSlot(_ctx.$slots, "default")
|
|
108
109
|
], 4),
|
|
110
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
109
111
|
unref(parent)[_ctx.prop] && _ctx.showErrorMessage ? (openBlock(), createElementBlock("view", {
|
|
110
112
|
key: 0,
|
|
111
113
|
class: "nut-form-item__body__tips",
|
|
@@ -25,7 +25,7 @@ import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
|
25
25
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
26
26
|
name: "NutGrid"
|
|
27
27
|
}), {
|
|
28
|
-
__name: "grid",
|
|
28
|
+
__name: "grid.taro",
|
|
29
29
|
props: {
|
|
30
30
|
columnNum: { default: 4 },
|
|
31
31
|
border: { type: Boolean, default: true },
|
|
@@ -17,26 +17,21 @@ 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, normalizeStyle, createElementVNode, normalizeClass, renderSlot,
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, renderSlot, createTextVNode, Fragment, toDisplayString } from "vue";
|
|
21
21
|
import { u as useParent } from "../useParent-D6DiuxZZ.js";
|
|
22
22
|
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
23
|
-
import { u as useRouter } from "../index-aiGQ-EiA.js";
|
|
24
23
|
import { G as GRID_KEY } from "../types-CJeZIBld.js";
|
|
25
24
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
26
25
|
const _hoisted_1 = { class: "nut-grid-item__text" };
|
|
27
26
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
28
27
|
name: "NutGridItem"
|
|
29
28
|
}), {
|
|
30
|
-
__name: "grid-item",
|
|
29
|
+
__name: "grid-item.taro",
|
|
31
30
|
props: {
|
|
32
|
-
text: {}
|
|
33
|
-
to: {},
|
|
34
|
-
url: { default: "" },
|
|
35
|
-
replace: { type: Boolean, default: false }
|
|
31
|
+
text: {}
|
|
36
32
|
},
|
|
37
33
|
emits: ["click"],
|
|
38
34
|
setup(__props, { emit: __emit }) {
|
|
39
|
-
const props = __props;
|
|
40
35
|
const emit = __emit;
|
|
41
36
|
const { parent: parentObj, index } = useParent(GRID_KEY);
|
|
42
37
|
const parent = (parentObj == null ? void 0 : parentObj.props) || {};
|
|
@@ -64,17 +59,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
64
59
|
[`${prefixCls}--square`]: parent.square,
|
|
65
60
|
[`${prefixCls}--reverse`]: parent.reverse,
|
|
66
61
|
[`${prefixCls}--${parent.direction}`]: !!parent.direction,
|
|
67
|
-
[`${prefixCls}--clickable`]: parent.clickable
|
|
62
|
+
[`${prefixCls}--clickable`]: parent.clickable
|
|
68
63
|
};
|
|
69
64
|
});
|
|
70
|
-
const router = useRouter();
|
|
71
65
|
const handleClick = (event) => {
|
|
72
66
|
emit("click", event);
|
|
73
|
-
if (props.to && router) {
|
|
74
|
-
router[props.replace ? "replace" : "push"](props.to);
|
|
75
|
-
} else if (props.url) {
|
|
76
|
-
props.replace ? location.replace(props.url) : location.href = props.url;
|
|
77
|
-
}
|
|
78
67
|
};
|
|
79
68
|
return (_ctx, _cache) => {
|
|
80
69
|
return openBlock(), createElementBlock("view", {
|
|
@@ -86,6 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
86
75
|
class: normalizeClass(contentClass.value)
|
|
87
76
|
}, [
|
|
88
77
|
renderSlot(_ctx.$slots, "default"),
|
|
78
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
|
89
79
|
createElementVNode("view", _hoisted_1, [
|
|
90
80
|
_ctx.text ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
91
81
|
createTextVNode(toDisplayString(_ctx.text), 1)
|