Skip to content

Commit

Permalink
feat(taro-components): 为CanvasProps新增属性定义type, 支持微信小程序使用webgl的额外props (
Browse files Browse the repository at this point in the history
  • Loading branch information
huey-LS authored and luckyadam committed Aug 6, 2019
1 parent 1268cb1 commit 80b8afb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/taro-components/types/Canvas.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export interface CanvasProps extends StandardProps {
*/
canvasId: string,

/**
* 小程序 canvas 组件使用webgl,需要添加type="webgl",才能通过 SelectorQuery 取到 canvas 节点
*/
type?: string,

/**
* 当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新
*
Expand Down

0 comments on commit 80b8afb

Please sign in to comment.