mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): button displays icon only (#4019)
* fix(components): button displays icon only * docs: add chinese button
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<el-button type="info">Info</el-button>
|
||||
<el-button type="warning">Warning</el-button>
|
||||
<el-button type="danger">Danger</el-button>
|
||||
<el-button>中文</el-button>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
@click="handleClick"
|
||||
>
|
||||
<i v-if="loading" class="el-icon-loading"></i>
|
||||
<i v-if="icon && !loading" :class="icon"></i>
|
||||
<i v-else-if="icon" :class="icon"></i>
|
||||
<span
|
||||
v-else-if="$slots.default"
|
||||
v-if="$slots.default"
|
||||
:class="{ 'el-button__text--expand': shouldAddSpace }"
|
||||
>
|
||||
<slot></slot>
|
||||
|
||||
Reference in New Issue
Block a user