@nutui/nutui 4.0.0-beta.0 → 4.0.0-beta.10
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 -0
- package/dist/nutui.umd.cjs +7 -20066
- package/dist/packages/_es/ActionSheet.js +3 -8
- package/dist/packages/_es/Address.js +5 -10
- package/dist/packages/_es/AddressList.js +15 -17
- package/dist/packages/_es/Animate.js +2 -7
- package/dist/packages/_es/Audio.js +4 -9
- package/dist/packages/_es/AudioOperate.js +3 -8
- package/dist/packages/_es/Avatar.js +2 -7
- package/dist/packages/_es/AvatarGroup.js +2 -7
- package/dist/packages/_es/Backtop.js +3 -8
- package/dist/packages/_es/Badge.js +2 -7
- package/dist/packages/_es/Barrage.js +17 -34
- 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 +2 -7
- package/dist/packages/_es/Cascader.js +14 -9
- package/dist/packages/_es/Category.js +2 -7
- package/dist/packages/_es/CategoryPane.js +2 -7
- package/dist/packages/_es/Cell.js +4 -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 +5 -10
- package/dist/packages/_es/Comment.js +6 -11
- package/dist/packages/_es/ConfigProvider.js +38 -11
- package/dist/packages/_es/Countdown.js +2 -7
- package/dist/packages/_es/Countup.js +2 -7
- package/dist/packages/_es/DatePicker.js +4 -9
- package/dist/packages/_es/Dialog.js +16 -28
- package/dist/packages/_es/Divider.js +2 -7
- package/dist/packages/_es/Drag.js +3 -8
- package/dist/packages/_es/Ecard.js +4 -9
- package/dist/packages/_es/Elevator.js +3 -8
- package/dist/packages/_es/Ellipsis.js +2 -7
- package/dist/packages/_es/Empty.js +2 -7
- package/dist/packages/_es/FixedNav.js +2 -7
- package/dist/packages/_es/Form.js +3 -8
- package/dist/packages/_es/FormItem.js +4 -9
- package/dist/packages/_es/Grid.js +3 -8
- package/dist/packages/_es/GridItem.js +5 -10
- package/dist/packages/_es/Image.js +3 -8
- package/dist/packages/_es/ImagePreview.js +22 -32
- package/dist/packages/_es/Indicator.js +2 -7
- package/dist/packages/_es/InfiniteLoading.js +4 -9
- package/dist/packages/_es/Input.js +3 -11
- package/dist/packages/_es/InputNumber.js +3 -8
- package/dist/packages/_es/Invoice.js +7 -12
- package/dist/packages/_es/Layout.js +1 -6
- package/dist/packages/_es/List.js +2 -7
- package/dist/packages/_es/Menu.js +3 -8
- package/dist/packages/_es/MenuItem.js +3 -8
- package/dist/packages/_es/Navbar.js +2 -7
- package/dist/packages/_es/Noticebar.js +12 -16
- package/dist/packages/_es/Notify.js +9 -14
- package/dist/packages/_es/NumberKeyboard.js +3 -8
- package/dist/packages/_es/Overlay.js +2 -7
- package/dist/packages/_es/Pagination.js +2 -7
- package/dist/packages/_es/Picker.js +4 -9
- package/dist/packages/_es/Popover.js +5 -10
- package/dist/packages/_es/Popup.js +3 -8
- package/dist/packages/_es/Price.js +3 -8
- package/dist/packages/_es/Progress.js +2 -7
- package/dist/packages/_es/PullRefresh.js +6 -11
- package/dist/packages/_es/Radio.js +4 -10
- package/dist/packages/_es/RadioGroup.js +3 -9
- package/dist/packages/_es/Range.js +4 -9
- package/dist/packages/_es/Rate.js +5 -10
- package/dist/packages/_es/Row.js +2 -7
- package/dist/packages/_es/Searchbar.js +3 -8
- package/dist/packages/_es/ShortPassword.js +3 -8
- package/dist/packages/_es/SideNavbar.js +2 -7
- package/dist/packages/_es/SideNavbarItem.js +2 -7
- package/dist/packages/_es/Signature.js +2 -7
- package/dist/packages/_es/Skeleton.js +2 -7
- package/dist/packages/_es/Sku.js +15 -14
- package/dist/packages/_es/Step.js +2 -7
- package/dist/packages/_es/Steps.js +1 -6
- package/dist/packages/_es/Sticky.js +4 -10
- package/dist/packages/_es/SubSideNavbar.js +7 -10
- package/dist/packages/_es/Swipe.js +5 -10
- package/dist/packages/_es/Swiper.js +58 -121
- package/dist/packages/_es/SwiperItem.js +3 -8
- package/dist/packages/_es/Switch.js +3 -8
- package/dist/packages/_es/TabPane.js +4 -9
- package/dist/packages/_es/Tabbar.js +2 -7
- package/dist/packages/_es/TabbarItem.js +14 -36
- package/dist/packages/_es/Table.js +2 -7
- package/dist/packages/_es/Tabs.js +20 -25
- package/dist/packages/_es/Tag.js +2 -7
- package/dist/packages/_es/Textarea.js +2 -7
- package/dist/packages/_es/TimeDetail.js +2 -7
- package/dist/packages/_es/TimePannel.js +2 -7
- package/dist/packages/_es/TimeSelect.js +3 -8
- package/dist/packages/_es/Toast.js +10 -17
- package/dist/packages/_es/Tour.js +8 -13
- package/dist/packages/_es/TrendArrow.js +2 -7
- package/dist/packages/_es/Uploader.js +6 -11
- package/dist/packages/_es/Video.js +2 -7
- package/dist/packages/_es/Watermark.js +3 -8
- package/dist/packages/_es/{_plugin-vue_export-helper.bf57b04e.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -5
- package/dist/packages/_es/{common.4b8c0eb2.js → common-ceb98554.js} +2 -7
- package/dist/packages/_es/{component.fb9ce7ad.js → component-81a4c1d0.js} +1 -6
- package/dist/packages/_es/{index.4ed42c18.js → index-1006915b.js} +13 -8
- package/dist/packages/_es/{index.3dd88014.js → index-1bf0d8ef.js} +12 -17
- package/dist/packages/_es/{index.af02c42d.js → index-29892cda.js} +0 -5
- package/dist/packages/_es/{index.1be0d1a5.js → index-43c34ac6.js} +0 -5
- package/dist/packages/_es/{index.51da6a3b.js → index-54d03fc1.js} +0 -5
- package/dist/packages/_es/{index.617ba243.js → index-79c5dc33.js} +0 -5
- package/dist/packages/_es/{index.983240fc.js → index-7a7385e4.js} +0 -5
- package/dist/packages/_es/{index.vue_vue_type_script_lang.6e735bb8.js → index.vue_vue_type_script_lang-1291fceb.js} +1 -6
- package/dist/packages/_es/{index.vue_vue_type_script_lang.ccc15054.js → index.vue_vue_type_script_lang-cc5c4086.js} +2 -7
- package/dist/packages/_es/{index.vue_vue_type_script_lang.43efbcd1.js → index.vue_vue_type_script_lang-d4c88f85.js} +2 -7
- package/dist/packages/_es/{interceptor.ba45688c.js → interceptor-956b24fc.js} +1 -6
- package/dist/packages/_es/{mountComponent.dddeb43c.js → mountComponent-1ece4110.js} +1 -6
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
- package/dist/packages/_es/{raf.42b42f63.js → raf-729dad54.js} +0 -5
- package/dist/packages/_es/{renderIcon.f32ed340.js → renderIcon-3d0fd47c.js} +0 -5
- package/dist/packages/actionsheet/index.mjs +4 -0
- package/dist/packages/actionsheet/{index.js → style.cjs} +2 -2
- package/dist/packages/actionsheet/style.mjs +3 -0
- package/dist/packages/address/index.mjs +4 -0
- package/dist/packages/address/{index.js → style.cjs} +3 -3
- package/dist/packages/address/style.mjs +4 -0
- package/dist/packages/addresslist/index.mjs +4 -0
- package/dist/packages/{audiooperate/index.js → addresslist/style.cjs} +2 -1
- package/dist/packages/addresslist/style.mjs +3 -0
- package/dist/packages/animate/index.mjs +4 -0
- package/dist/packages/animate/{index.js → style.cjs} +0 -0
- package/dist/packages/animate/style.mjs +1 -0
- package/dist/packages/audio/index.mjs +4 -0
- package/dist/packages/audio/index.scss +1 -1
- package/dist/packages/audio/{index.js → style.cjs} +1 -1
- package/dist/packages/audio/style.mjs +2 -0
- package/dist/packages/audiooperate/index.mjs +4 -0
- package/dist/packages/{signature/index.js → audiooperate/style.cjs} +1 -1
- package/dist/packages/audiooperate/style.mjs +2 -0
- package/dist/packages/avatar/index.mjs +4 -0
- package/dist/packages/avatar/{index.js → style.cjs} +0 -0
- package/dist/packages/avatar/style.mjs +1 -0
- package/dist/packages/avatargroup/index.mjs +4 -0
- package/dist/packages/avatargroup/{index.js → style.cjs} +0 -0
- package/dist/packages/avatargroup/style.mjs +1 -0
- package/dist/packages/backtop/index.mjs +4 -0
- package/dist/packages/backtop/{index.js → style.cjs} +0 -0
- package/dist/packages/backtop/style.mjs +1 -0
- package/dist/packages/badge/index.mjs +4 -0
- package/dist/packages/badge/{index.js → style.cjs} +0 -0
- package/dist/packages/badge/style.mjs +1 -0
- package/dist/packages/barrage/index.mjs +4 -0
- package/dist/packages/barrage/index.scss +17 -1
- package/dist/packages/barrage/{index.js → style.cjs} +0 -0
- package/dist/packages/barrage/style.mjs +1 -0
- package/dist/packages/button/index.mjs +4 -0
- package/dist/packages/button/{index.js → style.cjs} +0 -0
- package/dist/packages/button/style.mjs +1 -0
- package/dist/packages/calendar/index.mjs +4 -0
- package/dist/packages/calendar/index.scss +11 -2
- package/dist/packages/calendar/{index.js → style.cjs} +3 -3
- package/dist/packages/calendar/style.mjs +4 -0
- package/dist/packages/calendaritem/index.mjs +4 -0
- package/dist/packages/calendaritem/{index.js → style.cjs} +0 -0
- package/dist/packages/calendaritem/style.mjs +1 -0
- package/dist/packages/card/index.mjs +4 -0
- package/dist/packages/card/{index.js → style.cjs} +2 -2
- package/dist/packages/card/style.mjs +3 -0
- package/dist/packages/cascader/index.mjs +4 -0
- package/dist/packages/cascader/{index.js → style.cjs} +5 -5
- package/dist/packages/cascader/style.mjs +6 -0
- package/dist/packages/category/index.mjs +4 -0
- package/dist/packages/category/{index.js → style.cjs} +0 -0
- package/dist/packages/category/style.mjs +1 -0
- package/dist/packages/categorypane/index.mjs +4 -0
- package/dist/packages/categorypane/{index.js → style.cjs} +0 -0
- package/dist/packages/categorypane/style.mjs +1 -0
- package/dist/packages/cell/index.mjs +4 -0
- package/dist/packages/cell/index.scss +3 -1
- package/dist/packages/cell/{index.js → style.cjs} +0 -0
- package/dist/packages/cell/style.mjs +1 -0
- package/dist/packages/cellgroup/index.mjs +4 -0
- package/dist/packages/cellgroup/{index.js → style.cjs} +0 -0
- package/dist/packages/cellgroup/style.mjs +1 -0
- package/dist/packages/checkbox/index.mjs +4 -0
- package/dist/packages/checkbox/{index.js → style.cjs} +0 -0
- package/dist/packages/checkbox/style.mjs +1 -0
- package/dist/packages/checkboxgroup/index.mjs +4 -0
- package/dist/packages/checkboxgroup/{index.js → style.cjs} +0 -0
- package/dist/packages/checkboxgroup/style.mjs +1 -0
- package/dist/packages/circleprogress/index.mjs +4 -0
- package/dist/packages/circleprogress/{index.js → style.cjs} +0 -0
- package/dist/packages/circleprogress/style.mjs +1 -0
- package/dist/packages/col/index.mjs +4 -0
- package/dist/packages/col/{index.js → style.cjs} +0 -0
- package/dist/packages/col/style.mjs +1 -0
- package/dist/packages/collapse/index.mjs +4 -0
- package/dist/packages/collapse/{index.js → style.cjs} +0 -0
- package/dist/packages/collapse/style.mjs +1 -0
- package/dist/packages/collapseitem/index.mjs +4 -0
- package/dist/packages/collapseitem/{index.js → style.cjs} +0 -0
- package/dist/packages/collapseitem/style.mjs +1 -0
- package/dist/packages/comment/index.mjs +4 -0
- package/dist/packages/comment/{index.js → style.cjs} +1 -1
- package/dist/packages/comment/style.mjs +2 -0
- package/dist/packages/configprovider/index.mjs +4 -0
- package/dist/packages/configprovider/{index.js → style.cjs} +0 -0
- package/dist/packages/configprovider/style.mjs +1 -0
- package/dist/packages/countdown/index.mjs +4 -0
- package/dist/packages/countdown/{index.js → style.cjs} +0 -0
- package/dist/packages/countdown/style.mjs +1 -0
- package/dist/packages/countup/index.mjs +4 -0
- package/dist/packages/countup/{index.js → style.cjs} +0 -0
- package/dist/packages/countup/style.mjs +1 -0
- package/dist/packages/datepicker/index.mjs +4 -0
- package/dist/packages/datepicker/{index.js → style.cjs} +3 -3
- package/dist/packages/datepicker/style.mjs +4 -0
- package/dist/packages/dialog/index.mjs +5 -0
- package/dist/packages/dialog/{index.js → style.cjs} +3 -3
- package/dist/packages/dialog/style.mjs +4 -0
- package/dist/packages/divider/index.mjs +4 -0
- package/dist/packages/divider/{index.js → style.cjs} +0 -0
- package/dist/packages/divider/style.mjs +1 -0
- package/dist/packages/drag/index.mjs +4 -0
- package/dist/packages/drag/{index.js → style.cjs} +0 -0
- package/dist/packages/drag/style.mjs +1 -0
- package/dist/packages/ecard/index.mjs +4 -0
- package/dist/packages/ecard/{index.js → style.cjs} +1 -1
- package/dist/packages/ecard/style.mjs +2 -0
- package/dist/packages/elevator/index.mjs +4 -0
- package/dist/packages/elevator/{index.js → style.cjs} +0 -0
- package/dist/packages/elevator/style.mjs +1 -0
- package/dist/packages/ellipsis/index.mjs +4 -0
- package/dist/packages/ellipsis/{index.js → style.cjs} +0 -0
- package/dist/packages/ellipsis/style.mjs +1 -0
- package/dist/packages/empty/index.mjs +4 -0
- package/dist/packages/empty/{index.js → style.cjs} +0 -0
- package/dist/packages/empty/style.mjs +1 -0
- package/dist/packages/fixednav/index.mjs +4 -0
- package/dist/packages/{popup/index.js → fixednav/style.cjs} +1 -1
- package/dist/packages/fixednav/style.mjs +2 -0
- package/dist/packages/form/index.mjs +4 -0
- package/dist/packages/form/{index.js → style.cjs} +1 -1
- package/dist/packages/form/style.mjs +2 -0
- package/dist/packages/formitem/index.mjs +4 -0
- package/dist/packages/formitem/{index.js → style.cjs} +1 -1
- package/dist/packages/formitem/style.mjs +2 -0
- package/dist/packages/grid/index.mjs +4 -0
- package/dist/packages/grid/{index.js → style.cjs} +0 -0
- package/dist/packages/grid/style.mjs +1 -0
- package/dist/packages/griditem/index.mjs +4 -0
- package/dist/packages/griditem/{index.js → style.cjs} +0 -0
- package/dist/packages/griditem/style.mjs +1 -0
- package/dist/packages/icon/{index.js → style.cjs} +0 -0
- package/dist/packages/icon/style.mjs +1 -0
- package/dist/packages/image/index.mjs +4 -0
- package/dist/packages/image/{index.js → style.cjs} +0 -0
- package/dist/packages/image/style.mjs +1 -0
- package/dist/packages/imagepreview/index.mjs +5 -0
- package/dist/packages/imagepreview/{index.js → style.cjs} +5 -5
- package/dist/packages/imagepreview/style.mjs +6 -0
- package/dist/packages/indicator/index.mjs +4 -0
- package/dist/packages/indicator/{index.js → style.cjs} +0 -0
- package/dist/packages/indicator/style.mjs +1 -0
- package/dist/packages/infiniteloading/index.mjs +4 -0
- package/dist/packages/infiniteloading/{index.js → style.cjs} +0 -0
- package/dist/packages/infiniteloading/style.mjs +1 -0
- package/dist/packages/input/index.mjs +4 -0
- package/dist/packages/input/{index.js → style.cjs} +0 -0
- package/dist/packages/input/style.mjs +1 -0
- package/dist/packages/inputnumber/index.mjs +4 -0
- package/dist/packages/inputnumber/{index.js → style.cjs} +0 -0
- package/dist/packages/inputnumber/style.mjs +1 -0
- package/dist/packages/invoice/index.mjs +4 -0
- package/dist/packages/invoice/{index.js → style.cjs} +7 -7
- package/dist/packages/invoice/style.mjs +8 -0
- package/dist/packages/layout/index.mjs +4 -0
- package/dist/packages/layout/{index.js → style.cjs} +0 -0
- package/dist/packages/layout/style.mjs +1 -0
- package/dist/packages/list/index.mjs +4 -0
- package/dist/packages/list/{index.js → style.cjs} +0 -0
- 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 +110 -115
- package/dist/packages/locale/lang/zh-TW.js +110 -115
- package/dist/packages/menu/index.mjs +4 -0
- package/dist/packages/menu/{index.js → style.cjs} +0 -0
- package/dist/packages/menu/style.mjs +1 -0
- package/dist/packages/menuitem/index.mjs +4 -0
- package/dist/packages/menuitem/{index.js → style.cjs} +2 -2
- package/dist/packages/menuitem/style.mjs +3 -0
- package/dist/packages/navbar/index.mjs +4 -0
- package/dist/packages/navbar/{index.js → style.cjs} +0 -0
- package/dist/packages/navbar/style.mjs +1 -0
- package/dist/packages/noticebar/index.mjs +4 -0
- package/dist/packages/noticebar/index.scss +2 -1
- package/dist/packages/noticebar/{index.js → style.cjs} +0 -0
- package/dist/packages/noticebar/style.mjs +1 -0
- package/dist/packages/notify/index.mjs +5 -0
- package/dist/packages/notify/{index.js → style.cjs} +2 -2
- package/dist/packages/notify/style.mjs +3 -0
- package/dist/packages/numberkeyboard/index.mjs +4 -0
- package/dist/packages/numberkeyboard/index.scss +3 -0
- package/dist/packages/numberkeyboard/{index.js → style.cjs} +2 -2
- package/dist/packages/numberkeyboard/style.mjs +3 -0
- package/dist/packages/overlay/index.mjs +4 -0
- package/dist/packages/overlay/{index.js → style.cjs} +0 -0
- package/dist/packages/overlay/style.mjs +1 -0
- package/dist/packages/pagination/index.mjs +4 -0
- package/dist/packages/pagination/{index.js → style.cjs} +0 -0
- package/dist/packages/pagination/style.mjs +1 -0
- package/dist/packages/picker/index.mjs +4 -0
- package/dist/packages/picker/style.cjs +3 -0
- package/dist/packages/picker/style.mjs +3 -0
- package/dist/packages/popover/index.mjs +4 -0
- package/dist/packages/popover/index.scss +1 -1
- package/dist/packages/popover/style.cjs +3 -0
- package/dist/packages/popover/style.mjs +3 -0
- package/dist/packages/popup/index.mjs +4 -0
- package/dist/packages/{fixednav/index.js → popup/style.cjs} +1 -1
- package/dist/packages/popup/style.mjs +2 -0
- package/dist/packages/price/index.mjs +4 -0
- package/dist/packages/price/{index.js → style.cjs} +0 -0
- package/dist/packages/price/style.mjs +1 -0
- package/dist/packages/progress/index.mjs +4 -0
- package/dist/packages/progress/{index.js → style.cjs} +0 -0
- package/dist/packages/progress/style.mjs +1 -0
- package/dist/packages/pullrefresh/index.mjs +4 -0
- package/dist/packages/pullrefresh/index.scss +3 -2
- package/dist/packages/pullrefresh/{index.js → style.cjs} +0 -0
- package/dist/packages/pullrefresh/style.mjs +1 -0
- package/dist/packages/radio/index.mjs +4 -0
- package/dist/packages/radio/index.scss +14 -1
- package/dist/packages/radio/{index.js → style.cjs} +0 -0
- package/dist/packages/radio/style.mjs +1 -0
- package/dist/packages/radiogroup/index.mjs +4 -0
- package/dist/packages/radiogroup/{index.js → style.cjs} +0 -0
- package/dist/packages/radiogroup/style.mjs +1 -0
- package/dist/packages/range/index.mjs +4 -0
- package/dist/packages/range/index.scss +6 -3
- package/dist/packages/range/{index.js → style.cjs} +0 -0
- package/dist/packages/range/style.mjs +1 -0
- package/dist/packages/rate/index.mjs +4 -0
- package/dist/packages/rate/{index.js → style.cjs} +0 -0
- package/dist/packages/rate/style.mjs +1 -0
- package/dist/packages/row/index.mjs +4 -0
- package/dist/packages/row/{index.js → style.cjs} +0 -0
- package/dist/packages/row/style.mjs +1 -0
- package/dist/packages/searchbar/index.mjs +4 -0
- package/dist/packages/searchbar/{index.js → style.cjs} +0 -0
- package/dist/packages/searchbar/style.mjs +1 -0
- package/dist/packages/shortpassword/index.mjs +4 -0
- package/dist/packages/shortpassword/style.cjs +3 -0
- package/dist/packages/shortpassword/style.mjs +3 -0
- package/dist/packages/sidenavbar/index.mjs +4 -0
- package/dist/packages/sidenavbar/{index.js → style.cjs} +0 -0
- package/dist/packages/sidenavbar/style.mjs +1 -0
- package/dist/packages/sidenavbaritem/index.mjs +4 -0
- package/dist/packages/sidenavbaritem/{index.js → style.cjs} +0 -0
- package/dist/packages/sidenavbaritem/style.mjs +1 -0
- package/dist/packages/signature/index.mjs +4 -0
- package/dist/packages/{addresslist/index.js → signature/style.cjs} +1 -1
- package/dist/packages/signature/style.mjs +2 -0
- package/dist/packages/skeleton/index.mjs +4 -0
- package/dist/packages/skeleton/{index.js → style.cjs} +1 -1
- package/dist/packages/skeleton/style.mjs +2 -0
- package/dist/packages/sku/index.mjs +4 -0
- package/dist/packages/sku/index.scss +16 -2
- package/dist/packages/sku/{index.js → style.cjs} +4 -4
- package/dist/packages/sku/style.mjs +5 -0
- package/dist/packages/step/index.mjs +4 -0
- package/dist/packages/step/{index.js → style.cjs} +0 -0
- package/dist/packages/step/style.mjs +1 -0
- package/dist/packages/steps/index.mjs +4 -0
- package/dist/packages/steps/{index.js → style.cjs} +0 -0
- package/dist/packages/steps/style.mjs +1 -0
- package/dist/packages/sticky/index.mjs +4 -0
- package/dist/packages/sticky/index.scss +1 -0
- package/dist/packages/sticky/{index.js → style.cjs} +0 -0
- package/dist/packages/sticky/style.mjs +1 -0
- package/dist/packages/subsidenavbar/index.mjs +4 -0
- package/dist/packages/subsidenavbar/{index.js → style.cjs} +0 -0
- package/dist/packages/subsidenavbar/style.mjs +1 -0
- package/dist/packages/swipe/index.mjs +4 -0
- package/dist/packages/swipe/{index.js → style.cjs} +0 -0
- package/dist/packages/swipe/style.mjs +1 -0
- package/dist/packages/swiper/index.mjs +4 -0
- package/dist/packages/swiper/{index.js → style.cjs} +0 -0
- package/dist/packages/swiper/style.mjs +1 -0
- package/dist/packages/swiperitem/index.mjs +4 -0
- package/dist/packages/swiperitem/{index.js → style.cjs} +0 -0
- package/dist/packages/swiperitem/style.mjs +1 -0
- package/dist/packages/switch/index.mjs +4 -0
- package/dist/packages/switch/{index.js → style.cjs} +0 -0
- package/dist/packages/switch/style.mjs +1 -0
- package/dist/packages/tabbar/index.mjs +4 -0
- package/dist/packages/tabbar/{index.js → style.cjs} +0 -0
- package/dist/packages/tabbar/style.mjs +1 -0
- package/dist/packages/tabbaritem/index.mjs +4 -0
- package/dist/packages/tabbaritem/{index.js → style.cjs} +1 -1
- package/dist/packages/tabbaritem/style.mjs +2 -0
- package/dist/packages/table/index.mjs +4 -0
- package/dist/packages/table/{index.js → style.cjs} +0 -0
- package/dist/packages/table/style.mjs +1 -0
- package/dist/packages/tabpane/index.mjs +4 -0
- package/dist/packages/tabpane/{index.js → style.cjs} +0 -0
- package/dist/packages/tabpane/style.mjs +1 -0
- package/dist/packages/tabs/index.mjs +4 -0
- package/dist/packages/tabs/{index.js → style.cjs} +1 -1
- package/dist/packages/tabs/style.mjs +2 -0
- package/dist/packages/tag/index.mjs +4 -0
- package/dist/packages/tag/{index.js → style.cjs} +0 -0
- package/dist/packages/tag/style.mjs +1 -0
- package/dist/packages/textarea/index.mjs +4 -0
- package/dist/packages/textarea/{index.js → style.cjs} +0 -0
- package/dist/packages/textarea/style.mjs +1 -0
- package/dist/packages/timedetail/index.mjs +4 -0
- package/dist/packages/timedetail/index.scss +14 -1
- package/dist/packages/timedetail/{index.js → style.cjs} +0 -0
- package/dist/packages/timedetail/style.mjs +1 -0
- package/dist/packages/timepannel/index.mjs +4 -0
- package/dist/packages/timepannel/{index.js → style.cjs} +0 -0
- package/dist/packages/timepannel/style.mjs +1 -0
- package/dist/packages/timeselect/index.mjs +4 -0
- package/dist/packages/timeselect/style.cjs +3 -0
- package/dist/packages/timeselect/style.mjs +3 -0
- package/dist/packages/toast/index.mjs +5 -0
- package/dist/packages/toast/{index.js → style.cjs} +0 -0
- package/dist/packages/toast/style.mjs +1 -0
- package/dist/packages/tour/index.mjs +4 -0
- package/dist/packages/tour/{index.js → style.cjs} +3 -3
- package/dist/packages/tour/style.mjs +4 -0
- package/dist/packages/trendarrow/index.mjs +4 -0
- package/dist/packages/trendarrow/{index.js → style.cjs} +0 -0
- package/dist/packages/trendarrow/style.mjs +1 -0
- package/dist/packages/uploader/index.mjs +4 -0
- package/dist/packages/uploader/{index.js → style.cjs} +2 -2
- package/dist/packages/uploader/style.mjs +3 -0
- package/dist/packages/video/index.mjs +4 -0
- package/dist/packages/video/{index.js → style.cjs} +0 -0
- package/dist/packages/video/style.mjs +1 -0
- package/dist/packages/watermark/index.mjs +4 -0
- package/dist/packages/watermark/{index.js → style.cjs} +0 -0
- package/dist/packages/watermark/style.mjs +1 -0
- package/dist/smartips/attributes.json +289 -293
- package/dist/smartips/tags.json +11 -12
- package/dist/smartips/web-types.json +336 -345
- package/dist/style.css +1 -1
- package/dist/styles/{css-variables.scss → theme-deafult.scss} +15 -17
- package/dist/styles/theme-jdt.scss +892 -0
- package/dist/styles/themes/default.scss +52 -52
- package/dist/styles/themes/jdb.scss +51 -52
- package/dist/styles/themes/jddkh.scss +51 -52
- package/dist/styles/themes/jdt.scss +52 -52
- package/dist/styles/variables-jdt.scss +763 -707
- package/dist/styles/variables.scss +803 -733
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +18 -0
- package/dist/types/__VUE/address/index.vue.d.ts +18 -0
- package/dist/types/__VUE/barrage/index.vue.d.ts +0 -1
- 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/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/griditem/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/input/index.vue.d.ts +2 -2
- 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 -1
- 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/rate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
- 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 -8
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +0 -1
- 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/toast/index.d.ts +3 -3
- package/dist/types/__VUE/tour/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +10 -7
- package/package.json +24 -51
- package/dist/nutui.js +0 -20064
- package/dist/packages/_es/Icon.js +0 -13
- package/dist/packages/_es/index.vue_vue_type_script_lang.de4367bf.js +0 -12
- package/dist/packages/_es/pxCheck.09969b22.js +0 -11
- package/dist/packages/_es/style.css +0 -16
- package/dist/packages/locale/index.scss +0 -1
- package/dist/packages/locale/lang/baseLang.ff3ed8bc.js +0 -10
- package/dist/packages/locale/lang/index.scss +0 -1
- package/dist/packages/picker/index.js +0 -3
- package/dist/packages/popover/index.js +0 -3
- package/dist/packages/shortpassword/index.js +0 -3
- package/dist/packages/timeselect/index.js +0 -3
- package/dist/types/__VUE/configprovider/common.d.ts +0 -20
- package/dist/types/__VUE/swiper/use-touch.d.ts +0 -16
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.
|
|
8
|
-
import { u as useExpose } from "./index.
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper.
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { u as useExpose } from "./index-79c5dc33.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
const { create, componentName } = createComponent("swiper-item");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import { Loading1 } 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("switch");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -102,7 +97,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
102
97
|
}, [
|
|
103
98
|
createElementVNode("view", _hoisted_1, [
|
|
104
99
|
_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
105
|
-
createVNode(_component_Loading1)
|
|
100
|
+
createVNode(_component_Loading1, { name: "loading" })
|
|
106
101
|
]) : createCommentVNode("", true),
|
|
107
102
|
_ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
108
103
|
withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { inject, 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 { create } = createComponent("tab-pane");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -40,7 +35,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40
35
|
renderSlot(_ctx.$slots, "default")
|
|
41
36
|
], 2);
|
|
42
37
|
}
|
|
43
|
-
const
|
|
38
|
+
const TabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
44
39
|
export {
|
|
45
|
-
|
|
40
|
+
TabPane as default
|
|
46
41
|
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, normalizeStyle, 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 { create } = createComponent("tabbar");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
7
|
-
import { r as renderIcon } from "./renderIcon.f32ed340.js";
|
|
8
|
-
import { inject, reactive, getCurrentInstance, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
|
|
9
|
-
import { u as useRouter } from "./index.51da6a3b.js";
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
|
+
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
3
|
+
import { inject, reactive, getCurrentInstance, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
|
|
4
|
+
import { u as useRouter } from "./index-54d03fc1.js";
|
|
10
5
|
import Badge from "./Badge.js";
|
|
11
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper.
|
|
6
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
12
7
|
import "../locale/lang";
|
|
13
8
|
const { create } = createComponent("tabbar-item");
|
|
14
9
|
const _sfc_main = create({
|
|
@@ -38,46 +33,29 @@ const _sfc_main = create({
|
|
|
38
33
|
const state = reactive({
|
|
39
34
|
unactiveColor: parent.unactiveColor,
|
|
40
35
|
activeColor: parent.activeColor,
|
|
41
|
-
active: parent.modelValue,
|
|
42
36
|
index: 0
|
|
43
37
|
});
|
|
44
38
|
const router = useRouter();
|
|
45
39
|
const relation = (child) => {
|
|
46
|
-
var _a;
|
|
47
40
|
if (child.proxy) {
|
|
48
41
|
parent.children.push(child.proxy);
|
|
49
42
|
const index2 = parent.children.indexOf(child.proxy);
|
|
50
|
-
state.index =
|
|
43
|
+
state.index = props.name ?? index2;
|
|
51
44
|
}
|
|
52
45
|
};
|
|
53
46
|
relation(getCurrentInstance());
|
|
54
|
-
const active = computed(() => state.index ===
|
|
47
|
+
const active = computed(() => state.index === parent.modelValue);
|
|
55
48
|
function change() {
|
|
56
|
-
var _a;
|
|
57
|
-
let key = (_a = props.name) != null ? _a : state.index;
|
|
58
|
-
let index2 = null;
|
|
59
|
-
if (props.name) {
|
|
60
|
-
index2 = parent.children.findIndex((item) => {
|
|
61
|
-
return item.name == key;
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
parent.changeIndex(index2 != null ? index2 : key, state.index);
|
|
65
|
-
}
|
|
66
|
-
const choosed = computed(() => {
|
|
67
|
-
if (parent) {
|
|
68
|
-
return parent.modelValue;
|
|
69
|
-
}
|
|
70
|
-
return null;
|
|
71
|
-
});
|
|
72
|
-
watch(choosed, (value, oldValue) => {
|
|
73
49
|
var _a, _b;
|
|
74
|
-
|
|
75
|
-
let
|
|
50
|
+
let key = props.name ?? state.index;
|
|
51
|
+
let indexValue = null;
|
|
76
52
|
if (props.name) {
|
|
77
|
-
|
|
78
|
-
return item.name ==
|
|
53
|
+
indexValue = parent.children.findIndex((item) => {
|
|
54
|
+
return item.name == key;
|
|
79
55
|
});
|
|
80
56
|
}
|
|
57
|
+
parent.changeIndex(indexValue ?? key, state.index);
|
|
58
|
+
let index2 = indexValue ?? key;
|
|
81
59
|
if ((_a = parent.children[index2]) == null ? void 0 : _a.href) {
|
|
82
60
|
window.location.href = parent.children[index2].href;
|
|
83
61
|
return;
|
|
@@ -90,7 +68,7 @@ const _sfc_main = create({
|
|
|
90
68
|
location.replace(to);
|
|
91
69
|
}
|
|
92
70
|
}
|
|
93
|
-
}
|
|
71
|
+
}
|
|
94
72
|
return {
|
|
95
73
|
state,
|
|
96
74
|
active,
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { c as createComponent } from "./component.fb9ce7ad.js";
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
7
2
|
import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
8
3
|
import { DownArrow } 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 RenderColumn = {
|
|
12
7
|
setup(props) {
|
|
@@ -4,18 +4,13 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
9
|
-
* (c) 2022 @jdf2e.
|
|
10
|
-
* Released under the MIT License.
|
|
11
|
-
*/
|
|
12
|
-
import { c as createComponent, T as TypeOfFun } from "./component.fb9ce7ad.js";
|
|
7
|
+
import { c as createComponent, T as TypeOfFun } from "./component-81a4c1d0.js";
|
|
13
8
|
import { ref, provide, computed, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
14
|
-
import { p as pxCheck } from "./pxCheck.
|
|
15
|
-
import { u as useRect } from "./index.
|
|
16
|
-
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang.
|
|
9
|
+
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
10
|
+
import { u as useRect } from "./index-29892cda.js";
|
|
11
|
+
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-cc5c4086.js";
|
|
17
12
|
import { JoySmile } from "@nutui/icons-vue";
|
|
18
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper.
|
|
13
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
19
14
|
import "../locale/lang";
|
|
20
15
|
class Title {
|
|
21
16
|
constructor() {
|
|
@@ -90,7 +85,7 @@ const _sfc_main = create({
|
|
|
90
85
|
provide("autoHeight", { autoHeight: computed(() => props.autoHeight) });
|
|
91
86
|
const titles = ref([]);
|
|
92
87
|
const renderTitles = (vnodes) => {
|
|
93
|
-
vnodes.forEach((vnode,
|
|
88
|
+
vnodes.forEach((vnode, index) => {
|
|
94
89
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
95
90
|
let type = vnode.type;
|
|
96
91
|
type = type.name || type;
|
|
@@ -102,7 +97,7 @@ const _sfc_main = create({
|
|
|
102
97
|
let camelPaneKeyType = TypeOfFun((_f = vnode.props) == null ? void 0 : _f["paneKey"]);
|
|
103
98
|
let camelPaneIndex = camelPaneKeyType == "number" || camelPaneKeyType == "string" ? String((_g = vnode.props) == null ? void 0 : _g["paneKey"]) : null;
|
|
104
99
|
title.title = (_h = vnode.props) == null ? void 0 : _h.title;
|
|
105
|
-
title.paneKey = paneIndex || camelPaneIndex || String(
|
|
100
|
+
title.paneKey = paneIndex || camelPaneIndex || String(index);
|
|
106
101
|
title.disabled = (_i = vnode.props) == null ? void 0 : _i.disabled;
|
|
107
102
|
}
|
|
108
103
|
titles.value.push(title);
|
|
@@ -116,13 +111,13 @@ const _sfc_main = create({
|
|
|
116
111
|
};
|
|
117
112
|
const currentIndex = ref(props.modelValue || 0);
|
|
118
113
|
const findTabsIndex = (value) => {
|
|
119
|
-
let
|
|
114
|
+
let index = titles.value.findIndex((item) => item.paneKey == value);
|
|
120
115
|
if (titles.value.length == 0) {
|
|
121
|
-
console.error("[NutUI] <Tabs>
|
|
122
|
-
} else if (
|
|
123
|
-
console.error("[NutUI] <Tabs>
|
|
116
|
+
console.error("[NutUI] <Tabs> 当前未找到 TabPane 组件元素 , 请检查 .");
|
|
117
|
+
} else if (index == -1) {
|
|
118
|
+
console.error("[NutUI] <Tabs> 请检查 v-model 值是否为 paneKey ,如 paneKey 未设置,请采用下标控制 .");
|
|
124
119
|
} else {
|
|
125
|
-
currentIndex.value =
|
|
120
|
+
currentIndex.value = index;
|
|
126
121
|
}
|
|
127
122
|
};
|
|
128
123
|
const init = (vnodes = ((_a) => (_a = slots.default) == null ? void 0 : _a.call(slots))()) => {
|
|
@@ -188,12 +183,12 @@ const _sfc_main = create({
|
|
|
188
183
|
};
|
|
189
184
|
});
|
|
190
185
|
const methods = {
|
|
191
|
-
tabChange: (item,
|
|
186
|
+
tabChange: (item, index) => {
|
|
192
187
|
emit("click", item);
|
|
193
188
|
if (item.disabled) {
|
|
194
189
|
return;
|
|
195
190
|
}
|
|
196
|
-
currentIndex.value =
|
|
191
|
+
currentIndex.value = index;
|
|
197
192
|
emit("update:modelValue", item.paneKey);
|
|
198
193
|
emit("change", item);
|
|
199
194
|
}
|
|
@@ -231,11 +226,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
231
226
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
232
227
|
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
233
228
|
}, [
|
|
234
|
-
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item,
|
|
229
|
+
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
235
230
|
return openBlock(), createElementBlock("view", {
|
|
236
231
|
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
237
232
|
style: normalizeStyle(_ctx.titleStyle),
|
|
238
|
-
onClick: ($event) => _ctx.tabChange(item,
|
|
233
|
+
onClick: ($event) => _ctx.tabChange(item, index),
|
|
239
234
|
key: item.paneKey
|
|
240
235
|
}, [
|
|
241
236
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
@@ -263,11 +258,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
263
258
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
264
259
|
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
265
260
|
}, [
|
|
266
|
-
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item,
|
|
261
|
+
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
267
262
|
return openBlock(), createElementBlock("view", {
|
|
268
263
|
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
269
264
|
style: normalizeStyle(_ctx.titleStyle),
|
|
270
|
-
onClick: ($event) => _ctx.tabChange(item,
|
|
265
|
+
onClick: ($event) => _ctx.tabChange(item, index),
|
|
271
266
|
key: item.paneKey
|
|
272
267
|
}, [
|
|
273
268
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
@@ -296,8 +291,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
296
291
|
], 4)
|
|
297
292
|
], 2);
|
|
298
293
|
}
|
|
299
|
-
const
|
|
294
|
+
const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
300
295
|
export {
|
|
301
296
|
Title,
|
|
302
|
-
|
|
297
|
+
Tabs as default
|
|
303
298
|
};
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import { Close } 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("tag");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, computed, onMounted, nextTick, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, 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 { componentName, create, translate } = createComponent("textarea");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, 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("time-detail");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, 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("time-pannel");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.
|
|
8
|
-
import { P as Popup } from "./index.
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper.
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { P as Popup } from "./index-1006915b.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
import "./Overlay.js";
|
|
12
7
|
import "@nutui/icons-vue";
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { reactive, onMounted, watch, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, vShow, createVNode, render } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.
|
|
8
|
-
import { r as renderIcon } from "./renderIcon.
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper.
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
|
-
import { C as CreateComponent } from "./mountComponent.
|
|
6
|
+
import { C as CreateComponent } from "./mountComponent-1ece4110.js";
|
|
12
7
|
import { Success, Failure, Tips, Loading } from "@nutui/icons-vue";
|
|
13
8
|
const { create } = createComponent("toast");
|
|
14
9
|
const _sfc_main = create({
|
|
@@ -250,7 +245,7 @@ const updateToast = (opts) => {
|
|
|
250
245
|
}
|
|
251
246
|
const instance = createVNode(Toast, opts);
|
|
252
247
|
render(instance, container);
|
|
253
|
-
return
|
|
248
|
+
return showToast;
|
|
254
249
|
}
|
|
255
250
|
};
|
|
256
251
|
const mountToast = (opts) => {
|
|
@@ -271,15 +266,15 @@ const mountToast = (opts) => {
|
|
|
271
266
|
CreateComponent(opts, {
|
|
272
267
|
wrapper: Toast
|
|
273
268
|
});
|
|
274
|
-
return
|
|
269
|
+
return showToast;
|
|
275
270
|
};
|
|
276
271
|
const errorMsg = (msg) => {
|
|
277
272
|
if (!msg) {
|
|
278
|
-
console.warn("[NutUI Toast]: msg
|
|
273
|
+
console.warn("[NutUI Toast]: msg不能为空");
|
|
279
274
|
return;
|
|
280
275
|
}
|
|
281
276
|
};
|
|
282
|
-
const
|
|
277
|
+
const showToast = {
|
|
283
278
|
text(msg, opts = {}) {
|
|
284
279
|
errorMsg(msg);
|
|
285
280
|
return mountToast({ ...opts, type: "text", msg });
|
|
@@ -309,11 +304,9 @@ const ToastFunction = {
|
|
|
309
304
|
},
|
|
310
305
|
install(app) {
|
|
311
306
|
app.use(Toast);
|
|
312
|
-
app.config.globalProperties.$toast = ToastFunction;
|
|
313
307
|
}
|
|
314
308
|
};
|
|
315
309
|
export {
|
|
316
|
-
Toast,
|
|
317
|
-
|
|
318
|
-
ToastFunction as default
|
|
310
|
+
Toast as default,
|
|
311
|
+
showToast
|
|
319
312
|
};
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { reactive, ref, computed, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vShow, Fragment, renderList, normalizeStyle, createCommentVNode, createVNode, withCtx, renderSlot, toDisplayString } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.
|
|
8
|
-
import { u as useRect } from "./index.
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { u as useRect } from "./index-29892cda.js";
|
|
9
4
|
import { Close } from "@nutui/icons-vue";
|
|
10
5
|
import Popover from "./Popover.js";
|
|
11
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper.
|
|
6
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
12
7
|
import "../locale/lang";
|
|
13
|
-
import "./renderIcon.
|
|
14
|
-
import "./index.
|
|
8
|
+
import "./renderIcon-3d0fd47c.js";
|
|
9
|
+
import "./index-1006915b.js";
|
|
15
10
|
import "./Overlay.js";
|
|
16
11
|
const { create } = createComponent("tour");
|
|
17
12
|
const _sfc_main = create({
|
|
@@ -39,15 +34,15 @@ const _sfc_main = create({
|
|
|
39
34
|
},
|
|
40
35
|
nextStepTxt: {
|
|
41
36
|
type: String,
|
|
42
|
-
default: "
|
|
37
|
+
default: "下一步"
|
|
43
38
|
},
|
|
44
39
|
prevStepTxt: {
|
|
45
40
|
type: String,
|
|
46
|
-
default: "
|
|
41
|
+
default: "上一步"
|
|
47
42
|
},
|
|
48
43
|
completeTxt: {
|
|
49
44
|
type: String,
|
|
50
|
-
default: "
|
|
45
|
+
default: "完成"
|
|
51
46
|
},
|
|
52
47
|
mask: {
|
|
53
48
|
type: Boolean,
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
|
|
7
|
-
import { m as myFixed, c as createComponent } from "./component.
|
|
2
|
+
import { m as myFixed, c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import { TriangleUp, TriangleDown } 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("trend-arrow");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -4,17 +4,12 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
/*!
|
|
8
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
9
|
-
* (c) 2022 @jdf2e.
|
|
10
|
-
* Released under the MIT License.
|
|
11
|
-
*/
|
|
12
7
|
import { reactive, computed, h, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, createVNode, createTextVNode } from "vue";
|
|
13
|
-
import { c as createComponent } from "./component.
|
|
14
|
-
import { f as funInterceptor } from "./interceptor.
|
|
8
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
9
|
+
import { f as funInterceptor } from "./interceptor-956b24fc.js";
|
|
15
10
|
import Progress from "./Progress.js";
|
|
16
11
|
import { Photograph, Failure, Loading, Del, Link } from "@nutui/icons-vue";
|
|
17
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper.
|
|
12
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
18
13
|
import "../locale/lang";
|
|
19
14
|
class UploadOptions {
|
|
20
15
|
constructor() {
|
|
@@ -77,7 +72,7 @@ class Uploader {
|
|
|
77
72
|
xhr.send(options.formData);
|
|
78
73
|
}
|
|
79
74
|
} else {
|
|
80
|
-
console.warn("
|
|
75
|
+
console.warn("浏览器不支持 XMLHttpRequest");
|
|
81
76
|
}
|
|
82
77
|
}
|
|
83
78
|
}
|
|
@@ -430,7 +425,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
430
425
|
class: "nut-uploader__preview-img__file__name"
|
|
431
426
|
}, [
|
|
432
427
|
createVNode(_component_Link, { color: "#808080" }),
|
|
433
|
-
createTextVNode("
|
|
428
|
+
createTextVNode(" " + toDisplayString(item.name), 1)
|
|
434
429
|
], 8, _hoisted_8)
|
|
435
430
|
])),
|
|
436
431
|
createElementVNode("view", _hoisted_9, toDisplayString(item.name), 1)
|
|
@@ -440,7 +435,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
440
435
|
class: normalizeClass(["nut-uploader__preview-img__file__name", [item.status]])
|
|
441
436
|
}, [
|
|
442
437
|
createVNode(_component_Link),
|
|
443
|
-
createTextVNode("
|
|
438
|
+
createTextVNode(" " + toDisplayString(item.name), 1)
|
|
444
439
|
], 10, _hoisted_11),
|
|
445
440
|
createVNode(_component_Del, {
|
|
446
441
|
color: "#808080",
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } 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
|
function throttle(fn, delay) {
|
|
11
6
|
let timer = null;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } 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("watermark");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -143,7 +138,7 @@ const _sfc_main = create({
|
|
|
143
138
|
state.base64Url = canvas.toDataURL();
|
|
144
139
|
}
|
|
145
140
|
} else {
|
|
146
|
-
throw new Error("
|
|
141
|
+
throw new Error("当前环境不支持Canvas");
|
|
147
142
|
}
|
|
148
143
|
};
|
|
149
144
|
init();
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.
|
|
8
|
-
import { p as pxCheck } from "./pxCheck.
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
9
4
|
function flattenVNodes(children, childName) {
|
|
10
5
|
const result = [];
|
|
11
6
|
const traverse = (children2) => {
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { defineComponent } from "vue";
|
|
7
2
|
import locale from "../locale/lang";
|
|
8
3
|
const TypeOfFun = (value) => {
|
|
@@ -82,7 +77,7 @@ const floatData = (format, dataOp, mapOps) => {
|
|
|
82
77
|
};
|
|
83
78
|
function myFixed(num, digit = 2) {
|
|
84
79
|
if (Object.is(parseFloat(num), NaN)) {
|
|
85
|
-
return console.log(
|
|
80
|
+
return console.log(`传入的值:${num}不是一个数字`);
|
|
86
81
|
}
|
|
87
82
|
num = parseFloat(num);
|
|
88
83
|
return (Math.round((num + Number.EPSILON) * Math.pow(10, digit)) / Math.pow(10, digit)).toFixed(digit);
|