import { useClassList } from '../utils/useProps'; import { JSXElement, Match, Switch } from 'solid-js'; /** * Spin 类 * @class Spin * @constructor */ type SpinProps = { classList?: any, class?: string, type?: 'pulse'|'oval'|'gear', title?: string|JSXElement, size?: number } export function Spin (props: SpinProps) { const classList = () => useClassList(props, 'cm-spin-wrap'); const type = () => props.type || 'pulse'; return (