chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions

View File

@@ -54,7 +54,7 @@ function Button(
disabled,
loading,
hairline,
loadingText
loadingText,
} = props;
const style: Record<string, string | number> = {};
@@ -97,10 +97,10 @@ function Button(
hairline,
block: props.block,
round: props.round,
square: props.square
}
square: props.square,
},
]),
{ [BORDER_SURROUND]: hairline }
{ [BORDER_SURROUND]: hairline },
];
function Content() {
@@ -165,20 +165,20 @@ Button.props = {
loadingType: String,
tag: {
type: String,
default: 'button'
default: 'button',
},
type: {
type: String,
default: 'default'
default: 'default',
},
size: {
type: String,
default: 'normal'
default: 'normal',
},
loadingSize: {
type: String,
default: '20px'
}
default: '20px',
},
};
export default createComponent<ButtonProps, ButtonEvents>(Button);