- aggiornata la grafica della Home di RISO
- Profilo Completition - Email Verificata - Invita un Amico (invio di email)
This commit is contained in:
@@ -7,7 +7,6 @@ export default defineComponent({
|
||||
name: 'CMenuItem',
|
||||
props: {
|
||||
item: { type: Object, required: true },
|
||||
tools: { type: Object, required: true },
|
||||
getroute: { type: Function, required: true },
|
||||
getmymenuclass: { type: Function, required: true },
|
||||
getimgiconclass: { type: Function, required: true },
|
||||
@@ -29,7 +28,7 @@ export default defineComponent({
|
||||
ris = [...r2]
|
||||
.map((rec) => {
|
||||
const norm = tools.norm(rec.path);
|
||||
return props.tools.getmenuByPath(norm);
|
||||
return tools.getmenuByPath(norm);
|
||||
})
|
||||
.filter(Boolean)
|
||||
.sort((a: any, b: any) => (a.order ?? 0) - (b.order ?? 0));
|
||||
@@ -37,7 +36,7 @@ export default defineComponent({
|
||||
ris = [...sm]
|
||||
.map((path) => {
|
||||
const norm = tools.norm(path);
|
||||
return props.tools.getmenuByPath(norm);
|
||||
return tools.getmenuByPath(norm);
|
||||
})
|
||||
.filter(Boolean)
|
||||
.sort((a: any, b: any) => (a.order ?? 0) - (b.order ?? 0));
|
||||
@@ -73,6 +72,7 @@ export default defineComponent({
|
||||
children,
|
||||
hasChildren,
|
||||
icon,
|
||||
tools,
|
||||
makeClick,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<div :style="{ paddingLeft: `${level * 4}px` }">
|
||||
<q-separator v-if="item.isseparator" />
|
||||
<!-- Nodo con figli -->
|
||||
<q-expansion-item
|
||||
v-else-if="hasChildren"
|
||||
:header-class="getmymenuclass(item)"
|
||||
@@ -12,9 +11,8 @@
|
||||
>
|
||||
<CMenuItem
|
||||
v-for="(child, idx) in children"
|
||||
:key="child._id || child.path || idx"
|
||||
:key="child.path || idx"
|
||||
:item="child"
|
||||
:tools="tools"
|
||||
:getroute="getroute"
|
||||
:getmymenuclass="getmymenuclass"
|
||||
:getimgiconclass="getimgiconclass"
|
||||
|
||||
Reference in New Issue
Block a user