We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return this.state.list[activeIndex].type === 'trip' ? ( <Navigator key={index} className="boutique_con" hoverclass="none" url="/pages/trip/view/index?id={item.id}" > <View>1</View> </Navigator> ) : ( <Navigator key={item.id} className="boutique_con" hoverclassName="none" url="/pages/visa/view/index?id={item.id}" > <View>2</View> </Navigator> );
解析后,key 出现在了子元素中
<block wx:for="{{list[activeIndex].list}}" wx:for-item="item" wx:for-index="index"> <block wx:if="{{list[activeIndex].type === 'trip'}}"> <navigator wx:key="{{index}}" class="boutique_con" hoverclass="none" url="/pages/trip/view/index?id={item.id}"> <view>1</view> </navigator> </block> <block wx:else> <navigator wx:key="{{item.id}}" class="boutique_con" hoverclass-name="none" url="/pages/visa/view/index?id={item.id}"> <view>2</view> </navigator> </block> </block>
The text was updated successfully, but these errors were encountered:
6e24fcc
No branches or pull requests
解析后,key 出现在了子元素中
The text was updated successfully, but these errors were encountered: