Add default icon class

pull/310/head
cagataycivici 2020-05-02 12:07:51 +03:00
parent b9cf2d51bc
commit 4545d87e75
3 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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>