2022-09-09 20:41:18 +00:00
< template >
2023-05-07 19:26:18 +00:00
< DocComponent title = "Vue Tree Component" header = "Tree" description = "Tree is used to display hierarchical data." :componentDocs ="docs" :apiDocs ="['Tree']" :ptTabComponent ="ptComponent" / >
2022-09-09 20:41:18 +00:00
< / template >
< script >
2023-02-28 08:29:30 +00:00
import AccessibilityDoc from '@/doc/tree/AccessibilityDoc.vue' ;
import BasicDoc from '@/doc/tree/BasicDoc.vue' ;
import ControlledDoc from '@/doc/tree/ControlledDoc.vue' ;
import EventsDoc from '@/doc/tree/EventsDoc.vue' ;
import FilterDoc from '@/doc/tree/FilterDoc.vue' ;
import ImportDoc from '@/doc/tree/ImportDoc.vue' ;
import LazyDoc from '@/doc/tree/LazyDoc.vue' ;
2023-05-07 19:26:18 +00:00
import StyleDoc from '@/doc/tree/StyleDoc.vue' ;
import TemplateDoc from '@/doc/tree/TemplateDoc.vue' ;
import PTComponent from '@/doc/tree/pt/index.vue' ;
2023-02-28 08:29:30 +00:00
import CheckboxDoc from '@/doc/tree/selection/CheckboxDoc.vue' ;
import MultipleDoc from '@/doc/tree/selection/MultipleDoc.vue' ;
import SingleDoc from '@/doc/tree/selection/SingleDoc.vue' ;
2022-09-09 20:41:18 +00:00
export default {
data ( ) {
return {
2023-02-28 08:29:30 +00:00
docs : [
{
id : 'import' ,
label : 'Import' ,
component : ImportDoc
} ,
{
id : 'basic' ,
label : 'Basic' ,
component : BasicDoc
} ,
{
id : 'controlled' ,
label : 'Controlled' ,
component : ControlledDoc
} ,
{
id : 'selection' ,
label : 'Selection' ,
children : [
{
id : 'single' ,
label : 'Single' ,
component : SingleDoc
} ,
{
id : 'multiple' ,
label : 'Multiple' ,
component : MultipleDoc
} ,
{
id : 'checkbox' ,
label : 'Checkbox' ,
component : CheckboxDoc
}
]
} ,
{
id : 'events' ,
label : 'Events' ,
component : EventsDoc
} ,
{
id : 'lazy' ,
label : 'Lazy' ,
component : LazyDoc
} ,
{
id : 'template' ,
label : 'Template' ,
component : TemplateDoc
} ,
{
id : 'filter' ,
label : 'Filter' ,
component : FilterDoc
} ,
{
id : 'style' ,
label : 'Style' ,
component : StyleDoc
} ,
{
id : 'accessibility' ,
label : 'Accessibility' ,
component : AccessibilityDoc
2022-09-09 20:41:18 +00:00
}
2023-05-07 19:26:18 +00:00
] ,
ptComponent : PTComponent
2023-02-28 08:29:30 +00:00
} ;
2022-09-09 20:41:18 +00:00
}
} ;
< / script >
< style scoped >
button {
margin - right : 0.5 rem ;
}
< / style >