chore: prettier js codes

This commit is contained in:
陈嘉涵
2020-01-19 17:02:01 +08:00
parent 2adcfd8b8b
commit 1e864a445f
28 changed files with 333 additions and 174 deletions
+14 -2
View File
@@ -109,9 +109,21 @@ export default createComponent({
return slot;
}
const iconName = mode === 'closeable' ? 'cross' : mode === 'link' ? 'arrow' : '';
let iconName;
if (mode === 'closeable') {
iconName = 'cross';
} else if (mode === 'link') {
iconName = 'arrow';
}
if (iconName) {
return <Icon class={bem('right-icon')} name={iconName} onClick={onClickIcon} />;
return (
<Icon
class={bem('right-icon')}
name={iconName}
onClick={onClickIcon}
/>
);
}
}