import { use } from '../utils'; import { inherit } from '../utils/functional'; const [sfc, bem] = use('loading'); const DEFAULT_COLOR = '#c9c9c9'; function Loading(h, props, slots, ctx) { const { color, size, type } = props; const colorType = color === 'white' || color === 'black' ? color : ''; const style = { color: color === 'black' ? DEFAULT_COLOR : color, width: size, height: size }; const Spin = []; if (type === 'spinner') { for (let i = 0; i < 12; i++) { Spin.push(); } } const Circular = type === 'circular' && ( ); return (