mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:24:17 +00:00
fix: 在文件页面编辑文本时选择已传图片缩列图不显示的情况
This commit is contained in:
parent
84e3b22357
commit
1be70fd8f2
@ -50,7 +50,7 @@
|
||||
<div v-if="browseList.length <= 0">{{$L('无内容')}}</div>
|
||||
<div v-else class="browse-item" v-for="item in browseList" @click="browseItem(item)">
|
||||
<Icon v-if="item.active" class="browse-icon" type="ios-checkmark-circle"></Icon>
|
||||
<div class="browse-img" v-bind:style="{ 'background-image': 'url(' + item.thumb + ')' }"></div>
|
||||
<div class="browse-img" v-bind:style="browseStyle(item.thumb)"></div>
|
||||
<div class="browse-title">{{item.title}}</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -366,6 +366,15 @@
|
||||
}
|
||||
},
|
||||
|
||||
browseStyle(thumb) {
|
||||
if (!/https*:\/\//.test(thumb) && !/^\//.test(thumb)) {
|
||||
thumb = $A.apiUrl(`../${thumb}`);
|
||||
}
|
||||
return {
|
||||
'background-image': `url("${thumb}")`
|
||||
}
|
||||
},
|
||||
|
||||
__thumb(url) {
|
||||
if ($A.strExists(url, "?", false)) {
|
||||
return url + "&__thumb=true";
|
||||
|
||||
@ -237,6 +237,7 @@
|
||||
padding-top: 15px;
|
||||
color: #ffffff;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user