mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
1.7 KiB
1.7 KiB
Content Indented
Content can be indented after avatar.
<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"/>
<n-thing content-indented>
<template v-slot:avatar v-if="avatar">
<n-avatar>
<n-icon>
<md-cash />
</n-icon>
</n-avatar>
</template>
<template v-slot:header v-if="header">
Money
</template>
<template v-slot:header-extra v-if="headerExtra">
<n-button circle size="tiny">
<template v-slot:icon>
<md-cash />
</template>
</n-button>
</template>
<template v-slot:description v-if="description">
Description
</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.
<template v-slot:footer v-if="footer">
Footer
</template>
<template v-slot:action v-if="action">
<n-button size="tiny" style="margin-right: 8px;">
<template v-slot:icon>
<md-cash />
</template>
1$
</n-button>
<n-button size="tiny" style="margin-right: 8px;">
<template v-slot:icon>
<md-cash />
</template>
10$
</n-button>
<n-button size="tiny">
<template v-slot:icon>
<md-cash />
</template>
100$
</n-button>
</template>
</n-thing>
import mdCash from 'naive-ui/lib/icons/md-cash'
export default {
components: {
mdCash
},
data () {
return {
avatar: true,
header: true,
headerExtra: true,
description: true,
footer: true,
action: true
}
}
}