inlineBtn.vue 740 Bytes
<template lang="html">

  <div class="">
    <div v-if="type === 'enable'" class="set-enable-btn">
      <slot></slot>
    </div>
    <div v-if="type === 'unable'" class="un-set-btn">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: ['type']
}
</script>

<style lang="less">
  .set-enable-btn {
    color: #8EA8CF;
    background-color: #FFFFFF;
    text-align: center;
    margin: 0.5rem 1rem;
    padding: 0.5rem 0;
    border-radius: .2rem;
    font-size: .85rem;
    border: 1px solid #8EA8CF;
  }
  .un-set-btn {
    color: white;
    background-color: #8EA8CF;
    text-align: center;
    margin: 0.5rem 1rem;
    padding: 0.5rem 0;
    border-radius: .2rem;
    font-size: .85rem;
  }
</style>