Merge pull request #5943 from m-meier/patch-8
feat(Checkbox): add indeterminate state to icon slot, fixes #5942active-menu
commit
337485de90
|
@ -225,6 +225,10 @@ export interface CheckboxSlots {
|
|||
* State of the checkbox.
|
||||
*/
|
||||
checked: boolean;
|
||||
/**
|
||||
* Indeterminate state of the checkbox.
|
||||
*/
|
||||
indeterminate?: boolean | undefined;
|
||||
/**
|
||||
* Style class of the icon.
|
||||
*/
|
||||
|
|
|
@ -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…
Reference in New Issue