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