mirror of https://gitee.com/xiaonuobase/snowy
【修复】sTable修复alert的用法
parent
dece5567ba
commit
98d3c87bac
|
@ -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} />
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue