import { use } from '../utils'; import Info from '../info'; import isSrc from '../utils/validate/src'; const [sfc] = use('icon'); export default sfc({ props: { name: String, size: String, color: String, info: [String, Number], classPrefix: { type: String, default: 'van-icon' } }, computed: { isSrc() { return isSrc(this.name); } }, render(h) { return ( {this.$slots.default} {this.isSrc && } ); } });