<template>
  <view class="button" :style="{ width, height }">{{ text }}</view>
</template>

<script >
export default {
  data() {
    return {};
  },
  methods: {
    name() {},
  },
  props: {
    width: {
      type: String,
      default: "30rpx",
    },
    text: {
      type: String,
      default: "",
    },
    height: {
      type: String,
      default: "30rpx",
    },
  },
};
</script>

<style lang="scss" scoped>
.button {
  width: 200rpx;
  height: 80rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30rpx;
  border-radius: 80rpx;
  overflow: hidden;
  &:active {
    background-color: #cccccc;
    filter: brightness(50%);
  }
}
</style>
