<template>
    <view class="wallet-modal-button" :class="{ 'green': green }" @click="$emit('click')">
        <slot>充值记录</slot>
    </view>
</template>

<script>
export default {
    props: {
        green: {
            type: Boolean,
            default: false
        }
    }
}
</script>

<style lang="scss">
    .wallet-modal-button{
        width: 240upx;
        height: 88upx;
        border: 2upx solid $mColor;
        border-radius: 10upx;
        text-align: center;
        @include flcw($color: $mColor, $height: 84upx);
        &.green{
            background: $mColor;
            color: #fff;
        }
    }
</style>