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' } }, render(h, context) { const { props } = context; const urlIcon = isSrc(props.name); return ( {context.children} {urlIcon && } ); } }, true );