mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-10-24 05:21:20 +08:00
feat: fullData页内添加复制与分词功能 调整prop内容
This commit is contained in:
@@ -59,18 +59,13 @@ const handleNavClick = (type) => {
|
||||
offset.value = 0 // 重置懒加载偏移量
|
||||
}
|
||||
|
||||
const fullData = ref({ type: 'text', data: '' })
|
||||
const fullData = ref({ type: 'text' })
|
||||
const fullDataShow = ref(false)
|
||||
const toggleFullData = (item) => {
|
||||
// 是否显示全部数据 (查看全部)
|
||||
const { type, data } = item
|
||||
// type: 'text' | 'file'
|
||||
if (type === 'text') {
|
||||
fullData.value.type = 'text'
|
||||
fullData.value.data = data
|
||||
} else if (type === 'file') {
|
||||
fullData.value.type = 'file'
|
||||
fullData.value.data = JSON.parse(data)
|
||||
const { type } = item
|
||||
if (type === 'text' || type === 'file') {
|
||||
fullData.value = item
|
||||
}
|
||||
fullDataShow.value = !fullDataShow.value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user