init
This commit is contained in:
21
xhs-mini-demos/component-case/upload-file/upload-file.xhsml
Normal file
21
xhs-mini-demos/component-case/upload-file/upload-file.xhsml
Normal file
@@ -0,0 +1,21 @@
|
||||
<view class="container">
|
||||
<view class="page-body">
|
||||
<view class="page-section">
|
||||
<view class="page-body-info">
|
||||
<block xhs:if="{{imageSrc}}">
|
||||
<image src="{{imageSrc}}" class="image" mode="aspectFit"></image>
|
||||
</block>
|
||||
<block xhs:else>
|
||||
<view class="image-plus image-plus-nb" bindtap="chooseImage">
|
||||
<view class="image-plus-horizontal"></view>
|
||||
<view class="image-plus-vertical"></view>
|
||||
</view>
|
||||
<view class="image-plus-text">选择图片</view>
|
||||
</block>
|
||||
<button bindtap="abortHandle">abort</button>
|
||||
<button bindtap="offProgressUpdateUploadTask">offProgressUpdateUploadTask</button>
|
||||
<button bindtap="offHeadersReceived">offHeadersReceived</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user