From 55c5a7ef31f04373d26ee8240f67da8e2466ac1f Mon Sep 17 00:00:00 2001 From: spirit2020 <1194501891@qq.com> Date: Tue, 18 Jan 2022 17:58:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E8=A3=85mescroll=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E5=B8=B8=E7=94=A8=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ common/css/common.scss | 1 + common/utils/MescrollMap.js | 7 +++++++ 3 files changed, 11 insertions(+) create mode 100644 common/utils/MescrollMap.js diff --git a/README.md b/README.md index da93e0d..b4ffd47 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,9 @@ const app = new Vue({ ### 组件库 - [uview-ui](https://v1.uviewui.com/components/intro.html) + ``` + import {MescrollMixin, MescrollCompMixin} from '@/common/utils/MescrollMap' + ``` - [mescroll](https://www.mescroll.com/uni.html#mescrollbody) ### api diff --git a/common/css/common.scss b/common/css/common.scss index e69de29..17d9489 100644 --- a/common/css/common.scss +++ b/common/css/common.scss @@ -0,0 +1 @@ +// 与 uview-ui 的 css 互补, 不用自己写 margin, padding 等, 具体查看 uview 官网 diff --git a/common/utils/MescrollMap.js b/common/utils/MescrollMap.js new file mode 100644 index 0000000..cc1764d --- /dev/null +++ b/common/utils/MescrollMap.js @@ -0,0 +1,7 @@ +import MescrollMixin from '@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js' +import MescrollCompMixin from '@/uni_modules/mescroll-uni/components/mescroll-uni/mixins/mescroll-comp.js' + +export { + MescrollMixin, + MescrollCompMixin +}