fix: recommed
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
zzc
2026-02-05 21:10:32 +08:00
parent 4a90afd968
commit 1d3258ee0d
4 changed files with 73 additions and 10 deletions

View File

@@ -18,7 +18,14 @@
</vab-query-form>
<el-table v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText">
<el-table-column align="center" label="ID" prop="id" show-overflow-tooltip />
<el-table-column align="center" label="ID" prop="id" show-overflow-tooltip>
<template #default="{ row }">
<span style="cursor: pointer" @click="handleCopyId(row.id)">
<i class="el-icon-copy-document" />
{{ row.id }}
</span>
</template>
</el-table-column>
<el-table-column align="center" label="排序" prop="sort" show-overflow-tooltip />
@@ -95,6 +102,15 @@
clearTimeout(this.timeOutID)
},
methods: {
handleCopyId(text) {
const input = document.createElement('input')
input.value = text
document.body.appendChild(input)
input.select()
document.execCommand('copy')
document.body.removeChild(input)
this.$baseMessage('复制成功', 'success')
},
setSelectRows(val) {
this.selectRows = val
},