<template>
  <el-tag v-if="value != null" :type="value ? trueType : falseType" :size="size">{{value ? trueText : falseText}}</el-tag>
</template>
<script>
export default {
  name: "BooleanTag",
  props: {
    value: {
      type: Boolean,
      default: null
    },
    size: {
      type: String,
      default: null,
    },
    trueText: {
      type: String,
      default: '是'
    },
    falseText: {
      type: String,
      default: '否'
    },
    trueType: {
      type: String,
      default: 'success'
    },
    falseType: {
      type: String,
      default: 'danger'
    }
  },

}
</script>
