mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): 路由组件导入拆分
This commit is contained in:
6
src/views/about/index.vue
Normal file
6
src/views/about/index.vue
Normal file
@ -0,0 +1,6 @@
|
||||
<template>
|
||||
<div>关于</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
<style scoped></style>
|
6
src/views/component/map/index.vue
Normal file
6
src/views/component/map/index.vue
Normal file
@ -0,0 +1,6 @@
|
||||
<template>
|
||||
<div>地图</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
<style scoped></style>
|
6
src/views/component/video/index.vue
Normal file
6
src/views/component/video/index.vue
Normal file
@ -0,0 +1,6 @@
|
||||
<template>
|
||||
<div>视频</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts"></script>
|
||||
<style scoped></style>
|
@ -1,73 +1,15 @@
|
||||
<template>
|
||||
<div>
|
||||
<n-spin :show="loading">
|
||||
<n-space :vertical="true">
|
||||
<div>
|
||||
<n-gradient-text type="primary" size="32">GradientText</n-gradient-text>
|
||||
<n-space>
|
||||
<n-gradient-text>Default</n-gradient-text>
|
||||
<n-gradient-text type="primary">Primary</n-gradient-text>
|
||||
<n-gradient-text type="info">Info</n-gradient-text>
|
||||
<n-gradient-text type="success">Success</n-gradient-text>
|
||||
<n-gradient-text type="warning">Warning</n-gradient-text>
|
||||
<n-gradient-text type="error">Error</n-gradient-text>
|
||||
</n-space>
|
||||
</div>
|
||||
<div>
|
||||
<n-gradient-text type="primary" size="32">Button</n-gradient-text>
|
||||
<n-space>
|
||||
<n-button>Default</n-button>
|
||||
<n-button type="primary">Primary</n-button>
|
||||
<n-button type="info">Info</n-button>
|
||||
<n-button type="success">Success</n-button>
|
||||
<n-button type="warning">Warning</n-button>
|
||||
<n-button type="error">Error</n-button>
|
||||
</n-space>
|
||||
</div>
|
||||
<n-gradient-text type="primary" size="32">Tag</n-gradient-text>
|
||||
<n-space>
|
||||
<n-tag>Tag</n-tag>
|
||||
<n-tag type="primary">Primary</n-tag>
|
||||
<n-tag type="info">Info</n-tag>
|
||||
<n-tag type="success">Success</n-tag>
|
||||
<n-tag type="warning">Warning</n-tag>
|
||||
<n-tag type="error">Error</n-tag>
|
||||
</n-space>
|
||||
<div>
|
||||
<n-gradient-text type="primary" size="32">Switch | Checkbox | Radio</n-gradient-text>
|
||||
<n-space>
|
||||
<n-switch :default-value="true" />
|
||||
<n-checkbox :default-checked="true" />
|
||||
<n-radio :default-checked="true" />
|
||||
</n-space>
|
||||
</div>
|
||||
<n-space>
|
||||
<n-button type="primary" @click="handleDialog">Dialog</n-button>
|
||||
</n-space>
|
||||
</n-space>
|
||||
</n-spin>
|
||||
<div class="p-6px">
|
||||
<div class="flex justify-between h-360px">
|
||||
<div class="flex-1 min-w-360px h-full bg-white rounded-16px"></div>
|
||||
<div class="w-16px"></div>
|
||||
<div class="w-360px h-full bg-white rounded-16px"></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { NGradientText, NSpace, NButton, NSpin, NTag, NSwitch, NCheckbox, NRadio, useDialog } from 'naive-ui';
|
||||
|
||||
const dialog = useDialog();
|
||||
|
||||
const loading = ref(true);
|
||||
|
||||
setTimeout(() => {
|
||||
loading.value = false;
|
||||
}, 1500);
|
||||
|
||||
function handleDialog() {
|
||||
dialog.info({
|
||||
title: '提示',
|
||||
content: '您确定要退出登录吗?',
|
||||
positiveText: '确定',
|
||||
negativeText: '取消'
|
||||
});
|
||||
}
|
||||
// import { ref } from 'vue';
|
||||
// import { NGradientText, NSpace, NButton, NSpin, NTag, NSwitch, NCheckbox, NRadio, useDialog } from 'naive-ui';
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
Reference in New Issue
Block a user