Fork自 DCloud / uni-app
体验新版 GitCode,发现更多精彩内容 >>
export const pageScrollTo = { scrollTop: { type: Number, required: true }, duration: { type: Number, default: 300, validator (duration, params) { params.duration = Math.max(0, duration) } } }