@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,4 +1,4 @@
|
|
|
1
|
-
import { useSlots, computed, ref, onMounted, onUnmounted,
|
|
1
|
+
import { useSlots, computed, ref, onMounted, onUnmounted, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
@@ -31,8 +31,7 @@ const _sfc_main = create({
|
|
|
31
31
|
default: true
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
|
|
35
|
-
setup(props, { slots }) {
|
|
34
|
+
setup(props) {
|
|
36
35
|
const classTime = new Date().getTime();
|
|
37
36
|
const slotDefault = !!useSlots().default;
|
|
38
37
|
const classes = computed(() => {
|
|
@@ -51,36 +50,58 @@ const _sfc_main = create({
|
|
|
51
50
|
const speeds = props.speeds;
|
|
52
51
|
const danmuCWidth = ref(0);
|
|
53
52
|
onMounted(() => {
|
|
54
|
-
|
|
55
|
-
danmuCWidth.value = dmBody.value.offsetWidth;
|
|
53
|
+
init();
|
|
56
54
|
if (slotDefault) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
danmuList.value = dmList;
|
|
55
|
+
document.addEventListener("visibilitychange", function() {
|
|
56
|
+
if (document.visibilityState === "hidden") {
|
|
57
|
+
clearTime();
|
|
58
|
+
index2.value = 0;
|
|
59
|
+
eleSlot("hidden");
|
|
60
|
+
} else if (document.visibilityState === "visible") {
|
|
61
|
+
init();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
67
64
|
}
|
|
68
|
-
setTimeout(() => {
|
|
69
|
-
var _a2;
|
|
70
|
-
(_a2 = dmBody.value) == null ? void 0 : _a2.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
|
|
71
|
-
run();
|
|
72
|
-
}, 300);
|
|
73
65
|
});
|
|
74
66
|
onUnmounted(() => {
|
|
75
67
|
danmuList.value = [];
|
|
76
|
-
|
|
77
|
-
timer = 0;
|
|
68
|
+
clearTime();
|
|
78
69
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
const init = () => {
|
|
71
|
+
danmuCWidth.value = dmBody.value.offsetWidth;
|
|
72
|
+
if (slotDefault) {
|
|
73
|
+
eleSlot("init");
|
|
74
|
+
}
|
|
75
|
+
setTimeout(() => {
|
|
76
|
+
var _a;
|
|
77
|
+
(_a = dmBody.value) == null ? void 0 : _a.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
|
|
78
|
+
run();
|
|
79
|
+
}, 300);
|
|
80
|
+
};
|
|
81
|
+
const eleSlot = (flag) => {
|
|
82
|
+
var _a;
|
|
83
|
+
const list = document.getElementsByClassName("slotBody" + classTime);
|
|
84
|
+
let childrens = ((_a = list == null ? void 0 : list[0]) == null ? void 0 : _a.children) || [];
|
|
85
|
+
const dmList = [];
|
|
86
|
+
if (childrens) {
|
|
87
|
+
Array.from(childrens).forEach((item) => {
|
|
88
|
+
if (flag == "init") {
|
|
89
|
+
item.style.opacity = "0";
|
|
90
|
+
dmList.push(item);
|
|
91
|
+
} else {
|
|
92
|
+
item.classList = "";
|
|
93
|
+
item.style = {};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (flag == "init") {
|
|
98
|
+
danmuList.value = dmList;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const clearTime = () => {
|
|
102
|
+
clearTimeout(timer);
|
|
82
103
|
timer = 0;
|
|
83
|
-
}
|
|
104
|
+
};
|
|
84
105
|
watch(
|
|
85
106
|
() => props.danmu,
|
|
86
107
|
(newValue) => {
|
|
@@ -98,11 +119,9 @@ const _sfc_main = create({
|
|
|
98
119
|
}
|
|
99
120
|
};
|
|
100
121
|
const run = () => {
|
|
101
|
-
|
|
102
|
-
timer = 0;
|
|
122
|
+
clearTime();
|
|
103
123
|
timer = setTimeout(() => {
|
|
104
124
|
play();
|
|
105
|
-
run();
|
|
106
125
|
}, props.frequency);
|
|
107
126
|
};
|
|
108
127
|
const play = () => {
|
|
@@ -131,21 +150,20 @@ const _sfc_main = create({
|
|
|
131
150
|
const width = el.offsetWidth;
|
|
132
151
|
el.style.width = width + 20 + "px";
|
|
133
152
|
}
|
|
134
|
-
el.
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
var _a3;
|
|
139
|
-
if ((_a3 = el == null ? void 0 : el.classList) == null ? void 0 : _a3.contains("move")) {
|
|
140
|
-
el.classList.remove("move");
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
} else {
|
|
144
|
-
el.addEventListener("animationend", () => {
|
|
153
|
+
el.addEventListener("animationend", () => {
|
|
154
|
+
if (slotDefault) {
|
|
155
|
+
el.classList.remove("move");
|
|
156
|
+
} else {
|
|
145
157
|
dmContainer.value.removeChild(el);
|
|
146
|
-
}
|
|
147
|
-
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
index2.value++;
|
|
161
|
+
if (index2.value >= danmuList.value.length) {
|
|
162
|
+
index2.value = 0;
|
|
148
163
|
}
|
|
164
|
+
el.removeEventListener("animationend", () => {
|
|
165
|
+
});
|
|
166
|
+
run();
|
|
149
167
|
});
|
|
150
168
|
};
|
|
151
169
|
return { classTime, classes, danmuList, dmBody, dmContainer, add };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { C as CalendarItem, U as Utils } from "./index-
|
|
4
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { C as CalendarItem, U as Utils } from "./index-fa0050c9.js";
|
|
4
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
5
5
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
@@ -86,13 +86,13 @@ const _sfc_main = create({
|
|
|
86
86
|
return slots.btn;
|
|
87
87
|
});
|
|
88
88
|
const topInfo = computed(() => {
|
|
89
|
-
return slots
|
|
89
|
+
return slots["top-info"];
|
|
90
90
|
});
|
|
91
91
|
const dayInfo = computed(() => {
|
|
92
92
|
return slots.day;
|
|
93
93
|
});
|
|
94
94
|
const bottomInfo = computed(() => {
|
|
95
|
-
return slots
|
|
95
|
+
return slots["bottom-info"];
|
|
96
96
|
});
|
|
97
97
|
const calendarRef = ref(null);
|
|
98
98
|
const scrollToDate = (date) => {
|
|
@@ -189,18 +189,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189
189
|
key: "1"
|
|
190
190
|
} : void 0,
|
|
191
191
|
_ctx.topInfo ? {
|
|
192
|
-
name: "
|
|
192
|
+
name: "top-info",
|
|
193
193
|
fn: withCtx((date) => [
|
|
194
|
-
renderSlot(_ctx.$slots, "
|
|
194
|
+
renderSlot(_ctx.$slots, "top-info", {
|
|
195
195
|
date: date.date
|
|
196
196
|
})
|
|
197
197
|
]),
|
|
198
198
|
key: "2"
|
|
199
199
|
} : void 0,
|
|
200
200
|
_ctx.bottomInfo ? {
|
|
201
|
-
name: "
|
|
201
|
+
name: "bottom-info",
|
|
202
202
|
fn: withCtx((date) => [
|
|
203
|
-
renderSlot(_ctx.$slots, "
|
|
203
|
+
renderSlot(_ctx.$slots, "bottom-info", {
|
|
204
204
|
date: date.date
|
|
205
205
|
})
|
|
206
206
|
]),
|
|
@@ -249,18 +249,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
249
249
|
key: "1"
|
|
250
250
|
} : void 0,
|
|
251
251
|
_ctx.topInfo ? {
|
|
252
|
-
name: "
|
|
252
|
+
name: "top-info",
|
|
253
253
|
fn: withCtx((date) => [
|
|
254
|
-
renderSlot(_ctx.$slots, "
|
|
254
|
+
renderSlot(_ctx.$slots, "top-info", {
|
|
255
255
|
date: date.date
|
|
256
256
|
})
|
|
257
257
|
]),
|
|
258
258
|
key: "2"
|
|
259
259
|
} : void 0,
|
|
260
260
|
_ctx.bottomInfo ? {
|
|
261
|
-
name: "
|
|
261
|
+
name: "bottom-info",
|
|
262
262
|
fn: withCtx((date) => [
|
|
263
|
-
renderSlot(_ctx.$slots, "
|
|
263
|
+
renderSlot(_ctx.$slots, "bottom-info", {
|
|
264
264
|
date: date.date
|
|
265
265
|
})
|
|
266
266
|
]),
|
|
@@ -13,32 +13,25 @@ const _sfc_main = create({
|
|
|
13
13
|
},
|
|
14
14
|
props: {
|
|
15
15
|
imgUrl: {
|
|
16
|
-
type: String
|
|
17
|
-
default: ""
|
|
16
|
+
type: String
|
|
18
17
|
},
|
|
19
18
|
title: {
|
|
20
|
-
type: String
|
|
21
|
-
default: ""
|
|
19
|
+
type: String
|
|
22
20
|
},
|
|
23
21
|
price: {
|
|
24
|
-
type: String
|
|
25
|
-
default: ""
|
|
22
|
+
type: String
|
|
26
23
|
},
|
|
27
24
|
vipPrice: {
|
|
28
|
-
type: String
|
|
29
|
-
default: ""
|
|
25
|
+
type: String
|
|
30
26
|
},
|
|
31
27
|
shopDesc: {
|
|
32
|
-
type: String
|
|
33
|
-
default: ""
|
|
28
|
+
type: String
|
|
34
29
|
},
|
|
35
30
|
delivery: {
|
|
36
|
-
type: String
|
|
37
|
-
default: ""
|
|
31
|
+
type: String
|
|
38
32
|
},
|
|
39
33
|
shopName: {
|
|
40
|
-
type: String
|
|
41
|
-
default: ""
|
|
34
|
+
type: String
|
|
42
35
|
},
|
|
43
36
|
isNeedPrice: {
|
|
44
37
|
type: Boolean,
|
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
8
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
8
|
+
import { P as Popup, p as popupProps } from "./index-991c279f.js";
|
|
9
9
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
10
10
|
import { Loading, Checklist } from "@nutui/icons-vue";
|
|
11
11
|
import Tabs from "./Tabs.js";
|
|
@@ -520,8 +520,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
520
520
|
position: "bottom",
|
|
521
521
|
"pop-class": "nut-cascader__popup",
|
|
522
522
|
round: "",
|
|
523
|
-
closeable:
|
|
524
|
-
"close-icon": _ctx.closeIcon,
|
|
523
|
+
closeable: _ctx.closeable,
|
|
525
524
|
"destroy-on-close": false,
|
|
526
525
|
"close-icon-position": _ctx.closeIconPosition
|
|
527
526
|
}, {
|
|
@@ -546,7 +545,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
546
545
|
}, null, 8, ["onChange", "onPathChange", "modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible"])
|
|
547
546
|
]),
|
|
548
547
|
_: 1
|
|
549
|
-
}, 8, ["visible", "closeable", "close-icon
|
|
548
|
+
}, 8, ["visible", "closeable", "close-icon-position"])) : (openBlock(), createBlock(_component_nut_cascader_item, {
|
|
550
549
|
key: 1,
|
|
551
550
|
onChange: _ctx.onChange,
|
|
552
551
|
onPathChange: _ctx.onPathChange,
|
|
@@ -5,7 +5,7 @@ import "../locale/lang";
|
|
|
5
5
|
const { create, componentName } = createComponent("collapse");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
props: {
|
|
8
|
-
|
|
8
|
+
modelValue: {
|
|
9
9
|
type: [String, Number, Array],
|
|
10
10
|
default: () => []
|
|
11
11
|
},
|
|
@@ -14,7 +14,7 @@ const _sfc_main = create({
|
|
|
14
14
|
default: false
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
emits: ["update:
|
|
17
|
+
emits: ["update:modelValue", "change"],
|
|
18
18
|
setup(props, { emit }) {
|
|
19
19
|
const collapseDom = ref(null);
|
|
20
20
|
const collapseChldren = ref([]);
|
|
@@ -25,7 +25,7 @@ const _sfc_main = create({
|
|
|
25
25
|
};
|
|
26
26
|
});
|
|
27
27
|
watch(
|
|
28
|
-
() => props.
|
|
28
|
+
() => props.modelValue,
|
|
29
29
|
(newval) => {
|
|
30
30
|
let doms = collapseChldren.value;
|
|
31
31
|
Array.from(doms).forEach((item) => {
|
|
@@ -43,11 +43,11 @@ const _sfc_main = create({
|
|
|
43
43
|
collapseChldren.value = getCurrentInstance().provides.collapseParent.children || [];
|
|
44
44
|
});
|
|
45
45
|
const changeVal = (val) => {
|
|
46
|
-
emit("update:
|
|
46
|
+
emit("update:modelValue", val);
|
|
47
47
|
emit("change", val);
|
|
48
48
|
};
|
|
49
49
|
const changeValAry = (name) => {
|
|
50
|
-
const activeItem = props.
|
|
50
|
+
const activeItem = props.modelValue instanceof Object ? Object.values(props.modelValue) : props.modelValue;
|
|
51
51
|
let index2 = -1;
|
|
52
52
|
activeItem.forEach((item, idx) => {
|
|
53
53
|
if (String(item) == String(name)) {
|
|
@@ -58,9 +58,9 @@ const _sfc_main = create({
|
|
|
58
58
|
changeVal(activeItem);
|
|
59
59
|
};
|
|
60
60
|
const isExpanded = (name) => {
|
|
61
|
-
const { accordion,
|
|
61
|
+
const { accordion, modelValue } = props;
|
|
62
62
|
if (accordion) {
|
|
63
|
-
return typeof
|
|
63
|
+
return typeof modelValue === "number" || typeof modelValue === "string" ? modelValue == name : false;
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
provide("collapseParent", {
|
|
@@ -98,7 +98,7 @@ const _sfc_main = create({
|
|
|
98
98
|
const toggleOpen = () => {
|
|
99
99
|
if (parent.props.accordion) {
|
|
100
100
|
nextTick(() => {
|
|
101
|
-
if (currentName.value == parent.props.
|
|
101
|
+
if (currentName.value == parent.props.modelValue) {
|
|
102
102
|
open();
|
|
103
103
|
} else {
|
|
104
104
|
parent.changeVal(currentName.value);
|
|
@@ -125,7 +125,7 @@ const _sfc_main = create({
|
|
|
125
125
|
});
|
|
126
126
|
const init = () => {
|
|
127
127
|
const { name } = props;
|
|
128
|
-
const active = parent && parent.props.
|
|
128
|
+
const active = parent && parent.props.modelValue;
|
|
129
129
|
nextTick(() => {
|
|
130
130
|
if (typeof active == "number" || typeof active == "string") {
|
|
131
131
|
if (name == active) {
|
|
@@ -205,7 +205,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
205
205
|
}, [
|
|
206
206
|
createElementVNode("view", _hoisted_1, [
|
|
207
207
|
createElementVNode("view", _hoisted_2, [
|
|
208
|
-
_ctx.$slots.
|
|
208
|
+
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : (openBlock(), createElementBlock("view", {
|
|
209
209
|
key: 1,
|
|
210
210
|
innerHTML: _ctx.title,
|
|
211
211
|
class: "nut-collapse-item__title-mtitle"
|
|
@@ -227,9 +227,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
227
227
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.icon))))
|
|
228
228
|
], 6)
|
|
229
229
|
], 2),
|
|
230
|
-
_ctx.$slots.
|
|
230
|
+
_ctx.$slots.extra ? (openBlock(), createElementBlock("view", _hoisted_7, [
|
|
231
231
|
createElementVNode("div", _hoisted_8, [
|
|
232
|
-
renderSlot(_ctx.$slots, "
|
|
232
|
+
renderSlot(_ctx.$slots, "extra")
|
|
233
233
|
])
|
|
234
234
|
])) : createCommentVNode("", true),
|
|
235
235
|
createElementVNode("view", _hoisted_9, [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, createBlock, computed, withCtx, normalizeStyle, createTextVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { Right, Fabulous, Comment, MoreX
|
|
3
|
+
import { Right, Fabulous, Comment, MoreX } from "@nutui/icons-vue";
|
|
4
4
|
import Rate from "./Rate.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
@@ -9,6 +9,9 @@ import "./pxCheck-c6b9f6b7.js";
|
|
|
9
9
|
import "./index-7a7385e4.js";
|
|
10
10
|
const { componentName: componentName$3, create: create$3 } = createComponent("comment-header");
|
|
11
11
|
const _sfc_main$3 = create$3({
|
|
12
|
+
components: {
|
|
13
|
+
[Rate.name]: Rate
|
|
14
|
+
},
|
|
12
15
|
props: {
|
|
13
16
|
type: {
|
|
14
17
|
type: String,
|
|
@@ -69,7 +72,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
69
72
|
createVNode(_component_nut_rate, {
|
|
70
73
|
modelValue: _ctx.info.score,
|
|
71
74
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.info.score = $event),
|
|
72
|
-
|
|
75
|
+
size: "12",
|
|
73
76
|
spacing: "5",
|
|
74
77
|
readonly: "",
|
|
75
78
|
onChange: _ctx.handleClick
|
|
@@ -94,7 +97,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
94
97
|
createVNode(_component_nut_rate, {
|
|
95
98
|
modelValue: _ctx.info.score,
|
|
96
99
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.info.score = $event),
|
|
97
|
-
|
|
100
|
+
size: "12",
|
|
98
101
|
spacing: "3",
|
|
99
102
|
readonly: ""
|
|
100
103
|
}, null, 8, ["modelValue"]),
|
|
@@ -219,8 +222,7 @@ const _sfc_main$1 = create$1({
|
|
|
219
222
|
},
|
|
220
223
|
info: {
|
|
221
224
|
type: Object,
|
|
222
|
-
default: () => {
|
|
223
|
-
}
|
|
225
|
+
default: () => ({})
|
|
224
226
|
},
|
|
225
227
|
operation: {
|
|
226
228
|
type: Array,
|
|
@@ -319,13 +321,11 @@ const _sfc_main = create({
|
|
|
319
321
|
},
|
|
320
322
|
info: {
|
|
321
323
|
type: Object,
|
|
322
|
-
default: () => {
|
|
323
|
-
}
|
|
324
|
+
default: () => ({})
|
|
324
325
|
},
|
|
325
326
|
follow: {
|
|
326
327
|
type: Object,
|
|
327
|
-
default: () => {
|
|
328
|
-
}
|
|
328
|
+
default: () => ({})
|
|
329
329
|
},
|
|
330
330
|
labels: {
|
|
331
331
|
type: Function,
|
|
@@ -337,12 +337,10 @@ const _sfc_main = create({
|
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
339
|
components: {
|
|
340
|
-
[Rate.name]: Rate,
|
|
341
340
|
CommentHeader,
|
|
342
341
|
CommentImages,
|
|
343
342
|
CommentBottom,
|
|
344
|
-
Right
|
|
345
|
-
JoySmile
|
|
343
|
+
Right
|
|
346
344
|
},
|
|
347
345
|
emits: ["click", "clickImages", "clickOperate"],
|
|
348
346
|
setup(props, { emit }) {
|
|
@@ -401,7 +399,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
401
399
|
class: "nut-comment__main",
|
|
402
400
|
style: normalizeStyle(`-webkit-line-clamp:${_ctx.conEllipsis}`),
|
|
403
401
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
404
|
-
innerHTML: _ctx.info.content
|
|
402
|
+
innerHTML: _ctx.info.content
|
|
405
403
|
}, null, 12, _hoisted_1),
|
|
406
404
|
createVNode(_component_comment_images, {
|
|
407
405
|
images: _ctx.images,
|
|
@@ -14,10 +14,44 @@ const _sfc_main = create({
|
|
|
14
14
|
str = str.replace(str.charAt(0), str.charAt(0).toLocaleLowerCase());
|
|
15
15
|
return str.replace(/([a-z])([A-Z])/g, (_, p1, p2) => p1 + "-" + p2.toLowerCase());
|
|
16
16
|
};
|
|
17
|
+
const colorRgb = (str) => {
|
|
18
|
+
if (!str)
|
|
19
|
+
return;
|
|
20
|
+
var sColor = str.toLowerCase();
|
|
21
|
+
var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
22
|
+
if (sColor && reg.test(sColor)) {
|
|
23
|
+
if (sColor.length === 4) {
|
|
24
|
+
var sColorNew = "#";
|
|
25
|
+
for (var i = 1; i < 4; i += 1) {
|
|
26
|
+
sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
|
|
27
|
+
}
|
|
28
|
+
sColor = sColorNew;
|
|
29
|
+
}
|
|
30
|
+
var sColorChange = [];
|
|
31
|
+
for (var i = 1; i < 7; i += 2) {
|
|
32
|
+
sColorChange.push(parseInt("0x" + sColor.slice(i, i + 2)));
|
|
33
|
+
}
|
|
34
|
+
return sColorChange.join(",");
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
};
|
|
17
38
|
const mapThemeVarsToCSSVars = (themeVars) => {
|
|
39
|
+
var _a;
|
|
18
40
|
if (!themeVars)
|
|
19
41
|
return;
|
|
20
42
|
const cssVars = {};
|
|
43
|
+
const primaryColor = (_a = props == null ? void 0 : props.themeVars) == null ? void 0 : _a.primaryColor;
|
|
44
|
+
if (primaryColor) {
|
|
45
|
+
cssVars[`--nut-address-region-tab-line`] = `linear-gradient(90deg, ${primaryColor} 0%, rgba(${colorRgb(
|
|
46
|
+
primaryColor
|
|
47
|
+
)},0.15) 100%) `;
|
|
48
|
+
cssVars[`--nut-tabs-horizontal-tab-line-color`] = `linear-gradient(90deg, ${primaryColor} 0%, rgba(${colorRgb(
|
|
49
|
+
primaryColor
|
|
50
|
+
)},0.15)100%)`;
|
|
51
|
+
cssVars[`--nut-tabs-vertical-tab-line-color`] = `linear-gradient(180deg, ${primaryColor} 0%, rgba(${colorRgb(
|
|
52
|
+
primaryColor
|
|
53
|
+
)},0.15) 100%) `;
|
|
54
|
+
}
|
|
21
55
|
Object.keys(themeVars).forEach((key) => {
|
|
22
56
|
cssVars[`--nut-${kebabCase(key)}`] = themeVars[key];
|
|
23
57
|
});
|
|
@@ -338,11 +338,7 @@ const _sfc_main = create({
|
|
|
338
338
|
timeOut && clearTimeout(timeOut);
|
|
339
339
|
el.style.transition = "none";
|
|
340
340
|
el.style.top = "0";
|
|
341
|
-
|
|
342
|
-
if (el.previousSibling) {
|
|
343
|
-
runStep(el.previousSibling);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
341
|
+
reset(el, turningNum);
|
|
346
342
|
}, 0.975 * props.during);
|
|
347
343
|
} else {
|
|
348
344
|
el.style.top = `-${data.sortFlag == "add" ? turningNum * 100 : (10 - turningNum) * 100}%`;
|
|
@@ -351,6 +347,15 @@ const _sfc_main = create({
|
|
|
351
347
|
runStep(el.previousSibling);
|
|
352
348
|
}
|
|
353
349
|
};
|
|
350
|
+
const reset = (el, turningNum) => {
|
|
351
|
+
setTimeout(() => {
|
|
352
|
+
if (turningNum == 10) {
|
|
353
|
+
if (el.previousSibling) {
|
|
354
|
+
runStep(el.previousSibling);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}, 200);
|
|
358
|
+
};
|
|
354
359
|
const imgNumberScroll = () => {
|
|
355
360
|
if (data.pointNum != 0) {
|
|
356
361
|
Math.pow(10, data.pointNum);
|
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, h } from "vue";
|
|
8
8
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
9
9
|
import { f as funInterceptor } from "./interceptor-956b24fc.js";
|
|
10
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
10
|
+
import { P as Popup, p as popupProps } from "./index-991c279f.js";
|
|
11
11
|
import Button from "./Button.js";
|
|
12
12
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
13
13
|
import Overlay from "./Overlay.js";
|
|
@@ -159,6 +159,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
159
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
160
160
|
"lock-scroll": _ctx.lockScroll,
|
|
161
161
|
"pop-class": _ctx.popClass,
|
|
162
|
+
"overlay-class": _ctx.overlayClass,
|
|
163
|
+
"overlay-style": _ctx.overlayStyle,
|
|
162
164
|
style: normalizeStyle(_ctx.popStyle),
|
|
163
165
|
round: "",
|
|
164
166
|
onClickOverlay: _ctx.closed,
|
|
@@ -217,7 +219,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
217
219
|
], 2)
|
|
218
220
|
]),
|
|
219
221
|
_: 3
|
|
220
|
-
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
222
|
+
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "overlay-class", "overlay-style", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
221
223
|
}
|
|
222
224
|
const Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
223
225
|
class DialogOptions {
|
|
@@ -247,7 +249,7 @@ class DialogOptions {
|
|
|
247
249
|
__publicField(this, "noCancelBtn", false);
|
|
248
250
|
__publicField(this, "okBtnDisabled", false);
|
|
249
251
|
__publicField(this, "closeOnPopstate", false);
|
|
250
|
-
__publicField(this, "lockScroll",
|
|
252
|
+
__publicField(this, "lockScroll", true);
|
|
251
253
|
}
|
|
252
254
|
}
|
|
253
255
|
class DialogFunction {
|
|
@@ -284,7 +286,6 @@ const showDialog = function(options) {
|
|
|
284
286
|
};
|
|
285
287
|
showDialog.install = (app) => {
|
|
286
288
|
app.use(Dialog);
|
|
287
|
-
app.config.globalProperties.$dialog = showDialog;
|
|
288
289
|
};
|
|
289
290
|
export {
|
|
290
291
|
DialogOptions,
|
|
@@ -54,9 +54,6 @@ const _sfc_main = create({
|
|
|
54
54
|
() => props.content,
|
|
55
55
|
(newV, oldVal) => {
|
|
56
56
|
if (newV != oldVal) {
|
|
57
|
-
if (container) {
|
|
58
|
-
document.body.appendChild(container);
|
|
59
|
-
}
|
|
60
57
|
createContainer();
|
|
61
58
|
}
|
|
62
59
|
}
|
|
@@ -95,6 +92,7 @@ const _sfc_main = create({
|
|
|
95
92
|
const calcEllipse = () => {
|
|
96
93
|
if (container.offsetHeight <= maxHeight) {
|
|
97
94
|
state.exceeded = false;
|
|
95
|
+
document.body.removeChild(container);
|
|
98
96
|
} else {
|
|
99
97
|
state.exceeded = true;
|
|
100
98
|
const end = props.content.length;
|
|
@@ -9,11 +9,11 @@ import { c as createComponent, e as clamp, d as preventDefault, i as isArray } f
|
|
|
9
9
|
import { u as useRect } from "./index-29892cda.js";
|
|
10
10
|
import { u as useTouch } from "./index-7a7385e4.js";
|
|
11
11
|
import Video from "./Video.js";
|
|
12
|
+
import SwiperItem from "./SwiperItem.js";
|
|
12
13
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
13
14
|
import { CircleClose } from "@nutui/icons-vue";
|
|
14
|
-
import { P as Popup } from "./index-
|
|
15
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
15
16
|
import Swiper from "./Swiper.js";
|
|
16
|
-
import SwiperItem from "./SwiperItem.js";
|
|
17
17
|
import { f as funInterceptor } from "./interceptor-956b24fc.js";
|
|
18
18
|
import "../locale/lang";
|
|
19
19
|
import { C as CreateComponent } from "./mountComponent-1ece4110.js";
|
|
@@ -50,7 +50,8 @@ const _sfc_main$1 = create$1({
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["close", "scale"],
|
|
52
52
|
components: {
|
|
53
|
-
[Video.name]: Video
|
|
53
|
+
[Video.name]: Video,
|
|
54
|
+
[SwiperItem.name]: SwiperItem
|
|
54
55
|
},
|
|
55
56
|
setup(props, { emit }) {
|
|
56
57
|
const state = reactive({
|
|
@@ -307,8 +308,7 @@ const _sfc_main = create({
|
|
|
307
308
|
ImagePreviewItem,
|
|
308
309
|
CircleClose,
|
|
309
310
|
[Popup.name]: Popup,
|
|
310
|
-
[Swiper.name]: Swiper
|
|
311
|
-
[SwiperItem.name]: SwiperItem
|
|
311
|
+
[Swiper.name]: Swiper
|
|
312
312
|
},
|
|
313
313
|
setup(props, { emit }) {
|
|
314
314
|
const swipeRef = ref();
|
|
@@ -498,7 +498,6 @@ class ImagePreviewFunction {
|
|
|
498
498
|
const showImagePreview = (options) => new ImagePreviewFunction(options);
|
|
499
499
|
showImagePreview.install = (app) => {
|
|
500
500
|
app.use(ImagePreview);
|
|
501
|
-
app.config.globalProperties.$imagepreview = showImagePreview;
|
|
502
501
|
};
|
|
503
502
|
export {
|
|
504
503
|
ImagePreviewOptions,
|
|
@@ -28,14 +28,6 @@ const _sfc_main = create({
|
|
|
28
28
|
type: String,
|
|
29
29
|
default: ""
|
|
30
30
|
},
|
|
31
|
-
useWindow: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: true
|
|
34
|
-
},
|
|
35
|
-
containerId: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: ""
|
|
38
|
-
},
|
|
39
31
|
useCapture: {
|
|
40
32
|
type: Boolean,
|
|
41
33
|
default: false
|
|
@@ -159,7 +151,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
151
|
createElementVNode("view", _hoisted_2, [
|
|
160
152
|
_ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
161
153
|
renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
162
|
-
renderSlot(_ctx.$slots, "
|
|
154
|
+
renderSlot(_ctx.$slots, "loading-icon", {}, () => [
|
|
163
155
|
createVNode(_component_Loading, { class: "nut-icon-loading nut-infinite__bottom-box__img" })
|
|
164
156
|
]),
|
|
165
157
|
createElementVNode("view", _hoisted_4, toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
|