Skip to content

Commit a4500c8

Browse files
afontcuJustineo
authored andcommitted
Clarify null and undefined values on typed props (#1937)
1 parent 7a1563d commit a4500c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/components-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ post: {
188188
``` js
189189
Vue.component('my-component', {
190190
props: {
191-
// 基础的类型检查 (`null` 匹配任何类型)
191+
// 基础的类型检查 (`null` 和 `undefined` 会通过任何类型验证)
192192
propA: Number,
193193
// 多个可能的类型
194194
propB: [String, Number],

0 commit comments

Comments
 (0)