更新记录
1.0(2019-09-22)
1.自定义波纹的速度 2.自定义漂流瓶速度
平台兼容性
在 script 中引用组件
import drift from "@/components/xiaodiu-drift/xiaodiu-drift.vue"
export default {
components: {drift}
}
用法
<drift :plpspeed="2" :bospeed="5"></drift>
属性名 | 类型 | 默认值 | 说明 |
---|---|---|---|
plpspeed | int | 1 | 漂流瓶运动速度 |
bospeed | int | 1 | 波纹运动速度 |