diff --git a/package-lock.json b/package-lock.json index e2c0a45b..c3f3350c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@vueuse/core": "^8.2.1", "@vueuse/head": "^0.7.5", "crypto-js": "^4.1.1", + "lodash": "^4.17.21", "naive-ui": "^2.27.0", "pinia": "^2.0.11", "randombytes": "^2.1.0", diff --git a/package.json b/package.json index 1bd4d528..33038dee 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "@vueuse/core": "^8.2.1", "@vueuse/head": "^0.7.5", "crypto-js": "^4.1.1", + "lodash": "^4.17.21", "naive-ui": "^2.27.0", "pinia": "^2.0.11", "randombytes": "^2.1.0", diff --git a/src/components/SearchBar.vue b/src/components/SearchBar.vue new file mode 100644 index 00000000..78e18cf1 --- /dev/null +++ b/src/components/SearchBar.vue @@ -0,0 +1,57 @@ + + + + + + \ No newline at end of file diff --git a/src/layouts/base.layout.vue b/src/layouts/base.layout.vue index f2c601b2..d7b0a906 100644 --- a/src/layouts/base.layout.vue +++ b/src/layouts/base.layout.vue @@ -4,6 +4,7 @@ import { h, ref, type Component } from 'vue'; import { RouterLink, useRoute } from 'vue-router'; import { User } from '@vicons/tabler' import { tools } from '@/tools'; +import SearchBar from '../components/SearchBar.vue'; const collapsed = ref(false) const activeKey = ref(null) @@ -50,7 +51,8 @@ const menuOptions = tools.map(({ name, path, icon }) => ({
- + +