naive-ui/demo/documentation/components/button/zhCN/basic.demo.md

390 B

基础

按钮的 type 分别为 defaultprimaryinfosuccesswarningerror

<n-space>
  <n-button>Default</n-button>
  <n-button type="primary">Primary</n-button>
  <n-button type="info">Info</n-button>
  <n-button type="success">Success</n-button>
  <n-button type="warning">Warning</n-button>
  <n-button type="error">Error</n-button>
</n-space>