feat: 添加配合超级粘贴插件实现的快存功能 支持图片预览

This commit is contained in:
ZiuChen
2022-09-16 13:06:14 +08:00
parent d2b64d890a
commit 85c82a1902
4 changed files with 28 additions and 12 deletions

View File

@@ -183,10 +183,7 @@ const fullData = ref({ type: 'text', data: '' })
const fullDataShow = ref(false)
const toggleFullData = (item) => {
// 是否显示全部数据 (查看全部)
const { type } = item
if (type === 'text' || type === 'file') {
fullData.value = item
}
fullData.value = item
fullDataShow.value = !fullDataShow.value
}