tm-button.vue 677 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view :class="['tm-button-container', true ? 'pramary' : '']">
  3. <text class="btn-text">确定</text>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. }
  11. },
  12. methods: {
  13. }
  14. }
  15. </script>
  16. <style lang="less">
  17. .tm-button-container {
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. width: 312.5rpx;
  22. height: 62.5rpx;
  23. background: #3377FF;
  24. border-radius: 37.5rpx;
  25. border: 1.25rpx solid #3377FF;
  26. .btn-text {
  27. font-size: 22.5rpx;
  28. letter-spacing: 2.5rpx;
  29. color: #fff;
  30. }
  31. }
  32. .tm-button-container.pramary {
  33. background-color: #FFFFFF;
  34. .btn-text {
  35. color: #3377FF;
  36. }
  37. }
  38. </style>