|
3 天之前 | |
---|---|---|
.. | ||
dist | 3 天之前 | |
src | 3 天之前 | |
LICENSE | 3 天之前 | |
README.md | 3 天之前 | |
README_zh-CN.md | 3 天之前 | |
package.json | 3 天之前 |
Plugin for zooming in or out.
import BScroll from '@better-scroll/core'
import Zoom from '@better-scroll/zoom'
BScroll.use(Zoom)
const bs = new BScroll('.zoom-wrapper', {
freeScroll: true,
scrollX: true,
scrollY: true,
disableMouse: true,
useTransition: true,
zoom: {
start: 1,
min: 0.5,
max: 2
}
})