@nutui/nutui 4.0.0-beta.9 → 4.0.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -940
- package/README.md +1 -1
- package/dist/nutui.es.js +103 -103
- package/dist/nutui.umd.js +163 -0
- package/dist/packages/_es/ActionSheet.js +2 -7
- package/dist/packages/_es/Address.js +9 -9
- package/dist/packages/_es/AddressList.js +164 -239
- package/dist/packages/_es/Badge.js +2 -2
- package/dist/packages/_es/Barrage.js +60 -42
- package/dist/packages/_es/Calendar.js +12 -12
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +7 -14
- package/dist/packages/_es/Cascader.js +3 -4
- package/dist/packages/_es/Collapse.js +7 -7
- package/dist/packages/_es/CollapseItem.js +5 -5
- package/dist/packages/_es/Comment.js +11 -13
- package/dist/packages/_es/ConfigProvider.js +34 -0
- package/dist/packages/_es/Countup.js +10 -5
- package/dist/packages/_es/Dialog.js +5 -4
- package/dist/packages/_es/Ellipsis.js +1 -3
- package/dist/packages/_es/ImagePreview.js +5 -6
- package/dist/packages/_es/InfiniteLoading.js +1 -9
- package/dist/packages/_es/Input.js +28 -29
- package/dist/packages/_es/InputNumber.js +5 -5
- package/dist/packages/_es/List.js +1 -2
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +4 -4
- package/dist/packages/_es/Noticebar.js +22 -14
- package/dist/packages/_es/Notify.js +1 -2
- package/dist/packages/_es/NumberKeyboard.js +3 -3
- package/dist/packages/_es/Overlay.js +11 -5
- package/dist/packages/_es/Picker.js +2 -1
- package/dist/packages/_es/Popover.js +1 -2
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +39 -36
- package/dist/packages/_es/PullRefresh.js +6 -13
- package/dist/packages/_es/Rate.js +19 -18
- package/dist/packages/_es/Searchbar.js +24 -19
- package/dist/packages/_es/ShortPassword.js +11 -11
- package/dist/packages/_es/Signature.js +12 -1
- package/dist/packages/_es/Skeleton.js +2 -4
- package/dist/packages/_es/Sku.js +17 -13
- package/dist/packages/_es/Swiper.js +0 -4
- package/dist/packages/_es/Switch.js +4 -1
- package/dist/packages/_es/Table.js +90 -93
- package/dist/packages/_es/Tabs.js +3 -3
- package/dist/packages/_es/Textarea.js +24 -4
- package/dist/packages/_es/TimeDetail.js +0 -4
- package/dist/packages/_es/TimeSelect.js +2 -2
- package/dist/packages/_es/Toast.js +0 -1
- package/dist/packages/_es/Tour.js +8 -8
- package/dist/packages/_es/TrendArrow.js +2 -2
- package/dist/packages/_es/Uploader.js +17 -16
- package/dist/packages/_es/{index-da7aa231.js → index-991c279f.js} +13 -3
- package/dist/packages/_es/{index-350a8abd.js → index-fa0050c9.js} +5 -5
- package/dist/packages/actionsheet/style.mjs +3 -2
- package/dist/packages/address/index.scss +1 -1
- package/dist/packages/address/style.mjs +4 -3
- package/dist/packages/addresslist/index.scss +14 -3
- package/dist/packages/addresslist/style.mjs +3 -2
- package/dist/packages/animate/style.mjs +1 -0
- package/dist/packages/audio/index.scss +1 -1
- package/dist/packages/audio/style.mjs +2 -1
- package/dist/packages/audiooperate/style.mjs +2 -1
- package/dist/packages/avatar/index.scss +3 -1
- package/dist/packages/avatar/style.mjs +1 -0
- package/dist/packages/avatargroup/index.scss +1 -1
- package/dist/packages/avatargroup/style.mjs +1 -0
- package/dist/packages/backtop/style.mjs +1 -0
- package/dist/packages/badge/index.scss +7 -3
- package/dist/packages/badge/style.mjs +1 -0
- package/dist/packages/barrage/style.mjs +1 -0
- package/dist/packages/button/index.scss +63 -1
- package/dist/packages/button/style.mjs +1 -0
- package/dist/packages/calendar/index.scss +14 -5
- package/dist/packages/calendar/style.mjs +4 -3
- package/dist/packages/calendaritem/style.mjs +1 -0
- package/dist/packages/card/style.mjs +3 -2
- package/dist/packages/cascader/style.mjs +6 -5
- package/dist/packages/category/style.mjs +1 -0
- package/dist/packages/categorypane/style.mjs +1 -0
- package/dist/packages/cell/index.scss +2 -0
- package/dist/packages/cell/style.mjs +1 -0
- package/dist/packages/cellgroup/style.mjs +1 -0
- package/dist/packages/checkbox/style.mjs +1 -0
- package/dist/packages/checkboxgroup/style.mjs +1 -0
- package/dist/packages/circleprogress/style.mjs +1 -0
- package/dist/packages/col/style.mjs +1 -0
- package/dist/packages/collapse/style.mjs +1 -0
- package/dist/packages/collapseitem/style.mjs +1 -0
- package/dist/packages/comment/index.scss +12 -7
- package/dist/packages/comment/style.mjs +2 -1
- package/dist/packages/configprovider/style.mjs +1 -0
- package/dist/packages/countdown/style.mjs +1 -0
- package/dist/packages/countup/index.scss +1 -0
- package/dist/packages/countup/style.mjs +1 -0
- package/dist/packages/datepicker/style.mjs +4 -3
- package/dist/packages/dialog/style.mjs +4 -3
- package/dist/packages/divider/style.mjs +1 -0
- package/dist/packages/drag/style.mjs +1 -0
- package/dist/packages/ecard/index.scss +20 -2
- package/dist/packages/ecard/style.mjs +2 -1
- package/dist/packages/elevator/index.scss +14 -0
- package/dist/packages/elevator/style.mjs +1 -0
- package/dist/packages/ellipsis/style.mjs +1 -0
- package/dist/packages/empty/style.mjs +1 -0
- package/dist/packages/fixednav/style.mjs +2 -1
- package/dist/packages/form/style.mjs +2 -1
- package/dist/packages/formitem/style.mjs +2 -1
- package/dist/packages/grid/style.mjs +1 -0
- package/dist/packages/griditem/style.mjs +1 -0
- package/dist/packages/icon/index.scss +1 -0
- package/dist/packages/icon/style.mjs +1 -0
- package/dist/packages/image/style.mjs +1 -0
- package/dist/packages/imagepreview/style.mjs +6 -5
- package/dist/packages/indicator/index.scss +4 -4
- package/dist/packages/indicator/style.mjs +1 -0
- package/dist/packages/infiniteloading/style.mjs +1 -0
- package/dist/packages/input/index.scss +6 -2
- package/dist/packages/input/style.mjs +1 -0
- package/dist/packages/inputnumber/index.scss +5 -1
- package/dist/packages/inputnumber/style.mjs +1 -0
- package/dist/packages/invoice/style.mjs +8 -7
- package/dist/packages/layout/style.mjs +1 -0
- package/dist/packages/list/style.mjs +1 -0
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/menu/style.mjs +1 -0
- package/dist/packages/menuitem/style.mjs +3 -2
- package/dist/packages/navbar/style.mjs +1 -0
- package/dist/packages/noticebar/index.scss +13 -10
- package/dist/packages/noticebar/style.mjs +1 -0
- package/dist/packages/notify/style.mjs +3 -2
- package/dist/packages/numberkeyboard/style.mjs +3 -2
- package/dist/packages/overlay/style.mjs +1 -0
- package/dist/packages/pagination/style.mjs +1 -0
- package/dist/packages/picker/style.mjs +3 -2
- package/dist/packages/popover/style.mjs +3 -2
- package/dist/packages/popup/style.mjs +2 -1
- package/dist/packages/price/style.mjs +1 -0
- package/dist/packages/progress/index.scss +8 -6
- package/dist/packages/progress/style.mjs +1 -0
- package/dist/packages/pullrefresh/index.scss +1 -1
- package/dist/packages/pullrefresh/style.mjs +1 -0
- package/dist/packages/radio/index.scss +14 -2
- package/dist/packages/radio/style.mjs +1 -0
- package/dist/packages/radiogroup/style.mjs +1 -0
- package/dist/packages/range/index.scss +6 -3
- package/dist/packages/range/style.mjs +1 -0
- package/dist/packages/rate/index.scss +5 -4
- package/dist/packages/rate/style.mjs +1 -0
- package/dist/packages/row/style.mjs +1 -0
- package/dist/packages/searchbar/index.scss +43 -24
- package/dist/packages/searchbar/style.mjs +1 -0
- package/dist/packages/shortpassword/style.mjs +3 -2
- package/dist/packages/sidenavbar/style.mjs +1 -0
- package/dist/packages/sidenavbaritem/style.mjs +1 -0
- package/dist/packages/signature/index.scss +2 -2
- package/dist/packages/signature/style.mjs +2 -1
- package/dist/packages/skeleton/style.mjs +2 -1
- package/dist/packages/sku/index.scss +16 -2
- package/dist/packages/sku/style.mjs +5 -4
- package/dist/packages/step/index.scss +1 -9
- package/dist/packages/step/style.mjs +1 -0
- package/dist/packages/steps/style.mjs +1 -0
- package/dist/packages/sticky/index.scss +1 -0
- package/dist/packages/sticky/style.mjs +1 -0
- package/dist/packages/subsidenavbar/style.mjs +1 -0
- package/dist/packages/swipe/style.mjs +1 -0
- package/dist/packages/swiper/style.mjs +1 -0
- package/dist/packages/swiperitem/style.mjs +1 -0
- package/dist/packages/switch/index.scss +7 -0
- package/dist/packages/switch/style.mjs +1 -0
- package/dist/packages/tabbar/style.mjs +1 -0
- package/dist/packages/tabbaritem/index.scss +6 -0
- package/dist/packages/tabbaritem/style.mjs +2 -1
- package/dist/packages/table/style.mjs +1 -0
- package/dist/packages/tabpane/style.mjs +1 -0
- package/dist/packages/tabs/style.mjs +2 -1
- package/dist/packages/tag/style.mjs +1 -0
- package/dist/packages/textarea/index.scss +7 -1
- package/dist/packages/textarea/style.mjs +1 -0
- package/dist/packages/timedetail/index.scss +14 -6
- package/dist/packages/timedetail/style.mjs +1 -0
- package/dist/packages/timepannel/style.mjs +1 -0
- package/dist/packages/timeselect/style.mjs +3 -2
- package/dist/packages/toast/style.mjs +1 -0
- package/dist/packages/tour/index.scss +3 -0
- package/dist/packages/tour/style.mjs +4 -3
- package/dist/packages/trendarrow/style.mjs +1 -0
- package/dist/packages/uploader/index.scss +21 -15
- package/dist/packages/uploader/style.mjs +3 -2
- package/dist/packages/video/style.mjs +1 -0
- package/dist/packages/watermark/style.mjs +1 -0
- package/dist/smartips/web-types.json +703 -784
- package/dist/style.css +1 -1
- package/dist/styles/reset.css +3 -0
- package/dist/styles/themes/default.scss +52 -53
- package/dist/styles/themes/jdb.scss +52 -52
- package/dist/styles/themes/jddkh.scss +52 -52
- package/dist/styles/themes/jdt.scss +52 -53
- package/dist/styles/variables-jdb.scss +7 -14
- package/dist/styles/variables-jddkh.scss +7 -13
- package/dist/styles/variables-jdt.scss +9 -15
- package/dist/styles/variables.scss +16 -26
- 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 -4
- package/dist/types/__VUE/card/index.vue.d.ts +0 -21
- package/dist/types/__VUE/cascader/index.vue.d.ts +18 -0
- 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/dialog/index.vue.d.ts +18 -0
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -18
- package/dist/types/__VUE/input/index.vue.d.ts +6 -39
- package/dist/types/__VUE/noticebar/index.vue.d.ts +6 -20
- package/dist/types/__VUE/popover/index.vue.d.ts +0 -9
- 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 +17 -11
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +18 -0
- package/dist/types/__VUE/swiper/index.vue.d.ts +1 -10
- 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/textarea/index.vue.d.ts +5 -0
- package/dist/types/__VUE/timedetail/index.vue.d.ts +0 -9
- package/dist/types/__VUE/tour/index.vue.d.ts +9 -9
- package/dist/types/index.d.ts +1 -1
- package/package.json +10 -101
- package/dist/nutui.umd.cjs +0 -7
- package/dist/packages/_es/Loading-5f2ef345.js +0 -59
- package/dist/packages/_es/Loading-ff1ade5e.js +0 -59
- package/dist/packages/_es/_plugin-vue_export-helper-214bd398.js +0 -15
- package/dist/packages/_es/_plugin-vue_export-helper-3119770d.js +0 -15
- package/dist/packages/_es/_plugin-vue_export-helper-40ecb205.js +0 -15
- package/dist/packages/_es/_plugin-vue_export-helper-cabb815c.js +0 -15
- package/dist/packages/_es/common-1144cf18.js +0 -142
- package/dist/packages/_es/common-33d6538d.js +0 -142
- package/dist/packages/_es/common-38afc79e.js +0 -142
- package/dist/packages/_es/common-fcbd940e.js +0 -142
- package/dist/packages/_es/component-555f9132.js +0 -150
- package/dist/packages/_es/component-93f40b7f.js +0 -144
- package/dist/packages/_es/component-cb778481.js +0 -150
- package/dist/packages/_es/component-f9e4b05e.js +0 -144
- package/dist/packages/_es/index-122e380e.js +0 -15
- package/dist/packages/_es/index-15d5ca2c.js +0 -35
- package/dist/packages/_es/index-16f572cc.js +0 -52
- package/dist/packages/_es/index-18e7c77e.js +0 -38
- package/dist/packages/_es/index-22af3a75.js +0 -35
- package/dist/packages/_es/index-2d3e73a7.js +0 -239
- package/dist/packages/_es/index-375f2695.js +0 -15
- package/dist/packages/_es/index-57aa518c.js +0 -13
- package/dist/packages/_es/index-65e55319.js +0 -72
- package/dist/packages/_es/index-673e467d.js +0 -72
- package/dist/packages/_es/index-69b79b10.js +0 -52
- package/dist/packages/_es/index-7386d8ea.js +0 -35
- package/dist/packages/_es/index-75be4de5.js +0 -72
- package/dist/packages/_es/index-7653e348.js +0 -814
- package/dist/packages/_es/index-83f367f2.js +0 -15
- package/dist/packages/_es/index-a0ae7438.js +0 -72
- package/dist/packages/_es/index-abb46652.js +0 -13
- package/dist/packages/_es/index-bd90ef5b.js +0 -38
- package/dist/packages/_es/index-dd23f7fc.js +0 -35
- package/dist/packages/_es/index-ec1281d1.js +0 -15
- package/dist/packages/_es/index-ee55d99f.js +0 -814
- package/dist/packages/_es/index-f9640059.js +0 -239
- package/dist/packages/_es/index.taro-15624a72.js +0 -833
- package/dist/packages/_es/index.taro-2ce92fc8.js +0 -76
- package/dist/packages/_es/index.taro-356b6989.js +0 -238
- package/dist/packages/_es/index.taro-5564033f.js +0 -833
- package/dist/packages/_es/index.taro-be0723aa.js +0 -76
- package/dist/packages/_es/index.taro-da1bc684.js +0 -238
- package/dist/packages/_es/index.taro.vue_vue_type_script_lang-5696dfc0.js +0 -102
- package/dist/packages/_es/index.taro.vue_vue_type_script_lang-5b67ab83.js +0 -102
- package/dist/packages/_es/index.vue_vue_type_script_lang-164ba0ab.js +0 -102
- package/dist/packages/_es/index.vue_vue_type_script_lang-1c056efc.js +0 -156
- package/dist/packages/_es/index.vue_vue_type_script_lang-2c5dd6ac.js +0 -50
- package/dist/packages/_es/index.vue_vue_type_script_lang-3bc78a6d.js +0 -156
- package/dist/packages/_es/index.vue_vue_type_script_lang-630bc089.js +0 -50
- package/dist/packages/_es/index.vue_vue_type_script_lang-ba9e696d.js +0 -50
- package/dist/packages/_es/index.vue_vue_type_script_lang-cab1cdc4.js +0 -102
- package/dist/packages/_es/index.vue_vue_type_script_lang-f91aa3ff.js +0 -50
- package/dist/packages/_es/interceptor-5d3d8b0a.js +0 -34
- package/dist/packages/_es/interceptor-bf7033c2.js +0 -34
- package/dist/packages/_es/interceptor-ccd1403c.js +0 -34
- package/dist/packages/_es/interceptor-dbee5851.js +0 -34
- package/dist/packages/_es/mountComponent-1316c4a2.js +0 -44
- package/dist/packages/_es/mountComponent-3f8ea19f.js +0 -44
- package/dist/packages/_es/pxCheck-110c0d58.js +0 -11
- package/dist/packages/_es/pxCheck-42d1a00f.js +0 -11
- package/dist/packages/_es/pxCheck-62a0c829.js +0 -11
- package/dist/packages/_es/pxCheck-70f351cb.js +0 -11
- package/dist/packages/_es/raf-182636f4.js +0 -30
- package/dist/packages/_es/raf-2ee3bcbb.js +0 -30
- package/dist/packages/_es/raf-6ea498df.js +0 -21
- package/dist/packages/_es/raf-8518c796.js +0 -21
- package/dist/packages/_es/renderIcon-0d8f6335.js +0 -14
- package/dist/packages/_es/renderIcon-1be33355.js +0 -14
- package/dist/packages/_es/renderIcon-ba0fcba3.js +0 -14
- package/dist/packages/_es/renderIcon-bde9e715.js +0 -14
- package/dist/packages/_es/style.css +0 -16
- package/dist/packages/_es/style_icon-299fd467.js +0 -6
- package/dist/packages/_es/style_icon-8872f331.js +0 -6
- package/dist/packages/actionsheet/style.cjs +0 -3
- package/dist/packages/address/style.cjs +0 -4
- package/dist/packages/addresslist/style.cjs +0 -3
- 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/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-0e7bcba4.js +0 -10
- package/dist/packages/locale/lang/baseLang-5db74119.js +0 -10
- package/dist/packages/locale/lang/baseLang-6070c617.js +0 -10
- package/dist/packages/locale/lang/baseLang-8d65df5e.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 -2814
- package/dist/smartips/tags.json +0 -1048
- package/dist/styles/theme-deafult.scss +0 -919
- package/dist/styles/theme-jdt.scss +0 -892
- package/dist/styles/variables-var.scss +0 -854
- package/dist/types/__VUE/actionsheet/index.taro.vue.d.ts +0 -292
- package/dist/types/__VUE/address/index.taro.vue.d.ts +0 -377
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
- package/dist/types/__VUE/addresslist/index.taro.vue.d.ts +0 -83
- package/dist/types/__VUE/animate/index.taro.vue.d.ts +0 -54
- package/dist/types/__VUE/avatar/index.taro.vue.d.ts +0 -76
- package/dist/types/__VUE/avatargroup/index.taro.vue.d.ts +0 -92
- package/dist/types/__VUE/backtop/index.taro.vue.d.ts +0 -76
- package/dist/types/__VUE/badge/index.taro.vue.d.ts +0 -93
- package/dist/types/__VUE/barrage/index.taro.vue.d.ts +0 -81
- package/dist/types/__VUE/button/index.taro.vue.d.ts +0 -117
- package/dist/types/__VUE/calendar/index.taro.vue.d.ts +0 -187
- package/dist/types/__VUE/calendaritem/index.taro.vue.d.ts +0 -217
- package/dist/types/__VUE/card/index.taro.vue.d.ts +0 -89
- package/dist/types/__VUE/cascader/cascader-item.taro.vue.d.ts +0 -77
- package/dist/types/__VUE/cascader/index.taro.vue.d.ts +0 -245
- package/dist/types/__VUE/category/index.taro.vue.d.ts +0 -42
- package/dist/types/__VUE/categorypane/index.taro.vue.d.ts +0 -54
- package/dist/types/__VUE/cell/index.taro.vue.d.ts +0 -124
- package/dist/types/__VUE/checkbox/index.taro.vue.d.ts +0 -12
- package/dist/types/__VUE/circleprogress/index.taro.vue.d.ts +0 -93
- package/dist/types/__VUE/collapse/index.taro.vue.d.ts +0 -38
- package/dist/types/__VUE/collapseitem/index.taro.vue.d.ts +0 -111
- package/dist/types/__VUE/comment/index.taro.vue.d.ts +0 -119
- package/dist/types/__VUE/configprovider/index.taro.vue.d.ts +0 -45
- package/dist/types/__VUE/countdown/index.taro.vue.d.ts +0 -103
- package/dist/types/__VUE/countup/index.taro.vue.d.ts +0 -213
- package/dist/types/__VUE/datepicker/index.taro.vue.d.ts +0 -232
- package/dist/types/__VUE/dialog/index.taro.vue.d.ts +0 -327
- package/dist/types/__VUE/divider/index.taro.vue.d.ts +0 -53
- package/dist/types/__VUE/drag/index.taro.vue.d.ts +0 -62
- package/dist/types/__VUE/ecard/index.taro.vue.d.ts +0 -128
- package/dist/types/__VUE/elevator/index.taro.vue.d.ts +0 -119
- package/dist/types/__VUE/ellipsis/index.taro.vue.d.ts +0 -103
- package/dist/types/__VUE/empty/index.taro.vue.d.ts +0 -46
- package/dist/types/__VUE/fixednav/index.taro.vue.d.ts +0 -105
- package/dist/types/__VUE/form/index.taro.vue.d.ts +0 -40
- package/dist/types/__VUE/formitem/index.taro.vue.d.ts +0 -114
- package/dist/types/__VUE/grid/index.taro.vue.d.ts +0 -84
- package/dist/types/__VUE/griditem/index.taro.vue.d.ts +0 -22
- package/dist/types/__VUE/icon/index.taro.vue.d.ts +0 -12
- package/dist/types/__VUE/image/index.taro.vue.d.ts +0 -32
- package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +0 -172
- package/dist/types/__VUE/indicator/index.taro.vue.d.ts +0 -70
- package/dist/types/__VUE/input/index.taro.vue.d.ts +0 -257
- package/dist/types/__VUE/inputnumber/index.taro.vue.d.ts +0 -116
- package/dist/types/__VUE/invoice/index.taro.vue.d.ts +0 -52
- package/dist/types/__VUE/layout/index.taro.vue.d.ts +0 -12
- package/dist/types/__VUE/list/index.taro.vue.d.ts +0 -58
- package/dist/types/__VUE/menu/index.taro.vue.d.ts +0 -93
- package/dist/types/__VUE/menuitem/index.taro.vue.d.ts +0 -89
- package/dist/types/__VUE/navbar/index.taro.vue.d.ts +0 -121
- package/dist/types/__VUE/noticebar/index.taro.vue.d.ts +0 -217
- package/dist/types/__VUE/notify/index.taro.vue.d.ts +0 -97
- package/dist/types/__VUE/numberkeyboard/index.taro.vue.d.ts +0 -132
- package/dist/types/__VUE/overlay/index.taro.vue.d.ts +0 -85
- package/dist/types/__VUE/pagination/index.taro.vue.d.ts +0 -111
- package/dist/types/__VUE/picker/index.taro.vue.d.ts +0 -14
- package/dist/types/__VUE/popover/index.taro.vue.d.ts +0 -201
- package/dist/types/__VUE/popup/index.taro.vue.d.ts +0 -201
- package/dist/types/__VUE/price/index.taro.vue.d.ts +0 -87
- package/dist/types/__VUE/progress/index.taro.vue.d.ts +0 -128
- package/dist/types/__VUE/radio/index.taro.vue.d.ts +0 -53
- package/dist/types/__VUE/range/index.taro.vue.d.ts +0 -158
- package/dist/types/__VUE/rate/index.taro.vue.d.ts +0 -124
- package/dist/types/__VUE/scrollView/index.taro.vue.d.ts +0 -14
- package/dist/types/__VUE/searchbar/index.taro.vue.d.ts +0 -177
- package/dist/types/__VUE/shortpassword/index.taro.vue.d.ts +0 -103
- package/dist/types/__VUE/sidenavbar/index.taro.vue.d.ts +0 -31
- package/dist/types/__VUE/signature/index.taro.vue.d.ts +0 -83
- package/dist/types/__VUE/skeleton/index.taro.vue.d.ts +0 -115
- package/dist/types/__VUE/sku/index.taro.vue.d.ts +0 -182
- package/dist/types/__VUE/steps/index.taro.vue.d.ts +0 -46
- package/dist/types/__VUE/sticky/index.taro.vue.d.ts +0 -47
- package/dist/types/__VUE/swipe/index.taro.vue.d.ts +0 -71
- package/dist/types/__VUE/swiper/index.taro.vue.d.ts +0 -176
- package/dist/types/__VUE/swiper/use-touch.d.ts +0 -16
- package/dist/types/__VUE/swiperitem/index.taro.vue.d.ts +0 -18
- package/dist/types/__VUE/switch/index.taro.vue.d.ts +0 -108
- package/dist/types/__VUE/tabbar/index.taro.vue.d.ts +0 -93
- package/dist/types/__VUE/tabbaritem/index.taro.vue.d.ts +0 -59
- package/dist/types/__VUE/table/index.taro.vue.d.ts +0 -78
- package/dist/types/__VUE/tabs/index.taro.vue.d.ts +0 -164
- package/dist/types/__VUE/tag/index.taro.vue.d.ts +0 -90
- package/dist/types/__VUE/textarea/index.taro.vue.d.ts +0 -122
- package/dist/types/__VUE/timedetail/index.taro.vue.d.ts +0 -47
- package/dist/types/__VUE/timepannel/index.taro.vue.d.ts +0 -42
- package/dist/types/__VUE/timeselect/index.taro.vue.d.ts +0 -91
- package/dist/types/__VUE/toast/index.taro.vue.d.ts +0 -184
- package/dist/types/__VUE/tour/index.taro.vue.d.ts +0 -192
- package/dist/types/__VUE/trendarrow/index.taro.vue.d.ts +0 -105
- package/dist/types/__VUE/uploader/index.taro.vue.d.ts +0 -260
- package/dist/types/__VUE/watermark/index.taro.vue.d.ts +0 -175
|
@@ -30,10 +30,6 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
30
30
|
const { componentName, create } = createComponent("input");
|
|
31
31
|
const _sfc_main = create({
|
|
32
32
|
props: {
|
|
33
|
-
ref: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: ""
|
|
36
|
-
},
|
|
37
33
|
type: {
|
|
38
34
|
type: String,
|
|
39
35
|
default: "text"
|
|
@@ -50,10 +46,6 @@ const _sfc_main = create({
|
|
|
50
46
|
type: String,
|
|
51
47
|
default: "left"
|
|
52
48
|
},
|
|
53
|
-
center: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: false
|
|
56
|
-
},
|
|
57
49
|
required: {
|
|
58
50
|
type: Boolean,
|
|
59
51
|
default: false
|
|
@@ -68,7 +60,7 @@ const _sfc_main = create({
|
|
|
68
60
|
},
|
|
69
61
|
maxLength: {
|
|
70
62
|
type: [String, Number],
|
|
71
|
-
default: "
|
|
63
|
+
default: ""
|
|
72
64
|
},
|
|
73
65
|
clearable: {
|
|
74
66
|
type: Boolean,
|
|
@@ -90,14 +82,6 @@ const _sfc_main = create({
|
|
|
90
82
|
type: Function,
|
|
91
83
|
default: null
|
|
92
84
|
},
|
|
93
|
-
rules: {
|
|
94
|
-
type: Array,
|
|
95
|
-
default: []
|
|
96
|
-
},
|
|
97
|
-
rows: {
|
|
98
|
-
type: [String, Number],
|
|
99
|
-
default: null
|
|
100
|
-
},
|
|
101
85
|
showWordLimit: {
|
|
102
86
|
type: Boolean,
|
|
103
87
|
default: false
|
|
@@ -116,7 +100,7 @@ const _sfc_main = create({
|
|
|
116
100
|
}
|
|
117
101
|
},
|
|
118
102
|
components: { MaskClose },
|
|
119
|
-
emits: ["update:modelValue", "
|
|
103
|
+
emits: ["update:modelValue", "blur", "focus", "clear", "keypress", "click-input"],
|
|
120
104
|
setup(props, { emit, slots }) {
|
|
121
105
|
const active = ref(false);
|
|
122
106
|
const inputRef = ref();
|
|
@@ -136,7 +120,6 @@ const _sfc_main = create({
|
|
|
136
120
|
const prefixCls = componentName;
|
|
137
121
|
return {
|
|
138
122
|
[prefixCls]: true,
|
|
139
|
-
center: props.center,
|
|
140
123
|
[`${prefixCls}--disabled`]: props.disabled,
|
|
141
124
|
[`${prefixCls}--required`]: props.required,
|
|
142
125
|
[`${prefixCls}--error`]: props.error,
|
|
@@ -158,12 +141,14 @@ const _sfc_main = create({
|
|
|
158
141
|
}
|
|
159
142
|
};
|
|
160
143
|
const onInput = (event) => {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
144
|
+
if (!event.target.composing) {
|
|
145
|
+
const input = event.target;
|
|
146
|
+
let value = input.value;
|
|
147
|
+
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
148
|
+
value = value.slice(0, Number(props.maxLength));
|
|
149
|
+
}
|
|
150
|
+
updateValue(value);
|
|
165
151
|
}
|
|
166
|
-
updateValue(value);
|
|
167
152
|
};
|
|
168
153
|
const updateValue = (value, trigger = "onChange") => {
|
|
169
154
|
var _a;
|
|
@@ -181,7 +166,6 @@ const _sfc_main = create({
|
|
|
181
166
|
}
|
|
182
167
|
if (value !== props.modelValue) {
|
|
183
168
|
emit("update:modelValue", value);
|
|
184
|
-
emit("change", value);
|
|
185
169
|
}
|
|
186
170
|
};
|
|
187
171
|
const onFocus = (event) => {
|
|
@@ -215,7 +199,6 @@ const _sfc_main = create({
|
|
|
215
199
|
if (props.disabled)
|
|
216
200
|
return;
|
|
217
201
|
emit("update:modelValue", "", event);
|
|
218
|
-
emit("change", "", event);
|
|
219
202
|
emit("clear", "", event);
|
|
220
203
|
};
|
|
221
204
|
const resetValidation = () => {
|
|
@@ -230,6 +213,15 @@ const _sfc_main = create({
|
|
|
230
213
|
}
|
|
231
214
|
emit("click-input", event);
|
|
232
215
|
};
|
|
216
|
+
const startComposing = ({ target }) => {
|
|
217
|
+
target.composing = true;
|
|
218
|
+
};
|
|
219
|
+
const endComposing = ({ target }) => {
|
|
220
|
+
if (target.composing) {
|
|
221
|
+
target.composing = false;
|
|
222
|
+
target.dispatchEvent(new Event("input"));
|
|
223
|
+
}
|
|
224
|
+
};
|
|
233
225
|
watch(
|
|
234
226
|
() => props.modelValue,
|
|
235
227
|
() => {
|
|
@@ -251,6 +243,8 @@ const _sfc_main = create({
|
|
|
251
243
|
onFocus,
|
|
252
244
|
onBlur,
|
|
253
245
|
clear,
|
|
246
|
+
startComposing,
|
|
247
|
+
endComposing,
|
|
254
248
|
onClickInput
|
|
255
249
|
};
|
|
256
250
|
}
|
|
@@ -290,8 +284,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
290
284
|
onInput: _ctx.onInput,
|
|
291
285
|
onFocus: _ctx.onFocus,
|
|
292
286
|
onBlur: _ctx.onBlur,
|
|
293
|
-
onClick: _ctx.onClickInput
|
|
294
|
-
|
|
287
|
+
onClick: _ctx.onClickInput,
|
|
288
|
+
onChange: _ctx.endComposing,
|
|
289
|
+
onCompositionend: _ctx.endComposing,
|
|
290
|
+
onCompositionstart: _ctx.startComposing
|
|
291
|
+
}, null, 40, ["style", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus", "enterkeyhint", "onInput", "onFocus", "onBlur", "onClick", "onChange", "onCompositionend", "onCompositionstart"])),
|
|
295
292
|
_ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
296
293
|
createElementVNode("span", _hoisted_5, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
|
|
297
294
|
createTextVNode("/" + toDisplayString(_ctx.maxLength), 1)
|
|
@@ -301,8 +298,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
301
298
|
renderSlot(_ctx.$slots, "clear", {}, () => [
|
|
302
299
|
createVNode(_component_MaskClose, mergeProps({ class: "nut-input-clear" }, _ctx.$attrs, {
|
|
303
300
|
size: _ctx.clearSize,
|
|
301
|
+
width: _ctx.clearSize,
|
|
302
|
+
height: _ctx.clearSize,
|
|
304
303
|
onClick: _ctx.clear
|
|
305
|
-
}), null, 16, ["size", "onClick"])
|
|
304
|
+
}), null, 16, ["size", "width", "height", "onClick"])
|
|
306
305
|
])
|
|
307
306
|
], 512)), [
|
|
308
307
|
[vShow, _ctx.active && _ctx.modelValue.length > 0]
|
|
@@ -14,11 +14,11 @@ const _sfc_main = create({
|
|
|
14
14
|
},
|
|
15
15
|
inputWidth: {
|
|
16
16
|
type: [Number, String],
|
|
17
|
-
default: "
|
|
17
|
+
default: ""
|
|
18
18
|
},
|
|
19
19
|
buttonSize: {
|
|
20
20
|
type: [Number, String],
|
|
21
|
-
default: "
|
|
21
|
+
default: ""
|
|
22
22
|
},
|
|
23
23
|
min: {
|
|
24
24
|
type: [Number, String],
|
|
@@ -136,7 +136,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
136
136
|
class: normalizeClass(["nut-input-number__icon nut-input-number__left", { "nut-input-number__icon--disabled": !_ctx.reduceAllow() }]),
|
|
137
137
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.reduce && _ctx.reduce(...args))
|
|
138
138
|
}, [
|
|
139
|
-
renderSlot(_ctx.$slots, "
|
|
139
|
+
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
140
140
|
createVNode(_component_Minus, {
|
|
141
141
|
width: _ctx.pxCheck(_ctx.buttonSize),
|
|
142
142
|
height: _ctx.pxCheck(_ctx.buttonSize)
|
|
@@ -147,7 +147,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
147
147
|
type: "number",
|
|
148
148
|
min: _ctx.min,
|
|
149
149
|
max: _ctx.max,
|
|
150
|
-
style: normalizeStyle({ width: _ctx.pxCheck(_ctx.inputWidth) }),
|
|
150
|
+
style: normalizeStyle({ width: _ctx.pxCheck(_ctx.inputWidth), height: _ctx.pxCheck(_ctx.buttonSize) }),
|
|
151
151
|
disabled: _ctx.disabled,
|
|
152
152
|
readonly: _ctx.readonly,
|
|
153
153
|
value: _ctx.modelValue,
|
|
@@ -159,7 +159,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
159
|
class: normalizeClass(["nut-input-number__icon nut-input-number__right", { "nut-input-number__icon--disabled": !_ctx.addAllow() }]),
|
|
160
160
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.add && _ctx.add(...args))
|
|
161
161
|
}, [
|
|
162
|
-
renderSlot(_ctx.$slots, "
|
|
162
|
+
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
163
163
|
createVNode(_component_Plus, {
|
|
164
164
|
width: _ctx.pxCheck(_ctx.buttonSize),
|
|
165
165
|
height: _ctx.pxCheck(_ctx.buttonSize)
|
|
@@ -57,8 +57,7 @@ const _sfc_main = create({
|
|
|
57
57
|
var _a;
|
|
58
58
|
const scrollTop = (_a = list.value) == null ? void 0 : _a.scrollTop;
|
|
59
59
|
state.start = Math.floor(scrollTop / props.height);
|
|
60
|
-
if (end.value
|
|
61
|
-
emit("scroll");
|
|
60
|
+
if (end.value >= state.list.length) {
|
|
62
61
|
emit("scroll-bottom");
|
|
63
62
|
}
|
|
64
63
|
state.startOffset = scrollTop - scrollTop % props.height;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, computed, inject, getCurrentInstance, onUnmounted, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, vShow, createVNode, mergeProps, withCtx, Fragment, renderList, renderSlot, createCommentVNode, toDisplayString } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
4
4
|
import { Check } from "@nutui/icons-vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
@@ -121,7 +121,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
121
121
|
class: "nut-navbar__left",
|
|
122
122
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
|
|
123
123
|
}, [
|
|
124
|
-
_ctx.leftShow ? renderSlot(_ctx.$slots, "
|
|
124
|
+
_ctx.leftShow ? renderSlot(_ctx.$slots, "left-show", { key: 0 }, () => [
|
|
125
125
|
createVNode(_component_Left, {
|
|
126
126
|
height: "12px",
|
|
127
127
|
color: "#979797"
|
|
@@ -141,7 +141,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
141
141
|
class: "icon",
|
|
142
142
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
143
143
|
}, [
|
|
144
|
-
renderSlot(_ctx.$slots, "
|
|
144
|
+
renderSlot(_ctx.$slots, "title-icon", {
|
|
145
145
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
146
146
|
})
|
|
147
147
|
])) : createCommentVNode("", true),
|
|
@@ -164,7 +164,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
164
164
|
class: "nut-navbar__left",
|
|
165
165
|
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
|
|
166
166
|
}, [
|
|
167
|
-
_ctx.leftShow ? renderSlot(_ctx.$slots, "
|
|
167
|
+
_ctx.leftShow ? renderSlot(_ctx.$slots, "left-show", { key: 0 }, () => [
|
|
168
168
|
createVNode(_component_Left, {
|
|
169
169
|
height: "12px",
|
|
170
170
|
color: "#979797"
|
|
@@ -184,7 +184,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
184
184
|
class: "icon",
|
|
185
185
|
onClick: _cache[8] || (_cache[8] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
186
186
|
}, [
|
|
187
|
-
renderSlot(_ctx.$slots, "
|
|
187
|
+
renderSlot(_ctx.$slots, "title-icon", {
|
|
188
188
|
onClick: _cache[7] || (_cache[7] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
189
189
|
})
|
|
190
190
|
])) : createCommentVNode("", true),
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, createElementVNode, renderSlot, createBlock,
|
|
1
|
+
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, createElementVNode, renderSlot, createBlock, createCommentVNode, createTextVNode, toDisplayString, withModifiers, vShow, Fragment, renderList } from "vue";
|
|
2
2
|
import { Notice, CircleClose } from "@nutui/icons-vue";
|
|
3
3
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
4
|
-
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
5
4
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
6
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
6
|
import "../locale/lang";
|
|
@@ -42,8 +41,7 @@ const _sfc_main = create({
|
|
|
42
41
|
type: Boolean,
|
|
43
42
|
default: false
|
|
44
43
|
},
|
|
45
|
-
leftIcon: { type:
|
|
46
|
-
rightIcon: { type: Object || String, default: "" },
|
|
44
|
+
leftIcon: { type: Boolean, default: true },
|
|
47
45
|
color: {
|
|
48
46
|
type: String,
|
|
49
47
|
default: ""
|
|
@@ -229,6 +227,9 @@ const _sfc_main = create({
|
|
|
229
227
|
emit("click", item);
|
|
230
228
|
};
|
|
231
229
|
const handleClickIcon = () => {
|
|
230
|
+
if (props.closeMode) {
|
|
231
|
+
state.showNoticebar = !props.closeMode;
|
|
232
|
+
}
|
|
232
233
|
emit("close", state.scrollList[0]);
|
|
233
234
|
};
|
|
234
235
|
onMounted(() => {
|
|
@@ -274,8 +275,7 @@ const _sfc_main = create({
|
|
|
274
275
|
handleClickIcon,
|
|
275
276
|
slots,
|
|
276
277
|
pxCheck,
|
|
277
|
-
wrapContentClass
|
|
278
|
-
renderIcon
|
|
278
|
+
wrapContentClass
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
281
|
});
|
|
@@ -286,6 +286,7 @@ const _hoisted_2 = {
|
|
|
286
286
|
};
|
|
287
287
|
const _hoisted_3 = ["onClick"];
|
|
288
288
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
289
|
+
const _component_Notice = resolveComponent("Notice");
|
|
289
290
|
const _component_CircleClose = resolveComponent("CircleClose");
|
|
290
291
|
const _component_ScrollItem = resolveComponent("ScrollItem");
|
|
291
292
|
return openBlock(), createElementBlock("view", {
|
|
@@ -302,7 +303,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
302
303
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
303
304
|
}, [
|
|
304
305
|
createElementVNode("view", _hoisted_1, [
|
|
305
|
-
|
|
306
|
+
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
307
|
+
_ctx.leftIcon ? (openBlock(), createBlock(_component_Notice, {
|
|
308
|
+
key: 0,
|
|
309
|
+
size: "16px"
|
|
310
|
+
})) : createCommentVNode("", true)
|
|
311
|
+
])
|
|
306
312
|
]),
|
|
307
313
|
createElementVNode("view", _hoisted_2, [
|
|
308
314
|
createElementVNode("view", {
|
|
@@ -317,7 +323,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
317
323
|
])
|
|
318
324
|
], 38)
|
|
319
325
|
], 512),
|
|
320
|
-
_ctx.closeMode || _ctx
|
|
326
|
+
_ctx.closeMode || _ctx.$slots["right-icon"] ? (openBlock(), createElementBlock("view", {
|
|
321
327
|
key: 0,
|
|
322
328
|
class: "nut-noticebar__page-righticon",
|
|
323
329
|
onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
|
|
@@ -327,7 +333,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
327
333
|
], 6)), [
|
|
328
334
|
[vShow, _ctx.showNoticebar]
|
|
329
335
|
]) : createCommentVNode("", true),
|
|
330
|
-
_ctx.scrollList.length > 0 && _ctx.direction == "vertical" ? (openBlock(), createElementBlock("view", {
|
|
336
|
+
_ctx.scrollList.length > 0 && _ctx.direction == "vertical" && _ctx.showNoticebar ? (openBlock(), createElementBlock("view", {
|
|
331
337
|
key: 1,
|
|
332
338
|
class: "nut-noticebar__vertical",
|
|
333
339
|
style: normalizeStyle(_ctx.barStyle)
|
|
@@ -362,11 +368,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
362
368
|
class: "go",
|
|
363
369
|
onClick: _cache[4] || (_cache[4] = ($event) => !_ctx.slots.rightIcon && _ctx.handleClickIcon())
|
|
364
370
|
}, [
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
371
|
+
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
372
|
+
_ctx.closeMode ? (openBlock(), createBlock(_component_CircleClose, {
|
|
373
|
+
key: 0,
|
|
374
|
+
color: _ctx.color,
|
|
375
|
+
size: "11px"
|
|
376
|
+
}, null, 8, ["color"])) : createCommentVNode("", true)
|
|
377
|
+
])
|
|
370
378
|
])
|
|
371
379
|
], 4)) : createCommentVNode("", true)
|
|
372
380
|
], 2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "./Overlay.js";
|
|
@@ -214,7 +214,6 @@ const showNotify = {
|
|
|
214
214
|
},
|
|
215
215
|
install(app) {
|
|
216
216
|
app.use(Notify);
|
|
217
|
-
app.config.globalProperties.$notify = showNotify;
|
|
218
217
|
}
|
|
219
218
|
};
|
|
220
219
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "./Overlay.js";
|
|
@@ -126,9 +126,9 @@ const _sfc_main = create({
|
|
|
126
126
|
(value) => {
|
|
127
127
|
show.value = value;
|
|
128
128
|
if (value) {
|
|
129
|
-
window.addEventListener("touchstart", clickAway,
|
|
129
|
+
window.addEventListener("touchstart", clickAway, false);
|
|
130
130
|
} else {
|
|
131
|
-
window.removeEventListener("touchstart", clickAway,
|
|
131
|
+
window.removeEventListener("touchstart", clickAway, false);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
);
|
|
@@ -7,14 +7,20 @@ const CLSNAME = "nut-overflow-hidden";
|
|
|
7
7
|
const useLockScroll = (isLock) => {
|
|
8
8
|
const lock = () => {
|
|
9
9
|
if (isLock()) {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
try {
|
|
11
|
+
!count && body.classList.add(CLSNAME);
|
|
12
|
+
count++;
|
|
13
|
+
} catch (error) {
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
};
|
|
14
17
|
const unlock = () => {
|
|
15
18
|
if (isLock() && count) {
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
try {
|
|
20
|
+
count--;
|
|
21
|
+
!count && body.classList.remove(CLSNAME);
|
|
22
|
+
} catch (error) {
|
|
23
|
+
}
|
|
18
24
|
}
|
|
19
25
|
};
|
|
20
26
|
return [lock, unlock];
|
|
@@ -36,7 +42,7 @@ const _sfc_main = create({
|
|
|
36
42
|
},
|
|
37
43
|
lockScroll: {
|
|
38
44
|
type: Boolean,
|
|
39
|
-
default:
|
|
45
|
+
default: true
|
|
40
46
|
},
|
|
41
47
|
overlayClass: {
|
|
42
48
|
type: String,
|
|
@@ -236,7 +236,7 @@ const _sfc_main$1 = create$1({
|
|
|
236
236
|
let dom = roller.value;
|
|
237
237
|
const { transform } = window.getComputedStyle(dom);
|
|
238
238
|
if (props.threeDimensional) {
|
|
239
|
-
const circle = Math.floor(touchDeg.value / 360);
|
|
239
|
+
const circle = Math.floor(parseInt(touchDeg.value) / 360);
|
|
240
240
|
const cos = +transform.split(", ")[5];
|
|
241
241
|
const sin = +transform.split(", ")[6] < 0 ? 180 : 0;
|
|
242
242
|
const endDeg = circle * 360 + Math.acos(cos) / Math.PI * 180 + sin;
|
|
@@ -245,6 +245,7 @@ const _sfc_main$1 = create$1({
|
|
|
245
245
|
state.scrollDistance = +transform.slice(7, transform.length - 1).split(", ")[5];
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
+
preventDefault(event, true);
|
|
248
249
|
state.touchParams.startY = touch.deltaY.value;
|
|
249
250
|
state.touchParams.startTime = Date.now();
|
|
250
251
|
state.transformY = state.scrollDistance;
|
|
@@ -2,7 +2,7 @@ import { ref, computed, onMounted, watch, resolveComponent, openBlock, createEle
|
|
|
2
2
|
import { i as isArray, c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
4
4
|
import { u as useRect } from "./index-29892cda.js";
|
|
5
|
-
import { P as Popup } from "./index-
|
|
5
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "./Overlay.js";
|
|
@@ -21,7 +21,6 @@ const _sfc_main = create({
|
|
|
21
21
|
arrowOffset: { type: Number, default: 0 },
|
|
22
22
|
customClass: { type: String, default: "" },
|
|
23
23
|
showArrow: { type: Boolean, default: true },
|
|
24
|
-
iconPrefix: { type: String, default: "nut-icon" },
|
|
25
24
|
duration: { type: [Number, String], default: 0.3 },
|
|
26
25
|
overlay: { type: Boolean, default: false },
|
|
27
26
|
overlayClass: { type: String, default: "" },
|
|
@@ -54,9 +54,12 @@ const _sfc_main = create({
|
|
|
54
54
|
const height = ref(props.strokeWidth + "px");
|
|
55
55
|
const progressOuter = ref();
|
|
56
56
|
const insideText = ref();
|
|
57
|
+
const percentage = computed(() => {
|
|
58
|
+
return props.percentage >= 100 ? 100 : props.percentage;
|
|
59
|
+
});
|
|
57
60
|
const bgStyle = computed(() => {
|
|
58
61
|
return {
|
|
59
|
-
width:
|
|
62
|
+
width: percentage.value + "%",
|
|
60
63
|
background: props.strokeColor || ""
|
|
61
64
|
};
|
|
62
65
|
});
|
|
@@ -69,6 +72,7 @@ const _sfc_main = create({
|
|
|
69
72
|
});
|
|
70
73
|
return {
|
|
71
74
|
height,
|
|
75
|
+
percentage,
|
|
72
76
|
bgStyle,
|
|
73
77
|
textStyle,
|
|
74
78
|
progressOuter,
|
|
@@ -78,6 +82,10 @@ const _sfc_main = create({
|
|
|
78
82
|
}
|
|
79
83
|
});
|
|
80
84
|
const _hoisted_1 = { class: "nut-progress" };
|
|
85
|
+
const _hoisted_2 = {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "nut-progress-text"
|
|
88
|
+
};
|
|
81
89
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
82
90
|
const _component_Checked = resolveComponent("Checked");
|
|
83
91
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -89,52 +97,47 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
89
97
|
createElementVNode("div", {
|
|
90
98
|
class: normalizeClass(["nut-progress-inner", _ctx.status == "active" ? "nut-active" : ""]),
|
|
91
99
|
style: normalizeStyle(_ctx.bgStyle)
|
|
100
|
+
}, null, 6),
|
|
101
|
+
_ctx.showText && _ctx.textInside && !_ctx.slotDefault ? (openBlock(), createElementBlock("div", {
|
|
102
|
+
key: 0,
|
|
103
|
+
class: "nut-progress-text nut-progress-insidetext",
|
|
104
|
+
ref: "insideText",
|
|
105
|
+
style: normalizeStyle({
|
|
106
|
+
lineHeight: _ctx.height,
|
|
107
|
+
left: `${_ctx.percentage}%`,
|
|
108
|
+
transform: `translate(-${+_ctx.percentage}%,-50%)`,
|
|
109
|
+
background: _ctx.textBackground || _ctx.strokeColor
|
|
110
|
+
})
|
|
92
111
|
}, [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
key: 1,
|
|
110
|
-
ref: "insideText",
|
|
111
|
-
style: normalizeStyle({
|
|
112
|
-
position: `absolute`,
|
|
113
|
-
top: `50%`,
|
|
114
|
-
left: `${_ctx.percentage}%`,
|
|
115
|
-
transform: `translate(-${+_ctx.percentage}%,-50%)`
|
|
116
|
-
})
|
|
117
|
-
}, [
|
|
118
|
-
renderSlot(_ctx.$slots, "default")
|
|
119
|
-
], 4)) : createCommentVNode("", true)
|
|
120
|
-
], 6)
|
|
112
|
+
createElementVNode("span", {
|
|
113
|
+
style: normalizeStyle(_ctx.textStyle)
|
|
114
|
+
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)
|
|
115
|
+
], 4)) : createCommentVNode("", true),
|
|
116
|
+
_ctx.showText && _ctx.textInside && _ctx.slotDefault ? (openBlock(), createElementBlock("div", {
|
|
117
|
+
key: 1,
|
|
118
|
+
ref: "insideText",
|
|
119
|
+
style: normalizeStyle({
|
|
120
|
+
position: `absolute`,
|
|
121
|
+
top: `50%`,
|
|
122
|
+
left: `${_ctx.percentage}%`,
|
|
123
|
+
transform: `translate(-${+_ctx.percentage}%,-50%)`
|
|
124
|
+
})
|
|
125
|
+
}, [
|
|
126
|
+
renderSlot(_ctx.$slots, "default")
|
|
127
|
+
], 4)) : createCommentVNode("", true)
|
|
121
128
|
], 6),
|
|
122
|
-
_ctx.showText && !_ctx.textInside ? (openBlock(), createElementBlock("div",
|
|
123
|
-
key: 0,
|
|
124
|
-
class: "nut-progress-text",
|
|
125
|
-
style: normalizeStyle({ lineHeight: _ctx.height })
|
|
126
|
-
}, [
|
|
129
|
+
_ctx.showText && !_ctx.textInside ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
127
130
|
_ctx.status == "active" || _ctx.status == "" ? (openBlock(), createElementBlock("span", {
|
|
128
131
|
key: 0,
|
|
129
132
|
style: normalizeStyle(_ctx.textStyle)
|
|
130
|
-
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? renderSlot(_ctx.$slots, "
|
|
133
|
+
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? renderSlot(_ctx.$slots, "icon-name", { key: 1 }, () => [
|
|
131
134
|
createVNode(_component_Checked, {
|
|
132
135
|
width: "15px",
|
|
133
136
|
height: "15px",
|
|
134
137
|
color: "#439422"
|
|
135
138
|
})
|
|
136
139
|
]) : createCommentVNode("", true)
|
|
137
|
-
]
|
|
140
|
+
])) : createCommentVNode("", true)
|
|
138
141
|
]);
|
|
139
142
|
}
|
|
140
143
|
const Progress = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -6,7 +6,7 @@ import { u as useScrollParent } from "./index-43c34ac6.js";
|
|
|
6
6
|
import { Loading } from "@nutui/icons-vue";
|
|
7
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
8
8
|
import "../locale/lang";
|
|
9
|
-
const { componentName, create, translate } = createComponent("
|
|
9
|
+
const { componentName, create, translate } = createComponent("pull-refresh");
|
|
10
10
|
const _sfc_main = create({
|
|
11
11
|
props: {
|
|
12
12
|
modelValue: {
|
|
@@ -25,10 +25,6 @@ const _sfc_main = create({
|
|
|
25
25
|
type: String,
|
|
26
26
|
default: translate("loading")
|
|
27
27
|
},
|
|
28
|
-
completeTxt: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: ""
|
|
31
|
-
},
|
|
32
28
|
headHeight: {
|
|
33
29
|
type: [String, Number],
|
|
34
30
|
default: 50
|
|
@@ -67,8 +63,6 @@ const _sfc_main = create({
|
|
|
67
63
|
return !slots.loosing ? props.loosingTxt : "";
|
|
68
64
|
case "loading":
|
|
69
65
|
return !slots.loading ? props.loadingTxt : "";
|
|
70
|
-
case "complete":
|
|
71
|
-
return !slots.complete ? props.completeTxt : "";
|
|
72
66
|
}
|
|
73
67
|
});
|
|
74
68
|
const getStyle = computed(() => {
|
|
@@ -179,7 +173,7 @@ const _sfc_main = create({
|
|
|
179
173
|
};
|
|
180
174
|
}
|
|
181
175
|
});
|
|
182
|
-
const _hoisted_1 = { class: "nut-
|
|
176
|
+
const _hoisted_1 = { class: "nut-pull-refresh-container-topbox-text" };
|
|
183
177
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
184
178
|
const _component_Loading = resolveComponent("Loading");
|
|
185
179
|
return openBlock(), createElementBlock("div", {
|
|
@@ -190,22 +184,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
190
184
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
191
185
|
}, [
|
|
192
186
|
createElementVNode("div", {
|
|
193
|
-
class: "nut-
|
|
187
|
+
class: "nut-pull-refresh-container",
|
|
194
188
|
style: normalizeStyle(_ctx.getStyle)
|
|
195
189
|
}, [
|
|
196
190
|
createElementVNode("div", {
|
|
197
|
-
class: "nut-
|
|
191
|
+
class: "nut-pull-refresh-container-topbox",
|
|
198
192
|
style: normalizeStyle(_ctx.getHeightStyle)
|
|
199
193
|
}, [
|
|
200
194
|
_ctx.status == "loading" && !_ctx.slots.loading ? (openBlock(), createBlock(_component_Loading, {
|
|
201
195
|
key: 0,
|
|
202
|
-
class: "nut-icon-loading nut-
|
|
196
|
+
class: "nut-icon-loading nut-pull-refresh-container-topbox-icon"
|
|
203
197
|
})) : createCommentVNode("", true),
|
|
204
198
|
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.getPullStatus), 1),
|
|
205
199
|
_ctx.status == "pulling" ? renderSlot(_ctx.$slots, "pulling", { key: 1 }) : createCommentVNode("", true),
|
|
206
200
|
_ctx.status == "loosing" ? renderSlot(_ctx.$slots, "loosing", { key: 2 }) : createCommentVNode("", true),
|
|
207
|
-
_ctx.status == "loading" ? renderSlot(_ctx.$slots, "loading", { key: 3 }) : createCommentVNode("", true)
|
|
208
|
-
_ctx.status == "complete" ? renderSlot(_ctx.$slots, "complete", { key: 4 }) : createCommentVNode("", true)
|
|
201
|
+
_ctx.status == "loading" ? renderSlot(_ctx.$slots, "loading", { key: 3 }) : createCommentVNode("", true)
|
|
209
202
|
], 4),
|
|
210
203
|
renderSlot(_ctx.$slots, "default")
|
|
211
204
|
], 4)
|