feat: remove demos

pull/86/head
xingyu4j 2025-04-30 11:41:53 +08:00
parent 2ccb88af1a
commit 70bb20b41f
2 changed files with 0 additions and 94 deletions

View File

@ -1,28 +0,0 @@
import type { RouteRecordRaw } from 'vue-router';
// import { $t } from '#/locales';
const routes: RouteRecordRaw[] = [
// {
// meta: {
// icon: 'ic:baseline-view-in-ar',
// keepAlive: true,
// order: 1000,
// title: $t('demos.title'),
// },
// name: 'Demos',
// path: '/demos',
// children: [
// {
// meta: {
// title: $t('demos.antd'),
// },
// name: 'AntDesignDemos',
// path: '/demos/ant-design',
// component: () => import('#/views/demos/antd/index.vue'),
// },
// ],
// },
];
export default routes; // update by 芋艿:不展示

View File

@ -1,66 +0,0 @@
<script lang="ts" setup>
import { Page } from '@vben/common-ui';
import { Button, Card, message, notification, Space } from 'ant-design-vue';
type NotificationType = 'error' | 'info' | 'success' | 'warning';
function info() {
message.info('How many roads must a man walk down');
}
function error() {
message.error({
content: 'Once upon a time you dressed so fine',
duration: 2500,
});
}
function warning() {
message.warning('How many roads must a man walk down');
}
function success() {
message.success('Cause you walked hand in hand With another man in my place');
}
function notify(type: NotificationType) {
notification[type]({
duration: 2500,
message: '说点啥呢',
type,
});
}
</script>
<template>
<Page
description="支持多语言,主题功能集成切换等"
title="Ant Design Vue组件使用演示"
>
<Card class="mb-5" title="按钮">
<Space>
<Button>Default</Button>
<Button type="primary"> Primary </Button>
<Button> Info </Button>
<Button danger> Error </Button>
</Space>
</Card>
<Card class="mb-5" title="Message">
<Space>
<Button @click="info"> </Button>
<Button danger @click="error"> </Button>
<Button @click="warning"> </Button>
<Button @click="success"> </Button>
</Space>
</Card>
<Card class="mb-5" title="Notification">
<Space>
<Button @click="notify('info')"> </Button>
<Button danger @click="notify('error')"> </Button>
<Button @click="notify('warning')"> </Button>
<Button @click="notify('success')"> </Button>
</Space>
</Card>
</Page>
</template>