feat(runtime-core): add inheritRef option + make <transition> & <keep-alive> inherit refs
This commit is contained in:
@@ -100,6 +100,8 @@ export function useTransitionState(): TransitionState {
|
||||
const BaseTransitionImpl = {
|
||||
name: `BaseTransition`,
|
||||
|
||||
inheritRef: true,
|
||||
|
||||
props: {
|
||||
mode: String,
|
||||
appear: Boolean,
|
||||
|
||||
@@ -63,6 +63,8 @@ const KeepAliveImpl = {
|
||||
// would prevent it from being tree-shaken.
|
||||
__isKeepAlive: true,
|
||||
|
||||
inheritRef: true,
|
||||
|
||||
props: {
|
||||
include: [String, RegExp, Array],
|
||||
exclude: [String, RegExp, Array],
|
||||
|
||||
Reference in New Issue
Block a user