extend Accordion components props
parent
6284b031eb
commit
ab1a3b86b3
|
@ -10,7 +10,7 @@
|
|||
import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '@primevue/core';
|
||||
import type { ComponentHooks } from '@primevue/core/basecomponent';
|
||||
import type { PassThroughOptions } from 'primevue/passthrough';
|
||||
import { VNode } from 'vue';
|
||||
import type { Component, VNode } from 'vue';
|
||||
|
||||
export declare type AccordionContentPassThroughOptionType = AccordionContentPassThroughAttributes | ((options: AccordionContentPassThroughMethodOptions) => AccordionContentPassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
|
@ -80,7 +80,7 @@ export interface AccordionContentProps {
|
|||
* Use to change the HTML tag of root element.
|
||||
* @defaultValue DIV
|
||||
*/
|
||||
as?: string | undefined;
|
||||
as?: string | Component | undefined;
|
||||
/**
|
||||
* When enabled, it changes the default rendered element for the one passed as a child element.
|
||||
* @defaultValue false
|
||||
|
|
|
@ -7,7 +7,7 @@ export default {
|
|||
extends: BaseComponent,
|
||||
props: {
|
||||
as: {
|
||||
type: String,
|
||||
type: [String, Object],
|
||||
default: 'DIV'
|
||||
},
|
||||
asChild: {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '@primevue/core';
|
||||
import type { ComponentHooks } from '@primevue/core/basecomponent';
|
||||
import type { PassThroughOptions } from 'primevue/passthrough';
|
||||
import { VNode } from 'vue';
|
||||
import type { Component, VNode } from 'vue';
|
||||
|
||||
export declare type AccordionHeaderPassThroughOptionType = AccordionHeaderPassThroughAttributes | ((options: AccordionHeaderPassThroughMethodOptions) => AccordionHeaderPassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
|
@ -76,7 +76,7 @@ export interface AccordionHeaderProps {
|
|||
* Use to change the HTML tag of root element.
|
||||
* @defaultValue BUTTON
|
||||
*/
|
||||
as?: string | undefined;
|
||||
as?: string | Component | undefined;
|
||||
/**
|
||||
* When enabled, it changes the default rendered element for the one passed as a child element.
|
||||
* @defaultValue false
|
||||
|
|
|
@ -7,7 +7,7 @@ export default {
|
|||
extends: BaseComponent,
|
||||
props: {
|
||||
as: {
|
||||
type: String,
|
||||
type: [String, Object],
|
||||
default: 'BUTTON'
|
||||
},
|
||||
asChild: {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
import type { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '@primevue/core';
|
||||
import type { ComponentHooks } from '@primevue/core/basecomponent';
|
||||
import type { PassThroughOptions } from 'primevue/passthrough';
|
||||
import { VNode } from 'vue';
|
||||
import type { Component, VNode } from 'vue';
|
||||
|
||||
export declare type AccordionPanelPassThroughOptionType = AccordionPanelPassThroughAttributes | ((options: AccordionPanelPassThroughMethodOptions) => AccordionPanelPassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
|
@ -81,7 +81,7 @@ export interface AccordionPanelProps {
|
|||
* Use to change the HTML tag of root element.
|
||||
* @defaultValue DIV
|
||||
*/
|
||||
as?: string | undefined;
|
||||
as?: string | Component | undefined;
|
||||
/**
|
||||
* When enabled, it changes the default rendered element for the one passed as a child element.
|
||||
* @defaultValue false
|
||||
|
|
|
@ -15,7 +15,7 @@ export default {
|
|||
default: false
|
||||
},
|
||||
as: {
|
||||
type: String,
|
||||
type: [String, Object],
|
||||
default: 'DIV'
|
||||
},
|
||||
asChild: {
|
||||
|
|
Loading…
Reference in New Issue