@nutui/nutui 3.3.1 → 4.0.0-beta.0
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/README.md +2 -2
- package/dist/{nutui.es.js → nutui.js} +3863 -3683
- package/dist/{nutui.umd.js → nutui.umd.cjs} +3776 -3703
- package/dist/packages/_es/ActionSheet.js +72 -65
- package/dist/packages/_es/Address.js +77 -72
- package/dist/packages/_es/AddressList.js +41 -34
- package/dist/packages/_es/Animate.js +8 -6
- package/dist/packages/_es/Audio.js +28 -23
- package/dist/packages/_es/AudioOperate.js +12 -6
- package/dist/packages/_es/Avatar.js +15 -64
- package/dist/packages/_es/AvatarGroup.js +7 -5
- package/dist/packages/_es/{BackTop.js → Backtop.js} +20 -22
- package/dist/packages/_es/Badge.js +9 -7
- package/dist/packages/_es/Barrage.js +13 -12
- package/dist/packages/_es/Button.js +14 -33
- package/dist/packages/_es/Calendar.js +15 -9
- package/dist/packages/_es/CalendarItem.js +9 -6
- package/dist/packages/_es/Card.js +14 -5
- package/dist/packages/_es/Cascader.js +31 -16
- package/dist/packages/_es/Category.js +10 -10
- package/dist/packages/_es/CategoryPane.js +22 -20
- package/dist/packages/_es/Cell.js +57 -60
- package/dist/packages/_es/CellGroup.js +7 -5
- package/dist/packages/_es/Checkbox.js +26 -40
- package/dist/packages/_es/CheckboxGroup.js +8 -6
- package/dist/packages/_es/CircleProgress.js +12 -10
- package/dist/packages/_es/Col.js +7 -5
- package/dist/packages/_es/Collapse.js +27 -47
- package/dist/packages/_es/CollapseItem.js +71 -83
- package/dist/packages/_es/Comment.js +33 -36
- package/dist/packages/_es/ConfigProvider.js +23 -4
- package/dist/packages/_es/{CountDown.js → Countdown.js} +8 -6
- package/dist/packages/_es/{CountUp.js → Countup.js} +21 -19
- package/dist/packages/_es/DatePicker.js +31 -29
- package/dist/packages/_es/Dialog.js +66 -46
- package/dist/packages/_es/Divider.js +7 -5
- package/dist/packages/_es/Drag.js +8 -6
- package/dist/packages/_es/Ecard.js +17 -11
- package/dist/packages/_es/Elevator.js +23 -21
- package/dist/packages/_es/Ellipsis.js +11 -9
- package/dist/packages/_es/Empty.js +10 -8
- package/dist/packages/_es/FixedNav.js +84 -75
- package/dist/packages/_es/Form.js +149 -140
- package/dist/packages/_es/FormItem.js +14 -7
- package/dist/packages/_es/Grid.js +7 -5
- package/dist/packages/_es/GridItem.js +19 -42
- package/dist/packages/_es/Icon.js +8 -44
- package/dist/packages/_es/Image.js +22 -10
- package/dist/packages/_es/ImagePreview.js +72 -55
- package/dist/packages/_es/Indicator.js +7 -5
- package/dist/packages/_es/InfiniteLoading.js +56 -124
- package/dist/packages/_es/Input.js +57 -186
- package/dist/packages/_es/InputNumber.js +43 -35
- package/dist/packages/_es/Invoice.js +29 -10
- package/dist/packages/_es/Layout.js +5 -3
- package/dist/packages/_es/List.js +7 -5
- package/dist/packages/_es/Menu.js +22 -13
- package/dist/packages/_es/MenuItem.js +25 -24
- package/dist/packages/_es/Navbar.js +47 -37
- package/dist/packages/_es/{NoticeBar.js → Noticebar.js} +52 -65
- package/dist/packages/_es/Notify.js +12 -7
- package/dist/packages/_es/NumberKeyboard.js +123 -112
- package/dist/packages/_es/{OverLay.js → Overlay.js} +7 -5
- package/dist/packages/_es/Pagination.js +7 -5
- package/dist/packages/_es/Picker.js +307 -304
- package/dist/packages/_es/Popover.js +34 -24
- package/dist/packages/_es/Popup.js +9 -152
- package/dist/packages/_es/Price.js +9 -12
- package/dist/packages/_es/Progress.js +18 -20
- package/dist/packages/_es/PullRefresh.js +222 -0
- package/dist/packages/_es/Radio.js +10 -103
- package/dist/packages/_es/RadioGroup.js +8 -44
- package/dist/packages/_es/Range.js +22 -20
- package/dist/packages/_es/Rate.js +153 -166
- package/dist/packages/_es/Row.js +7 -5
- package/dist/packages/_es/{SearchBar.js → Searchbar.js} +16 -15
- package/dist/packages/_es/ShortPassword.js +53 -121
- package/dist/packages/_es/{SideNavBar.js → SideNavbar.js} +11 -9
- package/dist/packages/_es/{SideNavBarItem.js → SideNavbarItem.js} +12 -10
- package/dist/packages/_es/Signature.js +12 -6
- package/dist/packages/_es/Skeleton.js +95 -85
- package/dist/packages/_es/Sku.js +28 -24
- package/dist/packages/_es/Step.js +28 -41
- package/dist/packages/_es/Steps.js +5 -3
- package/dist/packages/_es/Sticky.js +9 -150
- package/dist/packages/_es/{SubSideNavBar.js → SubSideNavbar.js} +18 -16
- package/dist/packages/_es/Swipe.js +8 -6
- package/dist/packages/_es/Swiper.js +121 -61
- package/dist/packages/_es/SwiperItem.js +8 -6
- package/dist/packages/_es/Switch.js +16 -28
- package/dist/packages/_es/TabPane.js +9 -7
- package/dist/packages/_es/Tabbar.js +21 -26
- package/dist/packages/_es/TabbarItem.js +39 -83
- package/dist/packages/_es/Table.js +15 -11
- package/dist/packages/_es/Tabs.js +33 -25
- package/dist/packages/_es/Tag.js +15 -9
- package/dist/packages/_es/{TextArea.js → Textarea.js} +8 -6
- package/dist/packages/_es/TimeDetail.js +12 -10
- package/dist/packages/_es/TimePannel.js +9 -7
- package/dist/packages/_es/TimeSelect.js +19 -11
- package/dist/packages/_es/Toast.js +25 -26
- package/dist/packages/_es/Tour.js +270 -0
- package/dist/packages/_es/TrendArrow.js +24 -43
- package/dist/packages/_es/Uploader.js +98 -61
- package/dist/packages/_es/Video.js +24 -22
- package/dist/packages/_es/{WaterMark.js → Watermark.js} +7 -5
- package/dist/packages/_es/{plugin-vue_export-helper.js → _plugin-vue_export-helper.bf57b04e.js} +5 -3
- package/dist/packages/_es/{common.js → common.4b8c0eb2.js} +7 -11
- package/dist/packages/_es/{component.js → component.fb9ce7ad.js} +19 -2
- package/dist/packages/_es/index.1be0d1a5.js +35 -0
- package/dist/packages/_es/{index5.js → index.3dd88014.js} +72 -70
- package/dist/packages/_es/index.4ed42c18.js +239 -0
- package/dist/packages/_es/{index.js → index.51da6a3b.js} +4 -2
- package/dist/packages/_es/{index3.js → index.617ba243.js} +4 -2
- package/dist/packages/_es/{index4.js → index.983240fc.js} +4 -2
- package/dist/packages/_es/{index2.js → index.af02c42d.js} +4 -2
- package/dist/packages/_es/index.vue_vue_type_script_lang.43efbcd1.js +102 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang.6e735bb8.js +50 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang.ccc15054.js +156 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang.de4367bf.js +12 -0
- package/dist/packages/_es/{interceptor.js → interceptor.ba45688c.js} +5 -3
- package/dist/packages/_es/{mountComponent.js → mountComponent.dddeb43c.js} +5 -3
- package/dist/packages/_es/{pxCheck.js → pxCheck.09969b22.js} +4 -2
- package/dist/packages/_es/{raf.js → raf.42b42f63.js} +14 -3
- package/dist/packages/_es/renderIcon.f32ed340.js +14 -0
- package/dist/packages/_es/style.css +2 -2
- package/dist/packages/actionsheet/index.js +3 -0
- package/dist/packages/actionsheet/index.scss +16 -32
- package/dist/packages/address/index.js +4 -0
- package/dist/packages/address/index.scss +28 -52
- package/dist/packages/addresslist/index.js +2 -0
- package/dist/packages/addresslist/index.scss +3 -3
- package/dist/packages/animate/index.js +1 -0
- package/dist/packages/animate/index.scss +1 -1
- package/dist/packages/audio/index.js +2 -0
- package/dist/packages/audio/index.scss +9 -9
- package/dist/packages/audiooperate/index.js +2 -0
- package/dist/packages/avatar/index.js +1 -0
- package/dist/packages/avatar/index.scss +1 -12
- package/dist/packages/avatargroup/index.js +1 -0
- package/dist/packages/backtop/index.js +1 -0
- package/dist/packages/badge/index.js +1 -0
- package/dist/packages/badge/index.scss +17 -17
- package/dist/packages/barrage/index.js +1 -0
- package/dist/packages/barrage/index.scss +2 -22
- package/dist/packages/button/index.js +1 -0
- package/dist/packages/button/index.scss +2 -1
- package/dist/packages/calendar/index.js +4 -0
- package/dist/packages/calendar/index.scss +39 -43
- package/dist/packages/calendaritem/index.js +1 -0
- package/dist/packages/card/index.js +3 -0
- package/dist/packages/cascader/index.js +6 -0
- package/dist/packages/cascader/index.scss +1 -1
- package/dist/packages/category/index.js +1 -0
- package/dist/packages/categorypane/index.js +1 -0
- package/dist/packages/categorypane/index.scss +2 -2
- package/dist/packages/cell/index.js +1 -0
- package/dist/packages/cellgroup/index.js +1 -0
- package/dist/packages/checkbox/index.js +1 -0
- package/dist/packages/checkboxgroup/index.js +1 -0
- package/dist/packages/circleprogress/index.js +1 -0
- package/dist/packages/circleprogress/index.scss +5 -5
- package/dist/packages/col/index.js +1 -0
- package/dist/packages/collapse/index.js +1 -0
- package/dist/packages/collapseitem/index.js +1 -0
- package/dist/packages/collapseitem/index.scss +54 -77
- package/dist/packages/comment/index.js +2 -0
- package/dist/packages/comment/index.scss +1 -3
- package/dist/packages/configprovider/index.js +1 -0
- package/dist/packages/countdown/index.js +1 -0
- package/dist/packages/countup/index.js +1 -0
- package/dist/packages/countup/index.scss +8 -38
- package/dist/packages/datepicker/index.js +4 -0
- package/dist/packages/datepicker/index.scss +1 -1
- package/dist/packages/dialog/index.js +4 -0
- package/dist/packages/divider/index.js +1 -0
- package/dist/packages/drag/index.js +1 -0
- package/dist/packages/drag/index.scss +1 -1
- package/dist/packages/ecard/index.js +2 -0
- package/dist/packages/elevator/index.js +1 -0
- package/dist/packages/ellipsis/index.js +1 -0
- package/dist/packages/ellipsis/index.scss +3 -3
- package/dist/packages/empty/index.js +1 -0
- package/dist/packages/empty/index.scss +2 -2
- package/dist/packages/fixednav/index.js +2 -0
- package/dist/packages/fixednav/index.scss +5 -5
- package/dist/packages/form/index.js +2 -0
- package/dist/packages/formitem/index.js +2 -0
- package/dist/packages/grid/index.js +1 -0
- package/dist/packages/griditem/index.js +1 -0
- package/dist/packages/icon/index.js +1 -0
- package/dist/packages/icon/index.scss +1 -131
- package/dist/packages/image/index.js +1 -0
- package/dist/packages/imagepreview/index.js +6 -0
- package/dist/packages/imagepreview/index.scss +4 -4
- package/dist/packages/indicator/index.js +1 -0
- package/dist/packages/infiniteloading/index.js +1 -0
- package/dist/packages/infiniteloading/index.scss +15 -41
- package/dist/packages/input/index.js +1 -0
- package/dist/packages/input/index.scss +20 -18
- package/dist/packages/inputnumber/index.js +1 -0
- package/dist/packages/inputnumber/index.scss +4 -2
- package/dist/packages/invoice/index.js +8 -0
- package/dist/packages/layout/index.js +1 -0
- package/dist/packages/list/index.js +1 -0
- package/dist/packages/locale/index.d.ts +1 -1
- package/dist/packages/locale/lang/baseLang.d.ts +5 -0
- package/dist/packages/locale/lang/baseLang.ff3ed8bc.js +10 -0
- package/dist/packages/locale/lang/en-US.d.ts +5 -0
- package/dist/packages/locale/lang/en-US.js +61 -51
- package/dist/packages/locale/lang/id-ID.d.ts +5 -0
- package/dist/packages/locale/lang/id-ID.js +61 -51
- package/dist/packages/locale/lang/index.js +25 -38
- package/dist/packages/locale/lang/zh-CN.d.ts +5 -0
- package/dist/packages/locale/lang/zh-CN.js +60 -50
- package/dist/packages/locale/lang/zh-TW.d.ts +5 -0
- package/dist/packages/locale/lang/zh-TW.js +60 -50
- package/dist/packages/menu/index.js +1 -0
- package/dist/packages/menu/index.scss +1 -0
- package/dist/packages/menuitem/index.js +3 -0
- package/dist/packages/menuitem/index.scss +4 -2
- package/dist/packages/navbar/index.js +1 -0
- package/dist/packages/navbar/index.scss +5 -1
- package/dist/packages/noticebar/index.js +1 -0
- package/dist/packages/noticebar/index.scss +15 -16
- package/dist/packages/notify/index.js +3 -0
- package/dist/packages/notify/index.scss +0 -20
- package/dist/packages/numberkeyboard/index.js +3 -0
- package/dist/packages/numberkeyboard/index.scss +45 -49
- package/dist/packages/overlay/index.js +1 -0
- package/dist/packages/pagination/index.js +1 -0
- package/dist/packages/picker/index.js +3 -0
- package/dist/packages/picker/index.scss +19 -56
- package/dist/packages/popover/index.js +3 -0
- package/dist/packages/popover/index.scss +7 -0
- package/dist/packages/popup/index.js +2 -0
- package/dist/packages/popup/index.scss +6 -6
- package/dist/packages/price/index.js +1 -0
- package/dist/packages/price/index.scss +0 -9
- package/dist/packages/progress/index.js +1 -0
- package/dist/packages/pullrefresh/index.js +1 -0
- package/dist/packages/pullrefresh/index.scss +30 -0
- package/dist/packages/radio/index.js +1 -0
- package/dist/packages/radiogroup/index.js +1 -0
- package/dist/packages/radiogroup/index.scss +1 -1
- package/dist/packages/range/index.js +1 -0
- package/dist/packages/range/index.scss +4 -4
- package/dist/packages/rate/index.js +1 -0
- package/dist/packages/row/index.js +1 -0
- package/dist/packages/searchbar/index.js +1 -0
- package/dist/packages/shortpassword/index.js +3 -0
- package/dist/packages/shortpassword/index.scss +15 -122
- package/dist/packages/sidenavbar/index.js +1 -0
- package/dist/packages/sidenavbar/index.scss +1 -1
- package/dist/packages/sidenavbaritem/index.js +1 -0
- package/dist/packages/sidenavbaritem/index.scss +3 -2
- package/dist/packages/signature/index.js +2 -0
- package/dist/packages/skeleton/index.js +2 -0
- package/dist/packages/skeleton/index.scss +11 -11
- package/dist/packages/sku/index.js +5 -0
- package/dist/packages/step/index.js +1 -0
- package/dist/packages/step/index.scss +7 -8
- package/dist/packages/steps/index.js +1 -0
- package/dist/packages/sticky/index.js +1 -0
- package/dist/packages/subsidenavbar/index.js +1 -0
- package/dist/packages/subsidenavbar/index.scss +2 -2
- package/dist/packages/swipe/index.js +1 -0
- package/dist/packages/swiper/index.js +1 -0
- package/dist/packages/swiperitem/index.js +1 -0
- package/dist/packages/switch/index.js +1 -0
- package/dist/packages/switch/index.scss +5 -15
- package/dist/packages/tabbar/index.js +1 -0
- package/dist/packages/tabbaritem/index.js +2 -0
- package/dist/packages/tabbaritem/index.scss +0 -29
- package/dist/packages/table/index.js +1 -0
- package/dist/packages/tabpane/index.js +1 -0
- package/dist/packages/tabpane/index.scss +2 -2
- package/dist/packages/tabs/index.js +2 -0
- package/dist/packages/tabs/index.scss +4 -4
- package/dist/packages/tag/index.js +1 -0
- package/dist/packages/textarea/index.js +1 -0
- package/dist/packages/textarea/index.scss +1 -1
- package/dist/packages/timedetail/index.js +1 -0
- package/dist/packages/timedetail/index.scss +2 -2
- package/dist/packages/timepannel/index.js +1 -0
- package/dist/packages/timepannel/index.scss +2 -2
- package/dist/packages/timeselect/index.js +3 -0
- package/dist/packages/timeselect/index.scss +2 -2
- package/dist/packages/toast/index.js +1 -0
- package/dist/packages/tour/index.js +4 -0
- package/dist/packages/tour/index.scss +78 -0
- package/dist/packages/trendarrow/index.js +1 -0
- package/dist/packages/trendarrow/index.scss +1 -1
- package/dist/packages/uploader/index.js +3 -0
- package/dist/packages/uploader/index.scss +2 -0
- package/dist/packages/video/index.js +1 -0
- package/dist/packages/video/index.scss +11 -17
- package/dist/packages/watermark/index.js +1 -0
- package/dist/smartips/attributes.json +215 -447
- package/dist/smartips/tags.json +116 -171
- package/dist/smartips/web-types.json +382 -906
- package/dist/style.css +1 -1
- package/dist/style.js +4 -0
- package/dist/styles/animation/index.scss +0 -1
- package/dist/styles/css-variables.scss +920 -0
- package/dist/styles/themes/default.scss +54 -52
- package/dist/styles/themes/jdb.scss +54 -52
- package/dist/styles/themes/jddkh.scss +54 -52
- package/dist/styles/themes/jdt.scss +54 -52
- package/dist/styles/variables-jdb.scss +3 -3
- package/dist/styles/variables-jddkh.scss +3 -3
- package/dist/styles/variables-jdt.scss +3 -3
- package/dist/styles/variables-var.scss +854 -0
- package/dist/styles/variables.scss +7 -7
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +28 -20
- package/dist/types/__VUE/address/address-list.d.ts +30 -0
- package/dist/types/__VUE/address/index.vue.d.ts +33 -72
- package/dist/types/__VUE/address/type.d.ts +18 -0
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/index.vue.d.ts +8 -9
- package/dist/types/__VUE/animate/index.vue.d.ts +16 -15
- package/dist/types/__VUE/animate/type.d.ts +2 -6
- package/dist/types/__VUE/audio/index.vue.d.ts +19 -17
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +12 -7
- package/dist/types/__VUE/avatar/index.vue.d.ts +14 -48
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +8 -9
- package/dist/types/__VUE/backtop/index.vue.d.ts +8 -9
- package/dist/types/__VUE/badge/index.vue.d.ts +9 -10
- package/dist/types/__VUE/barrage/index.vue.d.ts +7 -8
- package/dist/types/__VUE/button/index.vue.d.ts +21 -47
- package/dist/types/__VUE/button/type.d.ts +3 -7
- package/dist/types/__VUE/calendar/index.vue.d.ts +13 -13
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +23 -22
- package/dist/types/__VUE/calendaritem/type.d.ts +70 -0
- package/dist/types/__VUE/card/index.vue.d.ts +6 -7
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +10 -9
- package/dist/types/__VUE/cascader/helper.d.ts +0 -4
- package/dist/types/__VUE/cascader/index.vue.d.ts +12 -11
- package/dist/types/__VUE/cascader/tree.d.ts +0 -4
- package/dist/types/__VUE/cascader/types.d.ts +6 -10
- package/dist/types/__VUE/category/index.vue.d.ts +18 -14
- package/dist/types/__VUE/categorypane/index.vue.d.ts +23 -14
- package/dist/types/__VUE/cell/index.vue.d.ts +13 -32
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +6 -7
- package/dist/types/__VUE/checkbox/common.d.ts +2 -59
- package/dist/types/__VUE/checkbox/index.vue.d.ts +6 -113
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +6 -7
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +18 -14
- package/dist/types/__VUE/col/index.vue.d.ts +6 -7
- package/dist/types/__VUE/collapse/index.vue.d.ts +16 -81
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +52 -24
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +7 -17
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +3 -14
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +29 -21
- package/dist/types/__VUE/comment/index.vue.d.ts +29 -19
- package/dist/types/__VUE/configprovider/common.d.ts +4 -4
- package/dist/types/__VUE/configprovider/index.vue.d.ts +15 -7
- package/dist/types/__VUE/countdown/index.vue.d.ts +11 -12
- package/dist/types/__VUE/countdown/util.d.ts +1 -5
- package/dist/types/__VUE/countup/index.vue.d.ts +13 -14
- package/dist/types/__VUE/datepicker/index.vue.d.ts +32 -168
- package/dist/types/__VUE/datepicker/type.d.ts +2 -6
- package/dist/types/__VUE/dialog/index.d.ts +0 -4
- package/dist/types/__VUE/dialog/index.vue.d.ts +19 -16
- package/dist/types/__VUE/divider/index.vue.d.ts +6 -7
- package/dist/types/__VUE/drag/index.vue.d.ts +6 -7
- package/dist/types/__VUE/ecard/index.vue.d.ts +15 -11
- package/dist/types/__VUE/elevator/index.vue.d.ts +14 -13
- package/dist/types/__VUE/elevator/type.d.ts +5 -0
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +14 -9
- package/dist/types/__VUE/empty/index.vue.d.ts +6 -7
- package/dist/types/__VUE/fixednav/common.d.ts +2 -5
- package/dist/types/__VUE/fixednav/index.vue.d.ts +10 -11
- package/dist/types/__VUE/form/common.d.ts +2 -6
- package/dist/types/__VUE/form/index.vue.d.ts +7 -8
- package/dist/types/__VUE/form/types.d.ts +3 -7
- package/dist/types/__VUE/formitem/common.d.ts +0 -0
- package/dist/types/__VUE/formitem/index.vue.d.ts +11 -11
- package/dist/types/__VUE/formitem/types.d.ts +0 -4
- package/dist/types/__VUE/grid/common.d.ts +2 -20
- package/dist/types/__VUE/grid/index.vue.d.ts +7 -23
- package/dist/types/__VUE/griditem/index.vue.d.ts +9 -42
- package/dist/types/__VUE/icon/index.vue.d.ts +6 -68
- package/dist/types/__VUE/image/index.vue.d.ts +15 -17
- package/dist/types/__VUE/image/type.d.ts +2 -6
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +10 -9
- package/dist/types/__VUE/imagepreview/index.d.ts +1 -5
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +14 -12
- package/dist/types/__VUE/imagepreview/types.d.ts +2 -6
- package/dist/types/__VUE/indicator/index.vue.d.ts +7 -8
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +18 -57
- package/dist/types/__VUE/input/index.vue.d.ts +42 -146
- package/dist/types/__VUE/input/type.d.ts +5 -9
- package/dist/types/__VUE/input/util.d.ts +0 -4
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +10 -29
- package/dist/types/__VUE/invoice/index.vue.d.ts +9 -10
- package/dist/types/__VUE/invoice/types.d.ts +6 -0
- package/dist/types/__VUE/layout/index.vue.d.ts +6 -7
- package/dist/types/__VUE/list/index.vue.d.ts +12 -12
- package/dist/types/__VUE/menu/index.vue.d.ts +10 -11
- package/dist/types/__VUE/menuitem/index.vue.d.ts +13 -21
- package/dist/types/__VUE/menuitem/type.d.ts +1 -5
- package/dist/types/__VUE/navbar/index.vue.d.ts +20 -22
- package/dist/types/__VUE/noticebar/index.vue.d.ts +38 -30
- package/dist/types/__VUE/notify/index.d.ts +0 -4
- package/dist/types/__VUE/notify/index.vue.d.ts +8 -9
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +27 -54
- package/dist/types/__VUE/overlay/index.vue.d.ts +10 -10
- package/dist/types/__VUE/pagination/index.vue.d.ts +6 -7
- package/dist/types/__VUE/picker/Column.vue.d.ts +41 -35
- package/dist/types/__VUE/picker/baseProps.d.ts +55 -0
- package/dist/types/__VUE/picker/common.d.ts +555 -0
- package/dist/types/__VUE/picker/doc.en.d.ts +88 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +60 -236
- package/dist/types/__VUE/picker/types.d.ts +1 -5
- package/dist/types/__VUE/picker/usePicker.d.ts +17 -0
- package/dist/types/__VUE/popover/index.vue.d.ts +24 -20
- package/dist/types/__VUE/popover/type.d.ts +5 -8
- package/dist/types/__VUE/popup/common.d.ts +2 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +9 -10
- package/dist/types/__VUE/popup/props.d.ts +0 -4
- package/dist/types/__VUE/price/index.vue.d.ts +9 -19
- package/dist/types/__VUE/progress/index.vue.d.ts +9 -28
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +126 -0
- package/dist/types/__VUE/radio/index.vue.d.ts +9 -46
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +9 -10
- package/dist/types/__VUE/range/index.vue.d.ts +22 -21
- package/dist/types/__VUE/range/type.d.ts +1 -5
- package/dist/types/__VUE/rate/index.vue.d.ts +28 -55
- package/dist/types/__VUE/row/index.vue.d.ts +6 -7
- package/dist/types/__VUE/searchbar/index.vue.d.ts +25 -21
- package/dist/types/__VUE/searchbar/type.d.ts +1 -5
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +10 -44
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +7 -7
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +6 -7
- package/dist/types/__VUE/signature/index.vue.d.ts +13 -9
- package/dist/types/__VUE/skeleton/common.d.ts +3 -6
- package/dist/types/__VUE/skeleton/index.vue.d.ts +8 -9
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +3 -14
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +9 -19
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +10 -15
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +6 -17
- package/dist/types/__VUE/sku/data.d.ts +22 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +21 -21
- package/dist/types/__VUE/step/index.vue.d.ts +6 -34
- package/dist/types/__VUE/steps/index.vue.d.ts +7 -8
- package/dist/types/__VUE/sticky/index.vue.d.ts +9 -9
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +6 -7
- package/dist/types/__VUE/swipe/index.vue.d.ts +8 -7
- package/dist/types/__VUE/swiper/index.vue.d.ts +18 -19
- package/dist/types/__VUE/swiper/use-touch.d.ts +16 -0
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +7 -7
- package/dist/types/__VUE/swiperitem/type.d.ts +5 -0
- package/dist/types/__VUE/switch/index.vue.d.ts +15 -43
- package/dist/types/__VUE/tabbar/index.vue.d.ts +16 -17
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +14 -69
- package/dist/types/__VUE/table/common.d.ts +2 -4
- package/dist/types/__VUE/table/index.vue.d.ts +7 -8
- package/dist/types/__VUE/table/renderColumn.d.ts +11 -5
- package/dist/types/__VUE/table/types.d.ts +0 -4
- package/dist/types/__VUE/tabpane/index.vue.d.ts +6 -7
- package/dist/types/__VUE/tabs/index.vue.d.ts +28 -18
- package/dist/types/__VUE/tag/index.vue.d.ts +15 -14
- package/dist/types/__VUE/tag/type.d.ts +1 -5
- package/dist/types/__VUE/textarea/index.vue.d.ts +15 -16
- package/dist/types/__VUE/timedetail/index.vue.d.ts +8 -9
- package/dist/types/__VUE/timepannel/index.vue.d.ts +7 -8
- package/dist/types/__VUE/timeselect/index.vue.d.ts +6 -7
- package/dist/types/__VUE/toast/index.d.ts +1 -5
- package/dist/types/__VUE/toast/index.vue.d.ts +19 -18
- package/dist/types/__VUE/tour/index.vue.d.ts +195 -0
- package/dist/types/__VUE/tour/type.d.ts +2 -0
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +7 -40
- package/dist/types/__VUE/uploader/index.vue.d.ts +18 -43
- package/dist/types/__VUE/uploader/type.d.ts +3 -7
- package/dist/types/__VUE/uploader/uploader.d.ts +0 -4
- package/dist/types/__VUE/video/index.vue.d.ts +25 -25
- package/dist/types/__VUE/watermark/index.vue.d.ts +9 -10
- package/dist/types/index.d.ts +113 -7
- package/dist/types/locale/index.d.ts +8 -0
- package/dist/types/locale/lang/baseLang.d.ts +93 -0
- package/dist/types/locale/lang/en-US.d.ts +109 -0
- package/dist/types/locale/lang/id-ID.d.ts +109 -0
- package/dist/types/locale/lang/zh-CN.d.ts +109 -0
- package/dist/types/locale/lang/zh-TW.d.ts +109 -0
- package/dist/types/utils/create/component.d.ts +7 -0
- package/dist/types/utils/create/index.d.ts +4 -0
- package/dist/types/utils/create/mountComponent.d.ts +4 -0
- package/dist/types/utils/create/renderIcon.d.ts +4 -0
- package/dist/types/utils/date.d.ts +12 -0
- package/dist/types/utils/interceptor.d.ts +6 -0
- package/dist/types/utils/pxCheck.d.ts +1 -0
- package/dist/types/utils/raf.d.ts +4 -0
- package/dist/types/utils/throttle.d.ts +2 -0
- package/dist/types/utils/unit.d.ts +6 -0
- package/dist/types/utils/useExpose/index.d.ts +1 -0
- package/dist/types/utils/useLockScroll/index.d.ts +1 -0
- package/dist/types/utils/useRect/index.d.ts +17 -0
- package/dist/types/utils/useRelation/useInject.d.ts +14 -0
- package/dist/types/utils/useRelation/useProvide.d.ts +8 -0
- package/dist/types/utils/useRelation/useRelation.d.ts +1 -0
- package/dist/types/utils/useRoute/index.d.ts +1 -0
- package/dist/types/utils/useScrollParent/index.d.ts +5 -0
- package/dist/types/utils/useTaroRect/index.d.ts +10 -0
- package/dist/types/utils/useTouch/index.d.ts +18 -0
- package/dist/types/utils/util.d.ts +25 -0
- package/package.json +43 -35
- package/dist/packages/_es/props.js +0 -80
- package/dist/packages/locale/lang/baseLang.js +0 -8
- package/dist/style.es.js +0 -2
- package/dist/styles/animation/icon.scss +0 -245
- package/dist/styles/font/config.json +0 -175
- package/dist/styles/font/demo.css +0 -539
- package/dist/styles/font/demo_index.html +0 -3063
- package/dist/styles/font/iconfont.css +0 -515
- package/dist/styles/font/iconfont.eot +0 -0
- package/dist/styles/font/iconfont.js +0 -66
- package/dist/styles/font/iconfont.json +0 -884
- package/dist/styles/font/iconfont.svg +0 -356
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/types/__VUE/rate/common.d.ts +0 -149
- package/dist/types/__VUE/tabs/common.d.ts +0 -95
- package/dist/types/nutui.d.ts +0 -104
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString,
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import {
|
|
6
|
+
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createBlock, normalizeStyle, renderSlot } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { ArrowDown2, ArrowUp2 } from "@nutui/icons-vue";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
9
10
|
import "../locale/lang";
|
|
10
|
-
const { componentName, create } = createComponent("
|
|
11
|
+
const { componentName, create } = createComponent("sub-side-navbar");
|
|
11
12
|
const _sfc_main = create({
|
|
12
13
|
props: {
|
|
13
14
|
title: {
|
|
@@ -23,6 +24,7 @@ const _sfc_main = create({
|
|
|
23
24
|
default: true
|
|
24
25
|
}
|
|
25
26
|
},
|
|
27
|
+
components: { ArrowDown2, ArrowUp2 },
|
|
26
28
|
emits: ["title-click"],
|
|
27
29
|
setup: (props, context) => {
|
|
28
30
|
const state = reactive({
|
|
@@ -55,33 +57,33 @@ const _sfc_main = create({
|
|
|
55
57
|
}
|
|
56
58
|
});
|
|
57
59
|
const _hoisted_1 = ["ikey"];
|
|
58
|
-
const _hoisted_2 = { class: "nut-
|
|
59
|
-
const _hoisted_3 = { class: "nut-
|
|
60
|
+
const _hoisted_2 = { class: "nut-sub-side-navbar__title__text" };
|
|
61
|
+
const _hoisted_3 = { class: "nut-sub-side-navbar__title__icon" };
|
|
60
62
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
61
|
-
const
|
|
63
|
+
const _component_ArrowDown2 = resolveComponent("ArrowDown2");
|
|
64
|
+
const _component_ArrowUp2 = resolveComponent("ArrowUp2");
|
|
62
65
|
return openBlock(), createElementBlock("view", {
|
|
63
66
|
class: normalizeClass(_ctx.classes),
|
|
64
67
|
ikey: _ctx.ikey
|
|
65
68
|
}, [
|
|
66
69
|
createElementVNode("view", {
|
|
67
|
-
class: "nut-
|
|
70
|
+
class: "nut-sub-side-navbar__title",
|
|
68
71
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
69
72
|
}, [
|
|
70
73
|
createElementVNode("span", _hoisted_2, toDisplayString(_ctx.title), 1),
|
|
71
74
|
createElementVNode("span", _hoisted_3, [
|
|
72
|
-
|
|
73
|
-
name: "down-arrow",
|
|
74
|
-
class: normalizeClass(_ctx.direction)
|
|
75
|
-
}, null, 8, ["class"])
|
|
75
|
+
!_ctx.direction ? (openBlock(), createBlock(_component_ArrowDown2, { key: 0 })) : (openBlock(), createBlock(_component_ArrowUp2, { key: 1 }))
|
|
76
76
|
])
|
|
77
77
|
]),
|
|
78
78
|
createElementVNode("view", {
|
|
79
|
-
class: normalizeClass(["nut-
|
|
79
|
+
class: normalizeClass(["nut-sub-side-navbar__list", !_ctx.direction ? "nutFadeIn" : "nutFadeOut"]),
|
|
80
80
|
style: normalizeStyle(_ctx.style)
|
|
81
81
|
}, [
|
|
82
82
|
renderSlot(_ctx.$slots, "default")
|
|
83
83
|
], 6)
|
|
84
84
|
], 10, _hoisted_1);
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
export {
|
|
86
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
87
|
+
export {
|
|
88
|
+
index as default
|
|
89
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { u as useTouch } from "./
|
|
6
|
+
import { u as useTouch } from "./index.983240fc.js";
|
|
7
7
|
import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
8
|
-
import { c as createComponent } from "./component.js";
|
|
9
|
-
import { _ as _export_sfc } from "./
|
|
8
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const { componentName, create } = createComponent("swipe");
|
|
12
12
|
const _sfc_main = create({
|
|
@@ -184,5 +184,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
184
184
|
], 512)
|
|
185
185
|
], 38);
|
|
186
186
|
}
|
|
187
|
-
|
|
188
|
-
export {
|
|
187
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
188
|
+
export {
|
|
189
|
+
index as default
|
|
190
|
+
};
|
|
@@ -1,15 +1,61 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import { c as createComponent
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import { r as requestAniFrame } from "./raf.js";
|
|
11
|
-
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
6
|
+
import { reactive, ref, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { u as useExpose } from "./index.617ba243.js";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
12
10
|
import "../locale/lang";
|
|
11
|
+
const DISTANCE = 5;
|
|
12
|
+
function useTouch() {
|
|
13
|
+
const state = reactive({
|
|
14
|
+
startX: 0,
|
|
15
|
+
startY: 0,
|
|
16
|
+
deltaX: 0,
|
|
17
|
+
deltaY: 0,
|
|
18
|
+
offsetX: 0,
|
|
19
|
+
offsetY: 0,
|
|
20
|
+
direction: ""
|
|
21
|
+
});
|
|
22
|
+
const getDirection = (x, y) => {
|
|
23
|
+
if (x > y && x > DISTANCE)
|
|
24
|
+
return "horizontal";
|
|
25
|
+
if (y > x && y > DISTANCE)
|
|
26
|
+
return "vertical";
|
|
27
|
+
return "";
|
|
28
|
+
};
|
|
29
|
+
const reset = () => {
|
|
30
|
+
state.startX = 0;
|
|
31
|
+
state.startY = 0;
|
|
32
|
+
state.deltaX = 0;
|
|
33
|
+
state.deltaY = 0;
|
|
34
|
+
state.offsetX = 0;
|
|
35
|
+
state.offsetY = 0;
|
|
36
|
+
state.direction = "";
|
|
37
|
+
};
|
|
38
|
+
const start = (e) => {
|
|
39
|
+
reset();
|
|
40
|
+
state.startX = e.touches[0].clientX;
|
|
41
|
+
state.startY = e.touches[0].clientY;
|
|
42
|
+
};
|
|
43
|
+
const move = (e) => {
|
|
44
|
+
state.deltaX = e.touches[0].clientX - state.startX;
|
|
45
|
+
state.deltaY = e.touches[0].clientY - state.startY;
|
|
46
|
+
state.offsetX = Math.abs(state.deltaX);
|
|
47
|
+
state.offsetY = Math.abs(state.deltaY);
|
|
48
|
+
if (!state.direction) {
|
|
49
|
+
state.direction = getDirection(state.offsetX, state.offsetY);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
state,
|
|
54
|
+
start,
|
|
55
|
+
reset,
|
|
56
|
+
move
|
|
57
|
+
};
|
|
58
|
+
}
|
|
13
59
|
const { create, componentName } = createComponent("swiper");
|
|
14
60
|
const _sfc_main = create({
|
|
15
61
|
props: {
|
|
@@ -22,7 +68,7 @@ const _sfc_main = create({
|
|
|
22
68
|
default: 0
|
|
23
69
|
},
|
|
24
70
|
direction: {
|
|
25
|
-
type: String,
|
|
71
|
+
type: [String],
|
|
26
72
|
default: "horizontal"
|
|
27
73
|
},
|
|
28
74
|
paginationVisible: {
|
|
@@ -91,25 +137,11 @@ const _sfc_main = create({
|
|
|
91
137
|
};
|
|
92
138
|
});
|
|
93
139
|
const isVertical = computed(() => props.direction === "vertical");
|
|
94
|
-
const classesInner = computed(() => {
|
|
95
|
-
const prefixCls = componentName;
|
|
96
|
-
return {
|
|
97
|
-
[`${prefixCls}-inner`]: true,
|
|
98
|
-
[`${prefixCls}-vertical`]: isVertical.value
|
|
99
|
-
};
|
|
100
|
-
});
|
|
101
|
-
const classesPagination = computed(() => {
|
|
102
|
-
const prefixCls = componentName;
|
|
103
|
-
return {
|
|
104
|
-
[`${prefixCls}-pagination`]: true,
|
|
105
|
-
[`${prefixCls}-pagination-vertical`]: isVertical.value
|
|
106
|
-
};
|
|
107
|
-
});
|
|
108
140
|
const delTa = computed(() => {
|
|
109
|
-
return isVertical.value ? touch.deltaY
|
|
141
|
+
return isVertical.value ? touch.state.deltaY : touch.state.deltaX;
|
|
110
142
|
});
|
|
111
143
|
const isCorrectDirection = computed(() => {
|
|
112
|
-
return touch.direction
|
|
144
|
+
return touch.state.direction === props.direction;
|
|
113
145
|
});
|
|
114
146
|
const childCount = computed(() => state.children.length);
|
|
115
147
|
const size = computed(() => state[isVertical.value ? "height" : "width"]);
|
|
@@ -124,7 +156,12 @@ const _sfc_main = create({
|
|
|
124
156
|
const activePagination = computed(() => (state.active + childCount.value) % childCount.value);
|
|
125
157
|
const getStyle = () => {
|
|
126
158
|
let offset = 0;
|
|
127
|
-
|
|
159
|
+
if (!props.isCenter) {
|
|
160
|
+
offset = state.offset;
|
|
161
|
+
} else {
|
|
162
|
+
let val = isVertical.value ? state.rect.height - size.value : state.rect.width - size.value;
|
|
163
|
+
offset = state.offset + (state.active === childCount.value - 1 ? -val / 2 : val / 2);
|
|
164
|
+
}
|
|
128
165
|
state.style = {
|
|
129
166
|
transitionDuration: `${state.moving ? 0 : props.duration}ms`,
|
|
130
167
|
transform: `translate${isVertical.value ? "Y" : "X"}(${offset}px)`,
|
|
@@ -135,27 +172,26 @@ const _sfc_main = create({
|
|
|
135
172
|
const relation = (child) => {
|
|
136
173
|
var _a;
|
|
137
174
|
let children = [];
|
|
138
|
-
const childrenVNodeLen = state.childrenVNode.length;
|
|
139
175
|
let slot = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots);
|
|
140
176
|
slot = slot.filter((item) => item.children && Array.isArray(item.children));
|
|
141
177
|
slot.forEach((item) => {
|
|
142
178
|
children = children.concat(item.children);
|
|
143
179
|
});
|
|
144
|
-
if (!
|
|
180
|
+
if (!state.childrenVNode.length) {
|
|
145
181
|
state.childrenVNode = children.slice();
|
|
146
182
|
child.proxy && state.children.push(child.proxy);
|
|
147
183
|
} else {
|
|
148
|
-
if (
|
|
184
|
+
if (state.childrenVNode.length > children.length) {
|
|
149
185
|
state.children = state.children.filter((item) => child.proxy !== item);
|
|
150
|
-
} else if (
|
|
151
|
-
for (let i = 0; i <
|
|
186
|
+
} else if (state.childrenVNode.length < children.length) {
|
|
187
|
+
for (let i = 0; i < state.childrenVNode.length; i++) {
|
|
152
188
|
if (children[i].key !== state.childrenVNode[i].key) {
|
|
153
189
|
child.proxy && state.children.splice(i, 0, child.proxy);
|
|
154
190
|
child.vnode && state.childrenVNode.splice(i, 0, child.vnode);
|
|
155
191
|
break;
|
|
156
192
|
}
|
|
157
193
|
}
|
|
158
|
-
if (
|
|
194
|
+
if (state.childrenVNode.length !== children.length) {
|
|
159
195
|
child.proxy && state.children.push(child.proxy);
|
|
160
196
|
child.vnode && state.childrenVNode.push(child.vnode);
|
|
161
197
|
}
|
|
@@ -165,6 +201,12 @@ const _sfc_main = create({
|
|
|
165
201
|
}
|
|
166
202
|
}
|
|
167
203
|
};
|
|
204
|
+
const range = (num, min, max) => {
|
|
205
|
+
return Math.min(Math.max(num, min), max);
|
|
206
|
+
};
|
|
207
|
+
const requestFrame = (fn) => {
|
|
208
|
+
window.requestAnimationFrame.call(window, fn);
|
|
209
|
+
};
|
|
168
210
|
const getOffset = (active, offset = 0) => {
|
|
169
211
|
let currentPosition = active * size.value;
|
|
170
212
|
if (!props.loop) {
|
|
@@ -172,7 +214,7 @@ const _sfc_main = create({
|
|
|
172
214
|
}
|
|
173
215
|
let targetOffset = offset - currentPosition;
|
|
174
216
|
if (!props.loop) {
|
|
175
|
-
targetOffset =
|
|
217
|
+
targetOffset = range(targetOffset, minOffset.value, 0);
|
|
176
218
|
}
|
|
177
219
|
return targetOffset;
|
|
178
220
|
};
|
|
@@ -180,9 +222,9 @@ const _sfc_main = create({
|
|
|
180
222
|
const { active } = state;
|
|
181
223
|
if (pace) {
|
|
182
224
|
if (props.loop) {
|
|
183
|
-
return
|
|
225
|
+
return range(active + pace, -1, childCount.value);
|
|
184
226
|
}
|
|
185
|
-
return
|
|
227
|
+
return range(active + pace, 0, childCount.value - 1);
|
|
186
228
|
}
|
|
187
229
|
return active;
|
|
188
230
|
};
|
|
@@ -221,39 +263,48 @@ const _sfc_main = create({
|
|
|
221
263
|
const stopAutoPlay = () => {
|
|
222
264
|
clearTimeout(state.autoplayTimer);
|
|
223
265
|
};
|
|
224
|
-
const
|
|
266
|
+
const prev = () => {
|
|
225
267
|
resettPosition();
|
|
226
268
|
touch.reset();
|
|
227
|
-
|
|
228
|
-
|
|
269
|
+
requestFrame(() => {
|
|
270
|
+
requestFrame(() => {
|
|
229
271
|
state.moving = false;
|
|
230
272
|
move({
|
|
231
|
-
pace,
|
|
273
|
+
pace: -1,
|
|
232
274
|
isEmit: true
|
|
233
275
|
});
|
|
234
276
|
});
|
|
235
277
|
});
|
|
236
278
|
};
|
|
237
|
-
const prev = () => {
|
|
238
|
-
jump(-1);
|
|
239
|
-
};
|
|
240
279
|
const next = () => {
|
|
241
|
-
|
|
280
|
+
resettPosition();
|
|
281
|
+
touch.reset();
|
|
282
|
+
requestFrame(() => {
|
|
283
|
+
requestFrame(() => {
|
|
284
|
+
state.moving = false;
|
|
285
|
+
move({
|
|
286
|
+
pace: 1,
|
|
287
|
+
isEmit: true
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
});
|
|
242
291
|
};
|
|
243
292
|
const to = (index) => {
|
|
244
293
|
resettPosition();
|
|
245
294
|
touch.reset();
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
295
|
+
requestFrame(() => {
|
|
296
|
+
requestFrame(() => {
|
|
297
|
+
state.moving = false;
|
|
298
|
+
let targetIndex;
|
|
299
|
+
if (props.loop && childCount.value === index) {
|
|
300
|
+
targetIndex = state.active === 0 ? 0 : index;
|
|
301
|
+
} else {
|
|
302
|
+
targetIndex = index % childCount.value;
|
|
303
|
+
}
|
|
304
|
+
move({
|
|
305
|
+
pace: targetIndex - state.active,
|
|
306
|
+
isEmit: true
|
|
307
|
+
});
|
|
257
308
|
});
|
|
258
309
|
});
|
|
259
310
|
};
|
|
@@ -307,7 +358,7 @@ const _sfc_main = create({
|
|
|
307
358
|
const isShouldMove = Math.abs(speed) > 0.3 || Math.abs(delTa.value) > +(size.value / 2).toFixed(2);
|
|
308
359
|
if (isShouldMove && isCorrectDirection.value) {
|
|
309
360
|
let pace = 0;
|
|
310
|
-
const offset = isVertical.value ? touch.offsetY
|
|
361
|
+
const offset = isVertical.value ? touch.state.offsetY : touch.state.offsetX;
|
|
311
362
|
if (props.loop) {
|
|
312
363
|
pace = offset > 0 ? delTa.value > 0 ? -1 : 1 : 0;
|
|
313
364
|
} else {
|
|
@@ -365,9 +416,10 @@ const _sfc_main = create({
|
|
|
365
416
|
return {
|
|
366
417
|
state,
|
|
367
418
|
classes,
|
|
368
|
-
classesInner,
|
|
369
|
-
classesPagination,
|
|
370
419
|
container,
|
|
420
|
+
componentName,
|
|
421
|
+
isVertical,
|
|
422
|
+
slots,
|
|
371
423
|
activePagination,
|
|
372
424
|
onTouchStart,
|
|
373
425
|
onTouchMove,
|
|
@@ -385,15 +437,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
385
437
|
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
386
438
|
}, [
|
|
387
439
|
createElementVNode("view", {
|
|
388
|
-
class: normalizeClass(
|
|
440
|
+
class: normalizeClass({
|
|
441
|
+
[`${_ctx.componentName}-inner`]: true,
|
|
442
|
+
[`${_ctx.componentName}-vertical`]: _ctx.isVertical
|
|
443
|
+
}),
|
|
389
444
|
style: normalizeStyle(_ctx.state.style)
|
|
390
445
|
}, [
|
|
391
446
|
renderSlot(_ctx.$slots, "default")
|
|
392
447
|
], 6),
|
|
393
448
|
renderSlot(_ctx.$slots, "page"),
|
|
394
|
-
_ctx.paginationVisible && !_ctx
|
|
449
|
+
_ctx.paginationVisible && !_ctx.slots.page ? (openBlock(), createElementBlock("view", {
|
|
395
450
|
key: 0,
|
|
396
|
-
class: normalizeClass(
|
|
451
|
+
class: normalizeClass({
|
|
452
|
+
[`${_ctx.componentName}-pagination`]: true,
|
|
453
|
+
[`${_ctx.componentName}-pagination-vertical`]: _ctx.isVertical
|
|
454
|
+
})
|
|
397
455
|
}, [
|
|
398
456
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.state.children.length, (item, index) => {
|
|
399
457
|
return openBlock(), createElementBlock("i", {
|
|
@@ -407,5 +465,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
407
465
|
], 2)) : createCommentVNode("", true)
|
|
408
466
|
], 34);
|
|
409
467
|
}
|
|
410
|
-
|
|
411
|
-
export {
|
|
468
|
+
const Swiper = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
469
|
+
export {
|
|
470
|
+
Swiper as default
|
|
471
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import { u as useExpose } from "./
|
|
9
|
-
import { _ as _export_sfc } from "./
|
|
7
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { u as useExpose } from "./index.617ba243.js";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const { create, componentName } = createComponent("swiper-item");
|
|
12
12
|
const _sfc_main = create({
|
|
@@ -54,5 +54,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
54
54
|
renderSlot(_ctx.$slots, "default")
|
|
55
55
|
], 6);
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
export {
|
|
57
|
+
const SwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
58
|
+
export {
|
|
59
|
+
SwiperItem as default
|
|
60
|
+
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode,
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import {
|
|
6
|
+
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { Loading1 } from "@nutui/icons-vue";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
9
10
|
import "../locale/lang";
|
|
10
11
|
const { componentName, create } = createComponent("switch");
|
|
11
12
|
const _sfc_main = create({
|
|
13
|
+
components: { Loading1 },
|
|
12
14
|
props: {
|
|
13
15
|
modelValue: {
|
|
14
16
|
type: [String, Number, Boolean],
|
|
@@ -45,18 +47,6 @@ const _sfc_main = create({
|
|
|
45
47
|
loading: {
|
|
46
48
|
type: Boolean,
|
|
47
49
|
default: false
|
|
48
|
-
},
|
|
49
|
-
name: {
|
|
50
|
-
type: String,
|
|
51
|
-
default: "loading1"
|
|
52
|
-
},
|
|
53
|
-
size: {
|
|
54
|
-
type: [String, Number],
|
|
55
|
-
default: "12px"
|
|
56
|
-
},
|
|
57
|
-
color: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: ""
|
|
60
50
|
}
|
|
61
51
|
},
|
|
62
52
|
emits: ["change", "update:modelValue", "update:loading"],
|
|
@@ -66,7 +56,7 @@ const _sfc_main = create({
|
|
|
66
56
|
const prefixCls = componentName;
|
|
67
57
|
return {
|
|
68
58
|
[prefixCls]: true,
|
|
69
|
-
[isActive.value ? "switch-open" : "switch-close"]: true,
|
|
59
|
+
[isActive.value ? "nut-switch-open" : "nut-switch-close"]: true,
|
|
70
60
|
[`${prefixCls}-disable`]: props.disable,
|
|
71
61
|
[`${prefixCls}-base`]: true
|
|
72
62
|
};
|
|
@@ -102,22 +92,18 @@ const _sfc_main = create({
|
|
|
102
92
|
};
|
|
103
93
|
}
|
|
104
94
|
});
|
|
105
|
-
const _hoisted_1 = { class: "switch-button" };
|
|
95
|
+
const _hoisted_1 = { class: "nut-switch-button" };
|
|
106
96
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
107
|
-
const
|
|
97
|
+
const _component_Loading1 = resolveComponent("Loading1");
|
|
108
98
|
return openBlock(), createElementBlock("view", {
|
|
109
99
|
class: normalizeClass(_ctx.classes),
|
|
110
100
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
111
101
|
style: normalizeStyle(_ctx.style)
|
|
112
102
|
}, [
|
|
113
103
|
createElementVNode("view", _hoisted_1, [
|
|
114
|
-
_ctx.loading ? (
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}, _ctx.$attrs, {
|
|
118
|
-
size: _ctx.size,
|
|
119
|
-
color: _ctx.color
|
|
120
|
-
}), null, 16, ["name", "size", "color"])) : createCommentVNode("", true),
|
|
104
|
+
_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
105
|
+
createVNode(_component_Loading1)
|
|
106
|
+
]) : createCommentVNode("", true),
|
|
121
107
|
_ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
122
108
|
withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
|
|
123
109
|
[vShow, _ctx.modelValue]
|
|
@@ -129,5 +115,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
129
115
|
])
|
|
130
116
|
], 6);
|
|
131
117
|
}
|
|
132
|
-
|
|
133
|
-
export {
|
|
118
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
119
|
+
export {
|
|
120
|
+
index as default
|
|
121
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import { _ as _export_sfc } from "./
|
|
7
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
const { create } = createComponent("
|
|
10
|
+
const { create } = createComponent("tab-pane");
|
|
11
11
|
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
13
|
title: {
|
|
@@ -35,10 +35,12 @@ const _sfc_main = create({
|
|
|
35
35
|
});
|
|
36
36
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
37
37
|
return openBlock(), createElementBlock("view", {
|
|
38
|
-
class: normalizeClass(["nut-
|
|
38
|
+
class: normalizeClass(["nut-tab-pane", { inactive: _ctx.paneKey != _ctx.activeKey && _ctx.autoHeight }])
|
|
39
39
|
}, [
|
|
40
40
|
renderSlot(_ctx.$slots, "default")
|
|
41
41
|
], 2);
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
export {
|
|
43
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
44
|
+
export {
|
|
45
|
+
index as default
|
|
46
|
+
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeStyle, createElementVNode,
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import {
|
|
9
|
-
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
6
|
+
import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
8
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
|
|
10
9
|
import "../locale/lang";
|
|
11
10
|
const { create } = createComponent("tabbar");
|
|
12
11
|
const _sfc_main = create({
|
|
13
12
|
props: {
|
|
14
|
-
|
|
13
|
+
modelValue: {
|
|
15
14
|
type: [Number, String],
|
|
16
15
|
default: 0
|
|
17
16
|
},
|
|
@@ -19,9 +18,9 @@ const _sfc_main = create({
|
|
|
19
18
|
type: Boolean,
|
|
20
19
|
default: false
|
|
21
20
|
},
|
|
22
|
-
|
|
21
|
+
type: {
|
|
23
22
|
type: String,
|
|
24
|
-
default: "
|
|
23
|
+
default: "base"
|
|
25
24
|
},
|
|
26
25
|
unactiveColor: {
|
|
27
26
|
type: String,
|
|
@@ -40,23 +39,22 @@ const _sfc_main = create({
|
|
|
40
39
|
default: false
|
|
41
40
|
}
|
|
42
41
|
},
|
|
43
|
-
emits: ["tab-switch", "update:
|
|
42
|
+
emits: ["tab-switch", "update:modelValue"],
|
|
44
43
|
setup(props, { emit, slots }) {
|
|
45
44
|
const { bottom, placeholder } = toRefs(props);
|
|
46
45
|
const height = ref();
|
|
47
46
|
const mdValue = reactive({
|
|
48
|
-
val: props.
|
|
47
|
+
val: props.modelValue,
|
|
49
48
|
children: []
|
|
50
49
|
});
|
|
51
|
-
const nutTabbar = ref();
|
|
50
|
+
const nutTabbar = ref(null);
|
|
52
51
|
function changeIndex(index2, active) {
|
|
53
|
-
emit("update:
|
|
52
|
+
emit("update:modelValue", active);
|
|
54
53
|
parentData.modelValue = active;
|
|
55
54
|
emit("tab-switch", parentData.children[index2], active);
|
|
56
55
|
}
|
|
57
56
|
let parentData = reactive({
|
|
58
57
|
children: mdValue.children,
|
|
59
|
-
size: props.size,
|
|
60
58
|
modelValue: mdValue.val,
|
|
61
59
|
unactiveColor: props.unactiveColor,
|
|
62
60
|
activeColor: props.activeColor,
|
|
@@ -64,7 +62,7 @@ const _sfc_main = create({
|
|
|
64
62
|
});
|
|
65
63
|
provide("parent", parentData);
|
|
66
64
|
watch(
|
|
67
|
-
() => props.
|
|
65
|
+
() => props.modelValue,
|
|
68
66
|
(value) => {
|
|
69
67
|
parentData.modelValue = value;
|
|
70
68
|
}
|
|
@@ -72,7 +70,8 @@ const _sfc_main = create({
|
|
|
72
70
|
onMounted(() => {
|
|
73
71
|
if (bottom.value && placeholder.value) {
|
|
74
72
|
nextTick(() => {
|
|
75
|
-
|
|
73
|
+
var _a;
|
|
74
|
+
height.value = (_a = nutTabbar == null ? void 0 : nutTabbar.value) == null ? void 0 : _a.getBoundingClientRect().height;
|
|
76
75
|
});
|
|
77
76
|
}
|
|
78
77
|
});
|
|
@@ -84,9 +83,8 @@ const _sfc_main = create({
|
|
|
84
83
|
}
|
|
85
84
|
});
|
|
86
85
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
87
|
-
return
|
|
88
|
-
|
|
89
|
-
class: "nut-tabbar__placeholder",
|
|
86
|
+
return openBlock(), createElementBlock("div", {
|
|
87
|
+
class: normalizeClass({ "nut-tabbar__placeholder": _ctx.bottom && _ctx.placeholder }),
|
|
90
88
|
style: normalizeStyle({ height: _ctx.height + "px" })
|
|
91
89
|
}, [
|
|
92
90
|
createElementVNode("view", {
|
|
@@ -95,12 +93,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
95
93
|
}, [
|
|
96
94
|
renderSlot(_ctx.$slots, "default")
|
|
97
95
|
], 2)
|
|
98
|
-
],
|
|
99
|
-
key: 1,
|
|
100
|
-
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
101
|
-
}, [
|
|
102
|
-
renderSlot(_ctx.$slots, "default")
|
|
103
|
-
], 2));
|
|
96
|
+
], 6);
|
|
104
97
|
}
|
|
105
|
-
|
|
106
|
-
export {
|
|
98
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
99
|
+
export {
|
|
100
|
+
index as default
|
|
101
|
+
};
|