Add default icon class
parent
b9cf2d51bc
commit
4545d87e75
|
@ -30,6 +30,7 @@ export default {
|
|||
iconClass() {
|
||||
return [
|
||||
this.icon,
|
||||
'p-button-icon',
|
||||
{
|
||||
'p-button-icon-left': this.iconPos === 'left' && this.label,
|
||||
'p-button-icon-right': this.iconPos === 'right' && this.label
|
||||
|
|
|
@ -40,6 +40,7 @@ export default {
|
|||
iconClass() {
|
||||
return [
|
||||
this.value ? this.onIcon: this.offIcon,
|
||||
'p-button-icon',
|
||||
{
|
||||
'p-button-icon-left': this.iconPos === 'left' && this.label,
|
||||
'p-button-icon-right': this.iconPos === 'right' && this.label
|
||||
|
|
|
@ -145,7 +145,7 @@ export default {
|
|||
<td>Container element</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>p-button-icon-left</td>
|
||||
<td>p-button-icon</td>
|
||||
<td>Icon element.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in New Issue