mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
94
components/lib/accordiontab/AccordionTab.d.ts
vendored
Executable file
94
components/lib/accordiontab/AccordionTab.d.ts
vendored
Executable file
|
@ -0,0 +1,94 @@
|
|||
/**
|
||||
*
|
||||
* AccordionTab is a helper component for Accordion.
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/accordion/)
|
||||
*
|
||||
* @module accordiontab
|
||||
*
|
||||
*/
|
||||
import { AnchorHTMLAttributes, HTMLAttributes, VNode } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
/**
|
||||
* Defines valid properties in AccordionTab component.
|
||||
*/
|
||||
export interface AccordionTabProps {
|
||||
/**
|
||||
* Orientation of tab headers.
|
||||
*/
|
||||
header?: string | undefined;
|
||||
/**
|
||||
* Inline style of the tab header.
|
||||
*/
|
||||
headerStyle?: any;
|
||||
/**
|
||||
* Style class of the tab header.
|
||||
*/
|
||||
headerClass?: any;
|
||||
/**
|
||||
* Uses to pass all properties of the HTMLDivElement to the tab header.
|
||||
*/
|
||||
headerProps?: HTMLAttributes | undefined;
|
||||
/**
|
||||
* Uses to pass all properties of the HTMLAnchorElement to the focusable anchor element inside the tab header.
|
||||
*/
|
||||
headerActionProps?: AnchorHTMLAttributes | undefined;
|
||||
/**
|
||||
* Inline style of the tab content.
|
||||
*/
|
||||
contentStyle?: any;
|
||||
/**
|
||||
* Style class of the tab content.
|
||||
*/
|
||||
contentClass?: any;
|
||||
/**
|
||||
* Uses to pass all properties of the HTMLDivElement to the tab content.
|
||||
*/
|
||||
contentProps?: HTMLAttributes | undefined;
|
||||
/**
|
||||
* Whether the tab is disabled.
|
||||
* @defaultValue false
|
||||
*/
|
||||
disabled?: boolean | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in AcordionTab slots.
|
||||
*/
|
||||
export interface AccordionTabSlots {
|
||||
/**
|
||||
* Default slot for content.
|
||||
*/
|
||||
default(): VNode[];
|
||||
/**
|
||||
* Custom content for the title section of a panel is defined using the header template.
|
||||
*/
|
||||
header(): VNode[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid emits in AcordionTab component.
|
||||
*/
|
||||
export interface AccordionTabEmits {}
|
||||
|
||||
/**
|
||||
* **PrimeVue - Accordion**
|
||||
*
|
||||
* _AccordionTab is a helper component for Accordion.._
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/accordion/)
|
||||
* --- ---
|
||||
* 
|
||||
*
|
||||
* @group Component
|
||||
*/
|
||||
declare class AccordionTab extends ClassComponent<AccordionTabProps, AccordionTabSlots, AccordionTabEmits> {}
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface GlobalComponents {
|
||||
AccordionTab: GlobalComponentConstructor<AccordionTab>;
|
||||
}
|
||||
}
|
||||
|
||||
export default AccordionTab;
|
14
components/lib/accordiontab/AccordionTab.spec.js
Normal file
14
components/lib/accordiontab/AccordionTab.spec.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import AccordionTab from './AccordionTab.vue';
|
||||
|
||||
describe('AccordionTab.vue', () => {
|
||||
it('should exists', () => {
|
||||
const wrapper = mount(AccordionTab, {
|
||||
slots: {
|
||||
default: '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do</p>'
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper.text()).toBe('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do');
|
||||
});
|
||||
});
|
20
components/lib/accordiontab/AccordionTab.vue
Executable file
20
components/lib/accordiontab/AccordionTab.vue
Executable file
|
@ -0,0 +1,20 @@
|
|||
<template>
|
||||
<slot></slot>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AccordionTab',
|
||||
props: {
|
||||
header: null,
|
||||
headerStyle: null,
|
||||
headerClass: null,
|
||||
headerProps: null,
|
||||
headerActionProps: null,
|
||||
contentStyle: null,
|
||||
contentClass: null,
|
||||
contentProps: null,
|
||||
disabled: Boolean
|
||||
}
|
||||
};
|
||||
</script>
|
9
components/lib/accordiontab/package.json
Normal file
9
components/lib/accordiontab/package.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"main": "./accordiontab.cjs.js",
|
||||
"module": "./accordiontab.esm.js",
|
||||
"unpkg": "./accordiontab.min.js",
|
||||
"types": "./AccordionTab.d.ts",
|
||||
"browser": {
|
||||
"./sfc": "./AccordionTab.vue"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue