2021-08-17 14:59:59 +08:00
|
|
|
|
<template>
|
2021-08-26 17:43:03 +08:00
|
|
|
|
<div>
|
|
|
|
|
<h3>System</h3>
|
|
|
|
|
<n-button>
|
|
|
|
|
<router-link to="/home">home</router-link>
|
|
|
|
|
</n-button>
|
2021-09-01 17:43:25 +08:00
|
|
|
|
<n-switch :value="true" />
|
2021-09-07 11:57:35 +08:00
|
|
|
|
<n-button @click="showModal = true">来吧</n-button>
|
|
|
|
|
<n-modal v-model:show="showModal">
|
|
|
|
|
<n-card style="width: 600px" title="模态框" :bordered="false" size="huge">
|
|
|
|
|
<template #header-extra>噢!</template>
|
|
|
|
|
内容
|
|
|
|
|
<template #footer>尾部</template>
|
|
|
|
|
</n-card>
|
|
|
|
|
</n-modal>
|
2021-08-26 17:43:03 +08:00
|
|
|
|
</div>
|
2021-08-17 14:59:59 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
2021-09-01 17:43:25 +08:00
|
|
|
|
<script lang="ts" setup>
|
2021-09-07 11:57:35 +08:00
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
import { NButton, NSwitch, NModal, NCard } from 'naive-ui';
|
|
|
|
|
|
|
|
|
|
const showModal = ref(false);
|
2021-09-01 17:43:25 +08:00
|
|
|
|
</script>
|
2021-08-17 14:59:59 +08:00
|
|
|
|
<style scoped></style>
|