typo: <OperateDrawer> solts => slots

This commit is contained in:
dhb52 2024-05-04 23:45:57 +08:00
parent add4de0297
commit e7418c2627

View File

@ -18,7 +18,7 @@ interface Emits {
} }
const emit = defineEmits<Emits>(); const emit = defineEmits<Emits>();
const solts = defineSlots(); const slots = defineSlots();
const appStore = useAppStore(); const appStore = useAppStore();
const state = reactive({ width: 0 }); const state = reactive({ width: 0 });
const visible = ref(props.modelValue); const visible = ref(props.modelValue);
@ -79,7 +79,7 @@ const onUpdateShow = (value: boolean) => {
</div> </div>
</template> </template>
<slot></slot> <slot></slot>
<template v-if="solts.footer" #footer> <template v-if="slots.footer" #footer>
<slot name="footer"></slot> <slot name="footer"></slot>
</template> </template>
</NDrawerContent> </NDrawerContent>