在项目中经常用的组件
<template>
<div ref="scroll-wrapper"> // Betterscroll 只对于第一个组件有效,所以要交一个父容器包裹
<slot> </solt> // 插槽
</div>
</template>
<script>
import Bscroll from 'better-scroll' // 引入
export default {
props:{ // 接受外组件的设置,也可设置默认值
probeType: {
type: Number,
default: 1
},
click: { // 能否点击
type: Boolean,
default: true
},
data: {
type: Array,
default: