feat(runtime-core): add inheritRef option + make <transition> & <keep-alive> inherit refs

This commit is contained in:
Evan You
2020-05-22 10:26:02 -04:00
parent 88c1e626a7
commit 38f2d23a60
7 changed files with 30 additions and 6 deletions

View File

@@ -100,6 +100,8 @@ export function useTransitionState(): TransitionState {
const BaseTransitionImpl = {
name: `BaseTransition`,
inheritRef: true,
props: {
mode: String,
appear: Boolean,

View File

@@ -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],