import { tag, WeElement, h, extractClass } from 'omi' import * as css from './index.scss' import '../icon' //@ts-ignore import '../theme.ts' interface Props { type: string, active: boolean, size: string, icon: string, svgIcon: object } interface Data { } @tag('m-tag') export default class Tag extends WeElement{ static css = css static propTypes = { type: String, active: Boolean, size: String, icon: String, svgIcon: Object } render(props) { return (
{props.svgIcon && } {props.icon && {props.icon}}
) } }