import { tag, WeElement, h, extractClass, classNames } from 'omi' import * as css from './index.scss' //@ts-ignore import '../theme.ts' interface Props { path?: string, paths?: object, view?: number, scale?: number, color?: string, rotate?: boolean } interface Data { } @tag('m-icon') export default class Icon extends WeElement{ static css = css static defaultProps = { view: 1024, scale: 2 } static propTypes = { path: String, paths: Object, view: Number, scale: Number, color: String, rotate: Boolean } render(props) { return ( {props.children && (
{props.children[0]}
)}
) } }