增加keepalive支持
parent
5748e6a760
commit
6f3ea0f086
|
@ -344,6 +344,9 @@ export class Component extends HTMLElement {
|
||||||
if (this.$animate?.immediate) {
|
if (this.$animate?.immediate) {
|
||||||
this.$animate()
|
this.$animate()
|
||||||
}
|
}
|
||||||
|
if (this.__keep_alive__) {
|
||||||
|
this.activated()
|
||||||
|
}
|
||||||
this.mounted()
|
this.mounted()
|
||||||
} else {
|
} else {
|
||||||
this.updated(props)
|
this.updated(props)
|
||||||
|
@ -366,6 +369,8 @@ export class Component extends HTMLElement {
|
||||||
// 几个生命周期回调
|
// 几个生命周期回调
|
||||||
created() {}
|
created() {}
|
||||||
mounted() {}
|
mounted() {}
|
||||||
|
activated() {}
|
||||||
|
deactivated() {}
|
||||||
unmounted() {}
|
unmounted() {}
|
||||||
updated() {}
|
updated() {}
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in New Issue