<template>
    <button
        class="btn flex-align-center"
        :class="customClass"
        :open-type="openType"
        :style="{ height: height * 2 + 'rpx', borderRadius: height + 'rpx' }"
        @click="click"
    >
        <slot></slot>
    </button>
</template>

<script>
    export default {
        props: {
            height: {
                type: Number,
                default: 32
            },
            customClass: String,
            openType: String
        },
        methods: {
            click() {
                this.$emit('click')
            }
        }
    }
</script>

<style scoped>
    .btn {
        background: #fec433;
        border-radius: 50rpx;
        text-align: center;
        color: #000;
        font-size: 28rpx;
        width: 425rpx;
        border: none;
        box-shadow: none;
    }
    .btn::after {
        display: none;
    }
</style>
