From 80b8afbca7e88cfe5c98ba38dec883e8d2815314 Mon Sep 17 00:00:00 2001 From: LuoShuai Date: Tue, 6 Aug 2019 11:13:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(taro-components):=20=E4=B8=BACanvasProps?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B1=9E=E6=80=A7=E5=AE=9A=E4=B9=89type,=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E4=BD=BF=E7=94=A8webgl=E7=9A=84=E9=A2=9D=E5=A4=96props=20(#404?= =?UTF-8?q?4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-components/types/Canvas.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/taro-components/types/Canvas.d.ts b/packages/taro-components/types/Canvas.d.ts index c736c3da5f66..d69864ebe8b0 100644 --- a/packages/taro-components/types/Canvas.d.ts +++ b/packages/taro-components/types/Canvas.d.ts @@ -7,6 +7,11 @@ export interface CanvasProps extends StandardProps { */ canvasId: string, + /** + * 小程序 canvas 组件使用webgl,需要添加type="webgl",才能通过 SelectorQuery 取到 canvas 节点 + */ + type?: string, + /** * 当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新 *