<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>