Skip to content
代码片段 群组 项目
提交 ac02e496 编辑于 作者: Natalia Tepluhina's avatar Natalia Tepluhina 提交者: Phil Hughes
浏览文件

Added a note about v-slot directive

上级 fe090797
No related branches found
No related tags found
无相关合并请求
......@@ -544,14 +544,24 @@ Please check this [rules][eslint-plugin-vue-rules] for more documentation.
<component @click="eventHandler"/>
```
1. Shorthand `:` is preferable over `v-bind`
2. Shorthand `:` is preferable over `v-bind`
```javascript
// bad
<component v-bind:class="btn"/>
// good
<component :class="btsn"/>
<component :class="btn"/>
```
3. Shorthand `#` is preferable over `v-slot`
```javascript
// bad
<template v-slot:header></template>
// good
<template #header></template>
```
#### Closing tags
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册