优化button组件loading状态

master
yutent 2023-04-22 23:45:49 +08:00
parent 4ee31afd46
commit 847ad1dd84
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ class Button extends Component {
render() {
let style = styleMap({ 'margin-right': this.#empty ? 0 : '4px' })
return html`
<button ref="btn" disabled=${this.disabled}>
<button ref="btn" disabled=${this.disabled || this.loading}>
<wc-icon class="icon" name=${this.icon} style=${style}></wc-icon>
<slot ref="cont"></slot>
</button>