basic.vue 1.5 KB

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