mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Fixed #1705 - optionDisabled prop on Dropdown wrongly typed
This commit is contained in:
parent
91635f7f52
commit
5a91e00263
8 changed files with 16 additions and 8 deletions
4
src/components/dropdown/Dropdown.d.ts
vendored
4
src/components/dropdown/Dropdown.d.ts
vendored
|
@ -1,12 +1,14 @@
|
|||
import { VNode } from 'vue';
|
||||
import VirtualScrollerProps from '../virtualscroller';
|
||||
|
||||
type DropdownOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
||||
|
||||
interface DropdownProps {
|
||||
modelValue?: any;
|
||||
options?: any[];
|
||||
optionLabel?: string;
|
||||
optionValue?: any;
|
||||
optionDisabled?: boolean;
|
||||
optionDisabled?: DropdownOptionDisabledType;
|
||||
optionGroupLabel?: string;
|
||||
optionGroupChildren?: string;
|
||||
scrollHeight?: string;
|
||||
|
|
4
src/components/listbox/Listbox.d.ts
vendored
4
src/components/listbox/Listbox.d.ts
vendored
|
@ -1,12 +1,14 @@
|
|||
import { VNode } from 'vue';
|
||||
import VirtualScrollerProps from '../virtualscroller';
|
||||
|
||||
type ListboxOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
||||
|
||||
interface ListboxProps {
|
||||
modelValue?: any;
|
||||
options?: any[];
|
||||
optionLabel?: string;
|
||||
optionValue?: any;
|
||||
optionDisabled?: boolean;
|
||||
optionDisabled?: ListboxOptionDisabledType;
|
||||
optionGroupLabel?: string;
|
||||
optionGroupChildren?: string;
|
||||
listStyle?: string;
|
||||
|
|
4
src/components/multiselect/MultiSelect.d.ts
vendored
4
src/components/multiselect/MultiSelect.d.ts
vendored
|
@ -1,12 +1,14 @@
|
|||
import { VNode } from 'vue';
|
||||
import VirtualScrollerProps from '../virtualscroller';
|
||||
|
||||
type MultiSelectOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
||||
|
||||
interface MultiSelectProps {
|
||||
modelValue?: any;
|
||||
options?: any[];
|
||||
optionLabel?: string;
|
||||
optionValue?: any;
|
||||
optionDisabled?: boolean;
|
||||
optionDisabled?: MultiSelectOptionDisabledType;
|
||||
optionGroupLabel?: string;
|
||||
optionGroupChildren?: string;
|
||||
scrollHeight?: string;
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
type SelectButtonOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
||||
|
||||
interface SelectButtonProps {
|
||||
modelValue?: any;
|
||||
options?: any[];
|
||||
optionLabel?: string;
|
||||
optionValue?: any;
|
||||
optionDisabled?: boolean;
|
||||
optionDisabled?: SelectButtonOptionDisabledType;
|
||||
multiple?: boolean;
|
||||
disabled?: boolean;
|
||||
dataKey?: string;
|
||||
|
|
|
@ -157,7 +157,7 @@ export default {
|
|||
</tr>
|
||||
<tr>
|
||||
<td>optionDisabled</td>
|
||||
<td>boolean</td>
|
||||
<td>string | function</td>
|
||||
<td>null</td>
|
||||
<td>Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.</td>
|
||||
</tr>
|
||||
|
|
|
@ -154,7 +154,7 @@ export default {
|
|||
</tr>
|
||||
<tr>
|
||||
<td>optionDisabled</td>
|
||||
<td>boolean</td>
|
||||
<td>string | function</td>
|
||||
<td>null</td>
|
||||
<td>Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.</td>
|
||||
</tr>
|
||||
|
|
|
@ -166,7 +166,7 @@ export default {
|
|||
</tr>
|
||||
<tr>
|
||||
<td>optionDisabled</td>
|
||||
<td>boolean</td>
|
||||
<td>string | function</td>
|
||||
<td>null</td>
|
||||
<td>Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.</td>
|
||||
</tr>
|
||||
|
|
|
@ -96,7 +96,7 @@ export default {
|
|||
</tr>
|
||||
<tr>
|
||||
<td>optionDisabled</td>
|
||||
<td>boolean</td>
|
||||
<td>string | function</td>
|
||||
<td>null</td>
|
||||
<td>Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue