You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
616 B

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
  1. <template>
  2. <view class="oneBtn" :class="{hui: disabled}" @click="oneBtnClick">{{ text }}</view>
  3. </template>
  4. <script setup>
  5. defineProps({
  6. text: {
  7. type: String,
  8. default: ''
  9. },
  10. disabled: {
  11. type: Boolean,
  12. default: false
  13. }
  14. })
  15. let emit = defineEmits()
  16. function oneBtnClick() {
  17. emit('oneBtnClick')
  18. }
  19. </script>
  20. <style lang="scss" scoped>
  21. .oneBtn {
  22. height: 80rpx;
  23. background: #DE3A26;
  24. box-shadow: 0px 3rpx 20rpx 0px rgba(222, 58, 38, 0.53);
  25. border-radius: 40rpx;
  26. text-align: center;
  27. line-height: 80rpx;
  28. font-size: 28rpx;
  29. color: #fff;
  30. &.hui {
  31. opacity: 0.4;
  32. }
  33. }
  34. </style>