<template>
  <el-tag v-if="isUsing" type="warning" :size="size">使用中</el-tag>
  <el-tag v-else type="success" :size="size">待使用</el-tag>
</template>

<script>
export default {
  name: "DeviceUsingStatusTag",
  props: {
    isUsing: {
      type: Boolean,
      default: false
    },
    size: {
      type: String,
      default: null
    }
  }
}
</script>
