UNPKG

saven

Version:
29 lines (22 loc) 587 B
import { ComponentType } from 'react' import { StandardProps, BaseEventFunction } from './common' interface CanvasProps extends StandardProps { /** * canvas 组件的唯一标识符 */ canvasId: string, /** * 当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新 * * 默认值:`false` */ disableScroll?: boolean, /** * 当发生错误时触发 error 事件 * * detail = {errMsg: 'something wrong'} */ onError?: BaseEventFunction } declare const Canvas: ComponentType<CanvasProps> export { Canvas }