docs: 更新说明
This commit is contained in:
parent
23ff03d40c
commit
825c2837ea
@ -14,11 +14,13 @@ import {
|
||||
SvgDownloadIcon,
|
||||
} from '@vben/icons';
|
||||
|
||||
import { Card } from 'ant-design-vue';
|
||||
|
||||
import AnalyticsTrends from './analytics-trends.vue';
|
||||
import AnalyticsVisits from './analytics-visits.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';
|
||||
|
||||
const overviewItems: AnalysisOverviewItem[] = [
|
||||
{
|
||||
@ -65,6 +67,17 @@ const chartTabs: TabOption[] = [
|
||||
|
||||
<template>
|
||||
<div class="p-5">
|
||||
<Card class="mb-3 text-lg" size="small" title="公告">
|
||||
1.3.0版本(dev中 未发布) 存在不兼容更新 包括
|
||||
<div class="text-red-500">
|
||||
ImageUpload/FileUpload完全重构 与之前版本api完全不兼容
|
||||
</div>
|
||||
<div class="text-red-500">TableSwitch组件重构 与之前版本api不兼容</div>
|
||||
<div class="text-red-500">
|
||||
不再推荐使用useDescription, 这个版本会标记为@deprecated,
|
||||
下个次版本将会移除 框架所有使用useDescription组件的会替换为原生(TODO)
|
||||
</div>
|
||||
</Card>
|
||||
<AnalysisOverview :items="overviewItems" />
|
||||
<AnalysisChartsTabs :tabs="chartTabs" class="mt-5">
|
||||
<template #trends>
|
||||
|
@ -5,13 +5,15 @@ import type { CustomGetter } from '#/components/upload/src/props';
|
||||
|
||||
import { h, ref } from 'vue';
|
||||
|
||||
import { Page } from '@vben/common-ui';
|
||||
import { CodeMirror, Page } from '@vben/common-ui';
|
||||
|
||||
import { useClipboard } from '@vueuse/core';
|
||||
import { Alert, Card, Modal, RadioGroup, Switch } from 'ant-design-vue';
|
||||
|
||||
import { FileUpload, ImageUpload } from '#/components/upload';
|
||||
|
||||
import { useFileType, useImageType } from './hook';
|
||||
import sql from './insert.sql?raw';
|
||||
|
||||
const singleImageId = ref('1905537674682916865');
|
||||
const singleFileId = ref('1905191167882518529');
|
||||
@ -47,10 +49,17 @@ const customName: CustomGetter<string> = (cb) => {
|
||||
const customThumbnailUrl: CustomGetter<undefined> = () => {
|
||||
return 'https://unpkg.com/@vbenjs/static-source@0.1.7/source/logo-v1.webp';
|
||||
};
|
||||
|
||||
const { copy } = useClipboard({ legacy: true });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Page>
|
||||
<Card class="mb-2" title="提示" size="small">
|
||||
本地想体验可以导入这个sql(mysql的 其他的自行处理或者手动从菜单添加)
|
||||
<a-button size="small" @click="copy(sql)">复制</a-button>
|
||||
<CodeMirror class="mt-2" v-model="sql" language="sql" readonly />
|
||||
</Card>
|
||||
<div class="grid grid-cols-2 gap-4">
|
||||
<Card title="单上传, 会绑定为string" size="small">
|
||||
<ImageUpload v-model:value="singleImageId" />
|
||||
|
1
apps/web-antd/src/views/演示使用自行删除/upload/insert.sql
Normal file
1
apps/web-antd/src/views/演示使用自行删除/upload/insert.sql
Normal file
@ -0,0 +1 @@
|
||||
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1905430203187712002, '文件上传Demo', 0, 1000, 'upload_test', '演示使用自行删除/upload/index', NULL, 1, 0, 'C', '0', '0', NULL, '#', 103, 1, '2025-03-28 09:22:16', 1, '2025-03-28 09:22:16', '');
|
Loading…
Reference in New Issue
Block a user