From 87f31796987d704c1291f33c64eb17e106c1b645 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Mon, 19 May 2025 14:34:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AD=A6=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/icon/src/icons/NoMessage.vue | 23 ++ src/components/tablePro/src/TablePro.tsx | 22 +- src/components/tablePro/src/TablePro.vue | 16 +- .../IntelligentEarlyWarningCenter/index.vue | 375 +++++++++++++++++- 4 files changed, 424 insertions(+), 12 deletions(-) create mode 100644 src/components/icon/src/icons/NoMessage.vue diff --git a/src/components/icon/src/icons/NoMessage.vue b/src/components/icon/src/icons/NoMessage.vue new file mode 100644 index 0000000..3d63b6f --- /dev/null +++ b/src/components/icon/src/icons/NoMessage.vue @@ -0,0 +1,23 @@ + + + diff --git a/src/components/tablePro/src/TablePro.tsx b/src/components/tablePro/src/TablePro.tsx index 2744045..0a50a23 100644 --- a/src/components/tablePro/src/TablePro.tsx +++ b/src/components/tablePro/src/TablePro.tsx @@ -1,25 +1,29 @@ -import { dataTableProps } from 'naive-ui' -import { type PropType } from 'vue' -import type { SearchFormProps } from './interface' -import { type FormItemOptions } from '@/components/formPro' +import { dataTableProps } from "naive-ui"; +import { type PropType } from "vue"; +import type { SearchFormProps } from "./interface"; +import { type FormItemOptions } from "@/components/formPro"; export const tableProProps = { ...dataTableProps, + empty: { + type: String as PropType, + default: "", + }, rowKey: { type: String as PropType, - default: 'snowFlakeId', + default: "snowFlakeId", }, tableTitle: { type: String as PropType, - default: '数据列表', + default: "数据列表", }, searchFormProps: { type: Object as PropType>, default: { gridProps: { - cols: '640:1 768:2 1024:4 1280:6 1536:6', + cols: "640:1 768:2 1024:4 1280:6 1536:6", xGap: 8, - responsive: 'self', + responsive: "self", itemResponsive: true, }, }, @@ -49,4 +53,4 @@ export const tableProProps = { type: Boolean as PropType, default: true, }, -} +}; diff --git a/src/components/tablePro/src/TablePro.vue b/src/components/tablePro/src/TablePro.vue index 33372b7..1e786e4 100644 --- a/src/components/tablePro/src/TablePro.vue +++ b/src/components/tablePro/src/TablePro.vue @@ -98,7 +98,21 @@ :loading="loading" :checkedRowKeys="selectKeys" @update:checked-row-keys="onSelectRowKeysChange" - > + > + + diff --git a/src/views/IntelligentEarlyWarningCenter/index.vue b/src/views/IntelligentEarlyWarningCenter/index.vue index e5693fc..b5699c3 100644 --- a/src/views/IntelligentEarlyWarningCenter/index.vue +++ b/src/views/IntelligentEarlyWarningCenter/index.vue @@ -1,4 +1,375 @@ + - + +