]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: default transition css prop to true
authorEvan You <yyx990803@gmail.com>
Fri, 29 Nov 2019 22:38:29 +0000 (17:38 -0500)
committerEvan You <yyx990803@gmail.com>
Fri, 29 Nov 2019 22:38:29 +0000 (17:38 -0500)
packages/runtime-dom/src/components/Transition.ts

index b3f9685d62f93b2ddd0b8754bcbafef346a138d0..e5353004ad2061e3b60e7c7646f3ad5906b26e07 100644 (file)
@@ -41,9 +41,10 @@ export const TransitionPropsValidators = {
   ...(BaseTransition as any).props,
   name: String,
   type: String,
-  // Cannot use Boolean otherwise it will be force casted to false when
-  // omitted
-  css: null,
+  css: {
+    type: Boolean,
+    default: true
+  },
   duration: Object,
   enterFromClass: String,
   enterActiveClass: String,