perf: 文件增加取消选择按钮
This commit is contained in:
parent
305af935a7
commit
34772ef2bf
@ -56,6 +56,7 @@
|
|||||||
@click="deleteSelectFile">{{$L('删除')}}
|
@click="deleteSelectFile">{{$L('删除')}}
|
||||||
</Button>
|
</Button>
|
||||||
</template>
|
</template>
|
||||||
|
<Button v-if="selectFile.length > 0" type="primary" size="small" @click="clearSelect">{{$L('取消选择')}}</Button>
|
||||||
<div v-if="loadIng > 0" class="nav-load"><Loading/></div>
|
<div v-if="loadIng > 0" class="nav-load"><Loading/></div>
|
||||||
<div class="flex-full"></div>
|
<div class="flex-full"></div>
|
||||||
<div :class="['switch-button', tableMode ? 'table' : '']" @click="tableMode=!tableMode">
|
<div :class="['switch-button', tableMode ? 'table' : '']" @click="tableMode=!tableMode">
|
||||||
@ -66,6 +67,7 @@
|
|||||||
|
|
||||||
<div v-if="tableMode" class="file-table" @contextmenu.prevent="handleRightClick">
|
<div v-if="tableMode" class="file-table" @contextmenu.prevent="handleRightClick">
|
||||||
<Table
|
<Table
|
||||||
|
ref="fileListTable"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:data="fileList"
|
:data="fileList"
|
||||||
:height="tableHeight"
|
:height="tableHeight"
|
||||||
@ -1383,6 +1385,14 @@ export default {
|
|||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clearSelect() {
|
||||||
|
this.shearFiles = [];
|
||||||
|
this.selectFile = [];
|
||||||
|
this.fileChecked = [];
|
||||||
|
if ( this.tableMode ) // 如果是表格模式,则将表格取消全选
|
||||||
|
this.$refs.fileListTable.selectAll(false);
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user