<template>
  <dict-select-tag
    :type="type"
    :options="options"
    :disabled="disabled"
    v-model="record[property]"
    @change="changeValue"
  />
</template>
<script>
import dictSelectTag from "../Common/DictSelectTag.vue";

export default {
  name: 'SubCheckTag',
  props: {
    type: String,
    options: Array,
    record: Object,
    disabled: Boolean,
    property: String,
  },
  components: {
    dictSelectTag
  },
  data() {
    return {}
  },
  methods: {
    changeValue(value) {
      this.$emit('setFieldValue', this.property, value, this.record)
    }
  }
}
</script>
