Browse Source

封装mescroll两个常用的文件

master
spirit2020 3 years ago
parent
commit
55c5a7ef31
  1. 3
      README.md
  2. 1
      common/css/common.scss
  3. 7
      common/utils/MescrollMap.js

3
README.md

@ -42,6 +42,9 @@ const app = new Vue({
### 组件库 ### 组件库
- [uview-ui](https://v1.uviewui.com/components/intro.html) - [uview-ui](https://v1.uviewui.com/components/intro.html)
```
import {MescrollMixin, MescrollCompMixin} from '@/common/utils/MescrollMap'
```
- [mescroll](https://www.mescroll.com/uni.html#mescrollbody) - [mescroll](https://www.mescroll.com/uni.html#mescrollbody)
### api ### api

1
common/css/common.scss

@ -0,0 +1 @@
// uview-ui css 互补, 不用自己写 margin, padding , 具体查看 uview 官网

7
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
}
Loading…
Cancel
Save