@luizleon/sf.prefeiturasp.vuecomponents 0.0.48 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/panelmenu/PanelMenu.d.ts +3 -3
- package/dist/sf.prefeiturasp.vuecomponents.es.js +2 -2
- package/dist/sf.prefeiturasp.vuecomponents.es.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.js +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/panelmenu/PanelMenu.vue +7 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { RouteRecordName } from "vue-router";
|
|
2
1
|
export interface SfPanelMenuItem {
|
|
3
|
-
[x: string]: any;
|
|
4
2
|
label: string;
|
|
5
|
-
|
|
3
|
+
routeName?: string;
|
|
6
4
|
url?: string;
|
|
7
5
|
icon?: string;
|
|
8
6
|
items?: SfPanelMenuItem[];
|
|
7
|
+
key?: string;
|
|
8
|
+
parentKey?: string;
|
|
9
9
|
}
|
|
10
10
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
11
11
|
items: SfPanelMenuItem[];
|
|
@@ -5882,13 +5882,13 @@ const ih = ["data-active", "href", "onClick"], sh = { class: "sf-ml-2" }, ah = [
|
|
|
5882
5882
|
r(e.items);
|
|
5883
5883
|
function r(s, l = void 0) {
|
|
5884
5884
|
s.forEach((a) => {
|
|
5885
|
-
l && (a.
|
|
5885
|
+
l && (a.parentKey = l), a.items && r(a.items, a.key);
|
|
5886
5886
|
});
|
|
5887
5887
|
}
|
|
5888
5888
|
const o = Ne({});
|
|
5889
5889
|
function i(s, l, a = void 0) {
|
|
5890
5890
|
s.forEach((u) => {
|
|
5891
|
-
u.
|
|
5891
|
+
u.routeName && u.routeName === l && a && (o.value[a] = a === u.parentKey), u.items && i(u.items, l, u.key);
|
|
5892
5892
|
});
|
|
5893
5893
|
}
|
|
5894
5894
|
return Ln(
|