|
@@ -1,6 +1,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
-import type { NotificationType } from 'naive-ui';
|
|
|
+import { Page } from '@vben/common-ui';
|
|
|
|
|
|
+import { type NotificationType } from 'naive-ui';
|
|
|
import { NButton, NCard, NSpace, useMessage, useNotification } from 'naive-ui';
|
|
|
|
|
|
const notification = useNotification();
|
|
@@ -33,13 +34,9 @@ function notify(type: NotificationType) {
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <div class="p-5">
|
|
|
+ <Page title="naive组件使用演示">
|
|
|
+ <template #header> 支持多语言,主题功能集成切换等 </template>
|
|
|
<div class="card-box p-5">
|
|
|
- <h1 class="text-xl font-semibold">naive组件使用演示</h1>
|
|
|
- <div class="text-foreground/80 mt-2">支持多语言,主题功能集成切换等</div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="card-box mt-5 p-5">
|
|
|
<div class="mb-3">
|
|
|
<span class="text-lg font-semibold">按钮</span>
|
|
|
</div>
|
|
@@ -87,5 +84,5 @@ function notify(type: NotificationType) {
|
|
|
<NButton type="primary" @click="notify('info')"> 加载中 </NButton>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </Page>
|
|
|
</template>
|