mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
v-show added for checkIcons
This commit is contained in:
parent
68c5d088eb
commit
9c5f09291f
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div :class="cx('headerCheckbox')" v-bind="getHeaderCheckboxPTOptions('headerCheckbox')">
|
<div :class="cx('headerCheckbox')" v-bind="getHeaderCheckboxPTOptions('headerCheckbox')">
|
||||||
<slot name="headercheckboxicon" :allSelected="allSelected" :class="cx('headerCheckboxIcon')">
|
<slot name="headercheckboxicon" :allSelected="allSelected" :class="cx('headerCheckboxIcon')">
|
||||||
<component :is="checkboxIcon ? 'span' : 'CheckIcon'" :class="[cx('headerCheckboxIcon'), { [checkboxIcon]: allSelected }]" v-bind="getHeaderCheckboxPTOptions('headerCheckboxIcon')" />
|
<component v-show="allSelected" :is="checkboxIcon ? 'span' : 'CheckIcon'" :class="[cx('headerCheckboxIcon'), { [checkboxIcon]: allSelected }]" v-bind="getHeaderCheckboxPTOptions('headerCheckboxIcon')" />
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -139,6 +139,7 @@
|
||||||
<div :class="cx('checkbox', { option })" v-bind="getCheckboxPTOptions(option, getItemOptions, i, 'checkbox')">
|
<div :class="cx('checkbox', { option })" v-bind="getCheckboxPTOptions(option, getItemOptions, i, 'checkbox')">
|
||||||
<slot name="itemcheckboxicon" :selected="isSelected(option)" :class="cx('checkboxIcon')">
|
<slot name="itemcheckboxicon" :selected="isSelected(option)" :class="cx('checkboxIcon')">
|
||||||
<component
|
<component
|
||||||
|
v-show="isSelected(option)"
|
||||||
:is="checkboxIcon ? 'span' : 'CheckIcon'"
|
:is="checkboxIcon ? 'span' : 'CheckIcon'"
|
||||||
:class="[cx('checkboxIcon'), { [checkboxIcon]: isSelected(option) }]"
|
:class="[cx('checkboxIcon'), { [checkboxIcon]: isSelected(option) }]"
|
||||||
v-bind="getCheckboxPTOptions(option, getItemOptions, i, 'checkboxIcon')"
|
v-bind="getCheckboxPTOptions(option, getItemOptions, i, 'checkboxIcon')"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue