[improvement] lint ts/tsx files (#2776)

This commit is contained in:
neverland
2019-02-18 14:45:31 +08:00
committed by GitHub
parent 29fad2235a
commit 0013185d38
9 changed files with 57 additions and 19 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ const COLOR_MAP: { [key: string]: string } = {
success: GREEN
};
const Tag: FunctionalComponent<TagProps> = function(h, props, slots, ctx) {
const Tag: FunctionalComponent<TagProps> = function (h, props, slots, ctx) {
const { type, mark, plain, round, size } = ctx.props;
const color = props.color || (type && COLOR_MAP[type]) || GRAY_DARK;