mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
436 B
436 B
Use Preset Confirm (Slot)
<n-button
size="small"
@click="isActive = true"
>
Start Me up
</n-button>
<n-modal v-model="isActive"
preset="confirm"
title="Confirm"
>
<template v-slot:header>
<div style="color:red;">title</div>
</template>
<div slot="content">content</div>
<div slot="footer">footer</div>
</n-modal>
export default {
data () {
return {
isActive: false,
}
}
}