mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-04-23 00:38:34 +08:00
docs: 更新CHANGELOG.md并移除index.vue中的弃用代码
This commit is contained in:
11
CHANGELOG.md
11
CHANGELOG.md
@@ -1,5 +1,9 @@
|
||||
## 2.0.0
|
||||
|
||||
## 环境
|
||||
|
||||
最低需要使用`node版本>22.16.0` 否则会影响编辑器的格式化(需要安装oxc插件)
|
||||
|
||||
## 变化(跟ant-design-vue对比)
|
||||
|
||||
从ant design (react) v6移植过来 详细也可以看[antd的文档](https://ant.design/changelog-cn#600)
|
||||
@@ -27,3 +31,10 @@
|
||||
- ~~表格上方搜索表单(或者需要调用formReset的场景) -> 时间相关组件必须设置`defaultValue`为`null`(区间时间组件需要设置为[null, null]的元组) **否则不会正常重置**~~ 后续版本已经修复
|
||||
- 移除`commonDownloadExcel`方法 使用`useBlobExport`代替
|
||||
- 路由模式由`backend`改为`mix`模式 即前后端混合路由 路由放在`apps/web-antd/src/router/routes/modules`下 移除原先的`local.ts`
|
||||
|
||||
## vben基础框架的变化
|
||||
|
||||
- 使用`oxc`替代`eslint` & `prettier`
|
||||
- tailwind3 -> tailwind4
|
||||
- vite升级到v8(基于rust)
|
||||
- core包`unbuild`升级到`tsdown`(基于rust)
|
||||
|
||||
@@ -2,13 +2,10 @@
|
||||
import type { AnalysisOverviewItem } from '@vben/common-ui';
|
||||
import type { TabOption } from '@vben/types';
|
||||
|
||||
import { ref } from 'vue';
|
||||
|
||||
import {
|
||||
AnalysisChartCard,
|
||||
AnalysisChartsTabs,
|
||||
AnalysisOverview,
|
||||
MarkdownPreviewer,
|
||||
} from '@vben/common-ui';
|
||||
import {
|
||||
SvgBellIcon,
|
||||
@@ -17,14 +14,11 @@ import {
|
||||
SvgDownloadIcon,
|
||||
} from '@vben/icons';
|
||||
|
||||
import { Alert, Spin } from 'antdv-next';
|
||||
|
||||
import AnalyticsTrends from './analytics-trends.vue';
|
||||
import AnalyticsVisitsData from './analytics-visits-data.vue';
|
||||
import AnalyticsVisitsSales from './analytics-visits-sales.vue';
|
||||
import AnalyticsVisitsSource from './analytics-visits-source.vue';
|
||||
import AnalyticsVisits from './analytics-visits.vue';
|
||||
import md from './change.md?raw';
|
||||
|
||||
const overviewItems: AnalysisOverviewItem[] = [
|
||||
{
|
||||
@@ -67,55 +61,10 @@ const chartTabs: TabOption[] = [
|
||||
value: 'visits',
|
||||
},
|
||||
];
|
||||
|
||||
function handleClick() {
|
||||
window.notification.success({
|
||||
title: '新的 notification 样式',
|
||||
description: 'ant design',
|
||||
});
|
||||
}
|
||||
|
||||
const loading = ref(true);
|
||||
|
||||
function keepOneMessage() {
|
||||
window.message.success('只有一条消息');
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="p-5">
|
||||
<div class="mb-5">
|
||||
<Alert :show-icon="true" type="success">
|
||||
<template #message>
|
||||
该分支使用antdv-next替代不维护的ant-design-vue
|
||||
<a-button
|
||||
class="ml-2"
|
||||
size="small"
|
||||
type="primary"
|
||||
@click="handleClick"
|
||||
>
|
||||
新的 notification 样式
|
||||
</a-button>
|
||||
<a-button
|
||||
class="ml-2"
|
||||
size="small"
|
||||
type="primary"
|
||||
@click="keepOneMessage"
|
||||
>
|
||||
保持一条消息
|
||||
</a-button>
|
||||
</template>
|
||||
</Alert>
|
||||
</div>
|
||||
|
||||
<Spin :spinning="loading">
|
||||
<MarkdownPreviewer
|
||||
class="mb-4"
|
||||
v-model:value="md"
|
||||
@mounted="() => (loading = false)"
|
||||
/>
|
||||
</Spin>
|
||||
|
||||
<AnalysisOverview :items="overviewItems" />
|
||||
<AnalysisChartsTabs :tabs="chartTabs" class="mt-5">
|
||||
<template #trends>
|
||||
|
||||
Reference in New Issue
Block a user