feat: add color paletee of neutral color (#5119)

This commit is contained in:
neverland
2019-11-26 20:26:07 +08:00
committed by GitHub
parent b2c53396ef
commit fe0e930ed0
11 changed files with 92 additions and 90 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { createNamespace, addUnit } from '../utils';
import { BLUE, GRAY_DARK } from '../utils/constant';
import { BLUE } from '../utils/constant';
import { switchProps, SharedSwitchProps } from './shared';
import { emit, inherit } from '../utils/functional';
import Loading from '../loading';
@@ -38,7 +38,7 @@ function Switch(
backgroundColor: checked ? activeColor : inactiveColor
};
const loadingColor = checked ? activeColor || BLUE : inactiveColor || GRAY_DARK;
const loadingColor = checked ? activeColor || BLUE : inactiveColor || '';
function onClick(event: PointerEvent) {
emit(ctx, 'click', event);