//-loading样式
//-类型可参考 http://www.htmleaf.com/Demo/201507202264.html
mixin create(className,len)
    - className = className || "la-ball-spin";
    - len = len || 8;
    - style = prefix+"transform: scale("+width+","+height+");";

    div(style="color:#{color};"+"#{style}" class='#{className}')
        - for (var n = 0; n < len; ++n)
            //-div(style="width:#{width};height:#{height}")
            div

- var type = config.type;
- var width = config.width >5 ? config.width:'5';
- var height = config.height >5 ? config.height:'5';
- var color = config.color || '#22BB9A';
- var prefix = config.prefix || '';

- width = (parseInt(width)/30).toFixed(1);//这里是倍数
- height = (parseInt(height)/30).toFixed(1);//这里是倍数

case type
    when 0
        +create('la-ball-8bits',16)
    when 1
        +create('la-ball-clip-rotate',1)
    when 2
        +create('la-ball-clip-rotate-multiple',2)
    when 3
        +create('la-ball-clip-rotate-pulse',2)
    when 4
        +create('la-ball-fall',3)
    when 5
        +create('la-ball-fussion',4)
    when 6
        +create('la-cog',1)
    when 7
        +create('la-line-scale',5)
    when 8
        +create('la-line-spin-fade-rotating',8)
    when 9
        +create('la-square-loader',1)
    when 10
        +create('la-timer',1)
    default
        +create('la-ball-spin',8)
