From 4e27ecbd998b12d60372d92028f5e664b9da8fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Fri, 10 May 2019 19:53:38 +0800 Subject: [PATCH] [improvement] Switch: loading color use active-color --- packages/switch/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/switch/index.tsx b/packages/switch/index.tsx index c07d99410..0cf0622b2 100644 --- a/packages/switch/index.tsx +++ b/packages/switch/index.tsx @@ -1,7 +1,8 @@ import { use } from '../utils'; -import Loading from '../loading'; +import { BLUE } from '../utils/color'; import { switchProps, SharedSwitchProps } from './shared'; import { emit, inherit } from '../utils/functional'; +import Loading from '../loading'; // Types import { CreateElement, RenderContext } from 'vue/types'; @@ -45,7 +46,7 @@ function Switch( {...inherit(ctx)} >
- {loading && } + {loading && }
);