mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
refactor: 代码优化
This commit is contained in:
parent
fc20d9c003
commit
86d23ae26f
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,7 +1,6 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
yarn.lock
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
|
@ -169,8 +169,8 @@ export default defineComponent({
|
||||
}
|
||||
onUnmounted(closeAutoPlay)
|
||||
|
||||
const massageThrottle = throttle(function(info) {
|
||||
message.success(info)
|
||||
const throttleMassage = throttle(function(msg) {
|
||||
message.success(msg)
|
||||
}, 3000, { leading: true, trailing: false })
|
||||
|
||||
// 向上/向下播放
|
||||
@ -186,7 +186,7 @@ export default defineComponent({
|
||||
animationIndex.value = lastIndex
|
||||
}
|
||||
else {
|
||||
massageThrottle('已经是第一页了')
|
||||
throttleMassage('已经是第一页了')
|
||||
}
|
||||
}
|
||||
const execNext = () => {
|
||||
@ -198,7 +198,7 @@ export default defineComponent({
|
||||
animationIndex.value = 0
|
||||
}
|
||||
else {
|
||||
massageThrottle('已经是最后一页了')
|
||||
throttleMassage('已经是最后一页了')
|
||||
closeAutoPlay()
|
||||
}
|
||||
}
|
||||
|
@ -169,10 +169,7 @@ table {
|
||||
.cell-text {
|
||||
min-height: 32px;
|
||||
padding: 5px;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
line-height: 1.5;
|
||||
user-select: none;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
x
Reference in New Issue
Block a user