fix(Skeleton): missing wx:key and page declaration (#2312)

This commit is contained in:
neverland 2019-11-15 14:13:11 +08:00 committed by GitHub
parent c8d27f5ca7
commit 9ef4cae03f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,8 @@
"pages/circle/index",
"pages/grid/index",
"pages/dropdown-menu/index",
"pages/index-bar/index"
"pages/index-bar/index",
"pages/skeleton/index"
],
"window": {
"navigationBarBackgroundColor": "#f8f8f8",

View File

@ -17,6 +17,7 @@
/>
<view
wx:for="row"
wx:key="index"
wx:for-index="index"
class="{{ utils.bem('skeleton__row') }}"
style="{{ 'width:' + (isArray ? rowWidth[index] : rowWidth) }}"