【修复】sTable修复alert的用法

pull/90/head
小诺 2023-03-12 23:42:37 +08:00 committed by 俞宝山
parent dece5567ba
commit 98d3c87bac
1 changed files with 1 additions and 4 deletions

View File

@ -346,16 +346,14 @@
</span> </span>
) )
}) })
// //
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
const clearItem = const clearItem =
typeof this.alert.clear === 'boolean' && this.alert.clear typeof this.alert === 'boolean' && this.alert
? this.renderClear(this.clearSelected) ? this.renderClear(this.clearSelected)
: typeof this.alert.clear === 'function' : typeof this.alert.clear === 'function'
? this.renderClear(this.alert.clear) ? this.renderClear(this.alert.clear)
: null : null
// alert // alert
if (alert) { if (alert) {
const message = ( const message = (
@ -367,7 +365,6 @@
{clearItem} {clearItem}
</div> </div>
) )
return <a-alert showIcon class="mb-4" message={message} /> return <a-alert showIcon class="mb-4" message={message} />
} }
}, },