mp-jsx - add logs.jsx
This commit is contained in:
parent
357037a2cd
commit
689f7634be
|
@ -0,0 +1,5 @@
|
|||
<view class="container log-list">
|
||||
{logs.map((log, index) => (
|
||||
<text class="log-item">{index + 1}. {log}</text>
|
||||
))}
|
||||
</view>
|
|
@ -1,6 +1,4 @@
|
|||
<!--logs.wxml-->
|
||||
<view class="container log-list">
|
||||
<block wx:for="{{logs}}" wx:for-item="log">
|
||||
<text class="log-item">{{index + 1}}. {{log}}</text>
|
||||
</block>
|
||||
</view>
|
||||
<block>
|
||||
<view class="container log-list"><text class="log-item" wx:for="{{logs}}" wx:for-item="log" wx:for-index="index">{{index + 1}}. {{log}}</text>
|
||||
</view>
|
||||
</block>
|
Loading…
Reference in New Issue