mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
432 B
432 B
图标
在按钮上使用图标。
<n-button>
<template v-slot:icon>
<cash-outline />
</template>
+100 元
</n-button>
<n-button icon-placement="right">
<template v-slot:icon>
<cash-outline />
</template>
+100 元
</n-button>
import cashOutline from 'naive-ui/lib/icons/cash-outline'
export default {
components: {
cashOutline
}
}
.n-button {
margin: 0 8px 8px 0;
}