diff --git a/packages/primevue/src/accordion/Accordion.d.ts b/packages/primevue/src/accordion/Accordion.d.ts index 7b8ff46c7..925fc56ed 100755 --- a/packages/primevue/src/accordion/Accordion.d.ts +++ b/packages/primevue/src/accordion/Accordion.d.ts @@ -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 diff --git a/packages/primevue/src/accordion/BaseAccordion.vue b/packages/primevue/src/accordion/BaseAccordion.vue index 4da5ac20b..4a36cf4a6 100644 --- a/packages/primevue/src/accordion/BaseAccordion.vue +++ b/packages/primevue/src/accordion/BaseAccordion.vue @@ -7,7 +7,7 @@ export default { extends: BaseComponent, props: { value: { - type: [String, Array], + type: [String, Number, Array], default: undefined }, multiple: { diff --git a/packages/primevue/src/accordionpanel/AccordionPanel.d.ts b/packages/primevue/src/accordionpanel/AccordionPanel.d.ts index d6656d0b2..d92d320f7 100755 --- a/packages/primevue/src/accordionpanel/AccordionPanel.d.ts +++ b/packages/primevue/src/accordionpanel/AccordionPanel.d.ts @@ -71,7 +71,7 @@ export interface AccordionPanelProps { /** * Unique value of item. */ - value: string; + value: string | number | undefined; /** * Whether the item is disabled. * @defaultValue false diff --git a/packages/primevue/src/accordionpanel/BaseAccordionPanel.vue b/packages/primevue/src/accordionpanel/BaseAccordionPanel.vue index 769fd81dd..eea329df2 100644 --- a/packages/primevue/src/accordionpanel/BaseAccordionPanel.vue +++ b/packages/primevue/src/accordionpanel/BaseAccordionPanel.vue @@ -7,7 +7,7 @@ export default { extends: BaseComponent, props: { value: { - type: String, + type: [String, Number], default: undefined }, disabled: { diff --git a/packages/primevue/src/tab/BaseTab.vue b/packages/primevue/src/tab/BaseTab.vue index ab6f38c8f..15050b3fb 100644 --- a/packages/primevue/src/tab/BaseTab.vue +++ b/packages/primevue/src/tab/BaseTab.vue @@ -7,7 +7,7 @@ export default { extends: BaseComponent, props: { value: { - type: String, + type: [String, Number], default: undefined }, disabled: { diff --git a/packages/primevue/src/tab/Tab.d.ts b/packages/primevue/src/tab/Tab.d.ts index 0626cbd26..f90c8f9c3 100755 --- a/packages/primevue/src/tab/Tab.d.ts +++ b/packages/primevue/src/tab/Tab.d.ts @@ -71,7 +71,7 @@ export interface TabProps { /** * Value of tab. */ - value: string; + value: string | number; /** * Whether the tab is disabled. * @defaultValue false diff --git a/packages/primevue/src/tabpanel/BaseTabPanel.vue b/packages/primevue/src/tabpanel/BaseTabPanel.vue index 6112a27e0..084dcec14 100644 --- a/packages/primevue/src/tabpanel/BaseTabPanel.vue +++ b/packages/primevue/src/tabpanel/BaseTabPanel.vue @@ -8,7 +8,7 @@ export default { props: { // in Tabs value: { - type: String, + type: [String, Number], default: undefined }, as: { diff --git a/packages/primevue/src/tabpanel/TabPanel.d.ts b/packages/primevue/src/tabpanel/TabPanel.d.ts index 6100d2844..0f47c26ed 100755 --- a/packages/primevue/src/tabpanel/TabPanel.d.ts +++ b/packages/primevue/src/tabpanel/TabPanel.d.ts @@ -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 diff --git a/packages/primevue/src/tabs/BaseTabs.vue b/packages/primevue/src/tabs/BaseTabs.vue index 0bfb4e74f..30a2eef8f 100644 --- a/packages/primevue/src/tabs/BaseTabs.vue +++ b/packages/primevue/src/tabs/BaseTabs.vue @@ -7,7 +7,7 @@ export default { extends: BaseComponent, props: { value: { - type: String, + type: [String, Number], default: undefined }, lazy: { diff --git a/packages/primevue/src/tabs/Tabs.d.ts b/packages/primevue/src/tabs/Tabs.d.ts index cfac23e81..840c19748 100644 --- a/packages/primevue/src/tabs/Tabs.d.ts +++ b/packages/primevue/src/tabs/Tabs.d.ts @@ -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