mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-10 10:43:41 +08:00
style(projects): sort defineProps, defineEmits with TS type
This commit is contained in:
@@ -19,14 +19,12 @@ const props = withDefaults(defineProps<PageTabProps>(), {
|
||||
closable: true
|
||||
});
|
||||
|
||||
const emit = defineEmits<Emits>();
|
||||
|
||||
defineSlots<Slots>();
|
||||
|
||||
interface Emits {
|
||||
(e: 'close'): void;
|
||||
}
|
||||
|
||||
const emit = defineEmits<Emits>();
|
||||
|
||||
type SlotFn = (props?: Record<string, unknown>) => any;
|
||||
|
||||
type Slots = {
|
||||
@@ -50,6 +48,8 @@ type Slots = {
|
||||
suffix?: SlotFn;
|
||||
};
|
||||
|
||||
defineSlots<Slots>();
|
||||
|
||||
const activeTabComponent = computed(() => {
|
||||
const { mode, chromeClass, buttonClass } = props;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user