feat(projects): 新增主题配置:页面功能

This commit is contained in:
Soybean
2021-09-07 11:57:35 +08:00
parent f002124ee1
commit 8601ce2ea1
18 changed files with 331 additions and 328 deletions

View File

@ -5,10 +5,21 @@
<router-link to="/home">home</router-link>
</n-button>
<n-switch :value="true" />
<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>
</div>
</template>
<script lang="ts" setup>
import { NButton, NSwitch } from 'naive-ui';
import { ref } from 'vue';
import { NButton, NSwitch, NModal, NCard } from 'naive-ui';
const showModal = ref(false);
</script>
<style scoped></style>