import { ElImage } from 'element-plus'
import { computed } from 'vue'
import apiConfig from '@cip/request/apiConfig'
import { getValueByTemplate } from '@cip/utils/util'
export default {
  props: { src: String },
  setup (props) {
    const realSrc = computed(() => {
      return getValueByTemplate(props.src, apiConfig)
    })
    return () => <ElImage src={realSrc.value}/>
  }
}
