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