mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
501 B
501 B
禁用
按钮可以被禁用。
<n-button
size="small"
disabled
>
不许点
</n-button>
<n-button
disabled
type="primary"
>
不许点
</n-button>
<n-button
disabled
round
type="primary"
>
不许点
</n-button>
<n-button
disabled
circle
>
<template v-slot:icon>
<md-save />
</template>
</n-button>
import mdSave from 'naive-ui/lib/icons/md-save'
export default {
components: {
mdSave
}
}
.n-button {
margin: 0 8px 8px 0;
}