33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
diff --git a/node_modules/uview-ui/components/u-upload/u-upload.vue b/node_modules/uview-ui/components/u-upload/u-upload.vue
|
|
index eb55854..ad84c0e 100644
|
|
--- a/node_modules/uview-ui/components/u-upload/u-upload.vue
|
|
+++ b/node_modules/uview-ui/components/u-upload/u-upload.vue
|
|
@@ -20,14 +20,15 @@
|
|
/>
|
|
<view
|
|
v-else
|
|
+ @tap="onClickPreviewCustom(item)"
|
|
class="u-upload__wrap__preview__other"
|
|
>
|
|
<u-icon
|
|
color="#80CBF9"
|
|
size="26"
|
|
- :name="item.isVideo || (item.type && item.type === 'video') ? 'movie' : 'folder'"
|
|
+ :name="'folder'"
|
|
></u-icon>
|
|
- <text class="u-upload__wrap__preview__other__text">{{item.isVideo || (item.type && item.type === 'video') ? '视频' : '文件'}}</text>
|
|
+ <text class="u-upload__wrap__preview__other__text">{{ item.name || '文件' }}</text>
|
|
</view>
|
|
<view
|
|
class="u-upload__status"
|
|
@@ -351,6 +352,9 @@
|
|
'clickPreview',
|
|
Object.assign(Object.assign({}, item), this.getDetail(index))
|
|
);
|
|
+ },
|
|
+ onClickPreviewCustom(item) {
|
|
+ this.$emit("clickPreview", item);
|
|
}
|
|
}
|
|
}
|