index.vue 978 Bytes
<template>
  <div v-if="type === 'primary'" class="button-primary">
    <slot></slot>
  </div>
  <div v-if="type === 'plain'" class="button-plain">
    <slot></slot>
  </div>
</template>

<script setup>
import { ref, reactive, onMounted } from 'vue'
const props = defineProps({
  type: String
})

  onMounted(() => {
    
  })
</script>

<script>
export default {
  data () {
    return {

    }
  },
  mounted () {

  },
  methods: {

  }
}
</script>

<style lang="less" scoped>
  .button-primary {
    width: auto;
    height: auto;
    text-align: center;
    padding: 0.6rem;
    margin: 0.5rem;
    font-size: 1rem;
    background: #F9D95C;
    border-radius: 24px;
    border: 1px solid #F9D95C;
    color: #0B3A72;
  }
  .button-plain {
    width: auto;
    height: auto;
    text-align: center;
    padding: 0.6rem;
    margin: 0.5rem;
    font-size: 1rem;
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid #0B3A72;
    color: #0B3A72;
  }
</style>