Skip to content

Commit efd45f5

Browse files
committed
refactor(Example): 减少 IndexList 示例联系人数量,防止卡顿
1 parent fac18f9 commit efd45f5

File tree

1 file changed

+3
-2
lines changed
  • examples/pages/components/layout/pages/index-list

1 file changed

+3
-2
lines changed

examples/pages/components/layout/pages/index-list/index.wxml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
l-selected-class="l-selected-class"
77
l-tip-class="l-tip-class"
88
style="width:100%"
9+
sidebar-data="{{sideBarData}}"
910
l-tip-text-class="l-tip-text-class">
10-
<block wx:for="{{26}}" wx:key="index" wx:for-index="anchorIndex">
11+
<block wx:for="{{sideBarData.length}}" wx:key="index" wx:for-index="anchorIndex">
1112
<l-index-anchor/>
12-
<block wx:for="{{5}}" wx:key="index" wx:for-index="itemIndex">
13+
<block wx:for="{{2}}" wx:key="index" wx:for-index="itemIndex">
1314
<view class="person-item">
1415
<image lazy-load="{{true}}" class="person-avatar"
1516
src="{{util.getApi(anchorIndex%3)}}&xxx={{anchorIndex*10+itemIndex}}"></image>

0 commit comments

Comments
 (0)