优化button组件loading状态
parent
4ee31afd46
commit
847ad1dd84
|
@ -258,7 +258,7 @@ class Button extends Component {
|
||||||
render() {
|
render() {
|
||||||
let style = styleMap({ 'margin-right': this.#empty ? 0 : '4px' })
|
let style = styleMap({ 'margin-right': this.#empty ? 0 : '4px' })
|
||||||
return html`
|
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>
|
<wc-icon class="icon" name=${this.icon} style=${style}></wc-icon>
|
||||||
<slot ref="cont"></slot>
|
<slot ref="cont"></slot>
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in New Issue