mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-03 19:58:16 +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>
|
<span v-if="item.share && item.permission == 0" class="readonly">{{$L('只读')}}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<Button v-if="shearFirst" :disabled="shearFirst.pid == pid" size="small" type="primary" @click="shearTo">
|
<template v-if="shearFirst">
|
||||||
<div class="file-shear">
|
<Button :disabled="shearFirst.pid == pid" size="small" type="primary" @click="shearTo">
|
||||||
<span>{{$L('粘贴')}}</span>
|
<div class="file-shear">
|
||||||
"<em>{{shearFirst.name}}</em>"
|
<span>{{ $L('粘贴') }}</span>
|
||||||
<span v-if="shearIds.length > 1">{{$L('等')}}{{shearIds.length}}{{$L('个文件')}}</span>
|
"<em>{{ shearFirst.name }}</em>"
|
||||||
</div>
|
<span v-if="shearIds.length > 1">{{ $L('等') }}{{ shearIds.length }}{{ $L('个文件') }}</span>
|
||||||
</Button>
|
</div>
|
||||||
|
</Button>
|
||||||
|
<Button type="primary" size="small" @click="clearShear">{{ $L('取消剪切') }}</Button>
|
||||||
|
</template>
|
||||||
<template v-else-if="selectIds.length > 0">
|
<template v-else-if="selectIds.length > 0">
|
||||||
<Button size="small" type="info" @click="handleContextClick('shearSelect')">
|
<Button size="small" type="info" @click="handleContextClick('shearSelect')">
|
||||||
<Icon type="ios-cut" />
|
<Icon type="ios-cut" />
|
||||||
@ -1278,6 +1281,10 @@ export default {
|
|||||||
this.selectIds = [];
|
this.selectIds = [];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clearShear() {
|
||||||
|
this.shearIds = [];
|
||||||
|
},
|
||||||
|
|
||||||
/********************文件上传部分************************/
|
/********************文件上传部分************************/
|
||||||
|
|
||||||
uploadUpdate(fileList) {
|
uploadUpdate(fileList) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user