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.
38 lines
616 B
38 lines
616 B
<template>
|
|
<view class="oneBtn" :class="{hui: disabled}" @click="oneBtnClick">{{ text }}</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({
|
|
text: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
disabled: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
})
|
|
let emit = defineEmits()
|
|
|
|
function oneBtnClick() {
|
|
emit('oneBtnClick')
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.oneBtn {
|
|
height: 80rpx;
|
|
background: #DE3A26;
|
|
box-shadow: 0px 3rpx 20rpx 0px rgba(222, 58, 38, 0.53);
|
|
border-radius: 40rpx;
|
|
text-align: center;
|
|
line-height: 80rpx;
|
|
font-size: 28rpx;
|
|
color: #fff;
|
|
|
|
&.hui {
|
|
opacity: 0.4;
|
|
}
|
|
}
|
|
</style>
|