Checkbox pt indeterminate context added

pull/6045/head
tugcekucukoglu 2024-07-10 15:43:59 +03:00
parent c43fae7f48
commit 459aa7ff92
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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
}
});