refactor: 组件解耦 预览页支持展示全部功能按钮

This commit is contained in:
ZiuChen
2022-09-16 11:01:07 +08:00
parent e64d8051bf
commit 9d51968859
8 changed files with 137 additions and 152 deletions

View File

@@ -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) => {
// 是否显示全部数据 (查看全部)