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
558 B
37 lines
558 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: #3776FF;
|
|
border-radius: 40rpx;
|
|
text-align: center;
|
|
line-height: 80rpx;
|
|
font-size: 28rpx;
|
|
color: #fff;
|
|
|
|
&.hui {
|
|
opacity: 0.4;
|
|
}
|
|
}
|
|
</style>
|