mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #5426 - For Autocomplete
This commit is contained in:
parent
770c8d4271
commit
52813c0848
3 changed files with 72 additions and 45 deletions
|
@ -19,20 +19,24 @@ const classes = {
|
|||
'p-overlay-open': instance.overlayVisible
|
||||
}
|
||||
],
|
||||
input: ({ props, instance }) => [
|
||||
'p-autocomplete-input p-inputtext p-component',
|
||||
input: ({ props }) => [
|
||||
'p-autocomplete-input',
|
||||
{
|
||||
'p-autocomplete-dd-input': props.dropdown,
|
||||
'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled'
|
||||
'p-autocomplete-dd-input': props.dropdown
|
||||
}
|
||||
],
|
||||
container: ({ props, instance }) => [
|
||||
'p-autocomplete-multiple-container p-component p-inputtext',
|
||||
'p-autocomplete-multiple-container',
|
||||
{
|
||||
'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled'
|
||||
}
|
||||
],
|
||||
token: ({ instance, i }) => ['p-autocomplete-token', { 'p-focus': instance.focusedMultipleOptionIndex === i }],
|
||||
token: ({ instance, i }) => [
|
||||
'p-autocomplete-token',
|
||||
{
|
||||
'p-focus': instance.focusedMultipleOptionIndex === i
|
||||
}
|
||||
],
|
||||
tokenLabel: 'p-autocomplete-token-label',
|
||||
removeTokenIcon: 'p-autocomplete-token-icon',
|
||||
inputToken: 'p-autocomplete-input-token',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue