<template>
  <div>
      <span>{{dicFormat}}</span>
  </div>
</template>

<script>
import { formatDict } from '@/filters/index'
export default {
  name: 'assetCodesData',
  data () {
    return {
      input: ''
    }
  },
  props: {
    dictTypeCode: {
      type: String,
      default: function () {
        return ''
      }
    },
    // v-model绑定的数据
    value: {
      type: [String, Number],
      default: function () {
        return null
      }
    },
    clearable: {
      type: Boolean,
      default: () => {
        return true
      }
    },
    disabled: {
      type: Boolean,
      default: () => {
        return true
      }
    },
    debounce: {
      type: Number,
      default: function () {
        return 300
      }
    },
    // 最大输入长度
    maxlength: {
      type: Number,
      default: () => {
        return 100
      }
    },
    // 输入框占位文本
    placeholder: {
      type: String,
      default: () => {
        return ''
      }
    },
    // tagCode
    tagCode: {
      type: String,
      default: () => {
        return null
      }
    },
    // name
    name: {
      type: String,
      default: () => {
        return null
      }
    }
  },
  mounted () {
  },
  computed: {
    dicFormat () {
      // console.log(this.value, '11111')
      // console.log(this.dictTypeCode, '0000')
      return formatDict(this.value, this.dictTypeCode)
      // return formatDict(this.value, 'BUSINESS_TYPE')
    }
  }
}
</script>

<style scoped>
.el-input__inner{
    border:none !important
}
</style>
