[breaking change] Loading: remove circle、gradient-circle type

This commit is contained in:
陈嘉涵
2019-04-29 17:08:21 +08:00
parent d3c8eb86e2
commit 5cd05e2447
6 changed files with 10 additions and 38 deletions
+2 -4
View File
@@ -22,10 +22,8 @@ function Loading(
) {
const { color, size, type } = props;
const colorType = color === 'white' || color === 'black' ? color : '';
const style = {
color: color === 'black' ? DEFAULT_COLOR : color,
color,
width: size,
height: size
};
@@ -44,7 +42,7 @@ function Loading(
);
return (
<div class={bem([type, colorType])} style={style} {...inherit(ctx, true)}>
<div class={bem([type])} style={style} {...inherit(ctx, true)}>
<span class={bem('spinner', type)}>
{Spin}
{Circular}