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
+13 -3
View File
@@ -145,10 +145,17 @@ export default createComponent({
const Title = showTitle && (
<div class={[bem('title'), BORDER_TOP]}>
{titleLeftSlot && <span class={bem('title-left')}>{titleLeftSlot}</span>}
{titleLeftSlot && (
<span class={bem('title-left')}>{titleLeftSlot}</span>
)}
{title && <span>{title}</span>}
{showTitleClose && (
<span role="button" tabindex="0" class={bem('close')} onClick={this.onClose}>
<span
role="button"
tabindex="0"
class={bem('close')}
onClick={this.onClose}
>
{closeButtonText}
</span>
)}
@@ -192,7 +199,10 @@ export default createComponent({
<div
vShow={this.show}
style={{ zIndex: this.zIndex }}
class={bem([theme, { 'safe-area-inset-bottom': this.safeAreaInsetBottom }])}
class={bem([
theme,
{ 'safe-area-inset-bottom': this.safeAreaInsetBottom },
])}
onTouchstart={stopPropagation}
onAnimationend={this.onAnimationEnd}
onWebkitAnimationEnd={this.onAnimationEnd}