buttons.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <div>
  3. <header class="mui-bar mui-bar-nav">
  4. <router-link to="/index" class="mui-icon mui-icon-left-nav mui-pull-left"></router-link>
  5. <h1 class="mui-title">普通按钮</h1>
  6. </header>
  7. <div class="mui-content">
  8. <div class="mui-content-padded">
  9. <h5>有底色按钮:</h5>
  10. <button type="button" class="mui-btn">
  11. 默认
  12. </button>
  13. <div class="mui-btn mui-btn-primary">
  14. 蓝色
  15. </div>
  16. <span class="mui-btn mui-btn-success">
  17. 绿色
  18. </span>
  19. <button type="button" class="mui-btn mui-btn-warning">
  20. 黄色
  21. </button>
  22. <button type="button" class="mui-btn mui-btn-danger">
  23. 红色
  24. </button>
  25. <button type="button" class="mui-btn mui-btn-royal">
  26. 紫色
  27. </button>
  28. <h5 style="margin-top: 10px;">无底色按钮(使用父元素的背景色):</h5>
  29. <button type="button" class="mui-btn mui-btn-outlined">
  30. 默认
  31. </button>
  32. <button type="button" class="mui-btn mui-btn-primary mui-btn-outlined">
  33. 操作
  34. </button>
  35. <button type="button" class="mui-btn mui-btn-success mui-btn-outlined">
  36. 成功
  37. </button>
  38. <button type="button" class="mui-btn mui-btn-warning mui-btn-outlined">
  39. 警告
  40. </button>
  41. <button type="button" class="mui-btn mui-btn-danger mui-btn-outlined">
  42. 危险
  43. </button>
  44. <button type="button" class="mui-btn mui-btn-royal mui-btn-outlined">
  45. 高贵
  46. </button>
  47. <h5 style="margin-top: 15px;">链接按钮:</h5>
  48. <button type="button" class="mui-btn mui-btn-link">
  49. 添加
  50. </button>
  51. <h5 style="margin-top: 10px;">默认input标签样式:</h5>
  52. <input type="button" value="type=button" />
  53. <input type="reset" value="type=reset" />
  54. <input type="submit" value="type=submit" />
  55. <h5 style="margin-top: 10px;">默认button标签样式:</h5>
  56. <button type="button">按钮</button>
  57. </div>
  58. </div>
  59. </div>
  60. </template>
  61. <script>
  62. export default {
  63. mounted() {
  64. mui.init({
  65. swipeBack: true //启用右滑关闭功能
  66. });
  67. }
  68. }
  69. </script>
  70. <style scoped>
  71. input,
  72. button,
  73. .mui-btn {
  74. margin-top: 10px;
  75. margin-left: 10px;
  76. }
  77. </style>