浏览代码

chore: default transition css prop to true

Evan You 6 年之前
父节点
当前提交
22957436e8
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      packages/runtime-dom/src/components/Transition.ts

+ 4 - 3
packages/runtime-dom/src/components/Transition.ts

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