mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-27 15:50:17 +08:00
feat(projects): 重构项目的TS类型架构,去除interface文件夹
This commit is contained in:
@@ -28,7 +28,6 @@ import { ref, shallowRef, computed, watch, nextTick } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { useDebounceFn, onKeyStroke } from '@vueuse/core';
|
||||
import { useRouteStore } from '@/store';
|
||||
import type { SearchMenu } from '@/interface';
|
||||
import SearchResult from './SearchResult.vue';
|
||||
import SearchFooter from './SearchFooter.vue';
|
||||
|
||||
@@ -50,7 +49,7 @@ const routeStore = useRouteStore();
|
||||
|
||||
const keyword = ref('');
|
||||
const activePath = ref('');
|
||||
const resultOptions = shallowRef<SearchMenu[]>([]);
|
||||
const resultOptions = shallowRef<AuthRoute.Route[]>([]);
|
||||
const inputRef = ref<HTMLInputElement>();
|
||||
|
||||
const handleSearch = useDebounceFn(search, 300);
|
||||
|
||||
@@ -24,11 +24,10 @@
|
||||
import { computed } from 'vue';
|
||||
import { Icon } from '@iconify/vue';
|
||||
import { useThemeStore } from '@/store';
|
||||
import type { SearchMenu } from '@/interface';
|
||||
|
||||
interface Props {
|
||||
value: string;
|
||||
options: SearchMenu[];
|
||||
options: AuthRoute.Route[];
|
||||
}
|
||||
|
||||
interface Emits {
|
||||
@@ -52,7 +51,7 @@ const active = computed({
|
||||
});
|
||||
|
||||
/** 鼠标移入 */
|
||||
async function handleMouse(item: SearchMenu) {
|
||||
async function handleMouse(item: AuthRoute.Route) {
|
||||
active.value = item.path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user