mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 图表数据编辑器单元格无法粘贴(#333)
This commit is contained in:
parent
7f4400f34d
commit
a1e47a21b1
@ -292,7 +292,12 @@ const handlePaste = (e: ClipboardEvent, rowIndex: number, colIndex: number) => {
|
|||||||
if (typeof clipboardData === 'object') return
|
if (typeof clipboardData === 'object') return
|
||||||
|
|
||||||
const excelData = pasteExcelClipboardString(text)
|
const excelData = pasteExcelClipboardString(text)
|
||||||
if (excelData) fillTableData(excelData, rowIndex, colIndex)
|
if (excelData) {
|
||||||
|
fillTableData(excelData, rowIndex, colIndex)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
document.execCommand('insertText', false, text)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else if (clipboardDataFirstItem.type === 'text/html') {
|
else if (clipboardDataFirstItem.type === 'text/html') {
|
||||||
|
@ -76,7 +76,6 @@ const handleFocus = () => {
|
|||||||
if (htmlData) {
|
if (htmlData) {
|
||||||
emit('insertExcelData', htmlData)
|
emit('insertExcelData', htmlData)
|
||||||
if (textareaRef.value) textareaRef.value.innerHTML = htmlData[0][0]
|
if (textareaRef.value) textareaRef.value.innerHTML = htmlData[0][0]
|
||||||
return
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user