Skip to content

Commit

Permalink
Fixed #6252
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Aug 19, 2024
1 parent ea5a98d commit eac0bfe
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/primevue/src/accordion/Accordion.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export interface AccordionProps {
* Value of the active panel or an array of values in multiple mode.
* @defaultValue null
*/
value?: string | string[] | null | undefined;
value?: string | string[] | number | number[] | null | undefined;
/**
* When enabled, multiple tabs can be activated at the same time.
* @defaultValue false
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/accordion/BaseAccordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
extends: BaseComponent,
props: {
value: {
type: [String, Array],
type: [String, Number, Array],
default: undefined
},
multiple: {
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/accordionpanel/AccordionPanel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface AccordionPanelProps {
/**
* Unique value of item.
*/
value: string;
value: string | number | undefined;
/**
* Whether the item is disabled.
* @defaultValue false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
extends: BaseComponent,
props: {
value: {
type: String,
type: [String, Number],
default: undefined
},
disabled: {
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/tab/BaseTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
extends: BaseComponent,
props: {
value: {
type: String,
type: [String, Number],
default: undefined
},
disabled: {
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/tab/Tab.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface TabProps {
/**
* Value of tab.
*/
value: string;
value: string | number;
/**
* Whether the tab is disabled.
* @defaultValue false
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/tabpanel/BaseTabPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
props: {
// in Tabs
value: {
type: String,
type: [String, Number],
default: undefined
},
as: {
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/tabpanel/TabPanel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export interface TabPanelProps {
/**
* Value of tabpanel.
*/
value: string;
value: string | number;
/**
* Use to change the HTML tag of root element.
* @defaultValue DIV
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/tabs/BaseTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
extends: BaseComponent,
props: {
value: {
type: String,
type: [String, Number],
default: undefined
},
lazy: {
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/tabs/Tabs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export interface TabsProps {
/**
* Value of the active tab.
*/
value: string;
value: string | number;
/**
* When enabled, hidden tabs are not rendered at all. Defaults to false that hides tabs with css.
* @defaultValue false
Expand Down

0 comments on commit eac0bfe

Please sign in to comment.