Checkbox pt indeterminate context added
parent
c43fae7f48
commit
459aa7ff92
|
@ -205,6 +205,11 @@ export interface CheckboxContext {
|
|||
* @defaultValue false
|
||||
*/
|
||||
checked: boolean;
|
||||
/**
|
||||
* Current indeterminate state of the item as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
indeterminate: boolean;
|
||||
/**
|
||||
* Current disabled state of the item as a boolean.
|
||||
* @defaultValue false
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { equals, contains } from '@primeuix/utils/object';
|
||||
import { contains, equals } from '@primeuix/utils/object';
|
||||
import CheckIcon from '@primevue/icons/check';
|
||||
import MinusIcon from '@primevue/icons/minus';
|
||||
import BaseCheckbox from './BaseCheckbox.vue';
|
||||
|
@ -58,6 +58,7 @@ export default {
|
|||
return _ptm(key, {
|
||||
context: {
|
||||
checked: this.checked,
|
||||
indeterminate: this.d_indeterminate,
|
||||
disabled: this.disabled
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue