mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
feat(Checkbox): add indeterminate state to icon slot scope
This adds the indeterminate state to the icon slot of the component so user will be able to customize the indeterminate icon.
This commit is contained in:
parent
64a749c39a
commit
197715f102
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
|||
v-bind="getPTOptions('input')"
|
||||
/>
|
||||
<div :class="cx('box')" v-bind="getPTOptions('box')">
|
||||
<slot name="icon" :checked="checked" :class="cx('icon')">
|
||||
<slot name="icon" :checked="checked" :indeterminate="d_indeterminate" :class="cx('icon')">
|
||||
<CheckIcon v-if="checked" :class="cx('icon')" v-bind="getPTOptions('icon')" />
|
||||
<MinusIcon v-else-if="d_indeterminate" :class="cx('icon')" v-bind="getPTOptions('icon')" />
|
||||
</slot>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue