Refactor #3922: TriStateCheckbox PT Options typo

pull/3997/head
habubey 2023-05-23 10:56:17 +03:00
parent 270186ca6c
commit cb37100228
3 changed files with 6 additions and 6 deletions

View File

@ -33,7 +33,7 @@ export interface TriStateCheckboxPassThroughOptions {
/** /**
* Uses to pass attributes to the checkbox box's DOM element. * Uses to pass attributes to the checkbox box's DOM element.
*/ */
checbox?: TriStateCheckboxPassThroughOptionType; checkbox?: TriStateCheckboxPassThroughOptionType;
/** /**
* Uses to pass attributes to the check icon's DOM element. * Uses to pass attributes to the check icon's DOM element.
*/ */

View File

@ -17,7 +17,7 @@
/> />
</div> </div>
<span class="p-sr-only" aria-live="polite" v-bind="ptm('srOnlyAria')">{{ ariaValueLabel }}</span> <span class="p-sr-only" aria-live="polite" v-bind="ptm('srOnlyAria')">{{ ariaValueLabel }}</span>
<div ref="box" :class="['p-checkbox-box', { 'p-highlight': modelValue != null, 'p-disabled': disabled, 'p-focus': focused }]" v-bind="getPTOptions('checbox')"> <div ref="box" :class="['p-checkbox-box', { 'p-highlight': modelValue != null, 'p-disabled': disabled, 'p-focus': focused }]" v-bind="getPTOptions('checkbox')">
<slot v-if="modelValue === true" name="checkicon"> <slot v-if="modelValue === true" name="checkicon">
<component :is="'CheckIcon'" class="p-checkbox-icon" v-bind="ptm('checkIcon')" /> <component :is="'CheckIcon'" class="p-checkbox-icon" v-bind="ptm('checkIcon')" />
</slot> </slot>

View File

@ -4,7 +4,7 @@
<TriStateCheckbox <TriStateCheckbox
v-model="value" v-model="value"
:pt="{ :pt="{
checbox: { checkbox: {
class: value ? 'bg-teal-500 border-white' : undefined class: value ? 'bg-teal-500 border-white' : undefined
} }
}" }"
@ -24,7 +24,7 @@ export default {
<TriStateCheckbox <TriStateCheckbox
v-model="value" v-model="value"
:pt="{ :pt="{
checbox: { checkbox: {
class: value ? 'bg-teal-500 border-white' : undefined class: value ? 'bg-teal-500 border-white' : undefined
} }
}" }"
@ -35,7 +35,7 @@ export default {
<TriStateCheckbox <TriStateCheckbox
v-model="value" v-model="value"
:pt="{ :pt="{
checbox: { checkbox: {
class: value ? 'bg-teal-500 border-white' : undefined class: value ? 'bg-teal-500 border-white' : undefined
} }
}" }"
@ -59,7 +59,7 @@ export default {
<TriStateCheckbox <TriStateCheckbox
v-model="value" v-model="value"
:pt="{ :pt="{
checbox: { checkbox: {
class: value ? 'bg-teal-500 border-white' : undefined class: value ? 'bg-teal-500 border-white' : undefined
} }
}" }"