mirror of
https://github.com/youzan/vant.git
synced 2026-05-05 01:00:55 +08:00
[improvement] lint ts/tsx files (#2776)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user