mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: chat table support copy value via right click
This commit is contained in:
@@ -109,10 +109,11 @@ function copyData(event: any, s2?: TableSheet) {
|
||||
const cellMeta = s2.facet.getCellMeta(c.rowIndex, c.colIndex)
|
||||
console.log(cellMeta)
|
||||
if (cellMeta) {
|
||||
let value = cellMeta.fieldValue as string
|
||||
let value = cellMeta.fieldValue
|
||||
if (value === null || value === undefined) {
|
||||
value = ''
|
||||
}
|
||||
value = value + ''
|
||||
copyToClipboard(value).finally(() => {
|
||||
ElMessage.success(t('qa.copied'))
|
||||
console.debug('copied:', cellMeta.fieldValue)
|
||||
|
||||
Reference in New Issue
Block a user