2019-11-22 16:54:21 +08:00
# Basic
```html
2019-11-26 18:16:50 +08:00
< n-switch v-model = "avatar" / >
< n-switch v-model = "header" / >
< n-switch v-model = "headerExtra" / >
< n-switch v-model = "description" / >
< n-switch v-model = "footer" / >
< n-switch v-model = "action" / >
2019-11-22 16:54:21 +08:00
< n-thing >
2019-11-26 18:16:50 +08:00
< template v-slot:avatar v-if = "avatar" >
2019-11-22 16:54:21 +08:00
< n-avatar >
< n-icon >
< md-cash / >
< / n-icon >
< / n-avatar >
< / template >
2019-11-26 18:16:50 +08:00
< template v-slot:header v-if = "header" >
2019-11-22 16:54:21 +08:00
Money
< / template >
2019-11-26 18:16:50 +08:00
< template v-slot:header-extra v-if = "headerExtra" >
2019-11-22 16:54:21 +08:00
< n-button circle size = "tiny" >
< template v-slot:icon >
< md-cash / >
< / template >
< / n-button >
< / template >
2019-11-26 18:16:50 +08:00
< template v-slot:description v-if = "description" >
2019-11-22 16:54:21 +08:00
It is what I want.
< / template >
Money is any item or verifiable record that is generally accepted as payment for goods and services and repayment of debts, such as taxes, in a particular country or socio-economic context.
2019-11-26 18:16:50 +08:00
< template v-slot:footer v-if = "footer" >
2019-11-22 16:54:21 +08:00
The King of Money
< / template >
2019-11-26 18:16:50 +08:00
< template v-slot:action v-if = "action" >
2019-11-22 16:54:21 +08:00
< n-button size = "tiny" style = "margin-right: 8px;" >
< template v-slot:icon >
< md-cash / >
< / template >
Add 1$
< / n-button >
< n-button size = "tiny" style = "margin-right: 8px;" >
< template v-slot:icon >
< md-cash / >
< / template >
Add 10$
< / n-button >
< n-button size = "tiny" >
< template v-slot:icon >
< md-cash / >
< / template >
Add 100$
< / n-button >
< / template >
< / n-thing >
```
```js
import mdCash from 'naive-ui/lib/icons/md-cash'
export default {
components: {
mdCash
2019-11-26 18:16:50 +08:00
},
data () {
return {
avatar: true,
header: true,
headerExtra: true,
description: true,
footer: true,
action: true
}
2019-11-22 16:54:21 +08:00
}
}
```