@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ref, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, createCommentVNode } from "vue";
|
|
2
|
+
import { StarFillN } from "@nutui/icons-vue";
|
|
3
3
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
4
4
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
5
5
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
@@ -17,12 +17,16 @@ const _sfc_main = create({
|
|
|
17
17
|
type: [String, Number],
|
|
18
18
|
default: 0
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
customIcon: {
|
|
21
21
|
type: Object,
|
|
22
22
|
default: () => {
|
|
23
|
-
return
|
|
23
|
+
return StarFillN;
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
+
size: {
|
|
27
|
+
type: [String, Number],
|
|
28
|
+
default: void 0
|
|
29
|
+
},
|
|
26
30
|
activeColor: {
|
|
27
31
|
type: String,
|
|
28
32
|
default: ""
|
|
@@ -49,10 +53,10 @@ const _sfc_main = create({
|
|
|
49
53
|
},
|
|
50
54
|
spacing: {
|
|
51
55
|
type: [String, Number],
|
|
52
|
-
default:
|
|
56
|
+
default: void 0
|
|
53
57
|
}
|
|
54
58
|
},
|
|
55
|
-
components: {
|
|
59
|
+
components: { StarFillN },
|
|
56
60
|
emits: ["update:modelValue", "change"],
|
|
57
61
|
setup(props, { emit, slots }) {
|
|
58
62
|
const rateRefs = ref([]);
|
|
@@ -98,12 +102,12 @@ const _sfc_main = create({
|
|
|
98
102
|
const touch = useTouch();
|
|
99
103
|
const touchMethods = {
|
|
100
104
|
onTouchStart(event) {
|
|
101
|
-
if (!props.touchable)
|
|
105
|
+
if (!props.touchable || props.readonly)
|
|
102
106
|
return;
|
|
103
107
|
touch.start(event);
|
|
104
108
|
},
|
|
105
109
|
onTouchMove(event) {
|
|
106
|
-
if (!props.touchable
|
|
110
|
+
if (!props.touchable)
|
|
107
111
|
return;
|
|
108
112
|
touch.move(event);
|
|
109
113
|
if (touch.isHorizontal()) {
|
|
@@ -149,27 +153,24 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149
153
|
ref_for: true,
|
|
150
154
|
ref: "rateRefs",
|
|
151
155
|
id: "rateRefs-" + _ctx.refRandomId + n,
|
|
152
|
-
style: normalizeStyle({ marginRight: _ctx.pxCheck(_ctx.spacing) })
|
|
156
|
+
style: normalizeStyle(n < Number(_ctx.count) ? { marginRight: _ctx.pxCheck(_ctx.spacing) } : {})
|
|
153
157
|
}, [
|
|
154
158
|
createElementVNode("view", null, [
|
|
155
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.
|
|
159
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.customIcon, { width: _ctx.size, height: _ctx.size, size: _ctx.size, color: n <= _ctx.modelValue ? _ctx.activeColor : _ctx.voidColor })), {
|
|
156
160
|
class: normalizeClass(["nut-rate-item__icon", { "nut-rate-item__icon--disabled": _ctx.disabled || n > _ctx.modelValue }]),
|
|
157
|
-
color: n <= _ctx.modelValue ? _ctx.activeColor : _ctx.voidColor,
|
|
158
161
|
onClick: ($event) => _ctx.onClick(1, n)
|
|
159
|
-
}, null, 8, ["class", "
|
|
162
|
+
}, null, 8, ["class", "onClick"]))
|
|
160
163
|
]),
|
|
161
164
|
_ctx.allowHalf && Number(_ctx.modelValue) + 1 > n ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
162
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.
|
|
165
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.customIcon, { width: _ctx.size, height: _ctx.size, size: _ctx.size, color: n <= Number(_ctx.modelValue) + 1 ? _ctx.activeColor : _ctx.voidColor })), {
|
|
163
166
|
class: "nut-rate-item__icon",
|
|
164
|
-
color: n <= Number(_ctx.modelValue) + 1 ? _ctx.activeColor : _ctx.voidColor,
|
|
165
167
|
onClick: ($event) => _ctx.onClick(2, n)
|
|
166
|
-
}, null, 8, ["
|
|
168
|
+
}, null, 8, ["onClick"]))
|
|
167
169
|
])) : _ctx.allowHalf && Number(_ctx.modelValue) + 1 < n ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
168
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.
|
|
170
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.customIcon, { width: _ctx.size, height: _ctx.size, size: _ctx.size, color: _ctx.voidColor })), {
|
|
169
171
|
class: "nut-rate-item__icon nut-rate-item__icon--disabled",
|
|
170
|
-
color: _ctx.voidColor,
|
|
171
172
|
onClick: ($event) => _ctx.onClick(2, n)
|
|
172
|
-
}, null, 8, ["
|
|
173
|
+
}, null, 8, ["onClick"]))
|
|
173
174
|
])) : createCommentVNode("", true)
|
|
174
175
|
], 12, _hoisted_1);
|
|
175
176
|
}), 128))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive, computed, ref, onMounted, toRefs, openBlock, createElementBlock, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createElementVNode, withModifiers, withDirectives, createBlock, resolveDynamicComponent, vShow } from "vue";
|
|
1
|
+
import { reactive, computed, ref, onMounted, toRefs, openBlock, createElementBlock, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createElementVNode, normalizeClass, withModifiers, withDirectives, createBlock, resolveDynamicComponent, vShow } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
4
4
|
import { CircleClose } from "@nutui/icons-vue";
|
|
@@ -80,7 +80,6 @@ const _sfc_main = create({
|
|
|
80
80
|
const state = reactive({
|
|
81
81
|
active: false
|
|
82
82
|
});
|
|
83
|
-
console.log(slots);
|
|
84
83
|
const searchbarStyle = computed(() => {
|
|
85
84
|
return {
|
|
86
85
|
background: props.background
|
|
@@ -177,8 +176,11 @@ const _hoisted_2 = {
|
|
|
177
176
|
key: 1,
|
|
178
177
|
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
179
178
|
};
|
|
180
|
-
const _hoisted_3 =
|
|
181
|
-
const _hoisted_4 =
|
|
179
|
+
const _hoisted_3 = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
|
|
180
|
+
const _hoisted_4 = {
|
|
181
|
+
key: 1,
|
|
182
|
+
class: "nut-searchbar__search-icon nut-searchbar__iptright-search-icon"
|
|
183
|
+
};
|
|
182
184
|
const _hoisted_5 = {
|
|
183
185
|
key: 2,
|
|
184
186
|
class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
|
|
@@ -203,14 +205,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
203
205
|
}, [
|
|
204
206
|
renderSlot(_ctx.$slots, "leftin")
|
|
205
207
|
])) : createCommentVNode("", true),
|
|
206
|
-
createElementVNode("view",
|
|
208
|
+
createElementVNode("view", {
|
|
209
|
+
class: normalizeClass(["nut-searchbar__input-inner", _ctx.$slots.rightin && "nut-searchbar__input-inner-absolute"])
|
|
210
|
+
}, [
|
|
207
211
|
createElementVNode("form", {
|
|
212
|
+
class: "nut-searchbar__input-form",
|
|
208
213
|
action: "#",
|
|
209
214
|
onSubmit: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
210
215
|
}, [
|
|
211
216
|
createElementVNode("input", {
|
|
212
217
|
ref: "inputsearch",
|
|
213
|
-
class: "nut-searchbar__input-bar",
|
|
218
|
+
class: normalizeClass(["nut-searchbar__input-bar", _ctx.clearable && "nut-searchbar__input-bar_clear"]),
|
|
214
219
|
type: _ctx.inputType,
|
|
215
220
|
maxlength: _ctx.maxLength,
|
|
216
221
|
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
@@ -222,25 +227,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
222
227
|
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
|
|
223
228
|
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args)),
|
|
224
229
|
style: normalizeStyle(_ctx.styleSearchbar)
|
|
225
|
-
}, null,
|
|
226
|
-
], 32)
|
|
230
|
+
}, null, 46, _hoisted_3)
|
|
231
|
+
], 32)
|
|
232
|
+
], 2),
|
|
233
|
+
createElementVNode("view", {
|
|
234
|
+
class: normalizeClass(["nut-searchbar__input-inner-icon", _ctx.$slots.rightin && "nut-searchbar__input-inner-icon-absolute"])
|
|
235
|
+
}, [
|
|
227
236
|
_ctx.clearable ? withDirectives((openBlock(), createElementBlock("view", {
|
|
228
237
|
key: 0,
|
|
229
238
|
onClick: _cache[6] || (_cache[6] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
|
|
230
|
-
class: "nut-searchbar__input-clear"
|
|
239
|
+
class: "nut-searchbar__search-icon nut-searchbar__input-clear"
|
|
231
240
|
}, [
|
|
232
|
-
_ctx.$slots
|
|
241
|
+
_ctx.$slots["clear-icon"] ? renderSlot(_ctx.$slots, "clear-icon", { key: 0 }) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.clearIcon)), { key: 1 }))
|
|
233
242
|
], 512)), [
|
|
234
243
|
[vShow, String(_ctx.modelValue).length > 0]
|
|
235
|
-
]) : createCommentVNode("", true)
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
onClick: _cache[7] || (_cache[7] = (...args) => _ctx.rightIconClick && _ctx.rightIconClick(...args))
|
|
241
|
-
}, [
|
|
242
|
-
renderSlot(_ctx.$slots, "rightin")
|
|
243
|
-
])) : createCommentVNode("", true)
|
|
244
|
+
]) : createCommentVNode("", true),
|
|
245
|
+
_ctx.$slots.rightin ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
246
|
+
renderSlot(_ctx.$slots, "rightin")
|
|
247
|
+
])) : createCommentVNode("", true)
|
|
248
|
+
], 2)
|
|
244
249
|
], 4),
|
|
245
250
|
_ctx.$slots.rightout ? (openBlock(), createElementBlock("view", _hoisted_5, [
|
|
246
251
|
renderSlot(_ctx.$slots, "rightout")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, Fragment, renderList, createCommentVNode } 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 { Tips } from "@nutui/icons-vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
@@ -50,10 +50,10 @@ const _sfc_main = create({
|
|
|
50
50
|
const realInput = ref(props.modelValue);
|
|
51
51
|
const comLen = computed(() => range(Number(props.length)));
|
|
52
52
|
const show = ref(props.visible);
|
|
53
|
-
|
|
53
|
+
const onTouchStart = (event) => {
|
|
54
54
|
event.stopPropagation();
|
|
55
55
|
emit("focus");
|
|
56
|
-
}
|
|
56
|
+
};
|
|
57
57
|
watch(
|
|
58
58
|
() => props.visible,
|
|
59
59
|
(value) => {
|
|
@@ -69,20 +69,20 @@ const _sfc_main = create({
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
|
-
|
|
72
|
+
const close = () => {
|
|
73
73
|
emit("update:visible", false);
|
|
74
74
|
emit("close");
|
|
75
|
-
}
|
|
76
|
-
|
|
75
|
+
};
|
|
76
|
+
const range = (val) => {
|
|
77
77
|
return Math.min(Math.max(4, val), 6);
|
|
78
|
-
}
|
|
79
|
-
|
|
78
|
+
};
|
|
79
|
+
const onTips = () => {
|
|
80
80
|
emit("tips");
|
|
81
|
-
}
|
|
81
|
+
};
|
|
82
82
|
return {
|
|
83
83
|
comLen,
|
|
84
84
|
realInput,
|
|
85
|
-
|
|
85
|
+
onTouchStart,
|
|
86
86
|
range,
|
|
87
87
|
close,
|
|
88
88
|
onTips,
|
|
@@ -129,7 +129,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
129
129
|
createElementVNode("div", _hoisted_3, [
|
|
130
130
|
createElementVNode("view", {
|
|
131
131
|
class: "nut-short-password__list",
|
|
132
|
-
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
132
|
+
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args))
|
|
133
133
|
}, [
|
|
134
134
|
(openBlock(true), createElementBlock(Fragment, null, renderList(new Array(_ctx.comLen), (sublen, index2) => {
|
|
135
135
|
return openBlock(), createElementBlock("view", {
|
|
@@ -104,6 +104,15 @@ const _sfc_main = create({
|
|
|
104
104
|
const confirm = () => {
|
|
105
105
|
onSave(canvas.value);
|
|
106
106
|
};
|
|
107
|
+
const isCanvasBlank = (canvas2) => {
|
|
108
|
+
if (!canvas2) {
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
var blank = document.createElement("canvas");
|
|
112
|
+
blank.width = canvas2.width;
|
|
113
|
+
blank.height = canvas2.height;
|
|
114
|
+
return (canvas2 == null ? void 0 : canvas2.toDataURL()) == blank.toDataURL();
|
|
115
|
+
};
|
|
107
116
|
const onSave = (canvas2) => {
|
|
108
117
|
let dataurl;
|
|
109
118
|
switch (props.type) {
|
|
@@ -114,8 +123,10 @@ const _sfc_main = create({
|
|
|
114
123
|
dataurl = canvas2.toDataURL("image/jpeg", 0.8);
|
|
115
124
|
break;
|
|
116
125
|
}
|
|
126
|
+
const _canvas = isCanvasBlank(canvas2) ? "请绘制签名" : canvas2;
|
|
127
|
+
const _filePath = isCanvasBlank(canvas2) ? "" : dataurl;
|
|
117
128
|
clear();
|
|
118
|
-
emit("confirm",
|
|
129
|
+
emit("confirm", _canvas, _filePath);
|
|
119
130
|
};
|
|
120
131
|
onMounted(() => {
|
|
121
132
|
if (isCanvasSupported()) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
|
-
import { toRefs, computed,
|
|
2
|
+
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
|
|
3
3
|
import Avatar from "./Avatar.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -13,7 +13,7 @@ const component = (components) => {
|
|
|
13
13
|
},
|
|
14
14
|
height: {
|
|
15
15
|
type: String,
|
|
16
|
-
default: "
|
|
16
|
+
default: "15px"
|
|
17
17
|
},
|
|
18
18
|
animated: {
|
|
19
19
|
type: Boolean,
|
|
@@ -75,8 +75,6 @@ const component = (components) => {
|
|
|
75
75
|
height: "50px"
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
|
-
onMounted(() => {
|
|
79
|
-
});
|
|
80
78
|
return {
|
|
81
79
|
avatarShape,
|
|
82
80
|
avatarClass,
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
|
|
2
|
+
import Price from "./Price.js";
|
|
2
3
|
import { c as createComponent, T as TypeOfFun } from "./component-81a4c1d0.js";
|
|
3
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
|
-
import { p as popupProps, P as Popup } from "./index-da7aa231.js";
|
|
5
|
-
import Price from "./Price.js";
|
|
6
5
|
import InputNumber from "./InputNumber.js";
|
|
6
|
+
import { p as popupProps, P as Popup } from "./index-991c279f.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
|
-
import "./Overlay.js";
|
|
9
|
-
import "@nutui/icons-vue";
|
|
10
8
|
import "./pxCheck-c6b9f6b7.js";
|
|
9
|
+
import "@nutui/icons-vue";
|
|
10
|
+
import "./Overlay.js";
|
|
11
11
|
const { componentName: componentName$4, create: create$4, translate: translate$1 } = createComponent("sku-header");
|
|
12
12
|
const _sfc_main$4 = create$4({
|
|
13
13
|
props: {
|
|
@@ -17,6 +17,9 @@ const _sfc_main$4 = create$4({
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
emits: [],
|
|
20
|
+
components: {
|
|
21
|
+
[Price.name]: Price
|
|
22
|
+
},
|
|
20
23
|
setup(props, { emit, slots }) {
|
|
21
24
|
const getSlots = (name) => slots[name];
|
|
22
25
|
return {
|
|
@@ -36,6 +39,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36
39
|
const _component_nut_price = resolveComponent("nut-price");
|
|
37
40
|
return openBlock(), createElementBlock("view", _hoisted_1$4, [
|
|
38
41
|
createElementVNode("img", {
|
|
42
|
+
class: "nut-sku-header-img",
|
|
39
43
|
src: _ctx.goods.imagePath
|
|
40
44
|
}, null, 8, _hoisted_2$4),
|
|
41
45
|
createElementVNode("view", _hoisted_3$3, [
|
|
@@ -138,6 +142,9 @@ const _sfc_main$2 = create$2({
|
|
|
138
142
|
}
|
|
139
143
|
},
|
|
140
144
|
emits: ["click", "changeSku", "changeStepper", "clickBtnOptions", "overLimit", "reduce", "add"],
|
|
145
|
+
components: {
|
|
146
|
+
[InputNumber.name]: InputNumber
|
|
147
|
+
},
|
|
141
148
|
setup(props, { emit }) {
|
|
142
149
|
const goodsCount = ref(props.stepperMin);
|
|
143
150
|
onMounted(() => {
|
|
@@ -253,7 +260,10 @@ const _hoisted_1$1 = {
|
|
|
253
260
|
key: 0,
|
|
254
261
|
class: "nut-sku-operate"
|
|
255
262
|
};
|
|
256
|
-
const _hoisted_2$1 =
|
|
263
|
+
const _hoisted_2$1 = {
|
|
264
|
+
key: 0,
|
|
265
|
+
class: "nut-sku-operate-desc"
|
|
266
|
+
};
|
|
257
267
|
const _hoisted_3 = {
|
|
258
268
|
key: 1,
|
|
259
269
|
class: "nut-sku-operate-btn"
|
|
@@ -261,11 +271,7 @@ const _hoisted_3 = {
|
|
|
261
271
|
const _hoisted_4 = ["onClick"];
|
|
262
272
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
263
273
|
return _ctx.btnOptions.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_1$1, [
|
|
264
|
-
_ctx.btnExtraText ? (openBlock(), createElementBlock("view",
|
|
265
|
-
key: 0,
|
|
266
|
-
class: "nut-sku-operate-desc",
|
|
267
|
-
innerHTML: _ctx.btnExtraText
|
|
268
|
-
}, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
|
|
274
|
+
_ctx.btnExtraText ? (openBlock(), createElementBlock("view", _hoisted_2$1, toDisplayString(_ctx.btnExtraText), 1)) : createCommentVNode("", true),
|
|
269
275
|
renderSlot(_ctx.$slots, "operate-btn"),
|
|
270
276
|
!_ctx.getSlots("operate-btn") ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
271
277
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.btnOptions, (btn, i) => {
|
|
@@ -345,9 +351,7 @@ const _sfc_main = create({
|
|
|
345
351
|
SkuSelect,
|
|
346
352
|
SkuStepper,
|
|
347
353
|
SkuOperate,
|
|
348
|
-
[Popup.name]: Popup
|
|
349
|
-
[Price.name]: Price,
|
|
350
|
-
[InputNumber.name]: InputNumber
|
|
354
|
+
[Popup.name]: Popup
|
|
351
355
|
},
|
|
352
356
|
setup(props, { emit, slots }) {
|
|
353
357
|
const showPopup = ref(props.visible);
|
|
@@ -97,7 +97,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
97
97
|
}, [
|
|
98
98
|
createElementVNode("view", _hoisted_1, [
|
|
99
99
|
_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
100
|
-
createVNode(_component_Loading1, {
|
|
100
|
+
createVNode(_component_Loading1, {
|
|
101
|
+
name: "loading",
|
|
102
|
+
color: _ctx.activeColor
|
|
103
|
+
}, null, 8, ["color"])
|
|
101
104
|
]) : createCommentVNode("", true),
|
|
102
105
|
_ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
103
106
|
withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { defineComponent, h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
1
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
|
-
import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
3
3
|
import { DownArrow } from "@nutui/icons-vue";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
|
-
const RenderColumn = {
|
|
6
|
+
const RenderColumn = defineComponent({
|
|
7
7
|
setup(props) {
|
|
8
8
|
return () => h(`view`, {}, props.slots[0] ? props.slots[0](props.record) : props.slots[1](props.record));
|
|
9
9
|
},
|
|
@@ -11,103 +11,100 @@ const RenderColumn = {
|
|
|
11
11
|
slots: Array,
|
|
12
12
|
record: Object
|
|
13
13
|
}
|
|
14
|
-
};
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
});
|
|
15
|
+
const { componentName, create, translate } = createComponent("table");
|
|
16
|
+
const _sfc_main = create({
|
|
17
|
+
components: {
|
|
18
|
+
RenderColumn,
|
|
19
|
+
DownArrow
|
|
20
|
+
},
|
|
21
|
+
props: {
|
|
22
|
+
bordered: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: true
|
|
20
25
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
columns: {
|
|
27
|
-
type: Array,
|
|
28
|
-
default: () => {
|
|
29
|
-
return [];
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
data: {
|
|
33
|
-
type: Object,
|
|
34
|
-
default: () => {
|
|
35
|
-
return {};
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
summary: {
|
|
39
|
-
type: Function,
|
|
40
|
-
default: null
|
|
41
|
-
},
|
|
42
|
-
striped: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: false
|
|
26
|
+
columns: {
|
|
27
|
+
type: Array,
|
|
28
|
+
default: () => {
|
|
29
|
+
return [];
|
|
45
30
|
}
|
|
46
31
|
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return props.columns.filter((item) => item.key === value)[0];
|
|
72
|
-
};
|
|
73
|
-
const getColumnItemStyle = (value) => {
|
|
74
|
-
const style = props.columns.filter((item) => item.key === value);
|
|
75
|
-
return style[0].stylecolumn ? style[0].stylecolumn : "";
|
|
76
|
-
};
|
|
77
|
-
const handleSorterClick = (item) => {
|
|
78
|
-
if (item.sorter) {
|
|
79
|
-
emit("sorter", item);
|
|
80
|
-
state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
const sortDataItem = () => {
|
|
84
|
-
return props.columns.map((columns) => {
|
|
85
|
-
return [columns.key, columns.render];
|
|
86
|
-
});
|
|
32
|
+
data: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: () => {
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
summary: {
|
|
39
|
+
type: Function,
|
|
40
|
+
default: null
|
|
41
|
+
},
|
|
42
|
+
striped: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
emits: ["sorter"],
|
|
48
|
+
setup(props, { emit, slots }) {
|
|
49
|
+
const state = reactive({
|
|
50
|
+
curData: props.data
|
|
51
|
+
});
|
|
52
|
+
const classes = computed(() => {
|
|
53
|
+
const prefixCls = componentName;
|
|
54
|
+
return {
|
|
55
|
+
[prefixCls]: true
|
|
87
56
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
(val) => {
|
|
91
|
-
state.curData = val.slice();
|
|
92
|
-
}
|
|
93
|
-
);
|
|
57
|
+
});
|
|
58
|
+
const cellClasses = (item) => {
|
|
94
59
|
return {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
cellClasses,
|
|
98
|
-
getColumnItem,
|
|
99
|
-
getColumnItemStyle,
|
|
100
|
-
handleSorterClick,
|
|
101
|
-
sortDataItem,
|
|
102
|
-
translate: translate2,
|
|
103
|
-
stylehead,
|
|
104
|
-
stylecolumn
|
|
60
|
+
"nut-table__main__head__tr--border": props.bordered,
|
|
61
|
+
[`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
|
|
105
62
|
};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
const
|
|
63
|
+
};
|
|
64
|
+
const stylehead = (item) => {
|
|
65
|
+
return item.stylehead ? item.stylehead : "";
|
|
66
|
+
};
|
|
67
|
+
const stylecolumn = (item) => {
|
|
68
|
+
return item.stylecolumn ? item.stylecolumn : "";
|
|
69
|
+
};
|
|
70
|
+
const getColumnItem = (value) => {
|
|
71
|
+
return props.columns.filter((item) => item.key === value)[0];
|
|
72
|
+
};
|
|
73
|
+
const getColumnItemStyle = (value) => {
|
|
74
|
+
const style = props.columns.filter((item) => item.key === value);
|
|
75
|
+
return style[0].stylecolumn ? style[0].stylecolumn : "";
|
|
76
|
+
};
|
|
77
|
+
const handleSorterClick = (item) => {
|
|
78
|
+
if (item.sorter) {
|
|
79
|
+
emit("sorter", item);
|
|
80
|
+
state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const sortDataItem = () => {
|
|
84
|
+
return props.columns.map((columns) => {
|
|
85
|
+
return [columns.key, columns.render];
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
watch(
|
|
89
|
+
() => props.data,
|
|
90
|
+
(val) => {
|
|
91
|
+
state.curData = val.slice();
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
return {
|
|
95
|
+
...toRefs(state),
|
|
96
|
+
classes,
|
|
97
|
+
cellClasses,
|
|
98
|
+
getColumnItem,
|
|
99
|
+
getColumnItemStyle,
|
|
100
|
+
handleSorterClick,
|
|
101
|
+
sortDataItem,
|
|
102
|
+
translate,
|
|
103
|
+
stylehead,
|
|
104
|
+
stylecolumn
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
111
108
|
const _hoisted_1 = { class: "nut-table__main__head" };
|
|
112
109
|
const _hoisted_2 = { class: "nut-table__main__head__tr" };
|
|
113
110
|
const _hoisted_3 = ["onClick"];
|
|
@@ -114,9 +114,9 @@ const _sfc_main = create({
|
|
|
114
114
|
let index = titles.value.findIndex((item) => item.paneKey == value);
|
|
115
115
|
if (titles.value.length == 0) {
|
|
116
116
|
console.error("[NutUI] <Tabs> 当前未找到 TabPane 组件元素 , 请检查 .");
|
|
117
|
-
} else if (index == -1)
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
} else if (index == -1)
|
|
118
|
+
;
|
|
119
|
+
else {
|
|
120
120
|
currentIndex.value = index;
|
|
121
121
|
}
|
|
122
122
|
};
|
|
@@ -102,8 +102,14 @@ const _sfc_main = create({
|
|
|
102
102
|
emit("change", value, event);
|
|
103
103
|
};
|
|
104
104
|
const change = (event) => {
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
if (!event.target.composing) {
|
|
106
|
+
const input = event.target;
|
|
107
|
+
let value = input.value;
|
|
108
|
+
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
109
|
+
value = value.slice(0, Number(props.maxLength));
|
|
110
|
+
}
|
|
111
|
+
emitChange(input.value, event);
|
|
112
|
+
}
|
|
107
113
|
};
|
|
108
114
|
const focus = (event) => {
|
|
109
115
|
if (props.disabled)
|
|
@@ -122,6 +128,15 @@ const _sfc_main = create({
|
|
|
122
128
|
emitChange(value, event);
|
|
123
129
|
emit("blur", { value, event });
|
|
124
130
|
};
|
|
131
|
+
const startComposing = ({ target }) => {
|
|
132
|
+
target.composing = true;
|
|
133
|
+
};
|
|
134
|
+
const endComposing = ({ target }) => {
|
|
135
|
+
if (target.composing) {
|
|
136
|
+
target.composing = false;
|
|
137
|
+
target.dispatchEvent(new Event("input"));
|
|
138
|
+
}
|
|
139
|
+
};
|
|
125
140
|
return {
|
|
126
141
|
textareaRef,
|
|
127
142
|
classes,
|
|
@@ -129,7 +144,9 @@ const _sfc_main = create({
|
|
|
129
144
|
change,
|
|
130
145
|
focus,
|
|
131
146
|
blur,
|
|
132
|
-
translate
|
|
147
|
+
translate,
|
|
148
|
+
startComposing,
|
|
149
|
+
endComposing
|
|
133
150
|
};
|
|
134
151
|
}
|
|
135
152
|
});
|
|
@@ -155,7 +172,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
155
172
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
156
173
|
maxlength: _ctx.maxLength,
|
|
157
174
|
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
158
|
-
autofocus: _ctx.autofocus
|
|
175
|
+
autofocus: _ctx.autofocus,
|
|
176
|
+
onChange: _cache[3] || (_cache[3] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
|
|
177
|
+
onCompositionend: _cache[4] || (_cache[4] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
|
|
178
|
+
onCompositionstart: _cache[5] || (_cache[5] = (...args) => _ctx.startComposing && _ctx.startComposing(...args))
|
|
159
179
|
}, null, 44, _hoisted_1),
|
|
160
180
|
_ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
|
|
161
181
|
], 2);
|