You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.3 KiB

<wxs module="handler" src="./test_set.wxs"/>
<view class="test-set">
<view class="header" bindtap="onTapHeader">
<view class="triangle {{!hidden?'rotate':''}}"></view>
<text>测试集 {{index+1}}</text>
<text class="warn" wx:if="{{!data.is_public}}">(隐藏)</text>
<text class="error" wx:if="{{!data.result}}">未通过</text>
</view>
<view class="detail {{hidden?'hidden':''}}">
<view class="input">
<view>测试输入: <text class="tip">{{data.input}}</text></view>
</view>
<view class="output">
<view class="subtitle">预期输出</view>
<scroll-view class="output-info" scroll-y="1" bindscroll="{{handler.scroll1}}" scroll-top="{{scrollTop1}}">
<view bindtouchstart="{{handler.touch1}}">
<view wx:for="{{outputs}}" class="output-line {{item.class}}">{{item.text}}</view>
</view>
</scroll-view>
</view>
<view class="actual-output">
<view class="subtitle">实际输出</view>
<scroll-view class="output-info" scroll-y="1" bindscroll="{{handler.scroll2}}" scroll-top="{{scrollTop2}}">
<view bindtouchstart="{{handler.touch2}}">
<view wx:for="{{actual_outputs}}" class="output-line {{item.class}}">{{item.text}}</view>
</view>
</scroll-view>
</view>
</view>
</view>