update: rename

This commit is contained in:
qianguyihao
2021-05-16 19:54:02 +08:00
parent a0dd8f9261
commit d59af98199
9 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
## Vue 开发积累
### 001scoped 关键字的作用
`xx.vue` 组件中我们可能会遇到带 `scoped` 关键字的样式比如
```html
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>
```
上方的`scoped`表示的是**作用域化**样式只对当前子组件生效