refactor(projects): 添加exportDefaults替换defineProps

This commit is contained in:
Soybean
2021-11-07 01:23:01 +08:00
committed by Soybean
parent 43b832bee0
commit e61ee32a88
42 changed files with 886 additions and 970 deletions

View File

@@ -24,11 +24,13 @@ import { useThemeStore, useAppStore } from '@/store';
import { BetterScroll } from '@/components';
import { MultiTab, ReloadButton } from './components';
defineProps({
zIndex: {
type: Number,
default: 0
}
interface Props {
/** 层级z-index */
zIndex?: number;
}
withDefaults(defineProps<Props>(), {
zIndex: 0
});
const route = useRoute();