Browse Source

Updated files

master
adiao 3 years ago
parent
commit
a067796f26
  1. 7
      资产系统开发笔记.md

7
资产系统开发笔记.md

@ -1056,8 +1056,15 @@ Arry类型的 @@ -1056,8 +1056,15 @@ Arry类型的
boolean类型的
```vue
<!-- 仅写上 prop 但不传值,会隐式转换为 `true` -->
<BlogPost is-published />
<!-- 虽然 `false` 是静态的值,我们还是需要使用 v-bind -->
<!-- 因为这是一个 JavaScript 表达式而不是一个字符串 -->
<BlogPost :is-published="false" />
<!-- 根据一个变量的值动态传入 -->
<BlogPost :is-published="post.isPublished" />
```
---

Loading…
Cancel
Save