mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-28 08:40:17 +08:00
refactor(projects): 添加exportDefaults替换defineProps
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user