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.

36 lines
558 B

1 month 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: #3776FF;
  24. border-radius: 40rpx;
  25. text-align: center;
  26. line-height: 80rpx;
  27. font-size: 28rpx;
  28. color: #fff;
  29. &.hui {
  30. opacity: 0.4;
  31. }
  32. }
  33. </style>