mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
406 B
406 B
图标
<n-button @click="emitMessage">
漏斗图标
</n-button>
import mdHourglass from 'naive-ui/lib/icons/md-hourglass'
export default {
data() {
return {}
},
methods: {
emitMessage() {
this.$NMessage.warning("I never needed anybody's help in any way", {
icon: h => h(mdHourglass)
})
}
}
}
.n-button {
margin: 0 12px 8px 0
}