chore: prettier packages codes

This commit is contained in:
陈嘉涵
2020-01-19 14:09:32 +08:00
parent 389d68884d
commit 1575bea6f5
18 changed files with 113 additions and 80 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ export function codegen(artical: Artical) {
const key = camelCaseToKebabCase(match[1] || 'default');
const tag: Tag = tags[key] || {
description: tagDescription,
attributes: {}
attributes: {},
};
tags[key] = tag;
@@ -77,7 +77,7 @@ export function codegen(artical: Artical) {
const attr: Attribute = {
description: getDescription(td, isProp),
type: isProp ? td[2].replace(/`/g, '').toLowerCase() : 'event'
type: isProp ? td[2].replace(/`/g, '').toLowerCase() : 'event',
};
tag.attributes[name] = attr;