mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Refactor #5681
This commit is contained in:
parent
3cc675e50f
commit
e1367fd494
89 changed files with 376 additions and 339 deletions
|
@ -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}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue