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