@nutui/nutui 4.0.0-beta.2 → 4.0.0-beta.21
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 +1 -1
- package/dist/nutui.es.js +227 -103
- package/dist/nutui.umd.js +7 -0
- package/dist/packages/_es/ActionSheet.js +4 -14
- package/dist/packages/_es/Address.js +7 -9
- package/dist/packages/_es/AddressList.js +156 -233
- package/dist/packages/_es/Animate.js +2 -7
- package/dist/packages/_es/Audio.js +10 -9
- package/dist/packages/_es/AudioOperate.js +3 -7
- package/dist/packages/_es/Avatar.js +4 -7
- package/dist/packages/_es/AvatarGroup.js +3 -7
- package/dist/packages/_es/Backtop.js +3 -8
- package/dist/packages/_es/Badge.js +2 -7
- package/dist/packages/_es/Barrage.js +31 -54
- package/dist/packages/_es/Button.js +2 -7
- package/dist/packages/_es/Calendar.js +6 -11
- package/dist/packages/_es/CalendarItem.js +5 -10
- package/dist/packages/_es/Card.js +9 -21
- package/dist/packages/_es/Cascader.js +17 -11
- package/dist/packages/_es/Category.js +4 -7
- package/dist/packages/_es/CategoryPane.js +5 -7
- package/dist/packages/_es/Cell.js +5 -9
- package/dist/packages/_es/CellGroup.js +2 -7
- package/dist/packages/_es/Checkbox.js +2 -7
- package/dist/packages/_es/CheckboxGroup.js +2 -7
- package/dist/packages/_es/CircleProgress.js +2 -7
- package/dist/packages/_es/Col.js +2 -7
- package/dist/packages/_es/Collapse.js +9 -14
- package/dist/packages/_es/CollapseItem.js +7 -11
- package/dist/packages/_es/Comment.js +21 -23
- package/dist/packages/_es/ConfigProvider.js +38 -11
- package/dist/packages/_es/Countdown.js +10 -7
- package/dist/packages/_es/Countup.js +22 -12
- package/dist/packages/_es/DatePicker.js +6 -9
- package/dist/packages/_es/Dialog.js +23 -30
- package/dist/packages/_es/Divider.js +2 -7
- package/dist/packages/_es/Drag.js +3 -8
- package/dist/packages/_es/Ecard.js +3 -8
- package/dist/packages/_es/Elevator.js +3 -8
- package/dist/packages/_es/Ellipsis.js +4 -7
- package/dist/packages/_es/Empty.js +5 -7
- package/dist/packages/_es/FixedNav.js +2 -7
- package/dist/packages/_es/Form.js +2 -7
- package/dist/packages/_es/FormItem.js +4 -9
- package/dist/packages/_es/Grid.js +3 -8
- package/dist/packages/_es/GridItem.js +6 -10
- package/dist/packages/_es/Image.js +3 -8
- package/dist/packages/_es/ImagePreview.js +23 -32
- package/dist/packages/_es/Indicator.js +2 -7
- package/dist/packages/_es/InfiniteLoading.js +4 -17
- package/dist/packages/_es/Input.js +32 -36
- package/dist/packages/_es/InputNumber.js +4 -9
- package/dist/packages/_es/Invoice.js +9 -12
- package/dist/packages/_es/Layout.js +1 -6
- package/dist/packages/_es/List.js +3 -9
- package/dist/packages/_es/Menu.js +3 -8
- package/dist/packages/_es/MenuItem.js +3 -8
- package/dist/packages/_es/Navbar.js +8 -7
- package/dist/packages/_es/Noticebar.js +17 -17
- package/dist/packages/_es/Notify.js +11 -13
- package/dist/packages/_es/NumberKeyboard.js +5 -10
- package/dist/packages/_es/Overlay.js +3 -8
- package/dist/packages/_es/Pagination.js +2 -7
- package/dist/packages/_es/Picker.js +8 -10
- package/dist/packages/_es/Popover.js +5 -11
- package/dist/packages/_es/Popup.js +3 -8
- package/dist/packages/_es/Price.js +3 -8
- package/dist/packages/_es/Progress.js +40 -42
- package/dist/packages/_es/PullRefresh.js +15 -23
- package/dist/packages/_es/Radio.js +3 -8
- package/dist/packages/_es/RadioGroup.js +2 -7
- package/dist/packages/_es/Range.js +4 -9
- package/dist/packages/_es/Rate.js +22 -26
- package/dist/packages/_es/Row.js +2 -7
- package/dist/packages/_es/Searchbar.js +7 -11
- package/dist/packages/_es/ShortPassword.js +14 -18
- package/dist/packages/_es/SideNavbar.js +2 -7
- package/dist/packages/_es/SideNavbarItem.js +2 -7
- package/dist/packages/_es/Signature.js +14 -8
- package/dist/packages/_es/Skeleton.js +14 -11
- package/dist/packages/_es/Sku.js +28 -9
- package/dist/packages/_es/Step.js +2 -7
- package/dist/packages/_es/Steps.js +1 -6
- package/dist/packages/_es/Sticky.js +3 -8
- package/dist/packages/_es/SubSideNavbar.js +7 -10
- package/dist/packages/_es/Swipe.js +5 -10
- package/dist/packages/_es/Swiper.js +59 -125
- package/dist/packages/_es/SwiperItem.js +3 -8
- package/dist/packages/_es/Switch.js +6 -8
- package/dist/packages/_es/TabPane.js +4 -9
- package/dist/packages/_es/Tabbar.js +2 -7
- package/dist/packages/_es/TabbarItem.js +17 -32
- package/dist/packages/_es/Table.js +92 -100
- package/dist/packages/_es/Tabs.js +20 -23
- package/dist/packages/_es/Tag.js +2 -7
- package/dist/packages/_es/Textarea.js +3 -7
- package/dist/packages/_es/TimeDetail.js +2 -11
- package/dist/packages/_es/TimePannel.js +2 -7
- package/dist/packages/_es/TimeSelect.js +4 -9
- package/dist/packages/_es/Toast.js +17 -16
- package/dist/packages/_es/Tour.js +11 -15
- package/dist/packages/_es/TrendArrow.js +2 -7
- package/dist/packages/_es/Uploader.js +22 -24
- package/dist/packages/_es/Video.js +20 -7
- package/dist/packages/_es/Watermark.js +2 -7
- package/dist/packages/_es/{_plugin-vue_export-helper-6eba1fc2.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -5
- package/dist/packages/_es/{common-7e43c968.js → common-b9a5e726.js} +10 -7
- package/dist/packages/_es/{component-1a609d46.js → component-81a4c1d0.js} +0 -5
- package/dist/packages/_es/{index-84decee6.js → index-29892cda.js} +0 -5
- package/dist/packages/_es/{index-80fa48bb.js → index-43c34ac6.js} +0 -5
- package/dist/packages/_es/{index-0a179fe8.js → index-54d03fc1.js} +0 -5
- package/dist/packages/_es/{index-ea36cedc.js → index-79c5dc33.js} +0 -5
- package/dist/packages/_es/{index-0bea707c.js → index-7a7385e4.js} +0 -5
- package/dist/packages/_es/{index-db2c2975.js → index-af79da1a.js} +14 -9
- package/dist/packages/_es/{index-4ccf62e1.js → index-f3a722c9.js} +42 -10
- package/dist/packages/_es/{index.vue_vue_type_script_lang-20115c0e.js → index.vue_vue_type_script_lang-22dfc112.js} +2 -6
- package/dist/packages/_es/{index.vue_vue_type_script_lang-7c0c1b1c.js → index.vue_vue_type_script_lang-442e4704.js} +3 -7
- package/dist/packages/_es/{index.vue_vue_type_script_lang-2e585483.js → index.vue_vue_type_script_lang-cc5c4086.js} +2 -7
- package/dist/packages/_es/{interceptor-0a3b15e4.js → interceptor-956b24fc.js} +1 -6
- package/dist/packages/_es/{mountComponent-add1c908.js → mountComponent-1ece4110.js} +1 -6
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
- package/dist/packages/_es/{raf-7bf556c1.js → raf-729dad54.js} +0 -5
- package/dist/packages/_es/{renderIcon-ff803dcd.js → renderIcon-3d0fd47c.js} +0 -5
- package/dist/packages/actionsheet/index.mjs +3 -1
- package/dist/packages/actionsheet/style.mjs +3 -2
- package/dist/packages/address/index.mjs +3 -1
- package/dist/packages/address/style.mjs +4 -3
- package/dist/packages/addresslist/index.mjs +3 -1
- package/dist/packages/addresslist/index.scss +14 -3
- package/dist/packages/addresslist/style.mjs +3 -1
- package/dist/packages/animate/index.mjs +3 -1
- package/dist/packages/animate/style.mjs +1 -0
- package/dist/packages/audio/index.mjs +3 -1
- package/dist/packages/audio/index.scss +1 -1
- package/dist/packages/audio/style.mjs +2 -1
- package/dist/packages/audiooperate/index.mjs +3 -1
- package/dist/packages/audiooperate/style.mjs +2 -1
- package/dist/packages/avatar/index.mjs +3 -1
- package/dist/packages/avatar/index.scss +3 -1
- package/dist/packages/avatar/style.mjs +1 -0
- package/dist/packages/avatargroup/index.mjs +3 -1
- package/dist/packages/avatargroup/index.scss +1 -1
- package/dist/packages/avatargroup/style.mjs +1 -0
- package/dist/packages/backtop/index.mjs +3 -1
- package/dist/packages/backtop/style.mjs +1 -0
- package/dist/packages/badge/index.mjs +3 -1
- package/dist/packages/badge/index.scss +7 -3
- package/dist/packages/badge/style.mjs +1 -0
- package/dist/packages/barrage/index.mjs +3 -1
- package/dist/packages/barrage/index.scss +17 -1
- package/dist/packages/barrage/style.mjs +1 -0
- package/dist/packages/button/index.mjs +3 -1
- package/dist/packages/button/index.scss +63 -1
- package/dist/packages/button/style.mjs +1 -0
- package/dist/packages/calendar/index.mjs +3 -1
- package/dist/packages/calendar/index.scss +14 -5
- package/dist/packages/calendar/style.mjs +4 -3
- package/dist/packages/calendaritem/index.mjs +3 -1
- package/dist/packages/calendaritem/style.mjs +1 -0
- package/dist/packages/card/index.mjs +3 -1
- package/dist/packages/card/style.mjs +3 -2
- package/dist/packages/cascader/index.mjs +3 -1
- package/dist/packages/cascader/style.mjs +6 -5
- package/dist/packages/category/index.mjs +3 -1
- package/dist/packages/category/style.mjs +1 -0
- package/dist/packages/categorypane/index.mjs +3 -1
- package/dist/packages/categorypane/style.mjs +1 -0
- package/dist/packages/cell/index.mjs +3 -1
- package/dist/packages/cell/index.scss +5 -1
- package/dist/packages/cell/style.mjs +1 -0
- package/dist/packages/cellgroup/index.mjs +3 -1
- package/dist/packages/cellgroup/style.mjs +1 -0
- package/dist/packages/checkbox/index.mjs +3 -1
- package/dist/packages/checkbox/style.mjs +1 -0
- package/dist/packages/checkboxgroup/index.mjs +3 -1
- package/dist/packages/checkboxgroup/style.mjs +1 -0
- package/dist/packages/circleprogress/index.mjs +3 -1
- package/dist/packages/circleprogress/style.mjs +1 -0
- package/dist/packages/col/index.mjs +3 -1
- package/dist/packages/col/style.mjs +1 -0
- package/dist/packages/collapse/index.mjs +3 -1
- package/dist/packages/collapse/style.mjs +1 -0
- package/dist/packages/collapseitem/index.mjs +3 -1
- package/dist/packages/collapseitem/style.mjs +1 -0
- package/dist/packages/comment/index.mjs +3 -1
- package/dist/packages/comment/index.scss +12 -7
- package/dist/packages/comment/style.mjs +2 -1
- package/dist/packages/configprovider/index.mjs +3 -1
- package/dist/packages/configprovider/style.mjs +1 -0
- package/dist/packages/countdown/index.mjs +3 -1
- package/dist/packages/countdown/style.mjs +1 -0
- package/dist/packages/countup/index.mjs +3 -1
- package/dist/packages/countup/style.mjs +1 -0
- package/dist/packages/datepicker/index.mjs +3 -1
- package/dist/packages/datepicker/style.mjs +4 -3
- package/dist/packages/dialog/index.mjs +5 -2
- package/dist/packages/dialog/style.mjs +4 -3
- package/dist/packages/divider/index.mjs +3 -1
- package/dist/packages/divider/style.mjs +1 -0
- package/dist/packages/drag/index.mjs +3 -1
- package/dist/packages/drag/style.mjs +1 -0
- package/dist/packages/ecard/index.mjs +3 -1
- package/dist/packages/ecard/index.scss +4 -0
- package/dist/packages/ecard/style.mjs +2 -1
- package/dist/packages/elevator/index.mjs +3 -1
- package/dist/packages/elevator/index.scss +14 -0
- package/dist/packages/elevator/style.mjs +1 -0
- package/dist/packages/ellipsis/index.mjs +3 -1
- package/dist/packages/ellipsis/style.mjs +1 -0
- package/dist/packages/empty/index.mjs +3 -1
- package/dist/packages/empty/style.mjs +1 -0
- package/dist/packages/fixednav/index.mjs +3 -1
- package/dist/packages/fixednav/style.mjs +2 -1
- package/dist/packages/form/index.mjs +3 -1
- package/dist/packages/form/style.mjs +2 -1
- package/dist/packages/formitem/index.mjs +3 -1
- package/dist/packages/formitem/style.mjs +2 -1
- package/dist/packages/grid/index.mjs +3 -1
- package/dist/packages/grid/style.mjs +1 -0
- package/dist/packages/griditem/index.mjs +3 -1
- package/dist/packages/griditem/style.mjs +1 -0
- package/dist/packages/icon/style.mjs +1 -0
- package/dist/packages/image/index.mjs +3 -1
- package/dist/packages/image/style.mjs +1 -0
- package/dist/packages/imagepreview/index.mjs +5 -2
- package/dist/packages/imagepreview/style.mjs +6 -5
- package/dist/packages/indicator/index.mjs +3 -1
- package/dist/packages/indicator/index.scss +4 -4
- package/dist/packages/indicator/style.mjs +1 -0
- package/dist/packages/infiniteloading/index.mjs +3 -1
- package/dist/packages/infiniteloading/style.mjs +1 -0
- package/dist/packages/input/index.mjs +3 -1
- package/dist/packages/input/index.scss +6 -2
- package/dist/packages/input/style.mjs +1 -0
- package/dist/packages/inputnumber/index.mjs +3 -1
- package/dist/packages/inputnumber/index.scss +0 -2
- package/dist/packages/inputnumber/style.mjs +1 -0
- package/dist/packages/invoice/index.mjs +3 -1
- package/dist/packages/invoice/style.mjs +8 -7
- package/dist/packages/layout/index.mjs +3 -1
- package/dist/packages/layout/style.mjs +1 -0
- package/dist/packages/list/index.mjs +3 -1
- package/dist/packages/list/style.mjs +1 -0
- package/dist/packages/locale/lang/baseLang-0bdc6353.js +5 -0
- package/dist/packages/locale/lang/en-US.js +1 -6
- package/dist/packages/locale/lang/id-ID.js +1 -6
- package/dist/packages/locale/lang/index.js +1 -6
- package/dist/packages/locale/lang/zh-CN.js +2 -7
- package/dist/packages/locale/lang/zh-TW.js +1 -6
- package/dist/packages/menu/index.mjs +3 -1
- package/dist/packages/menu/style.mjs +1 -0
- package/dist/packages/menuitem/index.mjs +3 -1
- package/dist/packages/menuitem/style.mjs +3 -2
- package/dist/packages/navbar/index.mjs +3 -1
- package/dist/packages/navbar/style.mjs +1 -0
- package/dist/packages/noticebar/index.mjs +3 -1
- package/dist/packages/noticebar/index.scss +4 -1
- package/dist/packages/noticebar/style.mjs +1 -0
- package/dist/packages/notify/index.mjs +5 -2
- package/dist/packages/notify/style.mjs +3 -2
- package/dist/packages/numberkeyboard/index.mjs +3 -1
- package/dist/packages/numberkeyboard/index.scss +3 -0
- package/dist/packages/numberkeyboard/style.mjs +3 -2
- package/dist/packages/overlay/index.mjs +3 -1
- package/dist/packages/overlay/style.mjs +1 -0
- package/dist/packages/pagination/index.mjs +3 -1
- package/dist/packages/pagination/style.mjs +1 -0
- package/dist/packages/picker/index.mjs +3 -1
- package/dist/packages/picker/style.mjs +3 -2
- package/dist/packages/popover/index.mjs +3 -1
- package/dist/packages/popover/index.scss +1 -1
- package/dist/packages/popover/style.mjs +3 -2
- package/dist/packages/popup/index.mjs +3 -1
- package/dist/packages/popup/style.mjs +2 -1
- package/dist/packages/price/index.mjs +3 -1
- package/dist/packages/price/style.mjs +1 -0
- package/dist/packages/progress/index.mjs +3 -1
- package/dist/packages/progress/index.scss +8 -6
- package/dist/packages/progress/style.mjs +1 -0
- package/dist/packages/pullrefresh/index.mjs +3 -1
- package/dist/packages/pullrefresh/index.scss +4 -3
- package/dist/packages/pullrefresh/style.mjs +1 -0
- package/dist/packages/radio/index.mjs +3 -1
- package/dist/packages/radio/index.scss +14 -2
- package/dist/packages/radio/style.mjs +1 -0
- package/dist/packages/radiogroup/index.mjs +3 -1
- package/dist/packages/radiogroup/style.mjs +1 -0
- package/dist/packages/range/index.mjs +3 -1
- package/dist/packages/range/index.scss +6 -3
- package/dist/packages/range/style.mjs +1 -0
- package/dist/packages/rate/index.mjs +3 -1
- package/dist/packages/rate/index.scss +4 -4
- package/dist/packages/rate/style.mjs +1 -0
- package/dist/packages/row/index.mjs +3 -1
- package/dist/packages/row/style.mjs +1 -0
- package/dist/packages/searchbar/index.mjs +3 -1
- package/dist/packages/searchbar/index.scss +4 -8
- package/dist/packages/searchbar/style.mjs +1 -0
- package/dist/packages/shortpassword/index.mjs +3 -1
- package/dist/packages/shortpassword/style.mjs +3 -2
- package/dist/packages/sidenavbar/index.mjs +3 -1
- package/dist/packages/sidenavbar/style.mjs +1 -0
- package/dist/packages/sidenavbaritem/index.mjs +3 -1
- package/dist/packages/sidenavbaritem/style.mjs +1 -0
- package/dist/packages/signature/index.mjs +3 -1
- package/dist/packages/signature/index.scss +2 -2
- package/dist/packages/signature/style.mjs +2 -1
- package/dist/packages/skeleton/index.mjs +3 -1
- package/dist/packages/skeleton/style.mjs +2 -1
- package/dist/packages/sku/index.mjs +3 -1
- package/dist/packages/sku/index.scss +16 -2
- package/dist/packages/sku/style.mjs +5 -4
- package/dist/packages/step/index.mjs +3 -1
- package/dist/packages/step/index.scss +1 -9
- package/dist/packages/step/style.mjs +1 -0
- package/dist/packages/steps/index.mjs +3 -1
- package/dist/packages/steps/style.mjs +1 -0
- package/dist/packages/sticky/index.mjs +3 -1
- package/dist/packages/sticky/index.scss +2 -0
- package/dist/packages/sticky/style.mjs +1 -0
- package/dist/packages/subsidenavbar/index.mjs +3 -1
- package/dist/packages/subsidenavbar/style.mjs +1 -0
- package/dist/packages/swipe/index.mjs +3 -1
- package/dist/packages/swipe/style.mjs +1 -0
- package/dist/packages/swiper/index.mjs +3 -1
- package/dist/packages/swiper/style.mjs +1 -0
- package/dist/packages/swiperitem/index.mjs +3 -1
- package/dist/packages/swiperitem/style.mjs +1 -0
- package/dist/packages/switch/index.mjs +3 -1
- package/dist/packages/switch/index.scss +7 -0
- package/dist/packages/switch/style.mjs +1 -0
- package/dist/packages/tabbar/index.mjs +3 -1
- package/dist/packages/tabbar/style.mjs +1 -0
- package/dist/packages/tabbaritem/index.mjs +3 -1
- package/dist/packages/tabbaritem/index.scss +4 -0
- package/dist/packages/tabbaritem/style.mjs +2 -1
- package/dist/packages/table/index.mjs +3 -1
- package/dist/packages/table/style.mjs +1 -0
- package/dist/packages/tabpane/index.mjs +3 -1
- package/dist/packages/tabpane/style.mjs +1 -0
- package/dist/packages/tabs/index.mjs +3 -1
- package/dist/packages/tabs/style.mjs +2 -1
- package/dist/packages/tag/index.mjs +3 -1
- package/dist/packages/tag/style.mjs +1 -0
- package/dist/packages/textarea/index.mjs +3 -1
- package/dist/packages/textarea/index.scss +7 -1
- package/dist/packages/textarea/style.mjs +1 -0
- package/dist/packages/timedetail/index.mjs +3 -1
- package/dist/packages/timedetail/index.scss +14 -6
- package/dist/packages/timedetail/style.mjs +1 -0
- package/dist/packages/timepannel/index.mjs +3 -1
- package/dist/packages/timepannel/style.mjs +1 -0
- package/dist/packages/timeselect/index.mjs +3 -1
- package/dist/packages/timeselect/style.mjs +3 -2
- package/dist/packages/toast/index.mjs +5 -2
- package/dist/packages/toast/style.mjs +1 -0
- package/dist/packages/tour/index.mjs +3 -1
- package/dist/packages/tour/style.mjs +4 -3
- package/dist/packages/trendarrow/index.mjs +3 -1
- package/dist/packages/trendarrow/style.mjs +1 -0
- package/dist/packages/uploader/index.mjs +3 -1
- package/dist/packages/uploader/index.scss +19 -14
- package/dist/packages/uploader/style.mjs +3 -2
- package/dist/packages/video/index.mjs +3 -1
- package/dist/packages/video/style.mjs +1 -0
- package/dist/packages/watermark/index.mjs +3 -1
- package/dist/packages/watermark/style.mjs +1 -0
- package/dist/smartips/web-types.json +731 -812
- package/dist/style.css +1 -19
- package/dist/style.js +4 -0
- package/dist/styles/reset.css +3 -0
- package/dist/styles/themes/default.scss +54 -55
- package/dist/styles/themes/jdb.scss +54 -55
- package/dist/styles/themes/jddkh.scss +54 -55
- package/dist/styles/themes/jdt.scss +54 -55
- package/dist/styles/variables-jdb.scss +5 -10
- package/dist/styles/variables-jddkh.scss +5 -9
- package/dist/styles/variables-jdt.scss +6 -10
- package/dist/styles/variables.scss +14 -21
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +18 -9
- package/dist/types/__VUE/address/index.vue.d.ts +18 -0
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +23 -7
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +2 -2
- package/dist/types/__VUE/addresslist/index.vue.d.ts +6 -6
- package/dist/types/__VUE/barrage/index.vue.d.ts +2 -5
- package/dist/types/__VUE/card/index.vue.d.ts +0 -21
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +18 -0
- package/dist/types/__VUE/cascader/types.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +5 -5
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +2 -2
- package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
- package/dist/types/__VUE/configprovider/index.vue.d.ts +3 -2
- package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.d.ts +9 -9
- package/dist/types/__VUE/dialog/index.vue.d.ts +18 -0
- package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +1 -1
- package/dist/types/__VUE/icon/index.vue.d.ts +1 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +12 -12
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -9
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -18
- package/dist/types/__VUE/input/index.vue.d.ts +7 -40
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -12
- package/dist/types/__VUE/notify/index.d.ts +3 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -10
- package/dist/types/__VUE/popup/common.d.ts +8 -0
- package/dist/types/__VUE/popup/index.vue.d.ts +18 -0
- package/dist/types/__VUE/popup/props.d.ts +8 -0
- package/dist/types/__VUE/progress/index.vue.d.ts +1 -0
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -9
- package/dist/types/__VUE/rate/index.vue.d.ts +16 -10
- package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/skeleton/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +18 -0
- package/dist/types/__VUE/steps/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiper/index.vue.d.ts +9 -17
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +0 -1
- package/dist/types/__VUE/table/common.d.ts +9 -9
- package/dist/types/__VUE/table/index.vue.d.ts +13 -11
- package/dist/types/__VUE/table/renderColumn.d.ts +9 -9
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timedetail/index.vue.d.ts +0 -9
- package/dist/types/__VUE/toast/index.d.ts +3 -3
- package/dist/types/__VUE/tour/index.vue.d.ts +10 -10
- package/dist/types/index.d.ts +10 -7
- package/package.json +13 -133
- package/dist/nutui.umd.cjs +0 -20061
- package/dist/packages/_es/Icon.js +0 -12
- package/dist/packages/_es/index.vue_vue_type_script_lang-b8ddf362.js +0 -12
- package/dist/packages/_es/pxCheck-9763aaae.js +0 -11
- package/dist/packages/_es/style.css +0 -16
- package/dist/packages/actionsheet/style.cjs +0 -3
- package/dist/packages/address/style.cjs +0 -4
- package/dist/packages/addresslist/style.cjs +0 -2
- package/dist/packages/animate/style.cjs +0 -1
- package/dist/packages/audio/style.cjs +0 -2
- package/dist/packages/audiooperate/style.cjs +0 -2
- package/dist/packages/avatar/style.cjs +0 -1
- package/dist/packages/avatargroup/style.cjs +0 -1
- package/dist/packages/backtop/style.cjs +0 -1
- package/dist/packages/badge/style.cjs +0 -1
- package/dist/packages/barrage/style.cjs +0 -1
- package/dist/packages/button/style.cjs +0 -1
- package/dist/packages/calendar/style.cjs +0 -4
- package/dist/packages/calendaritem/style.cjs +0 -1
- package/dist/packages/card/style.cjs +0 -3
- package/dist/packages/cascader/style.cjs +0 -6
- package/dist/packages/category/style.cjs +0 -1
- package/dist/packages/categorypane/style.cjs +0 -1
- package/dist/packages/cell/style.cjs +0 -1
- package/dist/packages/cellgroup/style.cjs +0 -1
- package/dist/packages/checkbox/style.cjs +0 -1
- package/dist/packages/checkboxgroup/style.cjs +0 -1
- package/dist/packages/circleprogress/style.cjs +0 -1
- package/dist/packages/col/style.cjs +0 -1
- package/dist/packages/collapse/style.cjs +0 -1
- package/dist/packages/collapseitem/style.cjs +0 -1
- package/dist/packages/comment/style.cjs +0 -2
- package/dist/packages/configprovider/style.cjs +0 -1
- package/dist/packages/countdown/style.cjs +0 -1
- package/dist/packages/countup/style.cjs +0 -1
- package/dist/packages/datepicker/style.cjs +0 -4
- package/dist/packages/dialog/style.cjs +0 -4
- package/dist/packages/divider/style.cjs +0 -1
- package/dist/packages/drag/style.cjs +0 -1
- package/dist/packages/ecard/style.cjs +0 -2
- package/dist/packages/elevator/style.cjs +0 -1
- package/dist/packages/ellipsis/style.cjs +0 -1
- package/dist/packages/empty/style.cjs +0 -1
- package/dist/packages/fixednav/style.cjs +0 -2
- package/dist/packages/form/style.cjs +0 -2
- package/dist/packages/formitem/style.cjs +0 -2
- package/dist/packages/grid/style.cjs +0 -1
- package/dist/packages/griditem/style.cjs +0 -1
- package/dist/packages/icon/index.mjs +0 -2
- package/dist/packages/icon/style.cjs +0 -1
- package/dist/packages/image/style.cjs +0 -1
- package/dist/packages/imagepreview/style.cjs +0 -6
- package/dist/packages/indicator/style.cjs +0 -1
- package/dist/packages/infiniteloading/style.cjs +0 -1
- package/dist/packages/input/style.cjs +0 -1
- package/dist/packages/inputnumber/style.cjs +0 -1
- package/dist/packages/invoice/style.cjs +0 -8
- package/dist/packages/layout/style.cjs +0 -1
- package/dist/packages/list/style.cjs +0 -1
- package/dist/packages/locale/lang/baseLang-d7024f23.js +0 -10
- package/dist/packages/menu/style.cjs +0 -1
- package/dist/packages/menuitem/style.cjs +0 -3
- package/dist/packages/navbar/style.cjs +0 -1
- package/dist/packages/noticebar/style.cjs +0 -1
- package/dist/packages/notify/style.cjs +0 -3
- package/dist/packages/numberkeyboard/style.cjs +0 -3
- package/dist/packages/overlay/style.cjs +0 -1
- package/dist/packages/pagination/style.cjs +0 -1
- package/dist/packages/picker/style.cjs +0 -3
- package/dist/packages/popover/style.cjs +0 -3
- package/dist/packages/popup/style.cjs +0 -2
- package/dist/packages/price/style.cjs +0 -1
- package/dist/packages/progress/style.cjs +0 -1
- package/dist/packages/pullrefresh/style.cjs +0 -1
- package/dist/packages/radio/style.cjs +0 -1
- package/dist/packages/radiogroup/style.cjs +0 -1
- package/dist/packages/range/style.cjs +0 -1
- package/dist/packages/rate/style.cjs +0 -1
- package/dist/packages/row/style.cjs +0 -1
- package/dist/packages/searchbar/style.cjs +0 -1
- package/dist/packages/shortpassword/style.cjs +0 -3
- package/dist/packages/sidenavbar/style.cjs +0 -1
- package/dist/packages/sidenavbaritem/style.cjs +0 -1
- package/dist/packages/signature/style.cjs +0 -2
- package/dist/packages/skeleton/style.cjs +0 -2
- package/dist/packages/sku/style.cjs +0 -5
- package/dist/packages/step/style.cjs +0 -1
- package/dist/packages/steps/style.cjs +0 -1
- package/dist/packages/sticky/style.cjs +0 -1
- package/dist/packages/subsidenavbar/style.cjs +0 -1
- package/dist/packages/swipe/style.cjs +0 -1
- package/dist/packages/swiper/style.cjs +0 -1
- package/dist/packages/swiperitem/style.cjs +0 -1
- package/dist/packages/switch/style.cjs +0 -1
- package/dist/packages/tabbar/style.cjs +0 -1
- package/dist/packages/tabbaritem/style.cjs +0 -2
- package/dist/packages/table/style.cjs +0 -1
- package/dist/packages/tabpane/style.cjs +0 -1
- package/dist/packages/tabs/style.cjs +0 -2
- package/dist/packages/tag/style.cjs +0 -1
- package/dist/packages/textarea/style.cjs +0 -1
- package/dist/packages/timedetail/style.cjs +0 -1
- package/dist/packages/timepannel/style.cjs +0 -1
- package/dist/packages/timeselect/style.cjs +0 -3
- package/dist/packages/toast/style.cjs +0 -1
- package/dist/packages/tour/style.cjs +0 -4
- package/dist/packages/trendarrow/style.cjs +0 -1
- package/dist/packages/uploader/style.cjs +0 -3
- package/dist/packages/video/style.cjs +0 -1
- package/dist/packages/watermark/style.cjs +0 -1
- package/dist/smartips/attributes.json +0 -2810
- package/dist/smartips/tags.json +0 -1047
- package/dist/styles/theme-deafult.scss +0 -920
- package/dist/styles/theme-jdt.scss +0 -898
- package/dist/styles/variables-var.scss +0 -854
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
- package/dist/types/__VUE/configprovider/common.d.ts +0 -20
- package/dist/types/__VUE/swiper/use-touch.d.ts +0 -16
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { c as createComponent } from "./component-1a609d46.js";
|
|
9
|
-
import { r as renderIcon } from "./renderIcon-ff803dcd.js";
|
|
10
|
-
import { p as pxCheck } from "./pxCheck-9763aaae.js";
|
|
11
|
-
import { u as useTouch } from "./index-0bea707c.js";
|
|
12
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-6eba1fc2.js";
|
|
1
|
+
import { ref, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, createCommentVNode } from "vue";
|
|
2
|
+
import { StarFillN } from "@nutui/icons-vue";
|
|
3
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
4
|
+
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
5
|
+
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
6
|
+
import { u as useTouch } from "./index-7a7385e4.js";
|
|
7
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
13
8
|
import "../locale/lang";
|
|
14
9
|
const { create, componentName } = createComponent("rate");
|
|
15
10
|
const _sfc_main = create({
|
|
@@ -22,12 +17,16 @@ const _sfc_main = create({
|
|
|
22
17
|
type: [String, Number],
|
|
23
18
|
default: 0
|
|
24
19
|
},
|
|
25
|
-
|
|
20
|
+
customIcon: {
|
|
26
21
|
type: Object,
|
|
27
22
|
default: () => {
|
|
28
|
-
return
|
|
23
|
+
return StarFillN;
|
|
29
24
|
}
|
|
30
25
|
},
|
|
26
|
+
size: {
|
|
27
|
+
type: [String, Number],
|
|
28
|
+
default: void 0
|
|
29
|
+
},
|
|
31
30
|
activeColor: {
|
|
32
31
|
type: String,
|
|
33
32
|
default: ""
|
|
@@ -57,7 +56,7 @@ const _sfc_main = create({
|
|
|
57
56
|
default: 14
|
|
58
57
|
}
|
|
59
58
|
},
|
|
60
|
-
components: {
|
|
59
|
+
components: { StarFillN },
|
|
61
60
|
emits: ["update:modelValue", "change"],
|
|
62
61
|
setup(props, { emit, slots }) {
|
|
63
62
|
const rateRefs = ref([]);
|
|
@@ -103,12 +102,12 @@ const _sfc_main = create({
|
|
|
103
102
|
const touch = useTouch();
|
|
104
103
|
const touchMethods = {
|
|
105
104
|
onTouchStart(event) {
|
|
106
|
-
if (!props.touchable)
|
|
105
|
+
if (!props.touchable || props.readonly)
|
|
107
106
|
return;
|
|
108
107
|
touch.start(event);
|
|
109
108
|
},
|
|
110
109
|
onTouchMove(event) {
|
|
111
|
-
if (!props.touchable
|
|
110
|
+
if (!props.touchable)
|
|
112
111
|
return;
|
|
113
112
|
touch.move(event);
|
|
114
113
|
if (touch.isHorizontal()) {
|
|
@@ -157,24 +156,21 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
157
156
|
style: normalizeStyle({ marginRight: _ctx.pxCheck(_ctx.spacing) })
|
|
158
157
|
}, [
|
|
159
158
|
createElementVNode("view", null, [
|
|
160
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.
|
|
159
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.customIcon, { width: _ctx.size, height: _ctx.size, size: _ctx.size, color: n <= _ctx.modelValue ? _ctx.activeColor : _ctx.voidColor })), {
|
|
161
160
|
class: normalizeClass(["nut-rate-item__icon", { "nut-rate-item__icon--disabled": _ctx.disabled || n > _ctx.modelValue }]),
|
|
162
|
-
color: n <= _ctx.modelValue ? _ctx.activeColor : _ctx.voidColor,
|
|
163
161
|
onClick: ($event) => _ctx.onClick(1, n)
|
|
164
|
-
}, null, 8, ["class", "
|
|
162
|
+
}, null, 8, ["class", "onClick"]))
|
|
165
163
|
]),
|
|
166
164
|
_ctx.allowHalf && Number(_ctx.modelValue) + 1 > n ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
167
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.
|
|
165
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.customIcon, { width: _ctx.size, height: _ctx.size, size: _ctx.size, color: n <= Number(_ctx.modelValue) + 1 ? _ctx.activeColor : _ctx.voidColor })), {
|
|
168
166
|
class: "nut-rate-item__icon",
|
|
169
|
-
color: n <= Number(_ctx.modelValue) + 1 ? _ctx.activeColor : _ctx.voidColor,
|
|
170
167
|
onClick: ($event) => _ctx.onClick(2, n)
|
|
171
|
-
}, null, 8, ["
|
|
168
|
+
}, null, 8, ["onClick"]))
|
|
172
169
|
])) : _ctx.allowHalf && Number(_ctx.modelValue) + 1 < n ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
173
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.
|
|
170
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.customIcon, { width: _ctx.size, height: _ctx.size, size: _ctx.size, color: _ctx.voidColor })), {
|
|
174
171
|
class: "nut-rate-item__icon nut-rate-item__icon--disabled",
|
|
175
|
-
color: _ctx.voidColor,
|
|
176
172
|
onClick: ($event) => _ctx.onClick(2, n)
|
|
177
|
-
}, null, 8, ["
|
|
173
|
+
}, null, 8, ["onClick"]))
|
|
178
174
|
])) : createCommentVNode("", true)
|
|
179
175
|
], 12, _hoisted_1);
|
|
180
176
|
}), 128))
|
package/dist/packages/_es/Row.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
9
4
|
import "../locale/lang";
|
|
10
5
|
const { componentName, create } = createComponent("row");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { reactive, computed, ref, onMounted, toRefs, openBlock, createElementBlock, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createElementVNode, withModifiers, withDirectives, createBlock, resolveDynamicComponent, vShow } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-1a609d46.js";
|
|
8
|
-
import { r as renderIcon } from "./renderIcon-ff803dcd.js";
|
|
1
|
+
import { reactive, computed, ref, onMounted, toRefs, openBlock, createElementBlock, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createElementVNode, withModifiers, normalizeClass, withDirectives, createBlock, resolveDynamicComponent, vShow } from "vue";
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
9
4
|
import { CircleClose } from "@nutui/icons-vue";
|
|
10
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
5
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
11
6
|
import "../locale/lang";
|
|
12
7
|
const { create, translate } = createComponent("searchbar");
|
|
13
8
|
const _sfc_main = create({
|
|
@@ -50,6 +45,7 @@ const _sfc_main = create({
|
|
|
50
45
|
},
|
|
51
46
|
focusStyle: {
|
|
52
47
|
type: Object,
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
53
49
|
default: () => {
|
|
54
50
|
}
|
|
55
51
|
},
|
|
@@ -215,7 +211,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
215
211
|
}, [
|
|
216
212
|
createElementVNode("input", {
|
|
217
213
|
ref: "inputsearch",
|
|
218
|
-
class: "nut-searchbar__input-bar",
|
|
214
|
+
class: normalizeClass(["nut-searchbar__input-bar", _ctx.clearable && "nut-searchbar__input-bar_clear"]),
|
|
219
215
|
type: _ctx.inputType,
|
|
220
216
|
maxlength: _ctx.maxLength,
|
|
221
217
|
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
@@ -227,7 +223,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
227
223
|
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
|
|
228
224
|
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args)),
|
|
229
225
|
style: normalizeStyle(_ctx.styleSearchbar)
|
|
230
|
-
}, null,
|
|
226
|
+
}, null, 46, _hoisted_4)
|
|
231
227
|
], 32),
|
|
232
228
|
_ctx.clearable ? withDirectives((openBlock(), createElementBlock("view", {
|
|
233
229
|
key: 0,
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { P as Popup } from "./index-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { P as Popup } from "./index-af79da1a.js";
|
|
9
4
|
import { Tips } from "@nutui/icons-vue";
|
|
10
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
5
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
11
6
|
import "../locale/lang";
|
|
12
7
|
import "./Overlay.js";
|
|
13
8
|
const { create, translate } = createComponent("short-password");
|
|
@@ -47,6 +42,7 @@ const _sfc_main = create({
|
|
|
47
42
|
},
|
|
48
43
|
length: {
|
|
49
44
|
type: [String, Number],
|
|
45
|
+
//4~6
|
|
50
46
|
default: 6
|
|
51
47
|
}
|
|
52
48
|
},
|
|
@@ -55,10 +51,10 @@ const _sfc_main = create({
|
|
|
55
51
|
const realInput = ref(props.modelValue);
|
|
56
52
|
const comLen = computed(() => range(Number(props.length)));
|
|
57
53
|
const show = ref(props.visible);
|
|
58
|
-
|
|
54
|
+
const onTouchStart = (event) => {
|
|
59
55
|
event.stopPropagation();
|
|
60
56
|
emit("focus");
|
|
61
|
-
}
|
|
57
|
+
};
|
|
62
58
|
watch(
|
|
63
59
|
() => props.visible,
|
|
64
60
|
(value) => {
|
|
@@ -74,20 +70,20 @@ const _sfc_main = create({
|
|
|
74
70
|
}
|
|
75
71
|
}
|
|
76
72
|
);
|
|
77
|
-
|
|
73
|
+
const close = () => {
|
|
78
74
|
emit("update:visible", false);
|
|
79
75
|
emit("close");
|
|
80
|
-
}
|
|
81
|
-
|
|
76
|
+
};
|
|
77
|
+
const range = (val) => {
|
|
82
78
|
return Math.min(Math.max(4, val), 6);
|
|
83
|
-
}
|
|
84
|
-
|
|
79
|
+
};
|
|
80
|
+
const onTips = () => {
|
|
85
81
|
emit("tips");
|
|
86
|
-
}
|
|
82
|
+
};
|
|
87
83
|
return {
|
|
88
84
|
comLen,
|
|
89
85
|
realInput,
|
|
90
|
-
|
|
86
|
+
onTouchStart,
|
|
91
87
|
range,
|
|
92
88
|
close,
|
|
93
89
|
onTips,
|
|
@@ -134,7 +130,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
134
130
|
createElementVNode("div", _hoisted_3, [
|
|
135
131
|
createElementVNode("view", {
|
|
136
132
|
class: "nut-short-password__list",
|
|
137
|
-
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
133
|
+
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args))
|
|
138
134
|
}, [
|
|
139
135
|
(openBlock(true), createElementBlock(Fragment, null, renderList(new Array(_ctx.comLen), (sublen, index2) => {
|
|
140
136
|
return openBlock(), createElementBlock("view", {
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, reactive, computed, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
9
4
|
import "../locale/lang";
|
|
10
5
|
const { componentName, create } = createComponent("side-navbar");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { computed, openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, toDisplayString } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
9
4
|
import "../locale/lang";
|
|
10
5
|
const { componentName, create } = createComponent("side-navbar-item");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, computed, reactive, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withDirectives, vShow, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import Button from "./Button.js";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
import "@nutui/icons-vue";
|
|
12
7
|
const { componentName, create, translate } = createComponent("signature");
|
|
@@ -109,6 +104,15 @@ const _sfc_main = create({
|
|
|
109
104
|
const confirm = () => {
|
|
110
105
|
onSave(canvas.value);
|
|
111
106
|
};
|
|
107
|
+
const isCanvasBlank = (canvas2) => {
|
|
108
|
+
if (!canvas2) {
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
var blank = document.createElement("canvas");
|
|
112
|
+
blank.width = canvas2.width;
|
|
113
|
+
blank.height = canvas2.height;
|
|
114
|
+
return (canvas2 == null ? void 0 : canvas2.toDataURL()) == blank.toDataURL();
|
|
115
|
+
};
|
|
112
116
|
const onSave = (canvas2) => {
|
|
113
117
|
let dataurl;
|
|
114
118
|
switch (props.type) {
|
|
@@ -119,8 +123,10 @@ const _sfc_main = create({
|
|
|
119
123
|
dataurl = canvas2.toDataURL("image/jpeg", 0.8);
|
|
120
124
|
break;
|
|
121
125
|
}
|
|
126
|
+
const _canvas = isCanvasBlank(canvas2) ? "请绘制签名" : canvas2;
|
|
127
|
+
const _filePath = isCanvasBlank(canvas2) ? "" : dataurl;
|
|
122
128
|
clear();
|
|
123
|
-
emit("confirm",
|
|
129
|
+
emit("confirm", _canvas, _filePath);
|
|
124
130
|
};
|
|
125
131
|
onMounted(() => {
|
|
126
132
|
if (isCanvasSupported()) {
|
|
@@ -1,53 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { c as createComponent } from "./component-1a609d46.js";
|
|
7
|
-
import { toRefs, computed, onMounted, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
|
+
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
|
|
8
3
|
import Avatar from "./Avatar.js";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
const component = (components) => {
|
|
12
7
|
return {
|
|
13
8
|
components,
|
|
14
9
|
props: {
|
|
10
|
+
//每行宽度
|
|
15
11
|
width: {
|
|
16
12
|
type: String,
|
|
17
13
|
default: "100px"
|
|
18
14
|
},
|
|
15
|
+
//每行高度
|
|
19
16
|
height: {
|
|
20
17
|
type: String,
|
|
21
|
-
default: "
|
|
18
|
+
default: "15px"
|
|
22
19
|
},
|
|
20
|
+
//是否显示动画
|
|
23
21
|
animated: {
|
|
24
22
|
type: Boolean,
|
|
25
23
|
default: false
|
|
26
24
|
},
|
|
25
|
+
//头像
|
|
27
26
|
avatar: {
|
|
28
27
|
type: Boolean,
|
|
29
28
|
default: false
|
|
30
29
|
},
|
|
30
|
+
//头像形状:正方形/圆形
|
|
31
31
|
avatarShape: {
|
|
32
32
|
type: String,
|
|
33
33
|
default: "round"
|
|
34
34
|
},
|
|
35
|
+
//头像大小
|
|
35
36
|
avatarSize: {
|
|
36
37
|
type: String,
|
|
37
38
|
default: "50px"
|
|
38
39
|
},
|
|
40
|
+
//是否显示骨架屏
|
|
39
41
|
loading: {
|
|
40
42
|
type: Boolean,
|
|
41
43
|
default: true
|
|
42
44
|
},
|
|
45
|
+
//标题/段落 圆角风格
|
|
43
46
|
round: {
|
|
44
47
|
type: Boolean,
|
|
45
48
|
default: false
|
|
46
49
|
},
|
|
50
|
+
//显示段落行数
|
|
47
51
|
row: {
|
|
48
52
|
type: String,
|
|
49
53
|
default: "1"
|
|
50
54
|
},
|
|
55
|
+
//是否显示段落标题
|
|
51
56
|
title: {
|
|
52
57
|
type: Boolean,
|
|
53
58
|
default: true
|
|
@@ -80,8 +85,6 @@ const component = (components) => {
|
|
|
80
85
|
height: "50px"
|
|
81
86
|
};
|
|
82
87
|
};
|
|
83
|
-
onMounted(() => {
|
|
84
|
-
});
|
|
85
88
|
return {
|
|
86
89
|
avatarShape,
|
|
87
90
|
avatarClass,
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import Price from "./Price.js";
|
|
3
|
+
import { c as createComponent, T as TypeOfFun } from "./component-81a4c1d0.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
|
+
import InputNumber from "./InputNumber.js";
|
|
6
|
+
import { p as popupProps, P as Popup } from "./index-af79da1a.js";
|
|
10
7
|
import "../locale/lang";
|
|
11
|
-
import "./
|
|
8
|
+
import "./pxCheck-c6b9f6b7.js";
|
|
12
9
|
import "@nutui/icons-vue";
|
|
10
|
+
import "./Overlay.js";
|
|
13
11
|
const { componentName: componentName$4, create: create$4, translate: translate$1 } = createComponent("sku-header");
|
|
14
12
|
const _sfc_main$4 = create$4({
|
|
15
13
|
props: {
|
|
@@ -19,6 +17,9 @@ const _sfc_main$4 = create$4({
|
|
|
19
17
|
}
|
|
20
18
|
},
|
|
21
19
|
emits: [],
|
|
20
|
+
components: {
|
|
21
|
+
[Price.name]: Price
|
|
22
|
+
},
|
|
22
23
|
setup(props, { emit, slots }) {
|
|
23
24
|
const getSlots = (name) => slots[name];
|
|
24
25
|
return {
|
|
@@ -38,6 +39,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38
39
|
const _component_nut_price = resolveComponent("nut-price");
|
|
39
40
|
return openBlock(), createElementBlock("view", _hoisted_1$4, [
|
|
40
41
|
createElementVNode("img", {
|
|
42
|
+
class: "nut-sku-header-img",
|
|
41
43
|
src: _ctx.goods.imagePath
|
|
42
44
|
}, null, 8, _hoisted_2$4),
|
|
43
45
|
createElementVNode("view", _hoisted_3$3, [
|
|
@@ -122,6 +124,7 @@ const SkuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_rend
|
|
|
122
124
|
const { componentName: componentName$2, create: create$2 } = createComponent("sku-stepper");
|
|
123
125
|
const _sfc_main$2 = create$2({
|
|
124
126
|
props: {
|
|
127
|
+
// 购买数量最大值
|
|
125
128
|
stepperMax: {
|
|
126
129
|
type: [Number, String],
|
|
127
130
|
default: 99999
|
|
@@ -130,16 +133,21 @@ const _sfc_main$2 = create$2({
|
|
|
130
133
|
type: [Number, String],
|
|
131
134
|
default: 1
|
|
132
135
|
},
|
|
136
|
+
// stepper 前文案提示
|
|
133
137
|
stepperExtraText: {
|
|
134
138
|
type: [Function, Boolean],
|
|
135
139
|
default: false
|
|
136
140
|
},
|
|
141
|
+
// 数量选择左侧文案
|
|
137
142
|
stepperTitle: {
|
|
138
143
|
type: String,
|
|
139
144
|
default: "购买数量"
|
|
140
145
|
}
|
|
141
146
|
},
|
|
142
147
|
emits: ["click", "changeSku", "changeStepper", "clickBtnOptions", "overLimit", "reduce", "add"],
|
|
148
|
+
components: {
|
|
149
|
+
[InputNumber.name]: InputNumber
|
|
150
|
+
},
|
|
143
151
|
setup(props, { emit }) {
|
|
144
152
|
const goodsCount = ref(props.stepperMin);
|
|
145
153
|
onMounted(() => {
|
|
@@ -209,6 +217,7 @@ const SkuStepper = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_ren
|
|
|
209
217
|
const { componentName: componentName$1, create: create$1 } = createComponent("sku-operate");
|
|
210
218
|
const _sfc_main$1 = create$1({
|
|
211
219
|
props: {
|
|
220
|
+
// 底部按钮配置 confirm cart buy
|
|
212
221
|
btnOptions: {
|
|
213
222
|
type: Array,
|
|
214
223
|
default: () => ["confirm"]
|
|
@@ -217,10 +226,12 @@ const _sfc_main$1 = create$1({
|
|
|
217
226
|
type: String,
|
|
218
227
|
default: ""
|
|
219
228
|
},
|
|
229
|
+
// 立即购买文案
|
|
220
230
|
buyText: {
|
|
221
231
|
type: String,
|
|
222
232
|
default: "立即购买"
|
|
223
233
|
},
|
|
234
|
+
// 加入购物车文案
|
|
224
235
|
addCartText: {
|
|
225
236
|
type: String,
|
|
226
237
|
default: "加入购物车"
|
|
@@ -293,22 +304,27 @@ const _sfc_main = create({
|
|
|
293
304
|
type: Object,
|
|
294
305
|
default: {}
|
|
295
306
|
},
|
|
307
|
+
// stepper 最大值
|
|
296
308
|
stepperMax: {
|
|
297
309
|
type: [Number, String],
|
|
298
310
|
default: 99999
|
|
299
311
|
},
|
|
312
|
+
// stepper 最小值
|
|
300
313
|
stepperMin: {
|
|
301
314
|
type: [Number, String],
|
|
302
315
|
default: 1
|
|
303
316
|
},
|
|
317
|
+
// 底部按钮配置 confirm cart buy
|
|
304
318
|
btnOptions: {
|
|
305
319
|
type: Array,
|
|
306
320
|
default: () => ["confirm"]
|
|
307
321
|
},
|
|
322
|
+
// 数量选择左侧文案
|
|
308
323
|
stepperTitle: {
|
|
309
324
|
type: String,
|
|
310
325
|
default: ""
|
|
311
326
|
},
|
|
327
|
+
// stepper 前面文案
|
|
312
328
|
stepperExtraText: {
|
|
313
329
|
type: [Function, Boolean],
|
|
314
330
|
default: false
|
|
@@ -317,14 +333,17 @@ const _sfc_main = create({
|
|
|
317
333
|
type: String,
|
|
318
334
|
default: ""
|
|
319
335
|
},
|
|
336
|
+
// 立即购买文案
|
|
320
337
|
buyText: {
|
|
321
338
|
type: String,
|
|
322
339
|
default: ""
|
|
323
340
|
},
|
|
341
|
+
// 加入购物车文案
|
|
324
342
|
addCartText: {
|
|
325
343
|
type: String,
|
|
326
344
|
default: ""
|
|
327
345
|
},
|
|
346
|
+
// 确定文案
|
|
328
347
|
confirmText: {
|
|
329
348
|
type: String,
|
|
330
349
|
default: ""
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { getCurrentInstance, inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, Fragment, toDisplayString, createCommentVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
9
4
|
import "../locale/lang";
|
|
10
5
|
const { create, componentName } = createComponent("step");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { reactive, computed, provide, h } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import "../locale/lang";
|
|
9
4
|
const { create, componentName } = createComponent("steps");
|
|
10
5
|
const _sfc_main = create({
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-2e585483.js";
|
|
1
|
+
import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-cc5c4086.js";
|
|
7
2
|
import "vue";
|
|
8
|
-
import "./component-
|
|
3
|
+
import "./component-81a4c1d0.js";
|
|
9
4
|
import "../locale/lang";
|
|
10
|
-
import "./index-
|
|
5
|
+
import "./index-29892cda.js";
|
|
11
6
|
export {
|
|
12
7
|
_sfc_main as default
|
|
13
8
|
};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
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-1a609d46.js";
|
|
1
|
+
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createBlock, withDirectives, normalizeStyle, renderSlot, vShow } from "vue";
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import { ArrowDown2, ArrowUp2 } from "@nutui/icons-vue";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
const { componentName, create } = createComponent("sub-side-navbar");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -75,12 +70,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75
70
|
!_ctx.direction ? (openBlock(), createBlock(_component_ArrowDown2, { key: 0 })) : (openBlock(), createBlock(_component_ArrowUp2, { key: 1 }))
|
|
76
71
|
])
|
|
77
72
|
]),
|
|
78
|
-
createElementVNode("view", {
|
|
73
|
+
withDirectives(createElementVNode("view", {
|
|
79
74
|
class: normalizeClass(["nut-sub-side-navbar__list", !_ctx.direction ? "nutFadeIn" : "nutFadeOut"]),
|
|
80
75
|
style: normalizeStyle(_ctx.style)
|
|
81
76
|
}, [
|
|
82
77
|
renderSlot(_ctx.$slots, "default")
|
|
83
|
-
], 6)
|
|
78
|
+
], 6), [
|
|
79
|
+
[vShow, !_ctx.direction]
|
|
80
|
+
])
|
|
84
81
|
], 10, _hoisted_1);
|
|
85
82
|
}
|
|
86
83
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { u as useTouch } from "./index-0bea707c.js";
|
|
1
|
+
import { u as useTouch } from "./index-7a7385e4.js";
|
|
7
2
|
import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
8
|
-
import { c as createComponent } from "./component-
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
3
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
const { componentName, create } = createComponent("swipe");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -184,7 +179,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
184
179
|
], 512)
|
|
185
180
|
], 38);
|
|
186
181
|
}
|
|
187
|
-
const
|
|
182
|
+
const Swipe = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
188
183
|
export {
|
|
189
|
-
|
|
184
|
+
Swipe as default
|
|
190
185
|
};
|