@nutui/nutui 3.3.1 → 4.0.0-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/README.md +2 -2
- package/dist/nutui.es.js +103 -19884
- package/dist/{nutui.umd.js → nutui.umd.cjs} +3883 -3815
- package/dist/packages/_es/ActionSheet.js +72 -65
- package/dist/packages/_es/Address.js +78 -73
- package/dist/packages/_es/AddressList.js +50 -43
- package/dist/packages/_es/Animate.js +8 -6
- package/dist/packages/_es/Audio.js +28 -23
- package/dist/packages/_es/AudioOperate.js +13 -7
- package/dist/packages/_es/Avatar.js +15 -64
- package/dist/packages/_es/AvatarGroup.js +7 -5
- package/dist/packages/_es/{BackTop.js → Backtop.js} +20 -22
- package/dist/packages/_es/Badge.js +9 -7
- package/dist/packages/_es/Barrage.js +13 -12
- package/dist/packages/_es/Button.js +14 -33
- package/dist/packages/_es/Calendar.js +15 -9
- package/dist/packages/_es/CalendarItem.js +9 -6
- package/dist/packages/_es/Card.js +14 -5
- package/dist/packages/_es/Cascader.js +31 -16
- package/dist/packages/_es/Category.js +10 -10
- package/dist/packages/_es/CategoryPane.js +22 -20
- package/dist/packages/_es/Cell.js +57 -60
- package/dist/packages/_es/CellGroup.js +7 -5
- package/dist/packages/_es/Checkbox.js +26 -40
- package/dist/packages/_es/CheckboxGroup.js +8 -6
- package/dist/packages/_es/CircleProgress.js +12 -10
- package/dist/packages/_es/Col.js +7 -5
- package/dist/packages/_es/Collapse.js +27 -47
- package/dist/packages/_es/CollapseItem.js +71 -83
- package/dist/packages/_es/Comment.js +34 -37
- package/dist/packages/_es/ConfigProvider.js +23 -4
- package/dist/packages/_es/{CountDown.js → Countdown.js} +8 -6
- package/dist/packages/_es/{CountUp.js → Countup.js} +21 -19
- package/dist/packages/_es/DatePicker.js +31 -29
- package/dist/packages/_es/Dialog.js +66 -46
- package/dist/packages/_es/Divider.js +7 -5
- package/dist/packages/_es/Drag.js +8 -6
- package/dist/packages/_es/Ecard.js +18 -12
- package/dist/packages/_es/Elevator.js +23 -21
- package/dist/packages/_es/Ellipsis.js +11 -9
- package/dist/packages/_es/Empty.js +10 -8
- package/dist/packages/_es/FixedNav.js +84 -75
- package/dist/packages/_es/Form.js +149 -140
- package/dist/packages/_es/FormItem.js +14 -7
- package/dist/packages/_es/Grid.js +7 -5
- package/dist/packages/_es/GridItem.js +19 -42
- package/dist/packages/_es/Icon.js +7 -44
- package/dist/packages/_es/Image.js +22 -10
- package/dist/packages/_es/ImagePreview.js +72 -55
- package/dist/packages/_es/Indicator.js +7 -5
- package/dist/packages/_es/InfiniteLoading.js +56 -124
- package/dist/packages/_es/Input.js +58 -190
- package/dist/packages/_es/InputNumber.js +43 -35
- package/dist/packages/_es/Invoice.js +30 -11
- package/dist/packages/_es/Layout.js +5 -3
- package/dist/packages/_es/List.js +7 -5
- package/dist/packages/_es/Menu.js +22 -13
- package/dist/packages/_es/MenuItem.js +25 -24
- package/dist/packages/_es/Navbar.js +47 -37
- package/dist/packages/_es/{NoticeBar.js → Noticebar.js} +52 -65
- package/dist/packages/_es/Notify.js +13 -8
- package/dist/packages/_es/NumberKeyboard.js +123 -112
- package/dist/packages/_es/{OverLay.js → Overlay.js} +7 -5
- package/dist/packages/_es/Pagination.js +7 -5
- package/dist/packages/_es/Picker.js +307 -304
- package/dist/packages/_es/Popover.js +34 -24
- package/dist/packages/_es/Popup.js +9 -152
- package/dist/packages/_es/Price.js +9 -12
- package/dist/packages/_es/Progress.js +18 -20
- package/dist/packages/_es/PullRefresh.js +222 -0
- package/dist/packages/_es/Radio.js +9 -103
- package/dist/packages/_es/RadioGroup.js +7 -44
- package/dist/packages/_es/Range.js +22 -20
- package/dist/packages/_es/Rate.js +153 -166
- package/dist/packages/_es/Row.js +7 -5
- package/dist/packages/_es/{SearchBar.js → Searchbar.js} +16 -15
- package/dist/packages/_es/ShortPassword.js +53 -121
- package/dist/packages/_es/{SideNavBar.js → SideNavbar.js} +11 -9
- package/dist/packages/_es/{SideNavBarItem.js → SideNavbarItem.js} +12 -10
- package/dist/packages/_es/Signature.js +12 -6
- package/dist/packages/_es/Skeleton.js +95 -85
- package/dist/packages/_es/Sku.js +33 -29
- package/dist/packages/_es/Step.js +28 -41
- package/dist/packages/_es/Steps.js +5 -3
- package/dist/packages/_es/Sticky.js +8 -150
- package/dist/packages/_es/{SubSideNavBar.js → SubSideNavbar.js} +18 -16
- package/dist/packages/_es/Swipe.js +8 -6
- package/dist/packages/_es/Swiper.js +121 -61
- package/dist/packages/_es/SwiperItem.js +8 -6
- package/dist/packages/_es/Switch.js +16 -28
- package/dist/packages/_es/TabPane.js +9 -7
- package/dist/packages/_es/Tabbar.js +21 -26
- package/dist/packages/_es/TabbarItem.js +42 -88
- package/dist/packages/_es/Table.js +15 -11
- package/dist/packages/_es/Tabs.js +35 -27
- package/dist/packages/_es/Tag.js +15 -9
- package/dist/packages/_es/{TextArea.js → Textarea.js} +8 -6
- package/dist/packages/_es/TimeDetail.js +12 -10
- package/dist/packages/_es/TimePannel.js +9 -7
- package/dist/packages/_es/TimeSelect.js +19 -11
- package/dist/packages/_es/Toast.js +26 -27
- package/dist/packages/_es/Tour.js +270 -0
- package/dist/packages/_es/TrendArrow.js +24 -43
- package/dist/packages/_es/Uploader.js +101 -64
- package/dist/packages/_es/Video.js +24 -22
- package/dist/packages/_es/{WaterMark.js → Watermark.js} +8 -6
- package/dist/packages/_es/{plugin-vue_export-helper.js → _plugin-vue_export-helper-73a3d722.js} +5 -3
- package/dist/packages/_es/{common.js → common-d5c1f4b1.js} +7 -11
- package/dist/packages/_es/{component.js → component-48526d37.js} +20 -3
- package/dist/packages/_es/{index5.js → index-281c4c2c.js} +79 -77
- package/dist/packages/_es/index-95a5249b.js +35 -0
- package/dist/packages/_es/index-b05fa625.js +239 -0
- package/dist/packages/_es/{index4.js → index-c3e2c58b.js} +4 -2
- package/dist/packages/_es/{index2.js → index-c70386a5.js} +4 -2
- package/dist/packages/_es/{index3.js → index-efc0d9e4.js} +4 -2
- package/dist/packages/_es/{index.js → index-fe4c328e.js} +4 -2
- package/dist/packages/_es/index.vue_vue_type_script_lang-5d693346.js +156 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-6a7b6f54.js +12 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-84b793e8.js +102 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-959515e8.js +50 -0
- package/dist/packages/_es/{interceptor.js → interceptor-da627865.js} +5 -3
- package/dist/packages/_es/{mountComponent.js → mountComponent-75cf7cfe.js} +5 -3
- package/dist/packages/_es/{pxCheck.js → pxCheck-524650ac.js} +4 -2
- package/dist/packages/_es/{raf.js → raf-e90b8c4d.js} +14 -3
- package/dist/packages/_es/renderIcon-d470170e.js +14 -0
- package/dist/packages/_es/style.css +2 -2
- package/dist/packages/actionsheet/index.mjs +2 -0
- package/dist/packages/actionsheet/index.scss +16 -32
- package/dist/packages/actionsheet/style.cjs +3 -0
- package/dist/packages/actionsheet/style.mjs +3 -0
- package/dist/packages/address/index.mjs +2 -0
- package/dist/packages/address/index.scss +28 -52
- package/dist/packages/address/style.cjs +4 -0
- package/dist/packages/address/style.mjs +4 -0
- package/dist/packages/addresslist/index.mjs +2 -0
- package/dist/packages/addresslist/index.scss +3 -3
- package/dist/packages/addresslist/style.cjs +2 -0
- package/dist/packages/addresslist/style.mjs +2 -0
- package/dist/packages/animate/index.mjs +2 -0
- package/dist/packages/animate/index.scss +1 -1
- package/dist/packages/animate/style.cjs +1 -0
- package/dist/packages/animate/style.mjs +1 -0
- package/dist/packages/audio/index.mjs +2 -0
- package/dist/packages/audio/index.scss +9 -9
- package/dist/packages/audio/style.cjs +2 -0
- package/dist/packages/audio/style.mjs +2 -0
- package/dist/packages/audiooperate/index.mjs +2 -0
- package/dist/packages/audiooperate/style.cjs +2 -0
- package/dist/packages/audiooperate/style.mjs +2 -0
- package/dist/packages/avatar/index.mjs +2 -0
- package/dist/packages/avatar/index.scss +1 -12
- package/dist/packages/avatar/style.cjs +1 -0
- package/dist/packages/avatar/style.mjs +1 -0
- package/dist/packages/avatargroup/index.mjs +2 -0
- package/dist/packages/avatargroup/style.cjs +1 -0
- package/dist/packages/avatargroup/style.mjs +1 -0
- package/dist/packages/backtop/index.mjs +2 -0
- package/dist/packages/backtop/style.cjs +1 -0
- package/dist/packages/backtop/style.mjs +1 -0
- package/dist/packages/badge/index.mjs +2 -0
- package/dist/packages/badge/index.scss +17 -17
- package/dist/packages/badge/style.cjs +1 -0
- package/dist/packages/badge/style.mjs +1 -0
- package/dist/packages/barrage/index.mjs +2 -0
- package/dist/packages/barrage/index.scss +2 -22
- package/dist/packages/barrage/style.cjs +1 -0
- package/dist/packages/barrage/style.mjs +1 -0
- package/dist/packages/button/index.mjs +2 -0
- package/dist/packages/button/index.scss +2 -1
- package/dist/packages/button/style.cjs +1 -0
- package/dist/packages/button/style.mjs +1 -0
- package/dist/packages/calendar/index.mjs +2 -0
- package/dist/packages/calendar/index.scss +39 -43
- package/dist/packages/calendar/style.cjs +4 -0
- package/dist/packages/calendar/style.mjs +4 -0
- package/dist/packages/calendaritem/index.mjs +2 -0
- package/dist/packages/calendaritem/style.cjs +1 -0
- package/dist/packages/calendaritem/style.mjs +1 -0
- package/dist/packages/card/index.mjs +2 -0
- package/dist/packages/card/style.cjs +3 -0
- package/dist/packages/card/style.mjs +3 -0
- package/dist/packages/cascader/index.mjs +2 -0
- package/dist/packages/cascader/index.scss +1 -1
- package/dist/packages/cascader/style.cjs +6 -0
- package/dist/packages/cascader/style.mjs +6 -0
- package/dist/packages/category/index.mjs +2 -0
- package/dist/packages/category/style.cjs +1 -0
- package/dist/packages/category/style.mjs +1 -0
- package/dist/packages/categorypane/index.mjs +2 -0
- package/dist/packages/categorypane/index.scss +2 -2
- package/dist/packages/categorypane/style.cjs +1 -0
- package/dist/packages/categorypane/style.mjs +1 -0
- package/dist/packages/cell/index.mjs +2 -0
- package/dist/packages/cell/style.cjs +1 -0
- package/dist/packages/cell/style.mjs +1 -0
- package/dist/packages/cellgroup/index.mjs +2 -0
- package/dist/packages/cellgroup/style.cjs +1 -0
- package/dist/packages/cellgroup/style.mjs +1 -0
- package/dist/packages/checkbox/index.mjs +2 -0
- package/dist/packages/checkbox/style.cjs +1 -0
- package/dist/packages/checkbox/style.mjs +1 -0
- package/dist/packages/checkboxgroup/index.mjs +2 -0
- package/dist/packages/checkboxgroup/style.cjs +1 -0
- package/dist/packages/checkboxgroup/style.mjs +1 -0
- package/dist/packages/circleprogress/index.mjs +2 -0
- package/dist/packages/circleprogress/index.scss +5 -5
- package/dist/packages/circleprogress/style.cjs +1 -0
- package/dist/packages/circleprogress/style.mjs +1 -0
- package/dist/packages/col/index.mjs +2 -0
- package/dist/packages/col/style.cjs +1 -0
- package/dist/packages/col/style.mjs +1 -0
- package/dist/packages/collapse/index.mjs +2 -0
- package/dist/packages/collapse/style.cjs +1 -0
- package/dist/packages/collapse/style.mjs +1 -0
- package/dist/packages/collapseitem/index.mjs +2 -0
- package/dist/packages/collapseitem/index.scss +54 -77
- package/dist/packages/collapseitem/style.cjs +1 -0
- package/dist/packages/collapseitem/style.mjs +1 -0
- package/dist/packages/comment/index.mjs +2 -0
- package/dist/packages/comment/index.scss +1 -3
- package/dist/packages/comment/style.cjs +2 -0
- package/dist/packages/comment/style.mjs +2 -0
- package/dist/packages/configprovider/index.mjs +2 -0
- package/dist/packages/configprovider/style.cjs +1 -0
- package/dist/packages/configprovider/style.mjs +1 -0
- package/dist/packages/countdown/index.mjs +2 -0
- package/dist/packages/countdown/style.cjs +1 -0
- package/dist/packages/countdown/style.mjs +1 -0
- package/dist/packages/countup/index.mjs +2 -0
- package/dist/packages/countup/index.scss +8 -38
- package/dist/packages/countup/style.cjs +1 -0
- package/dist/packages/countup/style.mjs +1 -0
- package/dist/packages/datepicker/index.mjs +2 -0
- package/dist/packages/datepicker/index.scss +1 -1
- package/dist/packages/datepicker/style.cjs +4 -0
- package/dist/packages/datepicker/style.mjs +4 -0
- package/dist/packages/dialog/index.mjs +2 -0
- package/dist/packages/dialog/style.cjs +4 -0
- package/dist/packages/dialog/style.mjs +4 -0
- package/dist/packages/divider/index.mjs +2 -0
- package/dist/packages/divider/style.cjs +1 -0
- package/dist/packages/divider/style.mjs +1 -0
- package/dist/packages/drag/index.mjs +2 -0
- package/dist/packages/drag/index.scss +1 -1
- package/dist/packages/drag/style.cjs +1 -0
- package/dist/packages/drag/style.mjs +1 -0
- package/dist/packages/ecard/index.mjs +2 -0
- package/dist/packages/ecard/style.cjs +2 -0
- package/dist/packages/ecard/style.mjs +2 -0
- package/dist/packages/elevator/index.mjs +2 -0
- package/dist/packages/elevator/style.cjs +1 -0
- package/dist/packages/elevator/style.mjs +1 -0
- package/dist/packages/ellipsis/index.mjs +2 -0
- package/dist/packages/ellipsis/index.scss +3 -3
- package/dist/packages/ellipsis/style.cjs +1 -0
- package/dist/packages/ellipsis/style.mjs +1 -0
- package/dist/packages/empty/index.mjs +2 -0
- package/dist/packages/empty/index.scss +2 -2
- package/dist/packages/empty/style.cjs +1 -0
- package/dist/packages/empty/style.mjs +1 -0
- package/dist/packages/fixednav/index.mjs +2 -0
- package/dist/packages/fixednav/index.scss +5 -5
- package/dist/packages/fixednav/style.cjs +2 -0
- package/dist/packages/fixednav/style.mjs +2 -0
- package/dist/packages/form/index.mjs +2 -0
- package/dist/packages/form/style.cjs +2 -0
- package/dist/packages/form/style.mjs +2 -0
- package/dist/packages/formitem/index.mjs +2 -0
- package/dist/packages/formitem/style.cjs +2 -0
- package/dist/packages/formitem/style.mjs +2 -0
- package/dist/packages/grid/index.mjs +2 -0
- package/dist/packages/grid/style.cjs +1 -0
- package/dist/packages/grid/style.mjs +1 -0
- package/dist/packages/griditem/index.mjs +2 -0
- package/dist/packages/griditem/style.cjs +1 -0
- package/dist/packages/griditem/style.mjs +1 -0
- package/dist/packages/icon/index.mjs +2 -0
- package/dist/packages/icon/index.scss +1 -131
- package/dist/packages/icon/style.cjs +1 -0
- package/dist/packages/icon/style.mjs +1 -0
- package/dist/packages/image/index.mjs +2 -0
- package/dist/packages/image/style.cjs +1 -0
- package/dist/packages/image/style.mjs +1 -0
- package/dist/packages/imagepreview/index.mjs +2 -0
- package/dist/packages/imagepreview/index.scss +4 -4
- package/dist/packages/imagepreview/style.cjs +6 -0
- package/dist/packages/imagepreview/style.mjs +6 -0
- package/dist/packages/indicator/index.mjs +2 -0
- package/dist/packages/indicator/style.cjs +1 -0
- package/dist/packages/indicator/style.mjs +1 -0
- package/dist/packages/infiniteloading/index.mjs +2 -0
- package/dist/packages/infiniteloading/index.scss +15 -41
- package/dist/packages/infiniteloading/style.cjs +1 -0
- package/dist/packages/infiniteloading/style.mjs +1 -0
- package/dist/packages/input/index.mjs +2 -0
- package/dist/packages/input/index.scss +20 -18
- package/dist/packages/input/style.cjs +1 -0
- package/dist/packages/input/style.mjs +1 -0
- package/dist/packages/inputnumber/index.mjs +2 -0
- package/dist/packages/inputnumber/index.scss +4 -2
- package/dist/packages/inputnumber/style.cjs +1 -0
- package/dist/packages/inputnumber/style.mjs +1 -0
- package/dist/packages/invoice/index.mjs +2 -0
- package/dist/packages/invoice/style.cjs +8 -0
- package/dist/packages/invoice/style.mjs +8 -0
- package/dist/packages/layout/index.mjs +2 -0
- package/dist/packages/layout/style.cjs +1 -0
- package/dist/packages/layout/style.mjs +1 -0
- package/dist/packages/list/index.mjs +2 -0
- package/dist/packages/list/style.cjs +1 -0
- package/dist/packages/list/style.mjs +1 -0
- package/dist/packages/locale/index.d.ts +1 -1
- package/dist/packages/locale/lang/baseLang-d9df8b94.js +10 -0
- package/dist/packages/locale/lang/baseLang.d.ts +5 -0
- package/dist/packages/locale/lang/en-US.d.ts +5 -0
- package/dist/packages/locale/lang/en-US.js +61 -51
- package/dist/packages/locale/lang/id-ID.d.ts +5 -0
- package/dist/packages/locale/lang/id-ID.js +61 -51
- package/dist/packages/locale/lang/index.js +25 -38
- package/dist/packages/locale/lang/zh-CN.d.ts +5 -0
- package/dist/packages/locale/lang/zh-CN.js +114 -104
- package/dist/packages/locale/lang/zh-TW.d.ts +5 -0
- package/dist/packages/locale/lang/zh-TW.js +114 -104
- package/dist/packages/menu/index.mjs +2 -0
- package/dist/packages/menu/index.scss +1 -0
- package/dist/packages/menu/style.cjs +1 -0
- package/dist/packages/menu/style.mjs +1 -0
- package/dist/packages/menuitem/index.mjs +2 -0
- package/dist/packages/menuitem/index.scss +4 -2
- package/dist/packages/menuitem/style.cjs +3 -0
- package/dist/packages/menuitem/style.mjs +3 -0
- package/dist/packages/navbar/index.mjs +2 -0
- package/dist/packages/navbar/index.scss +5 -1
- package/dist/packages/navbar/style.cjs +1 -0
- package/dist/packages/navbar/style.mjs +1 -0
- package/dist/packages/noticebar/index.mjs +2 -0
- package/dist/packages/noticebar/index.scss +15 -16
- package/dist/packages/noticebar/style.cjs +1 -0
- package/dist/packages/noticebar/style.mjs +1 -0
- package/dist/packages/notify/index.mjs +2 -0
- package/dist/packages/notify/index.scss +0 -20
- package/dist/packages/notify/style.cjs +3 -0
- package/dist/packages/notify/style.mjs +3 -0
- package/dist/packages/numberkeyboard/index.mjs +2 -0
- package/dist/packages/numberkeyboard/index.scss +45 -49
- package/dist/packages/numberkeyboard/style.cjs +3 -0
- package/dist/packages/numberkeyboard/style.mjs +3 -0
- package/dist/packages/overlay/index.mjs +2 -0
- package/dist/packages/overlay/style.cjs +1 -0
- package/dist/packages/overlay/style.mjs +1 -0
- package/dist/packages/pagination/index.mjs +2 -0
- package/dist/packages/pagination/style.cjs +1 -0
- package/dist/packages/pagination/style.mjs +1 -0
- package/dist/packages/picker/index.mjs +2 -0
- package/dist/packages/picker/index.scss +19 -56
- package/dist/packages/picker/style.cjs +3 -0
- package/dist/packages/picker/style.mjs +3 -0
- package/dist/packages/popover/index.mjs +2 -0
- package/dist/packages/popover/index.scss +7 -0
- package/dist/packages/popover/style.cjs +3 -0
- package/dist/packages/popover/style.mjs +3 -0
- package/dist/packages/popup/index.mjs +2 -0
- package/dist/packages/popup/index.scss +6 -6
- package/dist/packages/popup/style.cjs +2 -0
- package/dist/packages/popup/style.mjs +2 -0
- package/dist/packages/price/index.mjs +2 -0
- package/dist/packages/price/index.scss +0 -9
- package/dist/packages/price/style.cjs +1 -0
- package/dist/packages/price/style.mjs +1 -0
- package/dist/packages/progress/index.mjs +2 -0
- package/dist/packages/progress/style.cjs +1 -0
- package/dist/packages/progress/style.mjs +1 -0
- package/dist/packages/pullrefresh/index.mjs +2 -0
- package/dist/packages/pullrefresh/index.scss +30 -0
- package/dist/packages/pullrefresh/style.cjs +1 -0
- package/dist/packages/pullrefresh/style.mjs +1 -0
- package/dist/packages/radio/index.mjs +2 -0
- package/dist/packages/radio/style.cjs +1 -0
- package/dist/packages/radio/style.mjs +1 -0
- package/dist/packages/radiogroup/index.mjs +2 -0
- package/dist/packages/radiogroup/index.scss +1 -1
- package/dist/packages/radiogroup/style.cjs +1 -0
- package/dist/packages/radiogroup/style.mjs +1 -0
- package/dist/packages/range/index.mjs +2 -0
- package/dist/packages/range/index.scss +4 -4
- package/dist/packages/range/style.cjs +1 -0
- package/dist/packages/range/style.mjs +1 -0
- package/dist/packages/rate/index.mjs +2 -0
- package/dist/packages/rate/style.cjs +1 -0
- package/dist/packages/rate/style.mjs +1 -0
- package/dist/packages/row/index.mjs +2 -0
- package/dist/packages/row/style.cjs +1 -0
- package/dist/packages/row/style.mjs +1 -0
- package/dist/packages/searchbar/index.mjs +2 -0
- package/dist/packages/searchbar/style.cjs +1 -0
- package/dist/packages/searchbar/style.mjs +1 -0
- package/dist/packages/shortpassword/index.mjs +2 -0
- package/dist/packages/shortpassword/index.scss +15 -122
- package/dist/packages/shortpassword/style.cjs +3 -0
- package/dist/packages/shortpassword/style.mjs +3 -0
- package/dist/packages/sidenavbar/index.mjs +2 -0
- package/dist/packages/sidenavbar/index.scss +1 -1
- package/dist/packages/sidenavbar/style.cjs +1 -0
- package/dist/packages/sidenavbar/style.mjs +1 -0
- package/dist/packages/sidenavbaritem/index.mjs +2 -0
- package/dist/packages/sidenavbaritem/index.scss +3 -2
- package/dist/packages/sidenavbaritem/style.cjs +1 -0
- package/dist/packages/sidenavbaritem/style.mjs +1 -0
- package/dist/packages/signature/index.mjs +2 -0
- package/dist/packages/signature/style.cjs +2 -0
- package/dist/packages/signature/style.mjs +2 -0
- package/dist/packages/skeleton/index.mjs +2 -0
- package/dist/packages/skeleton/index.scss +11 -11
- package/dist/packages/skeleton/style.cjs +2 -0
- package/dist/packages/skeleton/style.mjs +2 -0
- package/dist/packages/sku/index.mjs +2 -0
- package/dist/packages/sku/style.cjs +5 -0
- package/dist/packages/sku/style.mjs +5 -0
- package/dist/packages/step/index.mjs +2 -0
- package/dist/packages/step/index.scss +7 -8
- package/dist/packages/step/style.cjs +1 -0
- package/dist/packages/step/style.mjs +1 -0
- package/dist/packages/steps/index.mjs +2 -0
- package/dist/packages/steps/style.cjs +1 -0
- package/dist/packages/steps/style.mjs +1 -0
- package/dist/packages/sticky/index.mjs +2 -0
- package/dist/packages/sticky/style.cjs +1 -0
- package/dist/packages/sticky/style.mjs +1 -0
- package/dist/packages/subsidenavbar/index.mjs +2 -0
- package/dist/packages/subsidenavbar/index.scss +2 -2
- package/dist/packages/subsidenavbar/style.cjs +1 -0
- package/dist/packages/subsidenavbar/style.mjs +1 -0
- package/dist/packages/swipe/index.mjs +2 -0
- package/dist/packages/swipe/style.cjs +1 -0
- package/dist/packages/swipe/style.mjs +1 -0
- package/dist/packages/swiper/index.mjs +2 -0
- package/dist/packages/swiper/style.cjs +1 -0
- package/dist/packages/swiper/style.mjs +1 -0
- package/dist/packages/swiperitem/index.mjs +2 -0
- package/dist/packages/swiperitem/style.cjs +1 -0
- package/dist/packages/swiperitem/style.mjs +1 -0
- package/dist/packages/switch/index.mjs +2 -0
- package/dist/packages/switch/index.scss +5 -15
- package/dist/packages/switch/style.cjs +1 -0
- package/dist/packages/switch/style.mjs +1 -0
- package/dist/packages/tabbar/index.mjs +2 -0
- package/dist/packages/tabbar/style.cjs +1 -0
- package/dist/packages/tabbar/style.mjs +1 -0
- package/dist/packages/tabbaritem/index.mjs +2 -0
- package/dist/packages/tabbaritem/index.scss +0 -29
- package/dist/packages/tabbaritem/style.cjs +2 -0
- package/dist/packages/tabbaritem/style.mjs +2 -0
- package/dist/packages/table/index.mjs +2 -0
- package/dist/packages/table/style.cjs +1 -0
- package/dist/packages/table/style.mjs +1 -0
- package/dist/packages/tabpane/index.mjs +2 -0
- package/dist/packages/tabpane/index.scss +2 -2
- package/dist/packages/tabpane/style.cjs +1 -0
- package/dist/packages/tabpane/style.mjs +1 -0
- package/dist/packages/tabs/index.mjs +2 -0
- package/dist/packages/tabs/index.scss +4 -4
- package/dist/packages/tabs/style.cjs +2 -0
- package/dist/packages/tabs/style.mjs +2 -0
- package/dist/packages/tag/index.mjs +2 -0
- package/dist/packages/tag/style.cjs +1 -0
- package/dist/packages/tag/style.mjs +1 -0
- package/dist/packages/textarea/index.mjs +2 -0
- package/dist/packages/textarea/index.scss +1 -1
- package/dist/packages/textarea/style.cjs +1 -0
- package/dist/packages/textarea/style.mjs +1 -0
- package/dist/packages/timedetail/index.mjs +2 -0
- package/dist/packages/timedetail/index.scss +2 -2
- package/dist/packages/timedetail/style.cjs +1 -0
- package/dist/packages/timedetail/style.mjs +1 -0
- package/dist/packages/timepannel/index.mjs +2 -0
- package/dist/packages/timepannel/index.scss +2 -2
- package/dist/packages/timepannel/style.cjs +1 -0
- package/dist/packages/timepannel/style.mjs +1 -0
- package/dist/packages/timeselect/index.mjs +2 -0
- package/dist/packages/timeselect/index.scss +2 -2
- package/dist/packages/timeselect/style.cjs +3 -0
- package/dist/packages/timeselect/style.mjs +3 -0
- package/dist/packages/toast/index.mjs +2 -0
- package/dist/packages/toast/style.cjs +1 -0
- package/dist/packages/toast/style.mjs +1 -0
- package/dist/packages/tour/index.mjs +2 -0
- package/dist/packages/tour/index.scss +78 -0
- package/dist/packages/tour/style.cjs +4 -0
- package/dist/packages/tour/style.mjs +4 -0
- package/dist/packages/trendarrow/index.mjs +2 -0
- package/dist/packages/trendarrow/index.scss +1 -1
- package/dist/packages/trendarrow/style.cjs +1 -0
- package/dist/packages/trendarrow/style.mjs +1 -0
- package/dist/packages/uploader/index.mjs +2 -0
- package/dist/packages/uploader/index.scss +2 -0
- package/dist/packages/uploader/style.cjs +3 -0
- package/dist/packages/uploader/style.mjs +3 -0
- package/dist/packages/video/index.mjs +2 -0
- package/dist/packages/video/index.scss +11 -17
- package/dist/packages/video/style.cjs +1 -0
- package/dist/packages/video/style.mjs +1 -0
- package/dist/packages/watermark/index.mjs +2 -0
- package/dist/packages/watermark/style.cjs +1 -0
- package/dist/packages/watermark/style.mjs +1 -0
- package/dist/smartips/attributes.json +215 -447
- package/dist/smartips/tags.json +116 -171
- package/dist/smartips/web-types.json +382 -906
- package/dist/style.css +19 -1
- package/dist/styles/animation/index.scss +0 -1
- package/dist/styles/theme-deafult.scss +920 -0
- package/dist/styles/theme-jdt.scss +898 -0
- package/dist/styles/themes/default.scss +57 -55
- package/dist/styles/themes/jdb.scss +57 -55
- package/dist/styles/themes/jddkh.scss +57 -55
- package/dist/styles/themes/jdt.scss +57 -55
- package/dist/styles/variables-jdb.scss +3 -3
- package/dist/styles/variables-jddkh.scss +3 -3
- package/dist/styles/variables-jdt.scss +764 -708
- package/dist/styles/variables-var.scss +854 -0
- package/dist/styles/variables.scss +807 -734
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +28 -20
- package/dist/types/__VUE/address/address-list.d.ts +30 -0
- package/dist/types/__VUE/address/index.vue.d.ts +33 -72
- package/dist/types/__VUE/address/type.d.ts +18 -0
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +3 -14
- package/dist/types/__VUE/addresslist/index.vue.d.ts +8 -9
- package/dist/types/__VUE/animate/index.vue.d.ts +16 -15
- package/dist/types/__VUE/animate/type.d.ts +2 -6
- package/dist/types/__VUE/audio/index.vue.d.ts +19 -17
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +12 -7
- package/dist/types/__VUE/avatar/index.vue.d.ts +14 -48
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +8 -9
- package/dist/types/__VUE/backtop/index.vue.d.ts +8 -9
- package/dist/types/__VUE/badge/index.vue.d.ts +9 -10
- package/dist/types/__VUE/barrage/index.vue.d.ts +7 -8
- package/dist/types/__VUE/button/index.vue.d.ts +21 -47
- package/dist/types/__VUE/button/type.d.ts +3 -7
- package/dist/types/__VUE/calendar/index.vue.d.ts +13 -13
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +23 -22
- package/dist/types/__VUE/calendaritem/type.d.ts +70 -0
- package/dist/types/__VUE/card/index.vue.d.ts +6 -7
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +10 -9
- package/dist/types/__VUE/cascader/helper.d.ts +0 -4
- package/dist/types/__VUE/cascader/index.vue.d.ts +12 -11
- package/dist/types/__VUE/cascader/tree.d.ts +0 -4
- package/dist/types/__VUE/cascader/types.d.ts +6 -10
- package/dist/types/__VUE/category/index.vue.d.ts +18 -14
- package/dist/types/__VUE/categorypane/index.vue.d.ts +23 -14
- package/dist/types/__VUE/cell/index.vue.d.ts +13 -32
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +6 -7
- package/dist/types/__VUE/checkbox/common.d.ts +2 -59
- package/dist/types/__VUE/checkbox/index.vue.d.ts +6 -113
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +6 -7
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +18 -14
- package/dist/types/__VUE/col/index.vue.d.ts +6 -7
- package/dist/types/__VUE/collapse/index.vue.d.ts +16 -81
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +52 -24
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +7 -17
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +3 -14
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +29 -21
- package/dist/types/__VUE/comment/index.vue.d.ts +29 -19
- package/dist/types/__VUE/configprovider/common.d.ts +4 -4
- package/dist/types/__VUE/configprovider/index.vue.d.ts +15 -7
- package/dist/types/__VUE/countdown/index.vue.d.ts +11 -12
- package/dist/types/__VUE/countdown/util.d.ts +1 -5
- package/dist/types/__VUE/countup/index.vue.d.ts +13 -14
- package/dist/types/__VUE/datepicker/index.vue.d.ts +32 -168
- package/dist/types/__VUE/datepicker/type.d.ts +2 -6
- package/dist/types/__VUE/dialog/index.d.ts +0 -4
- package/dist/types/__VUE/dialog/index.vue.d.ts +19 -16
- package/dist/types/__VUE/divider/index.vue.d.ts +6 -7
- package/dist/types/__VUE/drag/index.vue.d.ts +6 -7
- package/dist/types/__VUE/ecard/index.vue.d.ts +15 -11
- package/dist/types/__VUE/elevator/index.vue.d.ts +14 -13
- package/dist/types/__VUE/elevator/type.d.ts +5 -0
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +14 -9
- package/dist/types/__VUE/empty/index.vue.d.ts +6 -7
- package/dist/types/__VUE/fixednav/common.d.ts +2 -5
- package/dist/types/__VUE/fixednav/index.vue.d.ts +10 -11
- package/dist/types/__VUE/form/common.d.ts +2 -6
- package/dist/types/__VUE/form/index.vue.d.ts +7 -8
- package/dist/types/__VUE/form/types.d.ts +3 -7
- package/dist/types/__VUE/formitem/common.d.ts +0 -0
- package/dist/types/__VUE/formitem/index.vue.d.ts +11 -11
- package/dist/types/__VUE/formitem/types.d.ts +0 -4
- package/dist/types/__VUE/grid/common.d.ts +2 -20
- package/dist/types/__VUE/grid/index.vue.d.ts +7 -23
- package/dist/types/__VUE/griditem/index.vue.d.ts +9 -42
- package/dist/types/__VUE/icon/index.vue.d.ts +6 -68
- package/dist/types/__VUE/image/index.vue.d.ts +15 -17
- package/dist/types/__VUE/image/type.d.ts +2 -6
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +10 -9
- package/dist/types/__VUE/imagepreview/index.d.ts +1 -5
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +14 -12
- package/dist/types/__VUE/imagepreview/types.d.ts +2 -6
- package/dist/types/__VUE/indicator/index.vue.d.ts +7 -8
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +18 -57
- package/dist/types/__VUE/input/index.vue.d.ts +42 -146
- package/dist/types/__VUE/input/type.d.ts +5 -9
- package/dist/types/__VUE/input/util.d.ts +0 -4
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +10 -29
- package/dist/types/__VUE/invoice/index.vue.d.ts +9 -10
- package/dist/types/__VUE/invoice/types.d.ts +6 -0
- package/dist/types/__VUE/layout/index.vue.d.ts +6 -7
- package/dist/types/__VUE/list/index.vue.d.ts +12 -12
- package/dist/types/__VUE/menu/index.vue.d.ts +10 -11
- package/dist/types/__VUE/menuitem/index.vue.d.ts +13 -21
- package/dist/types/__VUE/menuitem/type.d.ts +1 -5
- package/dist/types/__VUE/navbar/index.vue.d.ts +20 -22
- package/dist/types/__VUE/noticebar/index.vue.d.ts +38 -30
- package/dist/types/__VUE/notify/index.d.ts +0 -4
- package/dist/types/__VUE/notify/index.vue.d.ts +8 -9
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +27 -54
- package/dist/types/__VUE/overlay/index.vue.d.ts +10 -10
- package/dist/types/__VUE/pagination/index.vue.d.ts +6 -7
- package/dist/types/__VUE/picker/Column.vue.d.ts +41 -35
- package/dist/types/__VUE/picker/baseProps.d.ts +55 -0
- package/dist/types/__VUE/picker/common.d.ts +555 -0
- package/dist/types/__VUE/picker/doc.en.d.ts +88 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +60 -236
- package/dist/types/__VUE/picker/types.d.ts +1 -5
- package/dist/types/__VUE/picker/usePicker.d.ts +17 -0
- package/dist/types/__VUE/popover/index.vue.d.ts +24 -20
- package/dist/types/__VUE/popover/type.d.ts +5 -8
- package/dist/types/__VUE/popup/common.d.ts +2 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +9 -10
- package/dist/types/__VUE/popup/props.d.ts +0 -4
- package/dist/types/__VUE/price/index.vue.d.ts +9 -19
- package/dist/types/__VUE/progress/index.vue.d.ts +9 -28
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +126 -0
- package/dist/types/__VUE/radio/index.vue.d.ts +9 -46
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +9 -10
- package/dist/types/__VUE/range/index.vue.d.ts +22 -21
- package/dist/types/__VUE/range/type.d.ts +1 -5
- package/dist/types/__VUE/rate/index.vue.d.ts +28 -55
- package/dist/types/__VUE/row/index.vue.d.ts +6 -7
- package/dist/types/__VUE/searchbar/index.vue.d.ts +25 -21
- package/dist/types/__VUE/searchbar/type.d.ts +1 -5
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +10 -44
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +7 -7
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +6 -7
- package/dist/types/__VUE/signature/index.vue.d.ts +13 -9
- package/dist/types/__VUE/skeleton/common.d.ts +3 -6
- package/dist/types/__VUE/skeleton/index.vue.d.ts +8 -9
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +3 -14
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +9 -19
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +10 -15
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +6 -17
- package/dist/types/__VUE/sku/data.d.ts +22 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +21 -21
- package/dist/types/__VUE/step/index.vue.d.ts +6 -34
- package/dist/types/__VUE/steps/index.vue.d.ts +7 -8
- package/dist/types/__VUE/sticky/index.vue.d.ts +9 -9
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +6 -7
- package/dist/types/__VUE/swipe/index.vue.d.ts +8 -7
- package/dist/types/__VUE/swiper/index.vue.d.ts +18 -19
- package/dist/types/__VUE/swiper/use-touch.d.ts +16 -0
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +7 -7
- package/dist/types/__VUE/swiperitem/type.d.ts +5 -0
- package/dist/types/__VUE/switch/index.vue.d.ts +15 -43
- package/dist/types/__VUE/tabbar/index.vue.d.ts +16 -17
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +14 -69
- package/dist/types/__VUE/table/common.d.ts +2 -4
- package/dist/types/__VUE/table/index.vue.d.ts +7 -8
- package/dist/types/__VUE/table/renderColumn.d.ts +11 -5
- package/dist/types/__VUE/table/types.d.ts +0 -4
- package/dist/types/__VUE/tabpane/index.vue.d.ts +6 -7
- package/dist/types/__VUE/tabs/index.vue.d.ts +28 -18
- package/dist/types/__VUE/tag/index.vue.d.ts +15 -14
- package/dist/types/__VUE/tag/type.d.ts +1 -5
- package/dist/types/__VUE/textarea/index.vue.d.ts +15 -16
- package/dist/types/__VUE/timedetail/index.vue.d.ts +8 -9
- package/dist/types/__VUE/timepannel/index.vue.d.ts +7 -8
- package/dist/types/__VUE/timeselect/index.vue.d.ts +6 -7
- package/dist/types/__VUE/toast/index.d.ts +1 -5
- package/dist/types/__VUE/toast/index.vue.d.ts +19 -18
- package/dist/types/__VUE/tour/index.vue.d.ts +195 -0
- package/dist/types/__VUE/tour/type.d.ts +2 -0
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +7 -40
- package/dist/types/__VUE/uploader/index.vue.d.ts +18 -43
- package/dist/types/__VUE/uploader/type.d.ts +3 -7
- package/dist/types/__VUE/uploader/uploader.d.ts +0 -4
- package/dist/types/__VUE/video/index.vue.d.ts +25 -25
- package/dist/types/__VUE/watermark/index.vue.d.ts +9 -10
- package/dist/types/index.d.ts +113 -7
- package/dist/types/locale/index.d.ts +8 -0
- package/dist/types/locale/lang/baseLang.d.ts +93 -0
- package/dist/types/locale/lang/en-US.d.ts +109 -0
- package/dist/types/locale/lang/id-ID.d.ts +109 -0
- package/dist/types/locale/lang/zh-CN.d.ts +109 -0
- package/dist/types/locale/lang/zh-TW.d.ts +109 -0
- package/dist/types/utils/create/component.d.ts +7 -0
- package/dist/types/utils/create/index.d.ts +4 -0
- package/dist/types/utils/create/mountComponent.d.ts +4 -0
- package/dist/types/utils/create/renderIcon.d.ts +4 -0
- package/dist/types/utils/date.d.ts +12 -0
- package/dist/types/utils/interceptor.d.ts +6 -0
- package/dist/types/utils/pxCheck.d.ts +1 -0
- package/dist/types/utils/raf.d.ts +4 -0
- package/dist/types/utils/throttle.d.ts +2 -0
- package/dist/types/utils/unit.d.ts +6 -0
- package/dist/types/utils/useExpose/index.d.ts +1 -0
- package/dist/types/utils/useLockScroll/index.d.ts +1 -0
- package/dist/types/utils/useRect/index.d.ts +17 -0
- package/dist/types/utils/useRelation/useInject.d.ts +14 -0
- package/dist/types/utils/useRelation/useProvide.d.ts +8 -0
- package/dist/types/utils/useRelation/useRelation.d.ts +1 -0
- package/dist/types/utils/useRoute/index.d.ts +1 -0
- package/dist/types/utils/useScrollParent/index.d.ts +5 -0
- package/dist/types/utils/useTaroRect/index.d.ts +10 -0
- package/dist/types/utils/useTouch/index.d.ts +18 -0
- package/dist/types/utils/util.d.ts +25 -0
- package/package.json +42 -34
- package/dist/packages/_es/props.js +0 -80
- package/dist/packages/locale/index.scss +0 -1
- package/dist/packages/locale/lang/baseLang.js +0 -8
- package/dist/packages/locale/lang/index.scss +0 -1
- package/dist/style.es.js +0 -2
- package/dist/styles/animation/icon.scss +0 -245
- package/dist/styles/font/config.json +0 -175
- package/dist/styles/font/demo.css +0 -539
- package/dist/styles/font/demo_index.html +0 -3063
- package/dist/styles/font/iconfont.css +0 -515
- package/dist/styles/font/iconfont.eot +0 -0
- package/dist/styles/font/iconfont.js +0 -66
- package/dist/styles/font/iconfont.json +0 -884
- package/dist/styles/font/iconfont.svg +0 -356
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/types/__VUE/rate/common.d.ts +0 -149
- package/dist/types/__VUE/tabs/common.d.ts +0 -95
- package/dist/types/nutui.d.ts +0 -104
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, renderSlot, createBlock,
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, createElementVNode, renderSlot, createBlock, resolveDynamicComponent, createTextVNode, toDisplayString, withModifiers, createCommentVNode, vShow, Fragment, renderList } from "vue";
|
|
7
|
+
import { Notice, CircleClose } from "@nutui/icons-vue";
|
|
8
|
+
import { c as createComponent } from "./component-48526d37.js";
|
|
9
|
+
import { r as renderIcon } from "./renderIcon-d470170e.js";
|
|
10
|
+
import { p as pxCheck } from "./pxCheck-524650ac.js";
|
|
11
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-73a3d722.js";
|
|
10
12
|
import "../locale/lang";
|
|
11
13
|
const { componentName, create } = createComponent("noticebar");
|
|
12
14
|
const _sfc_main = create({
|
|
@@ -45,8 +47,8 @@ const _sfc_main = create({
|
|
|
45
47
|
type: Boolean,
|
|
46
48
|
default: false
|
|
47
49
|
},
|
|
48
|
-
leftIcon: { type: String, default:
|
|
49
|
-
rightIcon: { type: String, default: "" },
|
|
50
|
+
leftIcon: { type: Object || String, default: () => Notice },
|
|
51
|
+
rightIcon: { type: Object || String, default: "" },
|
|
50
52
|
color: {
|
|
51
53
|
type: String,
|
|
52
54
|
default: ""
|
|
@@ -73,7 +75,9 @@ const _sfc_main = create({
|
|
|
73
75
|
props.item.props.style = props.style;
|
|
74
76
|
props.item.key = props.key;
|
|
75
77
|
return h(props.item);
|
|
76
|
-
}
|
|
78
|
+
},
|
|
79
|
+
Notice,
|
|
80
|
+
CircleClose
|
|
77
81
|
},
|
|
78
82
|
emits: ["click", "close"],
|
|
79
83
|
setup(props, { emit, slots }) {
|
|
@@ -84,7 +88,7 @@ const _sfc_main = create({
|
|
|
84
88
|
firstRound: true,
|
|
85
89
|
duration: 0,
|
|
86
90
|
offsetWidth: 0,
|
|
87
|
-
|
|
91
|
+
showNoticebar: true,
|
|
88
92
|
animationClass: "",
|
|
89
93
|
animate: false,
|
|
90
94
|
scrollList: [],
|
|
@@ -106,12 +110,12 @@ const _sfc_main = create({
|
|
|
106
110
|
return !state.isCanScroll && !props.wrapable;
|
|
107
111
|
}
|
|
108
112
|
});
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
113
|
+
const wrapContentClass = computed(() => {
|
|
114
|
+
return {
|
|
115
|
+
"nut-noticebar__page-wrap-content": true,
|
|
116
|
+
"nut-ellipsis": isEllipsis.value,
|
|
117
|
+
[state.animationClass]: true
|
|
118
|
+
};
|
|
115
119
|
});
|
|
116
120
|
const barStyle = computed(() => {
|
|
117
121
|
let style = {};
|
|
@@ -129,13 +133,6 @@ const _sfc_main = create({
|
|
|
129
133
|
transform: `translateX(${state.firstRound ? 0 : state.wrapWidth + "px"})`
|
|
130
134
|
};
|
|
131
135
|
});
|
|
132
|
-
const iconBg = computed(() => {
|
|
133
|
-
let iconBg2 = "";
|
|
134
|
-
if (props.leftIcon) {
|
|
135
|
-
iconBg2 = props.leftIcon;
|
|
136
|
-
}
|
|
137
|
-
return iconBg2;
|
|
138
|
-
});
|
|
139
136
|
const horseLampStyle = computed(() => {
|
|
140
137
|
let styles = {};
|
|
141
138
|
if (props.complexAm) {
|
|
@@ -166,7 +163,7 @@ const _sfc_main = create({
|
|
|
166
163
|
}
|
|
167
164
|
);
|
|
168
165
|
const initScrollWrap = (value) => {
|
|
169
|
-
if (state.
|
|
166
|
+
if (state.showNoticebar == false) {
|
|
170
167
|
return;
|
|
171
168
|
}
|
|
172
169
|
setTimeout(() => {
|
|
@@ -192,7 +189,7 @@ const _sfc_main = create({
|
|
|
192
189
|
};
|
|
193
190
|
const onClickIcon = (event) => {
|
|
194
191
|
if (props.closeMode) {
|
|
195
|
-
state.
|
|
192
|
+
state.showNoticebar = !props.closeMode;
|
|
196
193
|
}
|
|
197
194
|
emit("close", event);
|
|
198
195
|
};
|
|
@@ -270,10 +267,8 @@ const _sfc_main = create({
|
|
|
270
267
|
...toRefs(state),
|
|
271
268
|
isEllipsis,
|
|
272
269
|
classes,
|
|
273
|
-
iconShow,
|
|
274
270
|
barStyle,
|
|
275
271
|
contentStyle,
|
|
276
|
-
iconBg,
|
|
277
272
|
horseLampStyle,
|
|
278
273
|
wrap,
|
|
279
274
|
content,
|
|
@@ -283,45 +278,41 @@ const _sfc_main = create({
|
|
|
283
278
|
go,
|
|
284
279
|
handleClickIcon,
|
|
285
280
|
slots,
|
|
286
|
-
pxCheck
|
|
281
|
+
pxCheck,
|
|
282
|
+
wrapContentClass,
|
|
283
|
+
renderIcon
|
|
287
284
|
};
|
|
288
285
|
}
|
|
289
286
|
});
|
|
290
|
-
const _hoisted_1 = {
|
|
287
|
+
const _hoisted_1 = { class: "nut-noticebar__page-lefticon" };
|
|
288
|
+
const _hoisted_2 = {
|
|
291
289
|
ref: "wrap",
|
|
292
|
-
class: "wrap"
|
|
290
|
+
class: "nut-noticebar__page-wrap"
|
|
293
291
|
};
|
|
294
|
-
const
|
|
292
|
+
const _hoisted_3 = ["onClick"];
|
|
295
293
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
296
|
-
const
|
|
294
|
+
const _component_CircleClose = resolveComponent("CircleClose");
|
|
297
295
|
const _component_ScrollItem = resolveComponent("ScrollItem");
|
|
298
296
|
return openBlock(), createElementBlock("view", {
|
|
299
297
|
class: normalizeClass(_ctx.classes)
|
|
300
298
|
}, [
|
|
301
299
|
_ctx.direction == "across" ? withDirectives((openBlock(), createElementBlock("view", {
|
|
302
300
|
key: 0,
|
|
303
|
-
class: normalizeClass(["nut-
|
|
301
|
+
class: normalizeClass(["nut-noticebar__page", {
|
|
302
|
+
"nut-noticebar__page--withicon": _ctx.closeMode,
|
|
303
|
+
"nut-noticebar__page--close": _ctx.closeMode,
|
|
304
|
+
"nut-noticebar__page--wrapable": _ctx.wrapable
|
|
305
|
+
}]),
|
|
304
306
|
style: normalizeStyle(_ctx.barStyle),
|
|
305
307
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
306
308
|
}, [
|
|
307
|
-
_ctx.iconShow ? (openBlock(), createElementBlock("view", {
|
|
308
|
-
key: 0,
|
|
309
|
-
class: "left-icon",
|
|
310
|
-
style: normalizeStyle({ "background-image": `url(${_ctx.iconBg})` })
|
|
311
|
-
}, [
|
|
312
|
-
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
313
|
-
!_ctx.iconBg ? (openBlock(), createBlock(_component_nut_icon, {
|
|
314
|
-
key: 0,
|
|
315
|
-
name: "notice",
|
|
316
|
-
size: "16",
|
|
317
|
-
color: _ctx.color
|
|
318
|
-
}, null, 8, ["color"])) : createCommentVNode("", true)
|
|
319
|
-
])
|
|
320
|
-
], 4)) : createCommentVNode("", true),
|
|
321
309
|
createElementVNode("view", _hoisted_1, [
|
|
310
|
+
_ctx.$slots["left-icon"] ? renderSlot(_ctx.$slots, "left-icon", { key: 0 }) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.leftIcon)), { key: 1 }))
|
|
311
|
+
]),
|
|
312
|
+
createElementVNode("view", _hoisted_2, [
|
|
322
313
|
createElementVNode("view", {
|
|
323
314
|
ref: "content",
|
|
324
|
-
class: normalizeClass(
|
|
315
|
+
class: normalizeClass(_ctx.wrapContentClass),
|
|
325
316
|
style: normalizeStyle(_ctx.contentStyle),
|
|
326
317
|
onAnimationend: _cache[0] || (_cache[0] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args)),
|
|
327
318
|
"on:webkitAnimationEnd": _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
|
|
@@ -332,28 +323,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
332
323
|
], 38)
|
|
333
324
|
], 512),
|
|
334
325
|
_ctx.closeMode || _ctx.rightIcon ? (openBlock(), createElementBlock("view", {
|
|
335
|
-
key:
|
|
336
|
-
class: "
|
|
326
|
+
key: 0,
|
|
327
|
+
class: "nut-noticebar__page-righticon",
|
|
337
328
|
onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
|
|
338
329
|
}, [
|
|
339
|
-
renderSlot(_ctx.$slots, "right-icon", {}
|
|
340
|
-
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
341
|
-
name: _ctx.rightIcon ? _ctx.rightIcon : "close",
|
|
342
|
-
color: _ctx.color
|
|
343
|
-
}), null, 16, ["name", "color"])
|
|
344
|
-
])
|
|
330
|
+
_ctx.$slots["right-icon"] ? renderSlot(_ctx.$slots, "right-icon", { key: 0 }) : (openBlock(), createBlock(_component_CircleClose, { key: 1 }))
|
|
345
331
|
])) : createCommentVNode("", true)
|
|
346
332
|
], 6)), [
|
|
347
|
-
[vShow, _ctx.
|
|
333
|
+
[vShow, _ctx.showNoticebar]
|
|
348
334
|
]) : createCommentVNode("", true),
|
|
349
335
|
_ctx.scrollList.length > 0 && _ctx.direction == "vertical" ? (openBlock(), createElementBlock("view", {
|
|
350
336
|
key: 1,
|
|
351
|
-
class: "nut-
|
|
337
|
+
class: "nut-noticebar__vertical",
|
|
352
338
|
style: normalizeStyle(_ctx.barStyle)
|
|
353
339
|
}, [
|
|
354
340
|
_ctx.slots.default ? (openBlock(), createElementBlock("view", {
|
|
355
341
|
key: 0,
|
|
356
|
-
class: "
|
|
342
|
+
class: "nut-noticebar__vertical-list",
|
|
357
343
|
style: normalizeStyle(_ctx.horseLampStyle)
|
|
358
344
|
}, [
|
|
359
345
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.scrollList, (item, index2) => {
|
|
@@ -365,25 +351,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
365
351
|
}), 128))
|
|
366
352
|
], 4)) : (openBlock(), createElementBlock("ul", {
|
|
367
353
|
key: 1,
|
|
368
|
-
class: "
|
|
354
|
+
class: "nut-noticebar__vertical-list",
|
|
369
355
|
style: normalizeStyle(_ctx.horseLampStyle)
|
|
370
356
|
}, [
|
|
371
357
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.scrollList, (item, index2) => {
|
|
372
358
|
return openBlock(), createElementBlock("li", {
|
|
373
|
-
class: "
|
|
359
|
+
class: "nut-noticebar__vertical-item",
|
|
374
360
|
key: index2,
|
|
375
361
|
style: normalizeStyle({ height: _ctx.pxCheck(_ctx.height) }),
|
|
376
362
|
onClick: ($event) => _ctx.go(item)
|
|
377
|
-
}, toDisplayString(item), 13,
|
|
363
|
+
}, toDisplayString(item), 13, _hoisted_3);
|
|
378
364
|
}), 128))
|
|
379
365
|
], 4)),
|
|
380
366
|
createElementVNode("view", {
|
|
381
367
|
class: "go",
|
|
382
368
|
onClick: _cache[4] || (_cache[4] = ($event) => !_ctx.slots.rightIcon && _ctx.handleClickIcon())
|
|
383
369
|
}, [
|
|
384
|
-
_ctx.slots.rightIcon ? renderSlot(_ctx.$slots, "rightIcon", { key: 0 }) : _ctx.closeMode ? (openBlock(), createBlock(
|
|
370
|
+
_ctx.slots.rightIcon ? renderSlot(_ctx.$slots, "rightIcon", { key: 0 }) : _ctx.closeMode ? (openBlock(), createBlock(_component_CircleClose, {
|
|
385
371
|
key: 1,
|
|
386
|
-
type: "cross",
|
|
387
372
|
color: _ctx.color,
|
|
388
373
|
size: "11px"
|
|
389
374
|
}, null, 8, ["color"])) : createCommentVNode("", true)
|
|
@@ -391,5 +376,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
391
376
|
], 4)) : createCommentVNode("", true)
|
|
392
377
|
], 2);
|
|
393
378
|
}
|
|
394
|
-
|
|
395
|
-
export {
|
|
379
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
380
|
+
export {
|
|
381
|
+
index as default
|
|
382
|
+
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import Popup from "./
|
|
9
|
-
import { _ as _export_sfc } from "./
|
|
7
|
+
import { c as createComponent } from "./component-48526d37.js";
|
|
8
|
+
import { P as Popup } from "./index-b05fa625.js";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-73a3d722.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
|
-
import "./
|
|
11
|
+
import "./Overlay.js";
|
|
12
|
+
import "@nutui/icons-vue";
|
|
12
13
|
const { create } = createComponent("notify");
|
|
13
14
|
const _sfc_main = create({
|
|
14
15
|
components: {
|
|
@@ -103,7 +104,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
103
104
|
_: 3
|
|
104
105
|
}, 8, ["visible", "position", "teleportDisable"]);
|
|
105
106
|
}
|
|
106
|
-
|
|
107
|
+
const Notify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
107
108
|
const defaultOptions = {
|
|
108
109
|
type: "base",
|
|
109
110
|
visible: true,
|
|
@@ -186,7 +187,7 @@ const mountNotify = (opts) => {
|
|
|
186
187
|
};
|
|
187
188
|
const errorMsg = (msg) => {
|
|
188
189
|
if (!msg) {
|
|
189
|
-
console.warn("[NutUI Notify]: msg
|
|
190
|
+
console.warn("[NutUI Notify]: msg不能为空");
|
|
190
191
|
return;
|
|
191
192
|
}
|
|
192
193
|
};
|
|
@@ -219,4 +220,8 @@ const NotifyFunction = {
|
|
|
219
220
|
app.config.globalProperties.$notify = NotifyFunction;
|
|
220
221
|
}
|
|
221
222
|
};
|
|
222
|
-
export {
|
|
223
|
+
export {
|
|
224
|
+
Notify,
|
|
225
|
+
NotifyFunction,
|
|
226
|
+
NotifyFunction as default
|
|
227
|
+
};
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, watch, resolveComponent, openBlock,
|
|
7
|
-
import { c as createComponent } from "./component.js";
|
|
8
|
-
import {
|
|
6
|
+
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component-48526d37.js";
|
|
8
|
+
import { P as Popup } from "./index-b05fa625.js";
|
|
9
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-73a3d722.js";
|
|
9
10
|
import "../locale/lang";
|
|
10
|
-
|
|
11
|
+
import "./Overlay.js";
|
|
12
|
+
import "@nutui/icons-vue";
|
|
13
|
+
const { create, translate } = createComponent("number-keyboard");
|
|
11
14
|
const _sfc_main = create({
|
|
15
|
+
components: {
|
|
16
|
+
[Popup.name]: Popup
|
|
17
|
+
},
|
|
12
18
|
props: {
|
|
13
19
|
confirmText: {
|
|
14
20
|
type: String,
|
|
@@ -30,7 +36,7 @@ const _sfc_main = create({
|
|
|
30
36
|
type: Array,
|
|
31
37
|
default: () => []
|
|
32
38
|
},
|
|
33
|
-
|
|
39
|
+
modelValue: {
|
|
34
40
|
type: String,
|
|
35
41
|
default: ""
|
|
36
42
|
},
|
|
@@ -42,24 +48,12 @@ const _sfc_main = create({
|
|
|
42
48
|
type: Boolean,
|
|
43
49
|
default: false
|
|
44
50
|
},
|
|
45
|
-
overlay: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: true
|
|
48
|
-
},
|
|
49
|
-
teleportDisable: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: true
|
|
52
|
-
},
|
|
53
|
-
teleport: {
|
|
54
|
-
type: [String, Element],
|
|
55
|
-
default: "body"
|
|
56
|
-
},
|
|
57
51
|
popClass: {
|
|
58
52
|
type: String,
|
|
59
53
|
default: ""
|
|
60
54
|
}
|
|
61
55
|
},
|
|
62
|
-
emits: ["input", "delete", "close", "update:
|
|
56
|
+
emits: ["input", "delete", "close", "blur", "update:modelValue", "update:visible"],
|
|
63
57
|
setup(props, { emit }) {
|
|
64
58
|
const clickKeyIndex = ref(void 0);
|
|
65
59
|
const show = ref(props.visible);
|
|
@@ -120,10 +114,27 @@ const _sfc_main = create({
|
|
|
120
114
|
}
|
|
121
115
|
return defaultKey();
|
|
122
116
|
});
|
|
117
|
+
const onBlur = () => {
|
|
118
|
+
if (props.visible) {
|
|
119
|
+
emit("blur");
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
const clickAway = (event) => {
|
|
123
|
+
const element = root.value;
|
|
124
|
+
let el = element && !element.contains(event.target);
|
|
125
|
+
if (el) {
|
|
126
|
+
onBlur();
|
|
127
|
+
}
|
|
128
|
+
};
|
|
123
129
|
watch(
|
|
124
130
|
() => props.visible,
|
|
125
131
|
(value) => {
|
|
126
132
|
show.value = value;
|
|
133
|
+
if (value) {
|
|
134
|
+
window.addEventListener("touchstart", clickAway, true);
|
|
135
|
+
} else {
|
|
136
|
+
window.removeEventListener("touchstart", clickAway, true);
|
|
137
|
+
}
|
|
127
138
|
}
|
|
128
139
|
);
|
|
129
140
|
function onTouchstart(item, event) {
|
|
@@ -131,8 +142,8 @@ const _sfc_main = create({
|
|
|
131
142
|
clickKeyIndex.value = item.id;
|
|
132
143
|
if (item.type == "number" || item.type == "custom") {
|
|
133
144
|
emit("input", item.id);
|
|
134
|
-
if (props.
|
|
135
|
-
emit("update:
|
|
145
|
+
if (props.modelValue.length < props.maxlength) {
|
|
146
|
+
emit("update:modelValue", props.modelValue + item.id);
|
|
136
147
|
}
|
|
137
148
|
}
|
|
138
149
|
if (item.type == "lock") {
|
|
@@ -140,7 +151,7 @@ const _sfc_main = create({
|
|
|
140
151
|
}
|
|
141
152
|
if (item.type == "delete") {
|
|
142
153
|
emit("delete");
|
|
143
|
-
emit("update:
|
|
154
|
+
emit("update:modelValue", props.modelValue.slice(0, props.modelValue.length - 1));
|
|
144
155
|
}
|
|
145
156
|
}
|
|
146
157
|
function onTouchMove(event) {
|
|
@@ -151,6 +162,7 @@ const _sfc_main = create({
|
|
|
151
162
|
clickKeyIndex.value = void 0;
|
|
152
163
|
}
|
|
153
164
|
function closeBoard() {
|
|
165
|
+
emit("update:visible", false);
|
|
154
166
|
emit("close");
|
|
155
167
|
}
|
|
156
168
|
return {
|
|
@@ -169,113 +181,112 @@ const _sfc_main = create({
|
|
|
169
181
|
};
|
|
170
182
|
}
|
|
171
183
|
});
|
|
172
|
-
const _hoisted_1 = {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
};
|
|
176
|
-
const _hoisted_2 = {
|
|
184
|
+
const _hoisted_1 = { ref: "root" };
|
|
185
|
+
const _hoisted_2 = { class: "nut-number-keyboard" };
|
|
186
|
+
const _hoisted_3 = {
|
|
177
187
|
key: 0,
|
|
178
|
-
class: "number-
|
|
188
|
+
class: "nut-number-keyboard__header"
|
|
179
189
|
};
|
|
180
|
-
const
|
|
181
|
-
const
|
|
182
|
-
const
|
|
183
|
-
const
|
|
184
|
-
const
|
|
190
|
+
const _hoisted_4 = { class: "nut-number-keyboard__title" };
|
|
191
|
+
const _hoisted_5 = { class: "nut-number-keyboard__body" };
|
|
192
|
+
const _hoisted_6 = { class: "nut-number-keyboard__keys" };
|
|
193
|
+
const _hoisted_7 = ["onTouchstart"];
|
|
194
|
+
const _hoisted_8 = {
|
|
185
195
|
key: 1,
|
|
186
196
|
src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png"
|
|
187
197
|
};
|
|
188
|
-
const
|
|
198
|
+
const _hoisted_9 = {
|
|
189
199
|
key: 2,
|
|
190
200
|
src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png"
|
|
191
201
|
};
|
|
192
|
-
const
|
|
202
|
+
const _hoisted_10 = {
|
|
193
203
|
key: 0,
|
|
194
|
-
class: "number-
|
|
204
|
+
class: "nut-number-keyboard__sidebar"
|
|
195
205
|
};
|
|
196
|
-
const
|
|
197
|
-
const
|
|
198
|
-
const
|
|
199
|
-
|
|
206
|
+
const _hoisted_11 = { class: "nut-key__wrapper" };
|
|
207
|
+
const _hoisted_12 = /* @__PURE__ */ createElementVNode("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png" }, null, -1);
|
|
208
|
+
const _hoisted_13 = [
|
|
209
|
+
_hoisted_12
|
|
200
210
|
];
|
|
201
211
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
202
212
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
203
|
-
return openBlock(),
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}, toDisplayString(_ctx.translate("done")), 1)) : createCommentVNode("", true)
|
|
223
|
-
])) : createCommentVNode("", true),
|
|
224
|
-
createElementVNode("div", _hoisted_4, [
|
|
213
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
214
|
+
createVNode(_component_nut_popup, {
|
|
215
|
+
visible: _ctx.show,
|
|
216
|
+
"onUpdate:visible": _cache[7] || (_cache[7] = ($event) => _ctx.show = $event),
|
|
217
|
+
position: "bottom",
|
|
218
|
+
popClass: _ctx.popClass,
|
|
219
|
+
overlay: false,
|
|
220
|
+
teleportDisable: false
|
|
221
|
+
}, {
|
|
222
|
+
default: withCtx(() => [
|
|
223
|
+
createElementVNode("div", _hoisted_2, [
|
|
224
|
+
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
225
|
+
createElementVNode("h3", _hoisted_4, toDisplayString(_ctx.title), 1),
|
|
226
|
+
_ctx.type == "default" ? (openBlock(), createElementBlock("span", {
|
|
227
|
+
key: 0,
|
|
228
|
+
class: "nut-number-keyboard__close",
|
|
229
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
|
|
230
|
+
}, toDisplayString(_ctx.translate("done")), 1)) : createCommentVNode("", true)
|
|
231
|
+
])) : createCommentVNode("", true),
|
|
225
232
|
createElementVNode("div", _hoisted_5, [
|
|
226
|
-
(
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
"key
|
|
230
|
-
{
|
|
231
|
-
"key-board-wrapper-large": item.id == 0 && _ctx.type == "rightColumn" && Array.isArray(_ctx.customKey) && _ctx.customKey.length == 1
|
|
232
|
-
}
|
|
233
|
-
]),
|
|
234
|
-
key: "key" + item.id
|
|
235
|
-
}, [
|
|
236
|
-
createElementVNode("div", {
|
|
233
|
+
createElementVNode("div", _hoisted_6, [
|
|
234
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.keysList, (item) => {
|
|
235
|
+
return openBlock(), createElementBlock("div", {
|
|
236
|
+
key: "key" + item.id,
|
|
237
237
|
class: normalizeClass([
|
|
238
|
-
"
|
|
239
|
-
{
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
])
|
|
243
|
-
onTouchstart: (event) => _ctx.onTouchstart(item, event),
|
|
244
|
-
onTouchmove: _cache[1] || (_cache[1] = (event) => _ctx.onTouchMove(event)),
|
|
245
|
-
onTouchend: _cache[2] || (_cache[2] = (event) => _ctx.onTouchEnd(event))
|
|
238
|
+
"nut-key__wrapper",
|
|
239
|
+
{
|
|
240
|
+
"nut-key__wrapper--wider": item.id == 0 && _ctx.type == "rightColumn" && Array.isArray(_ctx.customKey) && _ctx.customKey.length == 1
|
|
241
|
+
}
|
|
242
|
+
])
|
|
246
243
|
}, [
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
244
|
+
createElementVNode("div", {
|
|
245
|
+
class: normalizeClass([
|
|
246
|
+
"nut-key",
|
|
247
|
+
{ "nut-key--active": item.id == _ctx.clickKeyIndex },
|
|
248
|
+
{ "nut-key--lock": item.type == "lock" },
|
|
249
|
+
{ "nut-key--delete": item.type == "delete" }
|
|
250
|
+
]),
|
|
251
|
+
onTouchstart: (event) => _ctx.onTouchstart(item, event),
|
|
252
|
+
onTouchmove: _cache[1] || (_cache[1] = (event) => _ctx.onTouchMove(event)),
|
|
253
|
+
onTouchend: _cache[2] || (_cache[2] = (event) => _ctx.onTouchEnd(event))
|
|
254
|
+
}, [
|
|
255
|
+
item.type == "number" || item.type == "custom" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
256
|
+
createTextVNode(toDisplayString(item.id), 1)
|
|
257
|
+
], 64)) : createCommentVNode("", true),
|
|
258
|
+
item.type == "lock" ? (openBlock(), createElementBlock("img", _hoisted_8)) : createCommentVNode("", true),
|
|
259
|
+
item.type == "delete" ? (openBlock(), createElementBlock("img", _hoisted_9)) : createCommentVNode("", true)
|
|
260
|
+
], 42, _hoisted_7)
|
|
261
|
+
], 2);
|
|
262
|
+
}), 128))
|
|
264
263
|
]),
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
264
|
+
_ctx.type == "rightColumn" ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
265
|
+
createElementVNode("div", _hoisted_11, [
|
|
266
|
+
createElementVNode("div", {
|
|
267
|
+
class: normalizeClass(["nut-key", { active: _ctx.clickKeyIndex == "delete" }]),
|
|
268
|
+
onTouchstart: _cache[3] || (_cache[3] = (event) => _ctx.onTouchstart({ id: "delete", type: "delete" }, event)),
|
|
269
|
+
onTouchmove: _cache[4] || (_cache[4] = (event) => _ctx.onTouchMove(event)),
|
|
270
|
+
onTouchend: _cache[5] || (_cache[5] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
271
|
+
}, _hoisted_13, 34)
|
|
272
|
+
]),
|
|
269
273
|
createElementVNode("div", {
|
|
270
|
-
class:
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
+
class: "nut-key__wrapper nut-key__wrapper--finish",
|
|
275
|
+
onClick: _cache[6] || (_cache[6] = ($event) => _ctx.closeBoard())
|
|
276
|
+
}, [
|
|
277
|
+
createElementVNode("div", {
|
|
278
|
+
class: normalizeClass(["nut-key", "nut-key--finish ", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
|
|
279
|
+
}, toDisplayString(_ctx.confirmText || _ctx.translate("done")), 3)
|
|
280
|
+
])
|
|
281
|
+
])) : createCommentVNode("", true)
|
|
282
|
+
])
|
|
274
283
|
])
|
|
275
|
-
],
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
284
|
+
]),
|
|
285
|
+
_: 1
|
|
286
|
+
}, 8, ["visible", "popClass"])
|
|
287
|
+
], 512);
|
|
279
288
|
}
|
|
280
|
-
|
|
281
|
-
export {
|
|
289
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
290
|
+
export {
|
|
291
|
+
index as default
|
|
292
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui
|
|
2
|
+
* @nutui/nutui v4.0.0-beta.1 Mon Dec 26 2022 15:40:58 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, watchEffect, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, withModifiers, normalizeStyle, renderSlot, vShow } from "vue";
|
|
7
|
-
import { b as body, c as createComponent } from "./component.js";
|
|
8
|
-
import { _ as _export_sfc } from "./
|
|
7
|
+
import { b as body, c as createComponent } from "./component-48526d37.js";
|
|
8
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-73a3d722.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
10
|
let count = 0;
|
|
11
11
|
const CLSNAME = "nut-overflow-hidden";
|
|
@@ -100,5 +100,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
100
100
|
_: 3
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
export {
|
|
103
|
+
const Overlay = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
104
|
+
export {
|
|
105
|
+
Overlay as default
|
|
106
|
+
};
|