This commit is contained in:
tugcekucukoglu 2024-05-06 18:23:01 +03:00
parent 3cc675e50f
commit e1367fd494
89 changed files with 376 additions and 339 deletions

View file

@ -58,6 +58,10 @@ export interface SelectButtonPassThroughOptions {
* Used to pass attributes to the root's DOM element.
*/
root?: SelectButtonPassThroughOptionType;
/**
* Used to pass attributes to the ToggleButton component.
*/
pcButton?: SelectButtonPassThroughOptionType;
/**
* Used to manage all lifecycle hooks.
* @see {@link BaseComponent.ComponentHooks}

View file

@ -8,11 +8,11 @@
:disabled="disabled || isOptionDisabled(option)"
:unstyled="unstyled"
@change="onOptionSelect($event, option, index)"
:pt="ptm('button')"
:pt="ptm('pcButton')"
>
<template v-if="$slots.option" #default>
<slot name="option" :option="option" :index="index">
<span v-bind="ptm('button')['label']">{{ getOptionLabel(option) }}</span>
<span v-bind="ptm('pcButton')['label']">{{ getOptionLabel(option) }}</span>
</slot>
</template>
</ToggleButton>