@nutui/nutui 4.0.0-beta.2 → 4.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/nutui.es.js +227 -103
- package/dist/nutui.umd.js +7 -0
- package/dist/packages/_es/ActionSheet.js +4 -14
- package/dist/packages/_es/Address.js +7 -9
- package/dist/packages/_es/AddressList.js +156 -233
- package/dist/packages/_es/Animate.js +2 -7
- package/dist/packages/_es/Audio.js +10 -9
- package/dist/packages/_es/AudioOperate.js +3 -7
- package/dist/packages/_es/Avatar.js +4 -7
- package/dist/packages/_es/AvatarGroup.js +3 -7
- package/dist/packages/_es/Backtop.js +3 -8
- package/dist/packages/_es/Badge.js +2 -7
- package/dist/packages/_es/Barrage.js +31 -54
- package/dist/packages/_es/Button.js +2 -7
- package/dist/packages/_es/Calendar.js +6 -11
- package/dist/packages/_es/CalendarItem.js +5 -10
- package/dist/packages/_es/Card.js +9 -21
- package/dist/packages/_es/Cascader.js +17 -11
- package/dist/packages/_es/Category.js +4 -7
- package/dist/packages/_es/CategoryPane.js +5 -7
- package/dist/packages/_es/Cell.js +5 -9
- package/dist/packages/_es/CellGroup.js +2 -7
- package/dist/packages/_es/Checkbox.js +2 -7
- package/dist/packages/_es/CheckboxGroup.js +2 -7
- package/dist/packages/_es/CircleProgress.js +2 -7
- package/dist/packages/_es/Col.js +2 -7
- package/dist/packages/_es/Collapse.js +9 -14
- package/dist/packages/_es/CollapseItem.js +7 -11
- package/dist/packages/_es/Comment.js +21 -23
- package/dist/packages/_es/ConfigProvider.js +38 -11
- package/dist/packages/_es/Countdown.js +10 -7
- package/dist/packages/_es/Countup.js +22 -12
- package/dist/packages/_es/DatePicker.js +6 -9
- package/dist/packages/_es/Dialog.js +23 -30
- package/dist/packages/_es/Divider.js +2 -7
- package/dist/packages/_es/Drag.js +3 -8
- package/dist/packages/_es/Ecard.js +3 -8
- package/dist/packages/_es/Elevator.js +3 -8
- package/dist/packages/_es/Ellipsis.js +4 -7
- package/dist/packages/_es/Empty.js +5 -7
- package/dist/packages/_es/FixedNav.js +2 -7
- package/dist/packages/_es/Form.js +2 -7
- package/dist/packages/_es/FormItem.js +4 -9
- package/dist/packages/_es/Grid.js +3 -8
- package/dist/packages/_es/GridItem.js +6 -10
- package/dist/packages/_es/Image.js +3 -8
- package/dist/packages/_es/ImagePreview.js +23 -32
- package/dist/packages/_es/Indicator.js +2 -7
- package/dist/packages/_es/InfiniteLoading.js +4 -17
- package/dist/packages/_es/Input.js +32 -36
- package/dist/packages/_es/InputNumber.js +4 -9
- package/dist/packages/_es/Invoice.js +9 -12
- package/dist/packages/_es/Layout.js +1 -6
- package/dist/packages/_es/List.js +3 -9
- package/dist/packages/_es/Menu.js +3 -8
- package/dist/packages/_es/MenuItem.js +3 -8
- package/dist/packages/_es/Navbar.js +8 -7
- package/dist/packages/_es/Noticebar.js +17 -17
- package/dist/packages/_es/Notify.js +11 -13
- package/dist/packages/_es/NumberKeyboard.js +5 -10
- package/dist/packages/_es/Overlay.js +3 -8
- package/dist/packages/_es/Pagination.js +2 -7
- package/dist/packages/_es/Picker.js +8 -10
- package/dist/packages/_es/Popover.js +5 -11
- package/dist/packages/_es/Popup.js +3 -8
- package/dist/packages/_es/Price.js +3 -8
- package/dist/packages/_es/Progress.js +40 -42
- package/dist/packages/_es/PullRefresh.js +15 -23
- package/dist/packages/_es/Radio.js +3 -8
- package/dist/packages/_es/RadioGroup.js +2 -7
- package/dist/packages/_es/Range.js +4 -9
- package/dist/packages/_es/Rate.js +22 -26
- package/dist/packages/_es/Row.js +2 -7
- package/dist/packages/_es/Searchbar.js +7 -11
- package/dist/packages/_es/ShortPassword.js +14 -18
- package/dist/packages/_es/SideNavbar.js +2 -7
- package/dist/packages/_es/SideNavbarItem.js +2 -7
- package/dist/packages/_es/Signature.js +14 -8
- package/dist/packages/_es/Skeleton.js +14 -11
- package/dist/packages/_es/Sku.js +28 -9
- package/dist/packages/_es/Step.js +2 -7
- package/dist/packages/_es/Steps.js +1 -6
- package/dist/packages/_es/Sticky.js +3 -8
- package/dist/packages/_es/SubSideNavbar.js +7 -10
- package/dist/packages/_es/Swipe.js +5 -10
- package/dist/packages/_es/Swiper.js +59 -125
- package/dist/packages/_es/SwiperItem.js +3 -8
- package/dist/packages/_es/Switch.js +6 -8
- package/dist/packages/_es/TabPane.js +4 -9
- package/dist/packages/_es/Tabbar.js +2 -7
- package/dist/packages/_es/TabbarItem.js +17 -32
- package/dist/packages/_es/Table.js +92 -100
- package/dist/packages/_es/Tabs.js +20 -23
- package/dist/packages/_es/Tag.js +2 -7
- package/dist/packages/_es/Textarea.js +3 -7
- package/dist/packages/_es/TimeDetail.js +2 -11
- package/dist/packages/_es/TimePannel.js +2 -7
- package/dist/packages/_es/TimeSelect.js +4 -9
- package/dist/packages/_es/Toast.js +17 -16
- package/dist/packages/_es/Tour.js +11 -15
- package/dist/packages/_es/TrendArrow.js +2 -7
- package/dist/packages/_es/Uploader.js +22 -24
- package/dist/packages/_es/Video.js +20 -7
- package/dist/packages/_es/Watermark.js +2 -7
- package/dist/packages/_es/{_plugin-vue_export-helper-6eba1fc2.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -5
- package/dist/packages/_es/{common-7e43c968.js → common-b9a5e726.js} +10 -7
- package/dist/packages/_es/{component-1a609d46.js → component-81a4c1d0.js} +0 -5
- package/dist/packages/_es/{index-84decee6.js → index-29892cda.js} +0 -5
- package/dist/packages/_es/{index-80fa48bb.js → index-43c34ac6.js} +0 -5
- package/dist/packages/_es/{index-0a179fe8.js → index-54d03fc1.js} +0 -5
- package/dist/packages/_es/{index-ea36cedc.js → index-79c5dc33.js} +0 -5
- package/dist/packages/_es/{index-0bea707c.js → index-7a7385e4.js} +0 -5
- package/dist/packages/_es/{index-db2c2975.js → index-af79da1a.js} +14 -9
- package/dist/packages/_es/{index-4ccf62e1.js → index-f3a722c9.js} +42 -10
- package/dist/packages/_es/{index.vue_vue_type_script_lang-20115c0e.js → index.vue_vue_type_script_lang-22dfc112.js} +2 -6
- package/dist/packages/_es/{index.vue_vue_type_script_lang-7c0c1b1c.js → index.vue_vue_type_script_lang-442e4704.js} +3 -7
- package/dist/packages/_es/{index.vue_vue_type_script_lang-2e585483.js → index.vue_vue_type_script_lang-cc5c4086.js} +2 -7
- package/dist/packages/_es/{interceptor-0a3b15e4.js → interceptor-956b24fc.js} +1 -6
- package/dist/packages/_es/{mountComponent-add1c908.js → mountComponent-1ece4110.js} +1 -6
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
- package/dist/packages/_es/{raf-7bf556c1.js → raf-729dad54.js} +0 -5
- package/dist/packages/_es/{renderIcon-ff803dcd.js → renderIcon-3d0fd47c.js} +0 -5
- package/dist/packages/actionsheet/index.mjs +3 -1
- package/dist/packages/actionsheet/style.mjs +3 -2
- package/dist/packages/address/index.mjs +3 -1
- package/dist/packages/address/style.mjs +4 -3
- package/dist/packages/addresslist/index.mjs +3 -1
- package/dist/packages/addresslist/index.scss +14 -3
- package/dist/packages/addresslist/style.mjs +3 -1
- package/dist/packages/animate/index.mjs +3 -1
- package/dist/packages/animate/style.mjs +1 -0
- package/dist/packages/audio/index.mjs +3 -1
- package/dist/packages/audio/index.scss +1 -1
- package/dist/packages/audio/style.mjs +2 -1
- package/dist/packages/audiooperate/index.mjs +3 -1
- package/dist/packages/audiooperate/style.mjs +2 -1
- package/dist/packages/avatar/index.mjs +3 -1
- package/dist/packages/avatar/index.scss +3 -1
- package/dist/packages/avatar/style.mjs +1 -0
- package/dist/packages/avatargroup/index.mjs +3 -1
- package/dist/packages/avatargroup/index.scss +1 -1
- package/dist/packages/avatargroup/style.mjs +1 -0
- package/dist/packages/backtop/index.mjs +3 -1
- package/dist/packages/backtop/style.mjs +1 -0
- package/dist/packages/badge/index.mjs +3 -1
- package/dist/packages/badge/index.scss +7 -3
- package/dist/packages/badge/style.mjs +1 -0
- package/dist/packages/barrage/index.mjs +3 -1
- package/dist/packages/barrage/index.scss +17 -1
- package/dist/packages/barrage/style.mjs +1 -0
- package/dist/packages/button/index.mjs +3 -1
- package/dist/packages/button/index.scss +63 -1
- package/dist/packages/button/style.mjs +1 -0
- package/dist/packages/calendar/index.mjs +3 -1
- package/dist/packages/calendar/index.scss +14 -5
- package/dist/packages/calendar/style.mjs +4 -3
- package/dist/packages/calendaritem/index.mjs +3 -1
- package/dist/packages/calendaritem/style.mjs +1 -0
- package/dist/packages/card/index.mjs +3 -1
- package/dist/packages/card/style.mjs +3 -2
- package/dist/packages/cascader/index.mjs +3 -1
- package/dist/packages/cascader/style.mjs +6 -5
- package/dist/packages/category/index.mjs +3 -1
- package/dist/packages/category/style.mjs +1 -0
- package/dist/packages/categorypane/index.mjs +3 -1
- package/dist/packages/categorypane/style.mjs +1 -0
- package/dist/packages/cell/index.mjs +3 -1
- package/dist/packages/cell/index.scss +5 -1
- package/dist/packages/cell/style.mjs +1 -0
- package/dist/packages/cellgroup/index.mjs +3 -1
- package/dist/packages/cellgroup/style.mjs +1 -0
- package/dist/packages/checkbox/index.mjs +3 -1
- package/dist/packages/checkbox/style.mjs +1 -0
- package/dist/packages/checkboxgroup/index.mjs +3 -1
- package/dist/packages/checkboxgroup/style.mjs +1 -0
- package/dist/packages/circleprogress/index.mjs +3 -1
- package/dist/packages/circleprogress/style.mjs +1 -0
- package/dist/packages/col/index.mjs +3 -1
- package/dist/packages/col/style.mjs +1 -0
- package/dist/packages/collapse/index.mjs +3 -1
- package/dist/packages/collapse/style.mjs +1 -0
- package/dist/packages/collapseitem/index.mjs +3 -1
- package/dist/packages/collapseitem/style.mjs +1 -0
- package/dist/packages/comment/index.mjs +3 -1
- package/dist/packages/comment/index.scss +12 -7
- package/dist/packages/comment/style.mjs +2 -1
- package/dist/packages/configprovider/index.mjs +3 -1
- package/dist/packages/configprovider/style.mjs +1 -0
- package/dist/packages/countdown/index.mjs +3 -1
- package/dist/packages/countdown/style.mjs +1 -0
- package/dist/packages/countup/index.mjs +3 -1
- package/dist/packages/countup/style.mjs +1 -0
- package/dist/packages/datepicker/index.mjs +3 -1
- package/dist/packages/datepicker/style.mjs +4 -3
- package/dist/packages/dialog/index.mjs +5 -2
- package/dist/packages/dialog/style.mjs +4 -3
- package/dist/packages/divider/index.mjs +3 -1
- package/dist/packages/divider/style.mjs +1 -0
- package/dist/packages/drag/index.mjs +3 -1
- package/dist/packages/drag/style.mjs +1 -0
- package/dist/packages/ecard/index.mjs +3 -1
- package/dist/packages/ecard/index.scss +4 -0
- package/dist/packages/ecard/style.mjs +2 -1
- package/dist/packages/elevator/index.mjs +3 -1
- package/dist/packages/elevator/index.scss +14 -0
- package/dist/packages/elevator/style.mjs +1 -0
- package/dist/packages/ellipsis/index.mjs +3 -1
- package/dist/packages/ellipsis/style.mjs +1 -0
- package/dist/packages/empty/index.mjs +3 -1
- package/dist/packages/empty/style.mjs +1 -0
- package/dist/packages/fixednav/index.mjs +3 -1
- package/dist/packages/fixednav/style.mjs +2 -1
- package/dist/packages/form/index.mjs +3 -1
- package/dist/packages/form/style.mjs +2 -1
- package/dist/packages/formitem/index.mjs +3 -1
- package/dist/packages/formitem/style.mjs +2 -1
- package/dist/packages/grid/index.mjs +3 -1
- package/dist/packages/grid/style.mjs +1 -0
- package/dist/packages/griditem/index.mjs +3 -1
- package/dist/packages/griditem/style.mjs +1 -0
- package/dist/packages/icon/style.mjs +1 -0
- package/dist/packages/image/index.mjs +3 -1
- package/dist/packages/image/style.mjs +1 -0
- package/dist/packages/imagepreview/index.mjs +5 -2
- package/dist/packages/imagepreview/style.mjs +6 -5
- package/dist/packages/indicator/index.mjs +3 -1
- package/dist/packages/indicator/index.scss +4 -4
- package/dist/packages/indicator/style.mjs +1 -0
- package/dist/packages/infiniteloading/index.mjs +3 -1
- package/dist/packages/infiniteloading/style.mjs +1 -0
- package/dist/packages/input/index.mjs +3 -1
- package/dist/packages/input/index.scss +6 -2
- package/dist/packages/input/style.mjs +1 -0
- package/dist/packages/inputnumber/index.mjs +3 -1
- package/dist/packages/inputnumber/index.scss +0 -2
- package/dist/packages/inputnumber/style.mjs +1 -0
- package/dist/packages/invoice/index.mjs +3 -1
- package/dist/packages/invoice/style.mjs +8 -7
- package/dist/packages/layout/index.mjs +3 -1
- package/dist/packages/layout/style.mjs +1 -0
- package/dist/packages/list/index.mjs +3 -1
- package/dist/packages/list/style.mjs +1 -0
- package/dist/packages/locale/lang/baseLang-0bdc6353.js +5 -0
- package/dist/packages/locale/lang/en-US.js +1 -6
- package/dist/packages/locale/lang/id-ID.js +1 -6
- package/dist/packages/locale/lang/index.js +1 -6
- package/dist/packages/locale/lang/zh-CN.js +2 -7
- package/dist/packages/locale/lang/zh-TW.js +1 -6
- package/dist/packages/menu/index.mjs +3 -1
- package/dist/packages/menu/style.mjs +1 -0
- package/dist/packages/menuitem/index.mjs +3 -1
- package/dist/packages/menuitem/style.mjs +3 -2
- package/dist/packages/navbar/index.mjs +3 -1
- package/dist/packages/navbar/style.mjs +1 -0
- package/dist/packages/noticebar/index.mjs +3 -1
- package/dist/packages/noticebar/index.scss +4 -1
- package/dist/packages/noticebar/style.mjs +1 -0
- package/dist/packages/notify/index.mjs +5 -2
- package/dist/packages/notify/style.mjs +3 -2
- package/dist/packages/numberkeyboard/index.mjs +3 -1
- package/dist/packages/numberkeyboard/index.scss +3 -0
- package/dist/packages/numberkeyboard/style.mjs +3 -2
- package/dist/packages/overlay/index.mjs +3 -1
- package/dist/packages/overlay/style.mjs +1 -0
- package/dist/packages/pagination/index.mjs +3 -1
- package/dist/packages/pagination/style.mjs +1 -0
- package/dist/packages/picker/index.mjs +3 -1
- package/dist/packages/picker/style.mjs +3 -2
- package/dist/packages/popover/index.mjs +3 -1
- package/dist/packages/popover/index.scss +1 -1
- package/dist/packages/popover/style.mjs +3 -2
- package/dist/packages/popup/index.mjs +3 -1
- package/dist/packages/popup/style.mjs +2 -1
- package/dist/packages/price/index.mjs +3 -1
- package/dist/packages/price/style.mjs +1 -0
- package/dist/packages/progress/index.mjs +3 -1
- package/dist/packages/progress/index.scss +8 -6
- package/dist/packages/progress/style.mjs +1 -0
- package/dist/packages/pullrefresh/index.mjs +3 -1
- package/dist/packages/pullrefresh/index.scss +4 -3
- package/dist/packages/pullrefresh/style.mjs +1 -0
- package/dist/packages/radio/index.mjs +3 -1
- package/dist/packages/radio/index.scss +14 -2
- package/dist/packages/radio/style.mjs +1 -0
- package/dist/packages/radiogroup/index.mjs +3 -1
- package/dist/packages/radiogroup/style.mjs +1 -0
- package/dist/packages/range/index.mjs +3 -1
- package/dist/packages/range/index.scss +6 -3
- package/dist/packages/range/style.mjs +1 -0
- package/dist/packages/rate/index.mjs +3 -1
- package/dist/packages/rate/index.scss +4 -4
- package/dist/packages/rate/style.mjs +1 -0
- package/dist/packages/row/index.mjs +3 -1
- package/dist/packages/row/style.mjs +1 -0
- package/dist/packages/searchbar/index.mjs +3 -1
- package/dist/packages/searchbar/index.scss +4 -8
- package/dist/packages/searchbar/style.mjs +1 -0
- package/dist/packages/shortpassword/index.mjs +3 -1
- package/dist/packages/shortpassword/style.mjs +3 -2
- package/dist/packages/sidenavbar/index.mjs +3 -1
- package/dist/packages/sidenavbar/style.mjs +1 -0
- package/dist/packages/sidenavbaritem/index.mjs +3 -1
- package/dist/packages/sidenavbaritem/style.mjs +1 -0
- package/dist/packages/signature/index.mjs +3 -1
- package/dist/packages/signature/index.scss +2 -2
- package/dist/packages/signature/style.mjs +2 -1
- package/dist/packages/skeleton/index.mjs +3 -1
- package/dist/packages/skeleton/style.mjs +2 -1
- package/dist/packages/sku/index.mjs +3 -1
- package/dist/packages/sku/index.scss +16 -2
- package/dist/packages/sku/style.mjs +5 -4
- package/dist/packages/step/index.mjs +3 -1
- package/dist/packages/step/index.scss +1 -9
- package/dist/packages/step/style.mjs +1 -0
- package/dist/packages/steps/index.mjs +3 -1
- package/dist/packages/steps/style.mjs +1 -0
- package/dist/packages/sticky/index.mjs +3 -1
- package/dist/packages/sticky/index.scss +2 -0
- package/dist/packages/sticky/style.mjs +1 -0
- package/dist/packages/subsidenavbar/index.mjs +3 -1
- package/dist/packages/subsidenavbar/style.mjs +1 -0
- package/dist/packages/swipe/index.mjs +3 -1
- package/dist/packages/swipe/style.mjs +1 -0
- package/dist/packages/swiper/index.mjs +3 -1
- package/dist/packages/swiper/style.mjs +1 -0
- package/dist/packages/swiperitem/index.mjs +3 -1
- package/dist/packages/swiperitem/style.mjs +1 -0
- package/dist/packages/switch/index.mjs +3 -1
- package/dist/packages/switch/index.scss +7 -0
- package/dist/packages/switch/style.mjs +1 -0
- package/dist/packages/tabbar/index.mjs +3 -1
- package/dist/packages/tabbar/style.mjs +1 -0
- package/dist/packages/tabbaritem/index.mjs +3 -1
- package/dist/packages/tabbaritem/index.scss +4 -0
- package/dist/packages/tabbaritem/style.mjs +2 -1
- package/dist/packages/table/index.mjs +3 -1
- package/dist/packages/table/style.mjs +1 -0
- package/dist/packages/tabpane/index.mjs +3 -1
- package/dist/packages/tabpane/style.mjs +1 -0
- package/dist/packages/tabs/index.mjs +3 -1
- package/dist/packages/tabs/style.mjs +2 -1
- package/dist/packages/tag/index.mjs +3 -1
- package/dist/packages/tag/style.mjs +1 -0
- package/dist/packages/textarea/index.mjs +3 -1
- package/dist/packages/textarea/index.scss +7 -1
- package/dist/packages/textarea/style.mjs +1 -0
- package/dist/packages/timedetail/index.mjs +3 -1
- package/dist/packages/timedetail/index.scss +14 -6
- package/dist/packages/timedetail/style.mjs +1 -0
- package/dist/packages/timepannel/index.mjs +3 -1
- package/dist/packages/timepannel/style.mjs +1 -0
- package/dist/packages/timeselect/index.mjs +3 -1
- package/dist/packages/timeselect/style.mjs +3 -2
- package/dist/packages/toast/index.mjs +5 -2
- package/dist/packages/toast/style.mjs +1 -0
- package/dist/packages/tour/index.mjs +3 -1
- package/dist/packages/tour/style.mjs +4 -3
- package/dist/packages/trendarrow/index.mjs +3 -1
- package/dist/packages/trendarrow/style.mjs +1 -0
- package/dist/packages/uploader/index.mjs +3 -1
- package/dist/packages/uploader/index.scss +19 -14
- package/dist/packages/uploader/style.mjs +3 -2
- package/dist/packages/video/index.mjs +3 -1
- package/dist/packages/video/style.mjs +1 -0
- package/dist/packages/watermark/index.mjs +3 -1
- package/dist/packages/watermark/style.mjs +1 -0
- package/dist/smartips/web-types.json +731 -812
- package/dist/style.css +1 -19
- package/dist/style.js +4 -0
- package/dist/styles/reset.css +3 -0
- package/dist/styles/themes/default.scss +54 -55
- package/dist/styles/themes/jdb.scss +54 -55
- package/dist/styles/themes/jddkh.scss +54 -55
- package/dist/styles/themes/jdt.scss +54 -55
- package/dist/styles/variables-jdb.scss +5 -10
- package/dist/styles/variables-jddkh.scss +5 -9
- package/dist/styles/variables-jdt.scss +6 -10
- package/dist/styles/variables.scss +14 -21
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +18 -9
- package/dist/types/__VUE/address/index.vue.d.ts +18 -0
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +23 -7
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +2 -2
- package/dist/types/__VUE/addresslist/index.vue.d.ts +6 -6
- package/dist/types/__VUE/barrage/index.vue.d.ts +2 -5
- package/dist/types/__VUE/card/index.vue.d.ts +0 -21
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +18 -0
- package/dist/types/__VUE/cascader/types.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +5 -5
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +2 -2
- package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
- package/dist/types/__VUE/configprovider/index.vue.d.ts +3 -2
- package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.d.ts +9 -9
- package/dist/types/__VUE/dialog/index.vue.d.ts +18 -0
- package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +1 -1
- package/dist/types/__VUE/icon/index.vue.d.ts +1 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +12 -12
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -9
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -18
- package/dist/types/__VUE/input/index.vue.d.ts +7 -40
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -12
- package/dist/types/__VUE/notify/index.d.ts +3 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -10
- package/dist/types/__VUE/popup/common.d.ts +8 -0
- package/dist/types/__VUE/popup/index.vue.d.ts +18 -0
- package/dist/types/__VUE/popup/props.d.ts +8 -0
- package/dist/types/__VUE/progress/index.vue.d.ts +1 -0
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -9
- package/dist/types/__VUE/rate/index.vue.d.ts +16 -10
- package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/skeleton/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +18 -0
- package/dist/types/__VUE/steps/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiper/index.vue.d.ts +9 -17
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +0 -1
- package/dist/types/__VUE/table/common.d.ts +9 -9
- package/dist/types/__VUE/table/index.vue.d.ts +13 -11
- package/dist/types/__VUE/table/renderColumn.d.ts +9 -9
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timedetail/index.vue.d.ts +0 -9
- package/dist/types/__VUE/toast/index.d.ts +3 -3
- package/dist/types/__VUE/tour/index.vue.d.ts +10 -10
- package/dist/types/index.d.ts +10 -7
- package/package.json +13 -133
- package/dist/nutui.umd.cjs +0 -20061
- package/dist/packages/_es/Icon.js +0 -12
- package/dist/packages/_es/index.vue_vue_type_script_lang-b8ddf362.js +0 -12
- package/dist/packages/_es/pxCheck-9763aaae.js +0 -11
- package/dist/packages/_es/style.css +0 -16
- package/dist/packages/actionsheet/style.cjs +0 -3
- package/dist/packages/address/style.cjs +0 -4
- package/dist/packages/addresslist/style.cjs +0 -2
- package/dist/packages/animate/style.cjs +0 -1
- package/dist/packages/audio/style.cjs +0 -2
- package/dist/packages/audiooperate/style.cjs +0 -2
- package/dist/packages/avatar/style.cjs +0 -1
- package/dist/packages/avatargroup/style.cjs +0 -1
- package/dist/packages/backtop/style.cjs +0 -1
- package/dist/packages/badge/style.cjs +0 -1
- package/dist/packages/barrage/style.cjs +0 -1
- package/dist/packages/button/style.cjs +0 -1
- package/dist/packages/calendar/style.cjs +0 -4
- package/dist/packages/calendaritem/style.cjs +0 -1
- package/dist/packages/card/style.cjs +0 -3
- package/dist/packages/cascader/style.cjs +0 -6
- package/dist/packages/category/style.cjs +0 -1
- package/dist/packages/categorypane/style.cjs +0 -1
- package/dist/packages/cell/style.cjs +0 -1
- package/dist/packages/cellgroup/style.cjs +0 -1
- package/dist/packages/checkbox/style.cjs +0 -1
- package/dist/packages/checkboxgroup/style.cjs +0 -1
- package/dist/packages/circleprogress/style.cjs +0 -1
- package/dist/packages/col/style.cjs +0 -1
- package/dist/packages/collapse/style.cjs +0 -1
- package/dist/packages/collapseitem/style.cjs +0 -1
- package/dist/packages/comment/style.cjs +0 -2
- package/dist/packages/configprovider/style.cjs +0 -1
- package/dist/packages/countdown/style.cjs +0 -1
- package/dist/packages/countup/style.cjs +0 -1
- package/dist/packages/datepicker/style.cjs +0 -4
- package/dist/packages/dialog/style.cjs +0 -4
- package/dist/packages/divider/style.cjs +0 -1
- package/dist/packages/drag/style.cjs +0 -1
- package/dist/packages/ecard/style.cjs +0 -2
- package/dist/packages/elevator/style.cjs +0 -1
- package/dist/packages/ellipsis/style.cjs +0 -1
- package/dist/packages/empty/style.cjs +0 -1
- package/dist/packages/fixednav/style.cjs +0 -2
- package/dist/packages/form/style.cjs +0 -2
- package/dist/packages/formitem/style.cjs +0 -2
- package/dist/packages/grid/style.cjs +0 -1
- package/dist/packages/griditem/style.cjs +0 -1
- package/dist/packages/icon/index.mjs +0 -2
- package/dist/packages/icon/style.cjs +0 -1
- package/dist/packages/image/style.cjs +0 -1
- package/dist/packages/imagepreview/style.cjs +0 -6
- package/dist/packages/indicator/style.cjs +0 -1
- package/dist/packages/infiniteloading/style.cjs +0 -1
- package/dist/packages/input/style.cjs +0 -1
- package/dist/packages/inputnumber/style.cjs +0 -1
- package/dist/packages/invoice/style.cjs +0 -8
- package/dist/packages/layout/style.cjs +0 -1
- package/dist/packages/list/style.cjs +0 -1
- package/dist/packages/locale/lang/baseLang-d7024f23.js +0 -10
- package/dist/packages/menu/style.cjs +0 -1
- package/dist/packages/menuitem/style.cjs +0 -3
- package/dist/packages/navbar/style.cjs +0 -1
- package/dist/packages/noticebar/style.cjs +0 -1
- package/dist/packages/notify/style.cjs +0 -3
- package/dist/packages/numberkeyboard/style.cjs +0 -3
- package/dist/packages/overlay/style.cjs +0 -1
- package/dist/packages/pagination/style.cjs +0 -1
- package/dist/packages/picker/style.cjs +0 -3
- package/dist/packages/popover/style.cjs +0 -3
- package/dist/packages/popup/style.cjs +0 -2
- package/dist/packages/price/style.cjs +0 -1
- package/dist/packages/progress/style.cjs +0 -1
- package/dist/packages/pullrefresh/style.cjs +0 -1
- package/dist/packages/radio/style.cjs +0 -1
- package/dist/packages/radiogroup/style.cjs +0 -1
- package/dist/packages/range/style.cjs +0 -1
- package/dist/packages/rate/style.cjs +0 -1
- package/dist/packages/row/style.cjs +0 -1
- package/dist/packages/searchbar/style.cjs +0 -1
- package/dist/packages/shortpassword/style.cjs +0 -3
- package/dist/packages/sidenavbar/style.cjs +0 -1
- package/dist/packages/sidenavbaritem/style.cjs +0 -1
- package/dist/packages/signature/style.cjs +0 -2
- package/dist/packages/skeleton/style.cjs +0 -2
- package/dist/packages/sku/style.cjs +0 -5
- package/dist/packages/step/style.cjs +0 -1
- package/dist/packages/steps/style.cjs +0 -1
- package/dist/packages/sticky/style.cjs +0 -1
- package/dist/packages/subsidenavbar/style.cjs +0 -1
- package/dist/packages/swipe/style.cjs +0 -1
- package/dist/packages/swiper/style.cjs +0 -1
- package/dist/packages/swiperitem/style.cjs +0 -1
- package/dist/packages/switch/style.cjs +0 -1
- package/dist/packages/tabbar/style.cjs +0 -1
- package/dist/packages/tabbaritem/style.cjs +0 -2
- package/dist/packages/table/style.cjs +0 -1
- package/dist/packages/tabpane/style.cjs +0 -1
- package/dist/packages/tabs/style.cjs +0 -2
- package/dist/packages/tag/style.cjs +0 -1
- package/dist/packages/textarea/style.cjs +0 -1
- package/dist/packages/timedetail/style.cjs +0 -1
- package/dist/packages/timepannel/style.cjs +0 -1
- package/dist/packages/timeselect/style.cjs +0 -3
- package/dist/packages/toast/style.cjs +0 -1
- package/dist/packages/tour/style.cjs +0 -4
- package/dist/packages/trendarrow/style.cjs +0 -1
- package/dist/packages/uploader/style.cjs +0 -3
- package/dist/packages/video/style.cjs +0 -1
- package/dist/packages/watermark/style.cjs +0 -1
- package/dist/smartips/attributes.json +0 -2810
- package/dist/smartips/tags.json +0 -1047
- package/dist/styles/theme-deafult.scss +0 -920
- package/dist/styles/theme-jdt.scss +0 -898
- package/dist/styles/variables-var.scss +0 -854
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
- package/dist/types/__VUE/configprovider/common.d.ts +0 -20
- package/dist/types/__VUE/swiper/use-touch.d.ts +0 -16
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, computed, watch, onMounted, getCurrentInstance, provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
9
4
|
import "../locale/lang";
|
|
10
5
|
const { create, componentName } = createComponent("collapse");
|
|
11
6
|
const _sfc_main = create({
|
|
12
7
|
props: {
|
|
13
|
-
|
|
8
|
+
modelValue: {
|
|
14
9
|
type: [String, Number, Array],
|
|
15
10
|
default: () => []
|
|
16
11
|
},
|
|
@@ -19,7 +14,7 @@ const _sfc_main = create({
|
|
|
19
14
|
default: false
|
|
20
15
|
}
|
|
21
16
|
},
|
|
22
|
-
emits: ["update:
|
|
17
|
+
emits: ["update:modelValue", "change"],
|
|
23
18
|
setup(props, { emit }) {
|
|
24
19
|
const collapseDom = ref(null);
|
|
25
20
|
const collapseChldren = ref([]);
|
|
@@ -30,7 +25,7 @@ const _sfc_main = create({
|
|
|
30
25
|
};
|
|
31
26
|
});
|
|
32
27
|
watch(
|
|
33
|
-
() => props.
|
|
28
|
+
() => props.modelValue,
|
|
34
29
|
(newval) => {
|
|
35
30
|
let doms = collapseChldren.value;
|
|
36
31
|
Array.from(doms).forEach((item) => {
|
|
@@ -48,11 +43,11 @@ const _sfc_main = create({
|
|
|
48
43
|
collapseChldren.value = getCurrentInstance().provides.collapseParent.children || [];
|
|
49
44
|
});
|
|
50
45
|
const changeVal = (val) => {
|
|
51
|
-
emit("update:
|
|
46
|
+
emit("update:modelValue", val);
|
|
52
47
|
emit("change", val);
|
|
53
48
|
};
|
|
54
49
|
const changeValAry = (name) => {
|
|
55
|
-
const activeItem = props.
|
|
50
|
+
const activeItem = props.modelValue instanceof Object ? Object.values(props.modelValue) : props.modelValue;
|
|
56
51
|
let index2 = -1;
|
|
57
52
|
activeItem.forEach((item, idx) => {
|
|
58
53
|
if (String(item) == String(name)) {
|
|
@@ -63,9 +58,9 @@ const _sfc_main = create({
|
|
|
63
58
|
changeVal(activeItem);
|
|
64
59
|
};
|
|
65
60
|
const isExpanded = (name) => {
|
|
66
|
-
const { accordion,
|
|
61
|
+
const { accordion, modelValue } = props;
|
|
67
62
|
if (accordion) {
|
|
68
|
-
return typeof
|
|
63
|
+
return typeof modelValue === "number" || typeof modelValue === "string" ? modelValue == name : false;
|
|
69
64
|
}
|
|
70
65
|
};
|
|
71
66
|
provide("collapseParent", {
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, toRefs, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, toDisplayString, createCommentVNode, normalizeStyle, createBlock, resolveDynamicComponent } from "vue";
|
|
7
2
|
import { DownArrow } from "@nutui/icons-vue";
|
|
8
|
-
import { c as createComponent } from "./component-
|
|
9
|
-
import { r as renderIcon } from "./renderIcon-
|
|
10
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
3
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
4
|
+
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
5
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
11
6
|
import "../locale/lang";
|
|
12
7
|
const { create, componentName } = createComponent("collapse-item");
|
|
13
8
|
const _sfc_main = create({
|
|
@@ -49,6 +44,7 @@ const _sfc_main = create({
|
|
|
49
44
|
default: 180
|
|
50
45
|
}
|
|
51
46
|
},
|
|
47
|
+
// components: { DownArrow },
|
|
52
48
|
setup(props, ctx) {
|
|
53
49
|
const collapse = inject("collapseParent");
|
|
54
50
|
const parent = reactive(collapse);
|
|
@@ -103,7 +99,7 @@ const _sfc_main = create({
|
|
|
103
99
|
const toggleOpen = () => {
|
|
104
100
|
if (parent.props.accordion) {
|
|
105
101
|
nextTick(() => {
|
|
106
|
-
if (currentName.value == parent.props.
|
|
102
|
+
if (currentName.value == parent.props.modelValue) {
|
|
107
103
|
open();
|
|
108
104
|
} else {
|
|
109
105
|
parent.changeVal(currentName.value);
|
|
@@ -130,7 +126,7 @@ const _sfc_main = create({
|
|
|
130
126
|
});
|
|
131
127
|
const init = () => {
|
|
132
128
|
const { name } = props;
|
|
133
|
-
const active = parent && parent.props.
|
|
129
|
+
const active = parent && parent.props.modelValue;
|
|
134
130
|
nextTick(() => {
|
|
135
131
|
if (typeof active == "number" || typeof active == "string") {
|
|
136
132
|
if (name == active) {
|
|
@@ -210,7 +206,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
210
206
|
}, [
|
|
211
207
|
createElementVNode("view", _hoisted_1, [
|
|
212
208
|
createElementVNode("view", _hoisted_2, [
|
|
213
|
-
_ctx.$slots.
|
|
209
|
+
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : (openBlock(), createElementBlock("view", {
|
|
214
210
|
key: 1,
|
|
215
211
|
innerHTML: _ctx.title,
|
|
216
212
|
class: "nut-collapse-item__title-mtitle"
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, createBlock, computed, withCtx, normalizeStyle, createTextVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { Right, Fabulous, Comment, MoreX
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { Right, Fabulous, Comment, MoreX } from "@nutui/icons-vue";
|
|
9
4
|
import Rate from "./Rate.js";
|
|
10
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
5
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
11
6
|
import "../locale/lang";
|
|
12
|
-
import "./renderIcon-
|
|
13
|
-
import "./pxCheck-
|
|
14
|
-
import "./index-
|
|
7
|
+
import "./renderIcon-3d0fd47c.js";
|
|
8
|
+
import "./pxCheck-c6b9f6b7.js";
|
|
9
|
+
import "./index-7a7385e4.js";
|
|
15
10
|
const { componentName: componentName$3, create: create$3 } = createComponent("comment-header");
|
|
16
11
|
const _sfc_main$3 = create$3({
|
|
12
|
+
components: {
|
|
13
|
+
[Rate.name]: Rate
|
|
14
|
+
},
|
|
17
15
|
props: {
|
|
18
16
|
type: {
|
|
19
17
|
type: String,
|
|
20
18
|
default: "default"
|
|
19
|
+
// default,complex
|
|
21
20
|
},
|
|
22
21
|
info: {
|
|
23
22
|
type: Object,
|
|
@@ -74,7 +73,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74
73
|
createVNode(_component_nut_rate, {
|
|
75
74
|
modelValue: _ctx.info.score,
|
|
76
75
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.info.score = $event),
|
|
77
|
-
|
|
76
|
+
size: "12",
|
|
78
77
|
spacing: "5",
|
|
79
78
|
readonly: "",
|
|
80
79
|
onChange: _ctx.handleClick
|
|
@@ -99,7 +98,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
99
98
|
createVNode(_component_nut_rate, {
|
|
100
99
|
modelValue: _ctx.info.score,
|
|
101
100
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.info.score = $event),
|
|
102
|
-
|
|
101
|
+
size: "12",
|
|
103
102
|
spacing: "3",
|
|
104
103
|
readonly: ""
|
|
105
104
|
}, null, 8, ["modelValue"]),
|
|
@@ -119,6 +118,7 @@ const _sfc_main$2 = create$2({
|
|
|
119
118
|
type: {
|
|
120
119
|
type: String,
|
|
121
120
|
default: "one"
|
|
121
|
+
// one multi
|
|
122
122
|
},
|
|
123
123
|
videos: {
|
|
124
124
|
type: Array,
|
|
@@ -221,11 +221,11 @@ const _sfc_main$1 = create$1({
|
|
|
221
221
|
type: {
|
|
222
222
|
type: String,
|
|
223
223
|
default: "base"
|
|
224
|
+
// simple,base,complex
|
|
224
225
|
},
|
|
225
226
|
info: {
|
|
226
227
|
type: Object,
|
|
227
|
-
default: () => {
|
|
228
|
-
}
|
|
228
|
+
default: () => ({})
|
|
229
229
|
},
|
|
230
230
|
operation: {
|
|
231
231
|
type: Array,
|
|
@@ -305,10 +305,12 @@ const _sfc_main = create({
|
|
|
305
305
|
headerType: {
|
|
306
306
|
type: String,
|
|
307
307
|
default: "default"
|
|
308
|
+
//头部展示风格 default,complex
|
|
308
309
|
},
|
|
309
310
|
imagesRows: {
|
|
310
311
|
type: String,
|
|
311
312
|
default: "one"
|
|
313
|
+
// 'one' 'multi'
|
|
312
314
|
},
|
|
313
315
|
ellipsis: {
|
|
314
316
|
type: [String, Number, Boolean],
|
|
@@ -324,13 +326,11 @@ const _sfc_main = create({
|
|
|
324
326
|
},
|
|
325
327
|
info: {
|
|
326
328
|
type: Object,
|
|
327
|
-
default: () => {
|
|
328
|
-
}
|
|
329
|
+
default: () => ({})
|
|
329
330
|
},
|
|
330
331
|
follow: {
|
|
331
332
|
type: Object,
|
|
332
|
-
default: () => {
|
|
333
|
-
}
|
|
333
|
+
default: () => ({})
|
|
334
334
|
},
|
|
335
335
|
labels: {
|
|
336
336
|
type: Function,
|
|
@@ -342,12 +342,10 @@ const _sfc_main = create({
|
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
344
|
components: {
|
|
345
|
-
[Rate.name]: Rate,
|
|
346
345
|
CommentHeader,
|
|
347
346
|
CommentImages,
|
|
348
347
|
CommentBottom,
|
|
349
|
-
Right
|
|
350
|
-
JoySmile
|
|
348
|
+
Right
|
|
351
349
|
},
|
|
352
350
|
emits: ["click", "clickImages", "clickOperate"],
|
|
353
351
|
setup(props, { emit }) {
|
|
@@ -406,7 +404,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
406
404
|
class: "nut-comment__main",
|
|
407
405
|
style: normalizeStyle(`-webkit-line-clamp:${_ctx.conEllipsis}`),
|
|
408
406
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
409
|
-
innerHTML: _ctx.info.content
|
|
407
|
+
innerHTML: _ctx.info.content
|
|
410
408
|
}, null, 12, _hoisted_1),
|
|
411
409
|
createVNode(_component_comment_images, {
|
|
412
410
|
images: _ctx.images,
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
import { c as createComponent } from "./component-1a609d46.js";
|
|
1
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
7
2
|
import { h } from "vue";
|
|
8
3
|
import "../locale/lang";
|
|
9
|
-
const
|
|
4
|
+
const { componentName, create } = createComponent("config-provider");
|
|
5
|
+
const _sfc_main = create({
|
|
10
6
|
props: {
|
|
11
7
|
theme: { type: String, default: "" },
|
|
12
8
|
themeVars: { type: Object, default: () => {
|
|
@@ -18,16 +14,49 @@ const component = {
|
|
|
18
14
|
str = str.replace(str.charAt(0), str.charAt(0).toLocaleLowerCase());
|
|
19
15
|
return str.replace(/([a-z])([A-Z])/g, (_, p1, p2) => p1 + "-" + p2.toLowerCase());
|
|
20
16
|
};
|
|
17
|
+
const colorRgb = (str) => {
|
|
18
|
+
if (!str)
|
|
19
|
+
return;
|
|
20
|
+
var sColor = str.toLowerCase();
|
|
21
|
+
var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
22
|
+
if (sColor && reg.test(sColor)) {
|
|
23
|
+
if (sColor.length === 4) {
|
|
24
|
+
var sColorNew = "#";
|
|
25
|
+
for (var i = 1; i < 4; i += 1) {
|
|
26
|
+
sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
|
|
27
|
+
}
|
|
28
|
+
sColor = sColorNew;
|
|
29
|
+
}
|
|
30
|
+
var sColorChange = [];
|
|
31
|
+
for (var i = 1; i < 7; i += 2) {
|
|
32
|
+
sColorChange.push(parseInt("0x" + sColor.slice(i, i + 2)));
|
|
33
|
+
}
|
|
34
|
+
return sColorChange.join(",");
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
};
|
|
21
38
|
const mapThemeVarsToCSSVars = (themeVars) => {
|
|
39
|
+
var _a;
|
|
22
40
|
if (!themeVars)
|
|
23
41
|
return;
|
|
24
42
|
const cssVars = {};
|
|
43
|
+
const primaryColor = (_a = props == null ? void 0 : props.themeVars) == null ? void 0 : _a.primaryColor;
|
|
44
|
+
if (primaryColor) {
|
|
45
|
+
cssVars[`--nut-address-region-tab-line`] = `linear-gradient(90deg, ${primaryColor} 0%, rgba(${colorRgb(
|
|
46
|
+
primaryColor
|
|
47
|
+
)},0.15) 100%) `;
|
|
48
|
+
cssVars[`--nut-tabs-horizontal-tab-line-color`] = `linear-gradient(90deg, ${primaryColor} 0%, rgba(${colorRgb(
|
|
49
|
+
primaryColor
|
|
50
|
+
)},0.15)100%)`;
|
|
51
|
+
cssVars[`--nut-tabs-vertical-tab-line-color`] = `linear-gradient(180deg, ${primaryColor} 0%, rgba(${colorRgb(
|
|
52
|
+
primaryColor
|
|
53
|
+
)},0.15) 100%) `;
|
|
54
|
+
}
|
|
25
55
|
Object.keys(themeVars).forEach((key) => {
|
|
26
56
|
cssVars[`--nut-${kebabCase(key)}`] = themeVars[key];
|
|
27
57
|
});
|
|
28
58
|
return cssVars;
|
|
29
59
|
};
|
|
30
|
-
console.log(mapThemeVarsToCSSVars(props.themeVars));
|
|
31
60
|
return () => {
|
|
32
61
|
var _a;
|
|
33
62
|
return h(
|
|
@@ -40,9 +69,7 @@ const component = {
|
|
|
40
69
|
);
|
|
41
70
|
};
|
|
42
71
|
}
|
|
43
|
-
};
|
|
44
|
-
const { componentName, create } = createComponent("config-provider");
|
|
45
|
-
const _sfc_main = create(component);
|
|
72
|
+
});
|
|
46
73
|
export {
|
|
47
74
|
_sfc_main as default
|
|
48
75
|
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { reactive, computed, onBeforeMount, watch, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
|
-
import { p as padZero, c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { p as padZero, 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 getTimeStamp = (timeStr) => {
|
|
11
6
|
if (!timeStr)
|
|
@@ -28,6 +23,7 @@ const _sfc_main = create({
|
|
|
28
23
|
type: Boolean
|
|
29
24
|
},
|
|
30
25
|
startTime: {
|
|
26
|
+
// 可以是服务器当前时间
|
|
31
27
|
type: [Number, String],
|
|
32
28
|
validator(v) {
|
|
33
29
|
const dateStr = new Date(v).toString().toLowerCase();
|
|
@@ -41,10 +37,12 @@ const _sfc_main = create({
|
|
|
41
37
|
return dateStr !== "invalid date";
|
|
42
38
|
}
|
|
43
39
|
},
|
|
40
|
+
// 是否开启毫秒
|
|
44
41
|
millisecond: {
|
|
45
42
|
default: false,
|
|
46
43
|
type: Boolean
|
|
47
44
|
},
|
|
45
|
+
// 时间格式化
|
|
48
46
|
format: {
|
|
49
47
|
type: String,
|
|
50
48
|
default: "HH:mm:ss"
|
|
@@ -53,6 +51,7 @@ const _sfc_main = create({
|
|
|
53
51
|
type: Boolean,
|
|
54
52
|
default: true
|
|
55
53
|
},
|
|
54
|
+
// 倒计时时长,单位毫秒
|
|
56
55
|
time: {
|
|
57
56
|
type: [Number, String],
|
|
58
57
|
default: 0
|
|
@@ -62,10 +61,14 @@ const _sfc_main = create({
|
|
|
62
61
|
setup(props, { emit, slots }) {
|
|
63
62
|
const state = reactive({
|
|
64
63
|
restTime: 0,
|
|
64
|
+
// 倒计时剩余时间时间
|
|
65
65
|
timer: null,
|
|
66
66
|
counting: !props.paused && props.autoStart,
|
|
67
|
+
// 是否处于倒计时中
|
|
67
68
|
handleEndTime: Date.now(),
|
|
69
|
+
// 最终截止时间
|
|
68
70
|
diffTime: 0
|
|
71
|
+
// 设置了 startTime 时,与 date.now() 的差异
|
|
69
72
|
});
|
|
70
73
|
const classes = computed(() => {
|
|
71
74
|
const prefixCls = componentName;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { getCurrentInstance, ref, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } 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 useExtend(apis) {
|
|
11
6
|
const instance = getCurrentInstance();
|
|
@@ -40,6 +35,7 @@ const _sfc_main = create({
|
|
|
40
35
|
type: Boolean,
|
|
41
36
|
default: true
|
|
42
37
|
},
|
|
38
|
+
// 数字滚动
|
|
43
39
|
numWidth: {
|
|
44
40
|
type: Number,
|
|
45
41
|
default: 20
|
|
@@ -52,6 +48,7 @@ const _sfc_main = create({
|
|
|
52
48
|
type: Boolean,
|
|
53
49
|
default: false
|
|
54
50
|
},
|
|
51
|
+
// 自定义图片
|
|
55
52
|
customBgImg: {
|
|
56
53
|
type: String,
|
|
57
54
|
default: ""
|
|
@@ -64,6 +61,7 @@ const _sfc_main = create({
|
|
|
64
61
|
type: Number,
|
|
65
62
|
default: 1
|
|
66
63
|
},
|
|
64
|
+
// 抽奖
|
|
67
65
|
type: {
|
|
68
66
|
type: String,
|
|
69
67
|
default: ""
|
|
@@ -105,14 +103,20 @@ const _sfc_main = create({
|
|
|
105
103
|
to10_0: [0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1],
|
|
106
104
|
timer: null,
|
|
107
105
|
totalCount: 0,
|
|
106
|
+
//正整数
|
|
108
107
|
pointNum: 0,
|
|
108
|
+
//小数位
|
|
109
109
|
numberVal: 0,
|
|
110
|
+
//数字
|
|
110
111
|
num_total_len: 0,
|
|
112
|
+
//数字长度
|
|
111
113
|
relNum: 0,
|
|
114
|
+
//去除小数点
|
|
112
115
|
customNumber: 1,
|
|
113
116
|
prizeLevelTrun: 0,
|
|
114
117
|
prizeY: [],
|
|
115
118
|
prizeYPrev: [],
|
|
119
|
+
// machineTransition: 'none',
|
|
116
120
|
finshMachine: 0,
|
|
117
121
|
notPrize: [],
|
|
118
122
|
typeMachine: ""
|
|
@@ -343,11 +347,7 @@ const _sfc_main = create({
|
|
|
343
347
|
timeOut && clearTimeout(timeOut);
|
|
344
348
|
el.style.transition = "none";
|
|
345
349
|
el.style.top = "0";
|
|
346
|
-
|
|
347
|
-
if (el.previousSibling) {
|
|
348
|
-
runStep(el.previousSibling);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
350
|
+
reset(el, turningNum);
|
|
351
351
|
}, 0.975 * props.during);
|
|
352
352
|
} else {
|
|
353
353
|
el.style.top = `-${data.sortFlag == "add" ? turningNum * 100 : (10 - turningNum) * 100}%`;
|
|
@@ -356,6 +356,15 @@ const _sfc_main = create({
|
|
|
356
356
|
runStep(el.previousSibling);
|
|
357
357
|
}
|
|
358
358
|
};
|
|
359
|
+
const reset = (el, turningNum) => {
|
|
360
|
+
setTimeout(() => {
|
|
361
|
+
if (turningNum == 10) {
|
|
362
|
+
if (el.previousSibling) {
|
|
363
|
+
runStep(el.previousSibling);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}, 200);
|
|
367
|
+
};
|
|
359
368
|
const imgNumberScroll = () => {
|
|
360
369
|
if (data.pointNum != 0) {
|
|
361
370
|
Math.pow(10, data.pointNum);
|
|
@@ -395,6 +404,7 @@ const _sfc_main = create({
|
|
|
395
404
|
}
|
|
396
405
|
scrollTime(
|
|
397
406
|
i,
|
|
407
|
+
// parseFloat((this.machinePrizeNum-(this.prizeLevelTrun-1))*this.numHeight + turn + local),
|
|
398
408
|
newLocation,
|
|
399
409
|
local
|
|
400
410
|
);
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { reactive, computed, onBeforeMount, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from "vue";
|
|
7
2
|
import Picker from "./Picker.js";
|
|
8
|
-
import { c as createComponent, a as isDate$1, p as padZero } from "./component-
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
10
|
-
import "./pxCheck-
|
|
11
|
-
import "./index-
|
|
3
|
+
import { c as createComponent, a as isDate$1, p as padZero } from "./component-81a4c1d0.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
|
+
import "./pxCheck-c6b9f6b7.js";
|
|
6
|
+
import "./index-7a7385e4.js";
|
|
12
7
|
import "../locale/lang";
|
|
13
8
|
const { componentName, create, translate } = createComponent("date-picker");
|
|
14
9
|
const currentYear = new Date().getFullYear();
|
|
@@ -67,10 +62,12 @@ const _sfc_main = create({
|
|
|
67
62
|
type: Function,
|
|
68
63
|
default: null
|
|
69
64
|
},
|
|
65
|
+
// 是否开启3D效果
|
|
70
66
|
threeDimensional: {
|
|
71
67
|
type: Boolean,
|
|
72
68
|
default: true
|
|
73
69
|
},
|
|
70
|
+
// 惯性滚动 时长
|
|
74
71
|
swipeDuration: {
|
|
75
72
|
type: [Number, String],
|
|
76
73
|
default: 1e3
|
|
@@ -4,21 +4,15 @@ 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.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
9
|
-
* (c) 2022 @jdf2e.
|
|
10
|
-
* Released under the MIT License.
|
|
11
|
-
*/
|
|
12
7
|
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, h } from "vue";
|
|
13
|
-
import { c as createComponent } from "./component-
|
|
14
|
-
import { f as funInterceptor } from "./interceptor-
|
|
15
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
8
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
9
|
+
import { f as funInterceptor } from "./interceptor-956b24fc.js";
|
|
10
|
+
import { P as Popup, p as popupProps } from "./index-af79da1a.js";
|
|
16
11
|
import Button from "./Button.js";
|
|
17
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
18
|
-
import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-b8ddf362.js";
|
|
12
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
19
13
|
import Overlay from "./Overlay.js";
|
|
20
14
|
import "../locale/lang";
|
|
21
|
-
import { C as CreateComponent } from "./mountComponent-
|
|
15
|
+
import { C as CreateComponent } from "./mountComponent-1ece4110.js";
|
|
22
16
|
import "@nutui/icons-vue";
|
|
23
17
|
const { componentName, create, translate } = createComponent("dialog");
|
|
24
18
|
const _sfc_main = create({
|
|
@@ -76,6 +70,7 @@ const _sfc_main = create({
|
|
|
76
70
|
footerDirection: {
|
|
77
71
|
type: String,
|
|
78
72
|
default: "horizontal"
|
|
73
|
+
//vertical
|
|
79
74
|
},
|
|
80
75
|
customClass: {
|
|
81
76
|
type: String,
|
|
@@ -165,6 +160,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165
160
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
166
161
|
"lock-scroll": _ctx.lockScroll,
|
|
167
162
|
"pop-class": _ctx.popClass,
|
|
163
|
+
"overlay-class": _ctx.overlayClass,
|
|
164
|
+
"overlay-style": _ctx.overlayStyle,
|
|
168
165
|
style: normalizeStyle(_ctx.popStyle),
|
|
169
166
|
round: "",
|
|
170
167
|
onClickOverlay: _ctx.closed,
|
|
@@ -223,7 +220,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
223
220
|
], 2)
|
|
224
221
|
]),
|
|
225
222
|
_: 3
|
|
226
|
-
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
223
|
+
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "overlay-class", "overlay-style", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
227
224
|
}
|
|
228
225
|
const Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
229
226
|
class DialogOptions {
|
|
@@ -241,16 +238,13 @@ class DialogOptions {
|
|
|
241
238
|
__publicField(this, "teleport", "body");
|
|
242
239
|
__publicField(this, "id", new Date().getTime());
|
|
243
240
|
__publicField(this, "footerDirection", "horizontal");
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
__publicField(this, "
|
|
247
|
-
|
|
248
|
-
__publicField(this, "onCancel"
|
|
249
|
-
|
|
250
|
-
__publicField(this, "
|
|
251
|
-
});
|
|
252
|
-
__publicField(this, "onClosed", () => {
|
|
253
|
-
});
|
|
241
|
+
//使用横纵方向 可选值 horizontal、vertical
|
|
242
|
+
// function
|
|
243
|
+
__publicField(this, "onUpdate");
|
|
244
|
+
__publicField(this, "onOk");
|
|
245
|
+
__publicField(this, "onCancel");
|
|
246
|
+
__publicField(this, "onOpened");
|
|
247
|
+
__publicField(this, "onClosed");
|
|
254
248
|
__publicField(this, "beforeClose");
|
|
255
249
|
__publicField(this, "visible", true);
|
|
256
250
|
__publicField(this, "noFooter", false);
|
|
@@ -258,17 +252,17 @@ class DialogOptions {
|
|
|
258
252
|
__publicField(this, "noCancelBtn", false);
|
|
259
253
|
__publicField(this, "okBtnDisabled", false);
|
|
260
254
|
__publicField(this, "closeOnPopstate", false);
|
|
261
|
-
__publicField(this, "lockScroll",
|
|
255
|
+
__publicField(this, "lockScroll", true);
|
|
262
256
|
}
|
|
263
257
|
}
|
|
264
258
|
class DialogFunction {
|
|
265
259
|
constructor(_options) {
|
|
266
260
|
__publicField(this, "options", new DialogOptions());
|
|
267
261
|
__publicField(this, "instance");
|
|
268
|
-
|
|
262
|
+
const options = Object.assign(this.options, _options);
|
|
269
263
|
const { unmount } = CreateComponent(options, {
|
|
270
264
|
name: "dialog",
|
|
271
|
-
components: [Popup,
|
|
265
|
+
components: [Popup, Button, Overlay],
|
|
272
266
|
wrapper: (elWarp, root) => {
|
|
273
267
|
return {
|
|
274
268
|
setup() {
|
|
@@ -290,15 +284,14 @@ class DialogFunction {
|
|
|
290
284
|
});
|
|
291
285
|
}
|
|
292
286
|
}
|
|
293
|
-
const
|
|
287
|
+
const showDialog = function(options) {
|
|
294
288
|
return new DialogFunction(options);
|
|
295
289
|
};
|
|
296
|
-
|
|
290
|
+
showDialog.install = (app) => {
|
|
297
291
|
app.use(Dialog);
|
|
298
|
-
app.config.globalProperties.$dialog = _Dialog;
|
|
299
292
|
};
|
|
300
293
|
export {
|
|
301
|
-
Dialog,
|
|
302
294
|
DialogOptions,
|
|
303
|
-
|
|
295
|
+
Dialog as default,
|
|
296
|
+
showDialog
|
|
304
297
|
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { computed, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
9
4
|
import "../locale/lang";
|
|
10
5
|
const { componentName, create } = createComponent("divider");
|
|
11
6
|
const _sfc_main = create({
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, reactive, computed, onMounted, onActivated, onDeactivated, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
8
|
-
import { r as requestAniFrame } from "./raf-
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
+
import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
6
|
const { componentName, create } = createComponent("drag");
|
|
12
7
|
const _sfc_main = create({
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
|
|
3
|
-
* (c) 2022 @jdf2e.
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
import { ref, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeClass, withDirectives, vModelText, createTextVNode, createVNode } from "vue";
|
|
7
|
-
import { c as createComponent } from "./component-
|
|
2
|
+
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
8
3
|
import InputNumber from "./InputNumber.js";
|
|
9
|
-
import { _ as _export_sfc } from "./_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
10
5
|
import "../locale/lang";
|
|
11
|
-
import "./pxCheck-
|
|
6
|
+
import "./pxCheck-c6b9f6b7.js";
|
|
12
7
|
import "@nutui/icons-vue";
|
|
13
8
|
const { create, translate } = createComponent("ecard");
|
|
14
9
|
const _sfc_main = create({
|