2021-05-12 09:35:29 +00:00
|
|
|
const PanelMenuProps = [
|
|
|
|
{
|
|
|
|
name: "model",
|
|
|
|
type: "array",
|
|
|
|
default: "null",
|
|
|
|
description: "An array of menuitems."
|
2021-05-17 15:44:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "expandedKeys",
|
2022-05-18 20:03:23 +00:00
|
|
|
type: "object",
|
2021-05-17 15:44:09 +00:00
|
|
|
default: "null",
|
|
|
|
description: "A map of keys to represent the expansion state in controlled mode."
|
2021-08-27 13:31:55 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "exact",
|
|
|
|
type: "boolean",
|
|
|
|
default: "true",
|
|
|
|
description: "Whether to apply 'router-link-active-exact' class if route exactly matches the item path."
|
2021-05-12 09:35:29 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2021-05-17 11:58:53 +00:00
|
|
|
const PanelMenuSlots = [
|
|
|
|
{
|
|
|
|
name: "item",
|
|
|
|
description: "Template of a menuitem."
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2021-05-12 09:35:29 +00:00
|
|
|
module.exports = {
|
|
|
|
panelmenu: {
|
|
|
|
name: "PanelMenu",
|
|
|
|
description: "PanelMenu is a hybrid of Accordion and Tree components",
|
2021-05-17 11:58:53 +00:00
|
|
|
props: PanelMenuProps,
|
|
|
|
slots: PanelMenuSlots
|
2021-05-12 09:35:29 +00:00
|
|
|
}
|
|
|
|
};
|