style : 优化详情样式
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Modal, Table } from 'antd';
|
||||
import type { ProColumns } from '@ant-design/pro-components';
|
||||
import { ProDescriptions } from '@ant-design/pro-components';
|
||||
import React, { useEffect } from 'react';
|
||||
import type { ColumnsType } from 'antd/es/table';
|
||||
import React from 'react';
|
||||
|
||||
export type StorageFormProps = {
|
||||
onCancel: (flag?: boolean, formVals?: unknown) => void;
|
||||
@@ -10,7 +10,8 @@ export type StorageFormProps = {
|
||||
};
|
||||
|
||||
const ViewStorageDetail: React.FC<StorageFormProps> = (props) => {
|
||||
const detailColumns: ProColumns<API.StorageDetection.StorageDetailItem>[] = [
|
||||
// 使用 Antd Table 的标准 ColumnsType
|
||||
const detailColumns: ColumnsType<API.StorageDetection.StorageDetailItem> = [
|
||||
// {
|
||||
// title: '详情ID',
|
||||
// dataIndex: 'detailId',
|
||||
@@ -64,7 +65,6 @@ const ViewStorageDetail: React.FC<StorageFormProps> = (props) => {
|
||||
width={1200}
|
||||
onCancel={handleCancel}
|
||||
footer={null}
|
||||
destroyOnClose
|
||||
>
|
||||
{/* 基本信息 */}
|
||||
<div style={{ marginBottom: 24 }}>
|
||||
|
||||
@@ -54,7 +54,7 @@ const JobIndexEdit: React.FC<JobIndexFormProps> = (props) => {
|
||||
}}
|
||||
submitter={false}
|
||||
>
|
||||
<ProDescriptions<API.JobIndex.JobIndexItem> column={2} dataSource={props.values || {}}>
|
||||
<ProDescriptions<API.JobIndex.JobIndexItem> column={2} bordered dataSource={props.values || {}}>
|
||||
{/* <ProDescriptions.Item dataIndex="indexId" label="指标ID" /> */}
|
||||
<ProDescriptions.Item dataIndex="indexName" label="指标名称" />
|
||||
<ProDescriptions.Item dataIndex="indexDesc" label="指标描述" span={2} />
|
||||
|
||||
@@ -53,7 +53,7 @@ const WebsiteEdit: React.FC<WebsiteFormProps> = (props) => {
|
||||
}}
|
||||
submitter={false}
|
||||
>
|
||||
<ProDescriptions<API.Website.WebsiteItem> column={2} dataSource={props.values || {}}>
|
||||
<ProDescriptions<API.Website.WebsiteItem> column={2} bordered dataSource={props.values || {}}>
|
||||
{/* <ProDescriptions.Item dataIndex="websiteId" label="网站ID" /> */}
|
||||
<ProDescriptions.Item dataIndex="websiteName" label="网站名称" />
|
||||
<ProDescriptions.Item dataIndex="websiteUrl" label="网站地址" />
|
||||
|
||||
Reference in New Issue
Block a user