mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-28 14:08:13 +00:00
perf: 【文件】剪切后加'取消剪切'按钮
This commit is contained in:
parent
9d89af37be
commit
fbeb3dd81e
@ -31,13 +31,16 @@
|
||||
<span v-if="item.share && item.permission == 0" class="readonly">{{$L('只读')}}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<Button v-if="shearFirst" :disabled="shearFirst.pid == pid" size="small" type="primary" @click="shearTo">
|
||||
<div class="file-shear">
|
||||
<span>{{$L('粘贴')}}</span>
|
||||
"<em>{{shearFirst.name}}</em>"
|
||||
<span v-if="shearIds.length > 1">{{$L('等')}}{{shearIds.length}}{{$L('个文件')}}</span>
|
||||
</div>
|
||||
</Button>
|
||||
<template v-if="shearFirst">
|
||||
<Button :disabled="shearFirst.pid == pid" size="small" type="primary" @click="shearTo">
|
||||
<div class="file-shear">
|
||||
<span>{{ $L('粘贴') }}</span>
|
||||
"<em>{{ shearFirst.name }}</em>"
|
||||
<span v-if="shearIds.length > 1">{{ $L('等') }}{{ shearIds.length }}{{ $L('个文件') }}</span>
|
||||
</div>
|
||||
</Button>
|
||||
<Button type="primary" size="small" @click="clearShear">{{ $L('取消剪切') }}</Button>
|
||||
</template>
|
||||
<template v-else-if="selectIds.length > 0">
|
||||
<Button size="small" type="info" @click="handleContextClick('shearSelect')">
|
||||
<Icon type="ios-cut" />
|
||||
@ -1278,6 +1281,10 @@ export default {
|
||||
this.selectIds = [];
|
||||
},
|
||||
|
||||
clearShear() {
|
||||
this.shearIds = [];
|
||||
},
|
||||
|
||||
/********************文件上传部分************************/
|
||||
|
||||
uploadUpdate(fileList) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user