forked from ant-design/ant-design-mini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.wxml
55 lines (54 loc) · 1.64 KB
/
index.wxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<view
class="ant-image-upload {{ className || '' }}"
style="{{ style || '' }}">
<block
wx:for="{{ mixin.value }}"
wx:for-index="index"
wx:for-item="item"
wx:key="{{ item.uid }}">
<view class="ant-image-upload-show">
<view
data-uid="{{ item.uid }}"
bind:tap="onRemove">
<view class="ant-image-upload-close" />
</view>
<view
wx:if="{{ item.status === 'uploading' || item.status === 'error' }}"
class="ant-image-upload-cover">
<view
wx:if="{{ item.status === 'uploading' }}"
class="ant-image-upload-cover-loading">
<loading className="ant-image-upload-cover-loading-icon" />
<view class="ant-image-upload-cover-loading-text">
{{ uploadingText }}
</view>
</view>
<view
wx:if="{{ item.status === 'error' }}"
class="ant-image-upload-cover-error">
<icon
className="ant-image-upload-cover-error-icon"
type="CloseCircleOutline" />
<view class="ant-image-upload-cover-error-text">
{{ uploadfailedText }}
</view>
</view>
</view>
<image
class="ant-image-upload-image"
mode="{{ imageMode }}"
src="{{ item.url || item.path }}"
data-uid="{{ item.uid }}"
bind:tap="onPreview" />
</view>
</block>
<view bind:tap="chooseImage">
<view
wx:if="{{ !maxCount || mixin.value.length < maxCount }}"
class="ant-image-upload-add-image-wrapper">
<icon
type="AddOutline"
className="ant-image-upload-add-image-icon" />
</view>
</view>
</view>