naive-ui/demo/documentation/components/avatar/enUS/nameSize.md

22 lines
356 B
Markdown
Raw Normal View History

2020-01-27 18:21:19 +08:00
# Content Size
Words' sizing would be auto adjusted in avatar.
2019-11-22 13:21:32 +08:00
```html
<n-avatar>{{ value }}</n-avatar>
<n-avatar circle>{{ value }}</n-avatar>
2020-01-27 18:21:19 +08:00
<n-avatar circle>the <br>{{ value }}</n-avatar>
2019-11-22 13:21:32 +08:00
<n-input v-model="value"/>
```
```js
export default {
data () {
return {
2020-01-27 18:21:19 +08:00
value: 'Oasis'
2019-11-22 13:21:32 +08:00
}
}
}
2020-01-27 18:21:19 +08:00
```
```css
.n-avatar {
margin: 0 8px 12px 0;
}
2019-11-22 13:21:32 +08:00
```