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