-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(wx-react-native): FlatList, SectionList, Picker R与_r 切换修改
- Loading branch information
1 parent
42e8c14
commit 5570b90
Showing
6 changed files
with
183 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 23 additions & 18 deletions
41
packages/wx-react-native/miniprogram_dist/component/WXPicker/index.wxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
<wxs src="../../../../../commonwxs.wxs" module="tools" /> | ||
<picker-view | ||
indicator-style="height: 50px" | ||
style="position: absolute; height: {{_r.itemLength * 50}}px; width: 100%" | ||
value="{{_r.seleIndex}}" | ||
bindchange="onValueChange"> | ||
<picker-view-column> | ||
<block | ||
wx:for="{{tools.compact(_r.childrenData)}}" | ||
wx:key="key" | ||
> | ||
<childrenCPT | ||
diuu="{{item.childrenDIUU}}" | ||
_r="{{item.childrenDIUUR}}" | ||
style="{{tools.getFinalStyle(item.childrenDIUUstyle)}}; line-height: 50px;" | ||
/> | ||
</block> | ||
</picker-view-column> | ||
</picker-view> | ||
|
||
<template name="picker"> | ||
<picker-view | ||
indicator-style="height: 50px" | ||
style="position: absolute; height: {{itemLength * 50}}px; width: 100%" | ||
value="{{seleIndex}}" | ||
bindchange="onValueChange"> | ||
<picker-view-column> | ||
<block | ||
wx:for="{{tools.compact(childrenData)}}" | ||
wx:key="key" | ||
> | ||
<childrenCPT | ||
diuu="{{item.childrenDIUU}}" | ||
R="{{item.childrenDIUUR}}" | ||
style="{{tools.getFinalStyle(item.childrenDIUUstyle)}}; line-height: 50px;" | ||
/> | ||
</block> | ||
</picker-view-column> | ||
</picker-view> | ||
</template> | ||
|
||
<template is="picker" data="{{...(_r || R)}}"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.