basic.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <el-row class="mb-4">
  3. <el-button>Default</el-button>
  4. <el-button type="primary">Primary</el-button>
  5. <el-button type="success">Success</el-button>
  6. <el-button type="info">Info</el-button>
  7. <el-button type="warning">Warning</el-button>
  8. <el-button type="danger">Danger</el-button>
  9. </el-row>
  10. <el-row class="mb-4">
  11. <el-button plain>Plain</el-button>
  12. <el-button type="primary" plain>Primary</el-button>
  13. <el-button type="success" plain>Success</el-button>
  14. <el-button type="info" plain>Info</el-button>
  15. <el-button type="warning" plain>Warning</el-button>
  16. <el-button type="danger" plain>Danger</el-button>
  17. </el-row>
  18. <el-row class="mb-4">
  19. <el-button round>Round</el-button>
  20. <el-button type="primary" round>Primary</el-button>
  21. <el-button type="success" round>Success</el-button>
  22. <el-button type="info" round>Info</el-button>
  23. <el-button type="warning" round>Warning</el-button>
  24. <el-button type="danger" round>Danger</el-button>
  25. </el-row>
  26. <el-row>
  27. <el-button :icon="Search" circle />
  28. <el-button type="primary" :icon="Edit" circle />
  29. <el-button type="success" :icon="Check" circle />
  30. <el-button type="info" :icon="Message" circle />
  31. <el-button type="warning" :icon="Star" circle />
  32. <el-button type="danger" :icon="Delete" circle />
  33. </el-row>
  34. </template>
  35. <script lang="ts" setup>
  36. import {
  37. Check,
  38. Delete,
  39. Edit,
  40. Message,
  41. Search,
  42. Star,
  43. } from '@element-plus/icons-vue'
  44. </script>