优化button组件loading状态
parent
4ee31afd46
commit
847ad1dd84
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue