2019-11-22 16:54:21 +08:00
# Basic
2020-02-04 11:00:38 +08:00
Thing provides many slots to custom.
2019-11-22 16:54:21 +08:00
```html
2020-08-27 11:52:47 +08:00
< n-row >
< n-col :span = "12" >
2020-10-29 01:42:02 +08:00
< n-checkbox v-model:checked = "avatar" > Avatar< / n-checkbox >
2020-08-27 11:52:47 +08:00
< / n-col >
< n-col :span = "12" >
2020-10-29 01:42:02 +08:00
< n-checkbox v-model:checked = "action" > Action< / n-checkbox >
2020-08-27 11:52:47 +08:00
< / n-col >
< / n-row >
< n-row >
< n-col :span = "12" >
2020-10-29 01:42:02 +08:00
< n-checkbox v-model:checked = "header" > Header< / n-checkbox >
2020-08-27 11:52:47 +08:00
< / n-col >
< n-col :span = "12" >
2020-10-29 01:42:02 +08:00
< n-checkbox v-model:checked = "headerExtra" > Header Extra< / n-checkbox >
2020-08-27 11:52:47 +08:00
< / n-col >
< / n-row >
< n-row >
< n-col :span = "12" >
2020-10-29 01:42:02 +08:00
< n-checkbox v-model:checked = "description" > Description< / n-checkbox >
2020-08-27 11:52:47 +08:00
< / n-col >
< n-col :span = "12" >
2020-10-29 01:42:02 +08:00
< n-checkbox v-model:checked = "footer" > Footer< / n-checkbox >
2020-08-27 11:52:47 +08:00
< / n-col >
< / n-row >
< n-divider / >
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 >
2020-10-22 15:10:48 +08:00
< cash-icon / >
2019-11-22 16:54:21 +08:00
< / 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 >
2020-10-22 15:10:48 +08:00
< cash-icon / >
2019-11-22 16:54:21 +08:00
< / template >
< / n-button >
< / template >
2019-11-26 18:16:50 +08:00
< template v-slot:description v-if = "description" >
2020-02-04 11:00:38 +08:00
Description
2019-11-22 16:54:21 +08:00
< / 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" >
2020-02-04 11:00:38 +08:00
Footer
2019-11-22 16:54:21 +08:00
< / 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 >
2020-10-22 15:10:48 +08:00
< cash-icon / >
2019-11-22 16:54:21 +08:00
< / template >
2020-02-04 11:00:38 +08:00
1$
2019-11-22 16:54:21 +08:00
< / n-button >
< n-button size = "tiny" style = "margin-right: 8px;" >
< template v-slot:icon >
2020-10-22 15:10:48 +08:00
< cash-icon / >
2019-11-22 16:54:21 +08:00
< / template >
2020-02-04 11:00:38 +08:00
10$
2019-11-22 16:54:21 +08:00
< / n-button >
< n-button size = "tiny" >
< template v-slot:icon >
2020-10-22 15:10:48 +08:00
< cash-icon / >
2019-11-22 16:54:21 +08:00
< / template >
2020-02-04 11:00:38 +08:00
100$
2019-11-22 16:54:21 +08:00
< / n-button >
< / template >
< / n-thing >
```
```js
2020-11-07 00:07:02 +08:00
import { CashOutline as CashIcon } from '@vicons/ionicons-v5'
2019-11-22 16:54:21 +08:00
export default {
components: {
2020-10-22 15:10:48 +08:00
CashIcon
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
}
}
```