@nutui/nutui 4.1.6 → 4.1.8-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/nutui.es.js +6 -2
- package/dist/nutui.js +4456 -4048
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +2 -2
- package/dist/packages/_es/Address.js +2 -2
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarCropper.js +467 -0
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/Backtop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +3 -3
- package/dist/packages/_es/CalendarItem.js +2 -2
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +2 -2
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +2 -2
- package/dist/packages/_es/Comment.js +13 -13
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/Countdown.js +1 -1
- package/dist/packages/_es/Countup.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- package/dist/packages/_es/Dialog.js +4 -4
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +53 -28
- package/dist/packages/_es/FormItem.js +15 -2
- package/dist/packages/_es/Grid.js +2 -2
- package/dist/packages/_es/GridItem.js +2 -2
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +8 -6
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +20 -25
- package/dist/packages/_es/InputNumber.js +9 -6
- package/dist/packages/_es/{Interceptor-c05a39f2.js → Interceptor-006f85b3.js} +1 -1
- package/dist/packages/_es/Invoice.js +3 -3
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +2 -2
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/Noticebar.js +1 -1
- package/dist/packages/_es/Notify.js +2 -2
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Overlay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +2 -3
- package/dist/packages/_es/Popover.js +2 -2
- package/dist/packages/_es/Popup.js +2 -2
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +2 -2
- package/dist/packages/_es/RadioGroup.js +2 -2
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/Searchbar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +2 -2
- package/dist/packages/_es/SideNavbar.js +1 -1
- package/dist/packages/_es/SideNavbarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +2 -2
- package/dist/packages/_es/Space.js +94 -0
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavbar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/SwipeGroup.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +19 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/Textarea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +2 -2
- package/dist/packages/_es/Toast.js +2 -2
- package/dist/packages/_es/Tour.js +2 -2
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +2 -2
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/Watermark.js +1 -1
- package/dist/packages/_es/{common-8775d905.js → common-728db750.js} +1 -1
- package/dist/packages/_es/{component-0fbad28e.js → component-f86a70df.js} +4 -4
- package/dist/packages/_es/{index-3032df15.js → index-5a1e6d22.js} +1 -1
- package/dist/packages/_es/{index-aef16dc6.js → index-b53aec83.js} +1 -1
- package/dist/packages/_es/{index.vue_vue_type_script_lang-cdf21a24.js → index.vue_vue_type_script_lang-0ccf787e.js} +4 -9
- package/dist/packages/_es/{index.vue_vue_type_script_lang-2852286e.js → index.vue_vue_type_script_lang-1e118ab6.js} +2 -2
- package/dist/packages/_es/{mountComponent-a895e3f1.js → mountComponent-053caf41.js} +1 -1
- package/dist/packages/actionsheet/index.css +1 -0
- package/dist/packages/actionsheet/style/css.mjs +2 -0
- package/dist/packages/actionsheet/style/index.mjs +2 -0
- package/dist/packages/address/index.css +1 -0
- package/dist/packages/address/style/css.mjs +2 -0
- package/dist/packages/address/style/index.mjs +2 -0
- package/dist/packages/addresslist/index.css +1 -0
- package/dist/packages/addresslist/style/css.mjs +2 -0
- package/dist/packages/addresslist/style/index.mjs +2 -0
- package/dist/packages/animate/index.css +1 -0
- package/dist/packages/animate/index.scss +3 -3
- package/dist/packages/animate/style/css.mjs +2 -0
- package/dist/packages/animate/style/index.mjs +2 -0
- package/dist/packages/audio/index.css +1 -0
- package/dist/packages/audio/style/css.mjs +2 -0
- package/dist/packages/audio/style/index.mjs +2 -0
- package/dist/packages/audiooperate/index.css +1 -0
- package/dist/packages/audiooperate/style/css.mjs +2 -0
- package/dist/packages/audiooperate/style/index.mjs +2 -0
- package/dist/packages/avatar/index.css +1 -0
- package/dist/packages/avatar/style/css.mjs +2 -0
- package/dist/packages/avatar/style/index.mjs +2 -0
- package/dist/packages/avatarcropper/index.css +1 -0
- package/dist/packages/avatarcropper/index.mjs +4 -0
- package/dist/packages/avatarcropper/index.scss +98 -0
- package/dist/packages/avatarcropper/style/css.mjs +2 -0
- package/dist/packages/avatarcropper/style/index.mjs +2 -0
- package/dist/packages/avatargroup/index.css +1 -0
- package/dist/packages/avatargroup/style/css.mjs +2 -0
- package/dist/packages/avatargroup/style/index.mjs +2 -0
- package/dist/packages/backtop/index.css +1 -0
- package/dist/packages/backtop/style/css.mjs +2 -0
- package/dist/packages/backtop/style/index.mjs +2 -0
- package/dist/packages/badge/index.css +1 -0
- package/dist/packages/badge/style/css.mjs +2 -0
- package/dist/packages/badge/style/index.mjs +2 -0
- package/dist/packages/barrage/index.css +1 -0
- package/dist/packages/barrage/style/css.mjs +2 -0
- package/dist/packages/barrage/style/index.mjs +2 -0
- package/dist/packages/button/index.css +1 -0
- package/dist/packages/button/style/css.mjs +2 -0
- package/dist/packages/button/style/index.mjs +2 -0
- package/dist/packages/calendar/index.css +1 -0
- package/dist/packages/calendar/style/css.mjs +2 -0
- package/dist/packages/calendar/style/index.mjs +2 -0
- package/dist/packages/calendaritem/index.css +0 -0
- package/dist/packages/calendaritem/style/css.mjs +2 -0
- package/dist/packages/calendaritem/style/index.mjs +2 -0
- package/dist/packages/card/index.css +1 -0
- package/dist/packages/card/style/css.mjs +2 -0
- package/dist/packages/card/style/index.mjs +2 -0
- package/dist/packages/cascader/index.css +1 -0
- package/dist/packages/cascader/style/css.mjs +2 -0
- package/dist/packages/cascader/style/index.mjs +2 -0
- package/dist/packages/category/index.css +1 -0
- package/dist/packages/category/style/css.mjs +2 -0
- package/dist/packages/category/style/index.mjs +2 -0
- package/dist/packages/categorypane/index.css +1 -0
- package/dist/packages/categorypane/style/css.mjs +2 -0
- package/dist/packages/categorypane/style/index.mjs +2 -0
- package/dist/packages/cell/index.css +1 -0
- package/dist/packages/cell/style/css.mjs +2 -0
- package/dist/packages/cell/style/index.mjs +2 -0
- package/dist/packages/cellgroup/index.css +1 -0
- package/dist/packages/cellgroup/style/css.mjs +2 -0
- package/dist/packages/cellgroup/style/index.mjs +2 -0
- package/dist/packages/checkbox/index.css +1 -0
- package/dist/packages/checkbox/index.scss +2 -1
- package/dist/packages/checkbox/style/css.mjs +2 -0
- package/dist/packages/checkbox/style/index.mjs +2 -0
- package/dist/packages/checkboxgroup/index.css +0 -0
- package/dist/packages/checkboxgroup/style/css.mjs +2 -0
- package/dist/packages/checkboxgroup/style/index.mjs +2 -0
- package/dist/packages/circleprogress/index.css +1 -0
- package/dist/packages/circleprogress/style/css.mjs +2 -0
- package/dist/packages/circleprogress/style/index.mjs +2 -0
- package/dist/packages/col/index.css +1 -0
- package/dist/packages/col/style/css.mjs +2 -0
- package/dist/packages/col/style/index.mjs +2 -0
- package/dist/packages/collapse/index.css +0 -0
- package/dist/packages/collapse/style/css.mjs +2 -0
- package/dist/packages/collapse/style/index.mjs +2 -0
- package/dist/packages/collapseitem/index.css +1 -0
- package/dist/packages/collapseitem/style/css.mjs +2 -0
- package/dist/packages/collapseitem/style/index.mjs +2 -0
- package/dist/packages/comment/index.css +1 -0
- package/dist/packages/comment/style/css.mjs +2 -0
- package/dist/packages/comment/style/index.mjs +2 -0
- package/dist/packages/configprovider/index.css +0 -0
- package/dist/packages/configprovider/style/css.mjs +2 -0
- package/dist/packages/configprovider/style/index.mjs +2 -0
- package/dist/packages/countdown/index.css +1 -0
- package/dist/packages/countdown/style/css.mjs +2 -0
- package/dist/packages/countdown/style/index.mjs +2 -0
- package/dist/packages/countup/index.css +1 -0
- package/dist/packages/countup/style/css.mjs +2 -0
- package/dist/packages/countup/style/index.mjs +2 -0
- package/dist/packages/datepicker/index.css +1 -0
- package/dist/packages/datepicker/style/css.mjs +2 -0
- package/dist/packages/datepicker/style/index.mjs +2 -0
- package/dist/packages/dialog/index.css +1 -0
- package/dist/packages/dialog/style/css.mjs +2 -0
- package/dist/packages/dialog/style/index.mjs +2 -0
- package/dist/packages/divider/index.css +1 -0
- package/dist/packages/divider/style/css.mjs +2 -0
- package/dist/packages/divider/style/index.mjs +2 -0
- package/dist/packages/drag/index.css +1 -0
- package/dist/packages/drag/style/css.mjs +2 -0
- package/dist/packages/drag/style/index.mjs +2 -0
- package/dist/packages/ecard/index.css +1 -0
- package/dist/packages/ecard/style/css.mjs +2 -0
- package/dist/packages/ecard/style/index.mjs +2 -0
- package/dist/packages/elevator/index.css +1 -0
- package/dist/packages/elevator/style/css.mjs +2 -0
- package/dist/packages/elevator/style/index.mjs +2 -0
- package/dist/packages/ellipsis/index.css +1 -0
- package/dist/packages/ellipsis/style/css.mjs +2 -0
- package/dist/packages/ellipsis/style/index.mjs +2 -0
- package/dist/packages/empty/index.css +1 -0
- package/dist/packages/empty/style/css.mjs +2 -0
- package/dist/packages/empty/style/index.mjs +2 -0
- package/dist/packages/fixednav/index.css +1 -0
- package/dist/packages/fixednav/style/css.mjs +2 -0
- package/dist/packages/fixednav/style/index.mjs +2 -0
- package/dist/packages/form/index.css +1 -0
- package/dist/packages/form/style/css.mjs +2 -0
- package/dist/packages/form/style/index.mjs +2 -0
- package/dist/packages/formitem/index.css +1 -0
- package/dist/packages/formitem/style/css.mjs +2 -0
- package/dist/packages/formitem/style/index.mjs +2 -0
- package/dist/packages/grid/index.css +1 -0
- package/dist/packages/grid/style/css.mjs +2 -0
- package/dist/packages/grid/style/index.mjs +2 -0
- package/dist/packages/griditem/index.css +1 -0
- package/dist/packages/griditem/style/css.mjs +2 -0
- package/dist/packages/griditem/style/index.mjs +2 -0
- package/dist/packages/icon/index.css +1 -0
- package/dist/packages/icon/style/css.mjs +2 -0
- package/dist/packages/icon/style/index.mjs +2 -0
- package/dist/packages/image/index.css +1 -0
- package/dist/packages/image/style/css.mjs +2 -0
- package/dist/packages/image/style/index.mjs +2 -0
- package/dist/packages/imagepreview/index.css +1 -0
- package/dist/packages/imagepreview/style/css.mjs +2 -0
- package/dist/packages/imagepreview/style/index.mjs +2 -0
- package/dist/packages/indicator/index.css +1 -0
- package/dist/packages/indicator/style/css.mjs +2 -0
- package/dist/packages/indicator/style/index.mjs +2 -0
- package/dist/packages/infiniteloading/index.css +1 -0
- package/dist/packages/infiniteloading/style/css.mjs +2 -0
- package/dist/packages/infiniteloading/style/index.mjs +2 -0
- package/dist/packages/input/index.css +1 -0
- package/dist/packages/input/style/css.mjs +2 -0
- package/dist/packages/input/style/index.mjs +2 -0
- package/dist/packages/inputnumber/index.css +1 -0
- package/dist/packages/inputnumber/style/css.mjs +2 -0
- package/dist/packages/inputnumber/style/index.mjs +2 -0
- package/dist/packages/invoice/index.css +1 -0
- package/dist/packages/invoice/style/css.mjs +2 -0
- package/dist/packages/invoice/style/index.mjs +2 -0
- package/dist/packages/layout/index.css +0 -0
- package/dist/packages/layout/style/css.mjs +2 -0
- package/dist/packages/layout/style/index.mjs +2 -0
- package/dist/packages/list/index.css +1 -0
- package/dist/packages/list/style/css.mjs +2 -0
- package/dist/packages/list/style/index.mjs +2 -0
- package/dist/packages/menu/index.css +1 -0
- package/dist/packages/menu/style/css.mjs +2 -0
- package/dist/packages/menu/style/index.mjs +2 -0
- package/dist/packages/menuitem/index.css +1 -0
- package/dist/packages/menuitem/style/css.mjs +2 -0
- package/dist/packages/menuitem/style/index.mjs +2 -0
- package/dist/packages/navbar/index.css +1 -0
- package/dist/packages/navbar/style/css.mjs +2 -0
- package/dist/packages/navbar/style/index.mjs +2 -0
- package/dist/packages/noticebar/index.css +1 -0
- package/dist/packages/noticebar/style/css.mjs +2 -0
- package/dist/packages/noticebar/style/index.mjs +2 -0
- package/dist/packages/notify/index.css +1 -0
- package/dist/packages/notify/style/css.mjs +2 -0
- package/dist/packages/notify/style/index.mjs +2 -0
- package/dist/packages/numberkeyboard/index.css +1 -0
- package/dist/packages/numberkeyboard/style/css.mjs +2 -0
- package/dist/packages/numberkeyboard/style/index.mjs +2 -0
- package/dist/packages/overlay/index.css +1 -0
- package/dist/packages/overlay/style/css.mjs +2 -0
- package/dist/packages/overlay/style/index.mjs +2 -0
- package/dist/packages/pagination/index.css +1 -0
- package/dist/packages/pagination/style/css.mjs +2 -0
- package/dist/packages/pagination/style/index.mjs +2 -0
- package/dist/packages/picker/index.css +1 -0
- package/dist/packages/picker/style/css.mjs +2 -0
- package/dist/packages/picker/style/index.mjs +2 -0
- package/dist/packages/popover/index.css +1 -0
- package/dist/packages/popover/style/css.mjs +2 -0
- package/dist/packages/popover/style/index.mjs +2 -0
- package/dist/packages/popup/index.css +1 -0
- package/dist/packages/popup/style/css.mjs +2 -0
- package/dist/packages/popup/style/index.mjs +2 -0
- package/dist/packages/price/index.css +1 -0
- package/dist/packages/price/style/css.mjs +2 -0
- package/dist/packages/price/style/index.mjs +2 -0
- package/dist/packages/progress/index.css +1 -0
- package/dist/packages/progress/style/css.mjs +2 -0
- package/dist/packages/progress/style/index.mjs +2 -0
- package/dist/packages/pullrefresh/index.css +1 -0
- package/dist/packages/pullrefresh/style/css.mjs +2 -0
- package/dist/packages/pullrefresh/style/index.mjs +2 -0
- package/dist/packages/radio/index.css +1 -0
- package/dist/packages/radio/index.scss +13 -0
- package/dist/packages/radio/style/css.mjs +2 -0
- package/dist/packages/radio/style/index.mjs +2 -0
- package/dist/packages/radiogroup/index.css +1 -0
- package/dist/packages/radiogroup/style/css.mjs +2 -0
- package/dist/packages/radiogroup/style/index.mjs +2 -0
- package/dist/packages/range/index.css +1 -0
- package/dist/packages/range/style/css.mjs +2 -0
- package/dist/packages/range/style/index.mjs +2 -0
- package/dist/packages/rate/index.css +1 -0
- package/dist/packages/rate/style/css.mjs +2 -0
- package/dist/packages/rate/style/index.mjs +2 -0
- package/dist/packages/row/index.css +1 -0
- package/dist/packages/row/style/css.mjs +2 -0
- package/dist/packages/row/style/index.mjs +2 -0
- package/dist/packages/searchbar/index.css +1 -0
- package/dist/packages/searchbar/style/css.mjs +2 -0
- package/dist/packages/searchbar/style/index.mjs +2 -0
- package/dist/packages/shortpassword/index.css +1 -0
- package/dist/packages/shortpassword/style/css.mjs +2 -0
- package/dist/packages/shortpassword/style/index.mjs +2 -0
- package/dist/packages/sidenavbar/index.css +1 -0
- package/dist/packages/sidenavbar/style/css.mjs +2 -0
- package/dist/packages/sidenavbar/style/index.mjs +2 -0
- package/dist/packages/sidenavbaritem/index.css +1 -0
- package/dist/packages/sidenavbaritem/style/css.mjs +2 -0
- package/dist/packages/sidenavbaritem/style/index.mjs +2 -0
- package/dist/packages/signature/index.css +1 -0
- package/dist/packages/signature/style/css.mjs +2 -0
- package/dist/packages/signature/style/index.mjs +2 -0
- package/dist/packages/skeleton/index.css +1 -0
- package/dist/packages/skeleton/style/css.mjs +2 -0
- package/dist/packages/skeleton/style/index.mjs +2 -0
- package/dist/packages/sku/index.css +1 -0
- package/dist/packages/sku/style/css.mjs +2 -0
- package/dist/packages/sku/style/index.mjs +2 -0
- package/dist/packages/space/index.css +1 -0
- package/dist/packages/space/index.mjs +4 -0
- package/dist/packages/space/index.scss +76 -0
- package/dist/packages/space/style/css.mjs +2 -0
- package/dist/packages/space/style/index.mjs +2 -0
- package/dist/packages/step/index.css +1 -0
- package/dist/packages/step/style/css.mjs +2 -0
- package/dist/packages/step/style/index.mjs +2 -0
- package/dist/packages/steps/index.css +1 -0
- package/dist/packages/steps/style/css.mjs +2 -0
- package/dist/packages/steps/style/index.mjs +2 -0
- package/dist/packages/sticky/index.css +0 -0
- package/dist/packages/sticky/style/css.mjs +2 -0
- package/dist/packages/sticky/style/index.mjs +2 -0
- package/dist/packages/subsidenavbar/index.css +1 -0
- package/dist/packages/subsidenavbar/style/css.mjs +2 -0
- package/dist/packages/subsidenavbar/style/index.mjs +2 -0
- package/dist/packages/swipe/index.css +1 -0
- package/dist/packages/swipe/style/css.mjs +2 -0
- package/dist/packages/swipe/style/index.mjs +2 -0
- package/dist/packages/swipegroup/index.css +0 -0
- package/dist/packages/swipegroup/style/css.mjs +2 -0
- package/dist/packages/swipegroup/style/index.mjs +2 -0
- package/dist/packages/swiper/index.css +1 -0
- package/dist/packages/swiper/style/css.mjs +2 -0
- package/dist/packages/swiper/style/index.mjs +2 -0
- package/dist/packages/swiperitem/index.css +1 -0
- package/dist/packages/swiperitem/style/css.mjs +2 -0
- package/dist/packages/swiperitem/style/index.mjs +2 -0
- package/dist/packages/switch/index.css +1 -0
- package/dist/packages/switch/style/css.mjs +2 -0
- package/dist/packages/switch/style/index.mjs +2 -0
- package/dist/packages/tabbar/index.css +1 -0
- package/dist/packages/tabbar/style/css.mjs +2 -0
- package/dist/packages/tabbar/style/index.mjs +2 -0
- package/dist/packages/tabbaritem/index.css +1 -0
- package/dist/packages/tabbaritem/style/css.mjs +2 -0
- package/dist/packages/tabbaritem/style/index.mjs +2 -0
- package/dist/packages/table/index.css +1 -0
- package/dist/packages/table/style/css.mjs +2 -0
- package/dist/packages/table/style/index.mjs +2 -0
- package/dist/packages/tabpane/index.css +1 -0
- package/dist/packages/tabpane/style/css.mjs +2 -0
- package/dist/packages/tabpane/style/index.mjs +2 -0
- package/dist/packages/tabs/index.css +1 -0
- package/dist/packages/tabs/style/css.mjs +2 -0
- package/dist/packages/tabs/style/index.mjs +2 -0
- package/dist/packages/tag/index.css +1 -0
- package/dist/packages/tag/style/css.mjs +2 -0
- package/dist/packages/tag/style/index.mjs +2 -0
- package/dist/packages/textarea/index.css +1 -0
- package/dist/packages/textarea/style/css.mjs +2 -0
- package/dist/packages/textarea/style/index.mjs +2 -0
- package/dist/packages/timedetail/index.css +1 -0
- package/dist/packages/timedetail/style/css.mjs +2 -0
- package/dist/packages/timedetail/style/index.mjs +2 -0
- package/dist/packages/timepannel/index.css +1 -0
- package/dist/packages/timepannel/style/css.mjs +2 -0
- package/dist/packages/timepannel/style/index.mjs +2 -0
- package/dist/packages/timeselect/index.css +1 -0
- package/dist/packages/timeselect/style/css.mjs +2 -0
- package/dist/packages/timeselect/style/index.mjs +2 -0
- package/dist/packages/toast/index.css +1 -0
- package/dist/packages/toast/style/css.mjs +2 -0
- package/dist/packages/toast/style/index.mjs +2 -0
- package/dist/packages/tour/index.css +1 -0
- package/dist/packages/tour/style/css.mjs +2 -0
- package/dist/packages/tour/style/index.mjs +2 -0
- package/dist/packages/trendarrow/index.css +1 -0
- package/dist/packages/trendarrow/style/css.mjs +2 -0
- package/dist/packages/trendarrow/style/index.mjs +2 -0
- package/dist/packages/uploader/index.css +1 -0
- package/dist/packages/uploader/index.scss +1 -4
- package/dist/packages/uploader/style/css.mjs +2 -0
- package/dist/packages/uploader/style/index.mjs +2 -0
- package/dist/packages/video/index.css +1 -0
- package/dist/packages/video/style/css.mjs +2 -0
- package/dist/packages/video/style/index.mjs +2 -0
- package/dist/packages/watermark/index.css +1 -0
- package/dist/packages/watermark/style/css.mjs +2 -0
- package/dist/packages/watermark/style/index.mjs +2 -0
- package/dist/smartips/web-types.json +123 -1
- package/dist/style.css +1 -1
- package/dist/styles/base-jdb.css +1 -0
- package/dist/styles/base-jddkh.css +1 -0
- package/dist/styles/base-jdt.css +1 -0
- package/dist/styles/themes/default.scss +40 -38
- package/dist/styles/themes/jdb.scss +40 -38
- package/dist/styles/themes/jddkh.scss +40 -38
- package/dist/styles/themes/jdt.scss +40 -38
- package/dist/styles/variables-jdb.scss +10 -3
- package/dist/styles/variables-jddkh.scss +9 -2
- package/dist/styles/variables-jdt.scss +6 -1
- package/dist/styles/variables.scss +6 -1
- package/dist/types/__VUE/address/index.vue.d.ts +1 -1
- package/dist/types/__VUE/avatarcropper/index.vue.d.ts +100 -0
- package/dist/types/__VUE/avatarcropper/types.d.ts +3 -0
- package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
- package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +2 -2
- package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/dialog/index.vue.d.ts +10 -4
- package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/ecard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +1 -1
- package/dist/types/__VUE/form/common.d.ts +1 -1
- package/dist/types/__VUE/image/index.vue.d.ts +2 -2
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +10 -24
- package/dist/types/__VUE/input/type.d.ts +3 -0
- package/dist/types/__VUE/input/util.d.ts +6 -0
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +2 -2
- package/dist/types/__VUE/menu/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/pagination/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/range/index.vue.d.ts +4 -4
- package/dist/types/__VUE/rate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/signature/index.vue.d.ts +1 -1
- package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -2
- package/dist/types/__VUE/space/index.vue.d.ts +40 -0
- package/dist/types/__VUE/space/types.d.ts +3 -0
- package/dist/types/__VUE/swiper/index.vue.d.ts +3 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tour/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/watermark/index.vue.d.ts +2 -2
- package/dist/types/index.d.ts +4 -2
- package/dist/types/utils/canvas.d.ts +7 -0
- package/package.json +2 -2
- package/dist/packages/actionsheet/style.mjs +0 -2
- package/dist/packages/address/style.mjs +0 -2
- package/dist/packages/addresslist/style.mjs +0 -2
- package/dist/packages/animate/style.mjs +0 -2
- package/dist/packages/audio/style.mjs +0 -2
- package/dist/packages/audiooperate/style.mjs +0 -2
- package/dist/packages/avatar/style.mjs +0 -2
- package/dist/packages/avatargroup/style.mjs +0 -2
- package/dist/packages/backtop/style.mjs +0 -2
- package/dist/packages/badge/style.mjs +0 -2
- package/dist/packages/barrage/style.mjs +0 -2
- package/dist/packages/button/style.mjs +0 -2
- package/dist/packages/calendar/style.mjs +0 -2
- package/dist/packages/calendaritem/style.mjs +0 -2
- package/dist/packages/card/style.mjs +0 -2
- package/dist/packages/cascader/style.mjs +0 -2
- package/dist/packages/category/style.mjs +0 -2
- package/dist/packages/categorypane/style.mjs +0 -2
- package/dist/packages/cell/style.mjs +0 -2
- package/dist/packages/cellgroup/style.mjs +0 -2
- package/dist/packages/checkbox/style.mjs +0 -2
- package/dist/packages/checkboxgroup/style.mjs +0 -2
- package/dist/packages/circleprogress/style.mjs +0 -2
- package/dist/packages/col/style.mjs +0 -2
- package/dist/packages/collapse/style.mjs +0 -2
- package/dist/packages/collapseitem/style.mjs +0 -2
- package/dist/packages/comment/style.mjs +0 -2
- package/dist/packages/configprovider/style.mjs +0 -2
- package/dist/packages/countdown/style.mjs +0 -2
- package/dist/packages/countup/style.mjs +0 -2
- package/dist/packages/datepicker/style.mjs +0 -2
- package/dist/packages/dialog/style.mjs +0 -2
- package/dist/packages/divider/style.mjs +0 -2
- package/dist/packages/drag/style.mjs +0 -2
- package/dist/packages/ecard/style.mjs +0 -2
- package/dist/packages/elevator/style.mjs +0 -2
- package/dist/packages/ellipsis/style.mjs +0 -2
- package/dist/packages/empty/style.mjs +0 -2
- package/dist/packages/fixednav/style.mjs +0 -2
- package/dist/packages/form/style.mjs +0 -2
- package/dist/packages/formitem/style.mjs +0 -2
- package/dist/packages/grid/style.mjs +0 -2
- package/dist/packages/griditem/style.mjs +0 -2
- package/dist/packages/icon/style.mjs +0 -2
- package/dist/packages/image/style.mjs +0 -2
- package/dist/packages/imagepreview/style.mjs +0 -2
- package/dist/packages/indicator/style.mjs +0 -2
- package/dist/packages/infiniteloading/style.mjs +0 -2
- package/dist/packages/input/style.mjs +0 -2
- package/dist/packages/inputnumber/style.mjs +0 -2
- package/dist/packages/invoice/style.mjs +0 -2
- package/dist/packages/layout/style.mjs +0 -2
- package/dist/packages/list/style.mjs +0 -2
- package/dist/packages/menu/style.mjs +0 -2
- package/dist/packages/menuitem/style.mjs +0 -2
- package/dist/packages/navbar/style.mjs +0 -2
- package/dist/packages/noticebar/style.mjs +0 -2
- package/dist/packages/notify/style.mjs +0 -2
- package/dist/packages/numberkeyboard/style.mjs +0 -2
- package/dist/packages/overlay/style.mjs +0 -2
- package/dist/packages/pagination/style.mjs +0 -2
- package/dist/packages/picker/style.mjs +0 -2
- package/dist/packages/popover/style.mjs +0 -2
- package/dist/packages/popup/style.mjs +0 -2
- package/dist/packages/price/style.mjs +0 -2
- package/dist/packages/progress/style.mjs +0 -2
- package/dist/packages/pullrefresh/style.mjs +0 -2
- package/dist/packages/radio/style.mjs +0 -2
- package/dist/packages/radiogroup/style.mjs +0 -2
- package/dist/packages/range/style.mjs +0 -2
- package/dist/packages/rate/style.mjs +0 -2
- package/dist/packages/row/style.mjs +0 -2
- package/dist/packages/searchbar/style.mjs +0 -2
- package/dist/packages/shortpassword/style.mjs +0 -2
- package/dist/packages/sidenavbar/style.mjs +0 -2
- package/dist/packages/sidenavbaritem/style.mjs +0 -2
- package/dist/packages/signature/style.mjs +0 -2
- package/dist/packages/skeleton/style.mjs +0 -2
- package/dist/packages/sku/style.mjs +0 -2
- package/dist/packages/step/style.mjs +0 -2
- package/dist/packages/steps/style.mjs +0 -2
- package/dist/packages/sticky/style.mjs +0 -2
- package/dist/packages/subsidenavbar/style.mjs +0 -2
- package/dist/packages/swipe/style.mjs +0 -2
- package/dist/packages/swipegroup/style.mjs +0 -2
- package/dist/packages/swiper/style.mjs +0 -2
- package/dist/packages/swiperitem/style.mjs +0 -2
- package/dist/packages/switch/style.mjs +0 -2
- package/dist/packages/tabbar/style.mjs +0 -2
- package/dist/packages/tabbaritem/style.mjs +0 -2
- package/dist/packages/table/style.mjs +0 -2
- package/dist/packages/tabpane/style.mjs +0 -2
- package/dist/packages/tabs/style.mjs +0 -2
- package/dist/packages/tag/style.mjs +0 -2
- package/dist/packages/textarea/style.mjs +0 -2
- package/dist/packages/timedetail/style.mjs +0 -2
- package/dist/packages/timepannel/style.mjs +0 -2
- package/dist/packages/timeselect/style.mjs +0 -2
- package/dist/packages/toast/style.mjs +0 -2
- package/dist/packages/tour/style.mjs +0 -2
- package/dist/packages/trendarrow/style.mjs +0 -2
- package/dist/packages/uploader/style.mjs +0 -2
- package/dist/packages/video/style.mjs +0 -2
- package/dist/packages/watermark/style.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, openBlock, createElementBlock, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot, toDisplayString } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { l as isObject, c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { create } = createComponent("circle-progress");
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("col");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, computed, watch, provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { create, componentName } = createComponent("collapse");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, inject, reactive, computed, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, toDisplayString, createCommentVNode, normalizeStyle, createBlock, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { DownArrow } from "@nutui/icons-vue";
|
|
3
|
-
import { c as createComponent } from "./component-
|
|
3
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
4
4
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
@@ -157,7 +157,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
157
157
|
class: normalizeClass(["nut-collapse-item__title-icon", { "nut-collapse-item__title-icon--expanded": _ctx.expanded }]),
|
|
158
158
|
style: normalizeStyle({ transform: "rotate(" + (_ctx.expanded ? _ctx.rotate : 0) + "deg)" })
|
|
159
159
|
}, [
|
|
160
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.icon))))
|
|
160
|
+
_ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 0 }) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.icon)), { key: 1 }))
|
|
161
161
|
], 6)
|
|
162
162
|
], 2),
|
|
163
163
|
_ctx.$slots.extra ? (openBlock(), createElementBlock("view", _hoisted_7, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, createBlock, computed, withCtx, normalizeStyle, createTextVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import { Right, Fabulous, Comment, MoreX } from "@nutui/icons-vue";
|
|
4
4
|
import Rate from "./Rate.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -39,7 +39,7 @@ const _sfc_main$3 = create$3({
|
|
|
39
39
|
const _hoisted_1$3 = { class: "nut-comment-header__user" };
|
|
40
40
|
const _hoisted_2$3 = { class: "nut-comment-header__user-avter" };
|
|
41
41
|
const _hoisted_3$3 = ["src"];
|
|
42
|
-
const _hoisted_4$
|
|
42
|
+
const _hoisted_4$2 = { class: "nut-comment-header__user-score" };
|
|
43
43
|
const _hoisted_5$1 = {
|
|
44
44
|
key: 0,
|
|
45
45
|
class: "nut-comment-header__time"
|
|
@@ -69,7 +69,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
69
69
|
createElementVNode("span", null, toDisplayString(_ctx.info.nickName), 1),
|
|
70
70
|
renderSlot(_ctx.$slots, "labels")
|
|
71
71
|
], 2),
|
|
72
|
-
createElementVNode("view", _hoisted_4$
|
|
72
|
+
createElementVNode("view", _hoisted_4$2, [
|
|
73
73
|
createVNode(_component_nut_rate, {
|
|
74
74
|
modelValue: _ctx.info.score,
|
|
75
75
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.info.score = $event),
|
|
@@ -170,7 +170,7 @@ const _sfc_main$2 = create$2({
|
|
|
170
170
|
const _hoisted_1$2 = ["onClick"];
|
|
171
171
|
const _hoisted_2$2 = ["src"];
|
|
172
172
|
const _hoisted_3$2 = /* @__PURE__ */ createElementVNode("view", { class: "nut-comment-images__play" }, null, -1);
|
|
173
|
-
const _hoisted_4$
|
|
173
|
+
const _hoisted_4$1 = ["onClick"];
|
|
174
174
|
const _hoisted_5 = ["src"];
|
|
175
175
|
const _hoisted_6 = {
|
|
176
176
|
key: 0,
|
|
@@ -209,7 +209,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
209
209
|
createElementVNode("span", null, "共 " + toDisplayString(_ctx.totalImages.length) + " 张", 1),
|
|
210
210
|
createVNode(_component_Right, { style: { "width": "12px" } })
|
|
211
211
|
])) : createCommentVNode("", true)
|
|
212
|
-
], 8, _hoisted_4$
|
|
212
|
+
], 8, _hoisted_4$1)) : createCommentVNode("", true)
|
|
213
213
|
], 64);
|
|
214
214
|
}), 128))
|
|
215
215
|
], 2);
|
|
@@ -262,7 +262,7 @@ const _sfc_main$1 = create$1({
|
|
|
262
262
|
const _hoisted_1$1 = { class: "nut-comment-bottom" };
|
|
263
263
|
const _hoisted_2$1 = { key: 0 };
|
|
264
264
|
const _hoisted_3$1 = { class: "nut-comment-bottom__cpx" };
|
|
265
|
-
const _hoisted_4
|
|
265
|
+
const _hoisted_4 = ["onClick"];
|
|
266
266
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
267
267
|
const _component_Fabulous = resolveComponent("Fabulous");
|
|
268
268
|
const _component_Comment = resolveComponent("Comment");
|
|
@@ -293,7 +293,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
293
293
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.operate("popover"))
|
|
294
294
|
}, toDisplayString(_ctx.translate("complaintsText")), 1)) : createCommentVNode("", true)
|
|
295
295
|
], 64)) : createCommentVNode("", true)
|
|
296
|
-
], 10, _hoisted_4
|
|
296
|
+
], 10, _hoisted_4);
|
|
297
297
|
}), 128))
|
|
298
298
|
])
|
|
299
299
|
]);
|
|
@@ -375,10 +375,6 @@ const _sfc_main = create({
|
|
|
375
375
|
const _hoisted_1 = ["innerHTML"];
|
|
376
376
|
const _hoisted_2 = { class: "nut-comment__follow-title" };
|
|
377
377
|
const _hoisted_3 = { class: "nut-comment__follow-com" };
|
|
378
|
-
const _hoisted_4 = {
|
|
379
|
-
key: 0,
|
|
380
|
-
class: "nut-comment__follow-img"
|
|
381
|
-
};
|
|
382
378
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
383
379
|
const _component_comment_header = resolveComponent("comment-header");
|
|
384
380
|
const _component_comment_images = resolveComponent("comment-images");
|
|
@@ -415,11 +411,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
415
411
|
_ctx.follow && _ctx.follow.days > 0 ? (openBlock(), createElementBlock("view", {
|
|
416
412
|
key: 0,
|
|
417
413
|
class: "nut-comment__follow",
|
|
418
|
-
onClick: _cache[
|
|
414
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
419
415
|
}, [
|
|
420
416
|
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.translate("additionalReview", _ctx.follow.days)), 1),
|
|
421
417
|
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.follow.content), 1),
|
|
422
|
-
_ctx.follow.images && _ctx.follow.images.length > 0 ? (openBlock(), createElementBlock("view",
|
|
418
|
+
_ctx.follow.images && _ctx.follow.images.length > 0 ? (openBlock(), createElementBlock("view", {
|
|
419
|
+
key: 0,
|
|
420
|
+
class: "nut-comment__follow-img",
|
|
421
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.clickImages(_ctx.follow.images))
|
|
422
|
+
}, [
|
|
423
423
|
createTextVNode(toDisplayString(_ctx.translate("additionalImages", _ctx.follow.images.length)) + " ", 1),
|
|
424
424
|
createVNode(_component_Right, { width: "12px" })
|
|
425
425
|
])) : createCommentVNode("", true)
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, onBeforeMount, watch, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
21
|
-
import { p as padZero, c as createComponent } from "./component-
|
|
21
|
+
import { p as padZero, c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const getTimeStamp = (timeStr) => {
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { getCurrentInstance, ref, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
function useExtend(apis) {
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, onBeforeMount, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from "vue";
|
|
21
21
|
import Picker from "./Picker.js";
|
|
22
|
-
import { c as createComponent, a as isDate$1, p as padZero } from "./component-
|
|
22
|
+
import { c as createComponent, a as isDate$1, p as padZero } from "./component-f86a70df.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "./pxCheck-c6b9f6b7.js";
|
|
25
25
|
import "./index-7a7385e4.js";
|
|
@@ -22,14 +22,14 @@ var __publicField = (obj, key, value) => {
|
|
|
22
22
|
return value;
|
|
23
23
|
};
|
|
24
24
|
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, nextTick, h } from "vue";
|
|
25
|
-
import { c as createComponent } from "./component-
|
|
26
|
-
import { f as funInterceptor } from "./Interceptor-
|
|
27
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
25
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
26
|
+
import { f as funInterceptor } from "./Interceptor-006f85b3.js";
|
|
27
|
+
import { P as Popup, p as popupProps } from "./index-5a1e6d22.js";
|
|
28
28
|
import Button from "./Button.js";
|
|
29
29
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
30
30
|
import Overlay from "./Overlay.js";
|
|
31
31
|
import "../locale/lang";
|
|
32
|
-
import { C as CreateComponent } from "./mountComponent-
|
|
32
|
+
import { C as CreateComponent } from "./mountComponent-053caf41.js";
|
|
33
33
|
import "@nutui/icons-vue";
|
|
34
34
|
const { componentName, create, translate } = createComponent("dialog");
|
|
35
35
|
const _sfc_main = create({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("divider");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, reactive, computed, onMounted, onActivated, onDeactivated, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeClass, withDirectives, vModelText, createTextVNode, createVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import InputNumber from "./InputNumber.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, onMounted, watch, nextTick, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, renderSlot, withDirectives, vShow, createCommentVNode, withModifiers } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, watch, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createTextVNode, withModifiers } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
const { componentName, create } = createComponent("ellipsis");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot, createCommentVNode, toDisplayString } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
|
|
2
2
|
import { Left } from "@nutui/icons-vue";
|
|
3
3
|
import Overlay from "./Overlay.js";
|
|
4
|
-
import { c as createComponent } from "./component-
|
|
4
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
7
7
|
const { translate, create, componentName } = createComponent("fixed-nav");
|
|
@@ -33,8 +33,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
33
33
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
import { g as getPropByPath, f as isPromise,
|
|
37
|
-
import { computed, reactive, provide, watch,
|
|
36
|
+
import { g as getPropByPath, f as isPromise, c as createComponent } from "./component-f86a70df.js";
|
|
37
|
+
import { computed, reactive, provide, watch, resolveComponent, openBlock, createElementBlock, withModifiers, createVNode, withCtx, renderSlot } from "vue";
|
|
38
38
|
import CellGroup from "./CellGroup.js";
|
|
39
39
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
40
40
|
import "../locale/lang";
|
|
@@ -52,7 +52,49 @@ const component = (components) => {
|
|
|
52
52
|
},
|
|
53
53
|
components,
|
|
54
54
|
emits: ["validate"],
|
|
55
|
-
setup(props, { emit
|
|
55
|
+
setup(props, { emit }) {
|
|
56
|
+
const useChildren = () => {
|
|
57
|
+
const publicChildren = reactive([]);
|
|
58
|
+
const internalChildren = reactive([]);
|
|
59
|
+
const linkChildren2 = (value) => {
|
|
60
|
+
const link = (child) => {
|
|
61
|
+
if (child.proxy) {
|
|
62
|
+
internalChildren.push(child);
|
|
63
|
+
publicChildren.push(child.proxy);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const removeLink = (child) => {
|
|
67
|
+
if (child.proxy) {
|
|
68
|
+
let internalIndex = internalChildren.indexOf(child);
|
|
69
|
+
if (internalIndex > -1) {
|
|
70
|
+
internalChildren.splice(internalIndex, 1);
|
|
71
|
+
}
|
|
72
|
+
let publicIndex = publicChildren.indexOf(child.proxy);
|
|
73
|
+
if (internalIndex > -1) {
|
|
74
|
+
publicChildren.splice(publicIndex, 1);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
provide(
|
|
79
|
+
"NutFormParent",
|
|
80
|
+
Object.assign(
|
|
81
|
+
{
|
|
82
|
+
removeLink,
|
|
83
|
+
link,
|
|
84
|
+
children: publicChildren,
|
|
85
|
+
internalChildren
|
|
86
|
+
},
|
|
87
|
+
value
|
|
88
|
+
)
|
|
89
|
+
);
|
|
90
|
+
};
|
|
91
|
+
return {
|
|
92
|
+
children: publicChildren,
|
|
93
|
+
linkChildren: linkChildren2
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
const { children, linkChildren } = useChildren();
|
|
97
|
+
linkChildren({ props });
|
|
56
98
|
const formErrorTip = computed(() => reactive({}));
|
|
57
99
|
provide("formErrorTip", formErrorTip);
|
|
58
100
|
const clearErrorTips = () => {
|
|
@@ -70,31 +112,14 @@ const component = (components) => {
|
|
|
70
112
|
},
|
|
71
113
|
{ immediate: true }
|
|
72
114
|
);
|
|
73
|
-
const
|
|
115
|
+
const getTaskFromChildren = () => {
|
|
74
116
|
const task = [];
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
prop: (_b = vnode.props) == null ? void 0 : _b["prop"],
|
|
82
|
-
rules: ((_c = vnode.props) == null ? void 0 : _c["rules"]) || []
|
|
83
|
-
});
|
|
84
|
-
} else if (Array.isArray(vnode.children) && ((_d = vnode.children) == null ? void 0 : _d.length)) {
|
|
85
|
-
search(vnode.children);
|
|
86
|
-
} else if (isObject(vnode.children) && Object.keys(vnode.children)) {
|
|
87
|
-
if ((_e = vnode.children) == null ? void 0 : _e.default) {
|
|
88
|
-
search(vnode.children.default());
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
} else if (Array.isArray(vnode)) {
|
|
92
|
-
vnode.forEach((v) => {
|
|
93
|
-
search(v);
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
search(vnodes);
|
|
117
|
+
children.forEach((item) => {
|
|
118
|
+
task.push({
|
|
119
|
+
prop: item == null ? void 0 : item["prop"],
|
|
120
|
+
rules: (item == null ? void 0 : item["rules"]) || []
|
|
121
|
+
});
|
|
122
|
+
});
|
|
98
123
|
return task;
|
|
99
124
|
};
|
|
100
125
|
const tipMessage = (errorMsg) => {
|
|
@@ -159,7 +184,7 @@ const component = (components) => {
|
|
|
159
184
|
const validate = (customProp = "") => {
|
|
160
185
|
return new Promise((resolve, reject) => {
|
|
161
186
|
try {
|
|
162
|
-
const task =
|
|
187
|
+
const task = getTaskFromChildren();
|
|
163
188
|
const errors = task.map((item) => {
|
|
164
189
|
if (customProp && customProp !== item.prop) {
|
|
165
190
|
return Promise.resolve(true);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
2
|
-
import { inject, provide, computed, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { inject, provide, computed, getCurrentInstance, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
4
4
|
import Cell from "./Cell.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
@@ -55,6 +55,19 @@ const _sfc_main = create({
|
|
|
55
55
|
[Cell.name]: Cell
|
|
56
56
|
},
|
|
57
57
|
setup(props, { slots }) {
|
|
58
|
+
const useParent = () => {
|
|
59
|
+
const parent2 = inject("NutFormParent", null);
|
|
60
|
+
if (parent2) {
|
|
61
|
+
const instance = getCurrentInstance();
|
|
62
|
+
const { link, removeLink } = parent2;
|
|
63
|
+
link(instance);
|
|
64
|
+
onUnmounted(() => {
|
|
65
|
+
removeLink(instance);
|
|
66
|
+
});
|
|
67
|
+
return { parent: parent2 };
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
useParent();
|
|
58
71
|
const parent = inject("formErrorTip");
|
|
59
72
|
provide("form", {
|
|
60
73
|
props
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-
|
|
1
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
2
2
|
import "vue";
|
|
3
|
-
import { c as component } from "./common-
|
|
3
|
+
import { c as component } from "./common-728db750.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
import "./pxCheck-c6b9f6b7.js";
|
|
6
6
|
const { create } = createComponent("grid");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { inject, getCurrentInstance, onUnmounted, computed, ref, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, Fragment, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { u as useRouter } from "./index-54d03fc1.js";
|
|
3
|
-
import { c as createComponent } from "./component-
|
|
3
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
4
4
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
5
|
-
import { G as GRID_KEY } from "./common-
|
|
5
|
+
import { G as GRID_KEY } from "./common-728db750.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
function useInject(key) {
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, useSlots, computed, ref, onMounted, onBeforeUnmount, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
23
23
|
import { Image, ImageError } from "@nutui/icons-vue";
|
|
24
24
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -22,19 +22,19 @@ var __publicField = (obj, key, value) => {
|
|
|
22
22
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
23
23
|
return value;
|
|
24
24
|
};
|
|
25
|
-
import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode,
|
|
26
|
-
import { c as createComponent, e as clamp, d as preventDefault, i as isArray } from "./component-
|
|
25
|
+
import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, nextTick, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode, h } from "vue";
|
|
26
|
+
import { c as createComponent, e as clamp, d as preventDefault, i as isArray } from "./component-f86a70df.js";
|
|
27
27
|
import { u as useRect } from "./index-29892cda.js";
|
|
28
28
|
import { u as useTouch } from "./index-7a7385e4.js";
|
|
29
29
|
import Video from "./Video.js";
|
|
30
30
|
import SwiperItem from "./SwiperItem.js";
|
|
31
31
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
32
32
|
import { CircleClose } from "@nutui/icons-vue";
|
|
33
|
-
import { P as Popup } from "./index-
|
|
33
|
+
import { P as Popup } from "./index-5a1e6d22.js";
|
|
34
34
|
import Swiper from "./Swiper.js";
|
|
35
|
-
import { f as funInterceptor } from "./Interceptor-
|
|
35
|
+
import { f as funInterceptor } from "./Interceptor-006f85b3.js";
|
|
36
36
|
import "../locale/lang";
|
|
37
|
-
import { C as CreateComponent } from "./mountComponent-
|
|
37
|
+
import { C as CreateComponent } from "./mountComponent-053caf41.js";
|
|
38
38
|
import Overlay from "./Overlay.js";
|
|
39
39
|
import "./index-79c5dc33.js";
|
|
40
40
|
import "./raf-729dad54.js";
|
|
@@ -380,7 +380,9 @@ const _sfc_main = create({
|
|
|
380
380
|
state.showPop = val;
|
|
381
381
|
if (val) {
|
|
382
382
|
setActive(props.initNo);
|
|
383
|
-
|
|
383
|
+
nextTick(() => {
|
|
384
|
+
init();
|
|
385
|
+
});
|
|
384
386
|
}
|
|
385
387
|
}
|
|
386
388
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, toDisplayString } from "vue";
|
|
2
|
-
import { p as padZero, c as createComponent } from "./component-
|
|
2
|
+
import { p as padZero, c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { create } = createComponent("indicator");
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, toDisplayString, createCommentVNode } from "vue";
|
|
21
|
-
import { c as createComponent,
|
|
21
|
+
import { c as createComponent, k as getScrollTopRoot } from "./component-f86a70df.js";
|
|
22
22
|
import { u as useScrollParent } from "./index-97b44e6c.js";
|
|
23
23
|
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
24
24
|
import { Loading } from "@nutui/icons-vue";
|
|
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
17
|
import { ref, reactive, computed, watch, onMounted, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, normalizeStyle, toDisplayString, createTextVNode, withDirectives, createVNode, mergeProps, vShow } from "vue";
|
|
18
|
-
import { c as createComponent } from "./component-
|
|
18
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
19
19
|
import { MaskClose } from "@nutui/icons-vue";
|
|
20
20
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
21
21
|
import "../locale/lang";
|
|
@@ -43,6 +43,21 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
43
43
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
44
44
|
return value.replace(regExp, "");
|
|
45
45
|
}
|
|
46
|
+
function mapInputType(type) {
|
|
47
|
+
if (type === "number") {
|
|
48
|
+
return {
|
|
49
|
+
type: "text",
|
|
50
|
+
inputmode: "decimal"
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
if (type === "digit") {
|
|
54
|
+
return {
|
|
55
|
+
type: "tel",
|
|
56
|
+
inputmode: "numeric"
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
return { type };
|
|
60
|
+
}
|
|
46
61
|
const { componentName, create } = createComponent("input");
|
|
47
62
|
const _sfc_main = create({
|
|
48
63
|
props: {
|
|
@@ -133,11 +148,7 @@ const _sfc_main = create({
|
|
|
133
148
|
var _a;
|
|
134
149
|
return String((_a = props.modelValue) != null ? _a : "");
|
|
135
150
|
};
|
|
136
|
-
const renderInput = (type) => {
|
|
137
|
-
return h("input", __spreadValues({
|
|
138
|
-
style: styles
|
|
139
|
-
}, inputType(type)));
|
|
140
|
-
};
|
|
151
|
+
const renderInput = (type) => h("input", __spreadValues({}, mapInputType(type)));
|
|
141
152
|
const state = reactive({
|
|
142
153
|
focused: false,
|
|
143
154
|
validateFailed: false,
|
|
@@ -161,19 +172,6 @@ const _sfc_main = create({
|
|
|
161
172
|
textAlign: props.inputAlign
|
|
162
173
|
};
|
|
163
174
|
});
|
|
164
|
-
const inputType = (type) => {
|
|
165
|
-
if (type === "number") {
|
|
166
|
-
return {
|
|
167
|
-
type: "text"
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
if (type === "digit") {
|
|
171
|
-
return {
|
|
172
|
-
type: "tel"
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
return { type };
|
|
176
|
-
};
|
|
177
175
|
const onInput = (event) => {
|
|
178
176
|
if (!event.target.composing) {
|
|
179
177
|
const input = event.target;
|
|
@@ -186,11 +184,9 @@ const _sfc_main = create({
|
|
|
186
184
|
};
|
|
187
185
|
const updateValue = (value, trigger = "onChange") => {
|
|
188
186
|
var _a;
|
|
189
|
-
if (
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
if (props.type === "number") {
|
|
193
|
-
value = formatNumber(value, true, true);
|
|
187
|
+
if (["number", "digit"].includes(props.type)) {
|
|
188
|
+
const isNumber = props.type === "number";
|
|
189
|
+
value = formatNumber(value, isNumber, isNumber);
|
|
194
190
|
}
|
|
195
191
|
if (props.formatter && trigger === props.formatTrigger) {
|
|
196
192
|
value = props.formatter(value);
|
|
@@ -283,7 +279,6 @@ const _sfc_main = create({
|
|
|
283
279
|
active,
|
|
284
280
|
classes,
|
|
285
281
|
styles,
|
|
286
|
-
inputType,
|
|
287
282
|
onInput,
|
|
288
283
|
onFocus,
|
|
289
284
|
onBlur,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, normalizeStyle } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
3
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
4
4
|
import { Minus, Plus } from "@nutui/icons-vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -64,7 +64,8 @@ const _sfc_main = create({
|
|
|
64
64
|
const emitChange = (value, event) => {
|
|
65
65
|
let output_value = fixedDecimalPlaces(value);
|
|
66
66
|
emit("update:modelValue", output_value, event);
|
|
67
|
-
|
|
67
|
+
if (Number(props.modelValue) !== Number(output_value))
|
|
68
|
+
emit("change", output_value, event);
|
|
68
69
|
};
|
|
69
70
|
const addAllow = (value = Number(props.modelValue)) => {
|
|
70
71
|
return value < Number(props.max) && !props.disabled;
|
|
@@ -74,19 +75,21 @@ const _sfc_main = create({
|
|
|
74
75
|
};
|
|
75
76
|
const reduce = (event) => {
|
|
76
77
|
emit("reduce", event);
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
let output_value = Number(props.modelValue) - Number(props.step);
|
|
79
|
+
if (reduceAllow() && output_value >= Number(props.min)) {
|
|
79
80
|
emitChange(output_value, event);
|
|
80
81
|
} else {
|
|
82
|
+
emitChange(Number(props.min), event);
|
|
81
83
|
emit("overlimit", event, "reduce");
|
|
82
84
|
}
|
|
83
85
|
};
|
|
84
86
|
const add = (event) => {
|
|
85
87
|
emit("add", event);
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
let output_value = Number(props.modelValue) + Number(props.step);
|
|
89
|
+
if (addAllow() && output_value <= Number(props.max)) {
|
|
88
90
|
emitChange(output_value, event);
|
|
89
91
|
} else {
|
|
92
|
+
emitChange(Number(props.max), event);
|
|
90
93
|
emit("overlimit", event, "add");
|
|
91
94
|
}
|
|
92
95
|
};
|
|
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, onMounted, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, withDirectives, vModelText, createCommentVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "./component-
|
|
21
|
+
import { c as createComponent } from "./component-f86a70df.js";
|
|
22
22
|
import Form from "./Form.js";
|
|
23
23
|
import FormItem from "./FormItem.js";
|
|
24
|
-
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-
|
|
25
|
-
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_lang-
|
|
24
|
+
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-0ccf787e.js";
|
|
25
|
+
import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_lang-1e118ab6.js";
|
|
26
26
|
import Button from "./Button.js";
|
|
27
27
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
28
28
|
import "../locale/lang";
|