From e2c262ca36417df6fc29a4736995ada25c8ff083 Mon Sep 17 00:00:00 2001 From: SunskyXH Date: Fri, 20 Dec 2019 15:17:28 +0800 Subject: [PATCH] fix(types): add enableFlex to ScrollViewProps (#5142) --- packages/taro-components/types/ScrollView.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/taro-components/types/ScrollView.d.ts b/packages/taro-components/types/ScrollView.d.ts index 90be515fff65..de9eeaf94532 100644 --- a/packages/taro-components/types/ScrollView.d.ts +++ b/packages/taro-components/types/ScrollView.d.ts @@ -53,6 +53,13 @@ export interface ScrollViewProps extends StandardProps { */ enableBackToTop?: boolean, + /** + * 启用 flexbox 布局。开启后,当前节点声明了 display: flex 就会成为 flex container,并作用于其孩子节点。 + * + * 默认值:`false` + */ + enableFlex?: boolean, + /** * 在设置滚动条位置时使用动画过渡 *