From 6d87ad8433e95828af87c55deea2005bbd2dd25a Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 14 May 2021 20:58:55 +0800 Subject: [PATCH] feat: update refreshable demo --- doric-demo/src/RefreshDemo.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doric-demo/src/RefreshDemo.ts b/doric-demo/src/RefreshDemo.ts index b6e7b465..174de298 100644 --- a/doric-demo/src/RefreshDemo.ts +++ b/doric-demo/src/RefreshDemo.ts @@ -112,12 +112,15 @@ class ListPanel extends Panel { heightSpec: LayoutSpec.MOST, }, }), + layoutConfig: { + widthSpec: LayoutSpec.MOST, + heightSpec: LayoutSpec.FIT, + weight: 1, + }, }), - ], { layoutConfig: layoutConfig().most(), - backgroundColor: Color.WHITE }).in(rootView) refreshView.backgroundColor = Color.YELLOW }