mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5176 - variant added
This commit is contained in:
parent
d43ea02957
commit
ff22cfe15e
45 changed files with 182 additions and 22 deletions
|
@ -18,6 +18,10 @@ export default {
|
|||
default: '200px'
|
||||
},
|
||||
placeholder: String,
|
||||
variant: {
|
||||
type: String,
|
||||
default: 'outlined'
|
||||
},
|
||||
invalid: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
|
|
5
components/lib/multiselect/MultiSelect.d.ts
vendored
5
components/lib/multiselect/MultiSelect.d.ts
vendored
|
@ -341,6 +341,11 @@ export interface MultiSelectProps {
|
|||
* @defaultValue false
|
||||
*/
|
||||
disabled?: boolean | undefined;
|
||||
/**
|
||||
* Specifies the input variant of the component.
|
||||
* @defaultValue outlined
|
||||
*/
|
||||
variant?: 'outlined' | 'filled' | undefined;
|
||||
/**
|
||||
* Identifier of the underlying input element.
|
||||
*/
|
||||
|
|
|
@ -121,6 +121,7 @@ const classes = {
|
|||
'p-multiselect-chip': props.display === 'chip',
|
||||
'p-disabled': props.disabled,
|
||||
'p-invalid': props.invalid,
|
||||
'p-variant': props.variant === 'filled',
|
||||
'p-focus': instance.focused,
|
||||
'p-inputwrapper-filled': props.modelValue && props.modelValue.length,
|
||||
'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
|
||||
|
@ -141,10 +142,10 @@ const classes = {
|
|||
trigger: 'p-multiselect-trigger',
|
||||
loadingIcon: 'p-multiselect-trigger-icon',
|
||||
dropdownIcon: 'p-multiselect-trigger-icon',
|
||||
panel: ({ instance }) => [
|
||||
panel: ({ props, instance }) => [
|
||||
'p-multiselect-panel p-component',
|
||||
{
|
||||
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
|
||||
'p-input-filled': props.variant === 'filled' || instance.$primevue.config.inputStyle === 'filled',
|
||||
'p-ripple-disabled': instance.$primevue.config.ripple === false
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue