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