Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Update component-props.md #705

Merged
merged 2 commits into from
Sep 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/guide/component-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ props: {

```html
<!-- 包含该 prop 没有值的情况在内,都意味着 `true`。 -->
<!-- 如果没有在 props 中把 is-published 的类型设置为 Boolean,则这里的值为空字符串,而不是“true” 。 -->
<blog-post is-published></blog-post>

<!-- 即便 `false` 是静态的,我们仍然需要 `v-bind` 来告诉 Vue -->
Expand Down