Fixed #1705 - optionDisabled prop on Dropdown wrongly typed
parent
91635f7f52
commit
5a91e00263
|
@ -1,12 +1,14 @@
|
||||||
import { VNode } from 'vue';
|
import { VNode } from 'vue';
|
||||||
import VirtualScrollerProps from '../virtualscroller';
|
import VirtualScrollerProps from '../virtualscroller';
|
||||||
|
|
||||||
|
type DropdownOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
||||||
|
|
||||||
interface DropdownProps {
|
interface DropdownProps {
|
||||||
modelValue?: any;
|
modelValue?: any;
|
||||||
options?: any[];
|
options?: any[];
|
||||||
optionLabel?: string;
|
optionLabel?: string;
|
||||||
optionValue?: any;
|
optionValue?: any;
|
||||||
optionDisabled?: boolean;
|
optionDisabled?: DropdownOptionDisabledType;
|
||||||
optionGroupLabel?: string;
|
optionGroupLabel?: string;
|
||||||
optionGroupChildren?: string;
|
optionGroupChildren?: string;
|
||||||
scrollHeight?: string;
|
scrollHeight?: string;
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
import { VNode } from 'vue';
|
import { VNode } from 'vue';
|
||||||
import VirtualScrollerProps from '../virtualscroller';
|
import VirtualScrollerProps from '../virtualscroller';
|
||||||
|
|
||||||
|
type ListboxOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
||||||
|
|
||||||
interface ListboxProps {
|
interface ListboxProps {
|
||||||
modelValue?: any;
|
modelValue?: any;
|
||||||
options?: any[];
|
options?: any[];
|
||||||
optionLabel?: string;
|
optionLabel?: string;
|
||||||
optionValue?: any;
|
optionValue?: any;
|
||||||
optionDisabled?: boolean;
|
optionDisabled?: ListboxOptionDisabledType;
|
||||||
optionGroupLabel?: string;
|
optionGroupLabel?: string;
|
||||||
optionGroupChildren?: string;
|
optionGroupChildren?: string;
|
||||||
listStyle?: string;
|
listStyle?: string;
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
import { VNode } from 'vue';
|
import { VNode } from 'vue';
|
||||||
import VirtualScrollerProps from '../virtualscroller';
|
import VirtualScrollerProps from '../virtualscroller';
|
||||||
|
|
||||||
|
type MultiSelectOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
||||||
|
|
||||||
interface MultiSelectProps {
|
interface MultiSelectProps {
|
||||||
modelValue?: any;
|
modelValue?: any;
|
||||||
options?: any[];
|
options?: any[];
|
||||||
optionLabel?: string;
|
optionLabel?: string;
|
||||||
optionValue?: any;
|
optionValue?: any;
|
||||||
optionDisabled?: boolean;
|
optionDisabled?: MultiSelectOptionDisabledType;
|
||||||
optionGroupLabel?: string;
|
optionGroupLabel?: string;
|
||||||
optionGroupChildren?: string;
|
optionGroupChildren?: string;
|
||||||
scrollHeight?: string;
|
scrollHeight?: string;
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
|
type SelectButtonOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
||||||
|
|
||||||
interface SelectButtonProps {
|
interface SelectButtonProps {
|
||||||
modelValue?: any;
|
modelValue?: any;
|
||||||
options?: any[];
|
options?: any[];
|
||||||
optionLabel?: string;
|
optionLabel?: string;
|
||||||
optionValue?: any;
|
optionValue?: any;
|
||||||
optionDisabled?: boolean;
|
optionDisabled?: SelectButtonOptionDisabledType;
|
||||||
multiple?: boolean;
|
multiple?: boolean;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
dataKey?: string;
|
dataKey?: string;
|
||||||
|
|
|
@ -157,7 +157,7 @@ export default {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>optionDisabled</td>
|
<td>optionDisabled</td>
|
||||||
<td>boolean</td>
|
<td>string | function</td>
|
||||||
<td>null</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>
|
<td>Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -154,7 +154,7 @@ export default {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>optionDisabled</td>
|
<td>optionDisabled</td>
|
||||||
<td>boolean</td>
|
<td>string | function</td>
|
||||||
<td>null</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>
|
<td>Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -166,7 +166,7 @@ export default {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>optionDisabled</td>
|
<td>optionDisabled</td>
|
||||||
<td>boolean</td>
|
<td>string | function</td>
|
||||||
<td>null</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>
|
<td>Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -96,7 +96,7 @@ export default {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>optionDisabled</td>
|
<td>optionDisabled</td>
|
||||||
<td>boolean</td>
|
<td>string | function</td>
|
||||||
<td>null</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>
|
<td>Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue