mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-12-23 10:40:04 +08:00
refactor: 组件解耦 预览页支持展示全部功能按钮
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<ClipFullData
|
||||
:isShow="fullDataShow"
|
||||
:fullData="fullData"
|
||||
@onDataRemove="handleDataRemove"
|
||||
@onOverlayClick="toggleFullData({ type: 'text', data: '' })"
|
||||
></ClipFullData>
|
||||
<ClipSwitch ref="ClipSwitchRef" @onNavClick="handleNavClick">
|
||||
@@ -171,7 +172,7 @@ const handleNavClick = (type) => {
|
||||
offset.value = 0 // 重置懒加载偏移量
|
||||
}
|
||||
|
||||
const fullData = ref({ type: 'text' })
|
||||
const fullData = ref({ type: 'text', data: '' })
|
||||
const fullDataShow = ref(false)
|
||||
const toggleFullData = (item) => {
|
||||
// 是否显示全部数据 (查看全部)
|
||||
|
||||
Reference in New Issue
Block a user