mirror of
https://github.com/bitinflow/ui.git
synced 2026-03-13 21:55:59 +00:00
chore(release): v0.0.3
This commit is contained in:
3
dist/runtime/composables/index.d.ts
vendored
3
dist/runtime/composables/index.d.ts
vendored
@@ -1 +1,2 @@
|
||||
export function useMenu(data: any): void;
|
||||
import { MenuOptions } from "../../types";
|
||||
export declare const useMenu: (options: MenuOptions) => void;
|
||||
|
||||
15
dist/runtime/composables/index.mjs
vendored
15
dist/runtime/composables/index.mjs
vendored
@@ -1,8 +1,7 @@
|
||||
import {useMenuStore} from "../stores/menu.js";
|
||||
|
||||
export const useMenu = (data) => {
|
||||
const menu = useMenuStore()
|
||||
if (data.thirdLevelLinks) {
|
||||
menu.updateThirdLevelLinks(data.thirdLevelLinks)
|
||||
}
|
||||
}
|
||||
import { useMenuStore } from "../stores/menu.mjs";
|
||||
export const useMenu = (options) => {
|
||||
const menu = useMenuStore();
|
||||
if (options.thirdLevelLinks) {
|
||||
menu.updateThirdLevelLinks(options.thirdLevelLinks);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user