mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
refactor(texttransparentable): add delay to keep text color
This commit is contained in:
parent
2a01e47932
commit
107e5c0127
@ -25,6 +25,8 @@ export default {
|
||||
document.querySelector('head').appendChild(this.cssNode)
|
||||
},
|
||||
beforeDestroy () {
|
||||
document.querySelector('head').removeChild(this.cssNode)
|
||||
window.setTimeout(() => {
|
||||
document.querySelector('head').removeChild(this.cssNode)
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user