You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

8 lines
1.1 KiB

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { ProCard, ProDescriptions } from '@ant-design/pro-components';
import { Upload } from 'antd';
import { formatImageUrl } from '@component/utils';
import { DescriptionsDetail, PreviewFile } from '@component/ui';
export default function Detail({ data = [] }) {
return (_jsx("div", { children: data === null || data === void 0 ? void 0 : data.map((item) => (_jsx(ProCard, Object.assign({ bordered: true, size: "small", style: { marginBottom: 8 }, title: item === null || item === void 0 ? void 0 : item.question, bodyStyle: { paddingBottom: 0 } }, { children: _jsxs(DescriptionsDetail, Object.assign({ column: 1 }, { children: [_jsx(ProDescriptions.Item, Object.assign({ label: "\u4F01\u4E1A\u73B0\u72B6" }, { children: item.finalResult })), _jsx(ProDescriptions.Item, Object.assign({ label: "\u4E13\u5BB6\u5EFA\u8BAE" }, { children: item.description })), _jsx(ProDescriptions.Item, Object.assign({ label: "\u4E0A\u4F20\u9644\u4EF6" }, { children: _jsx(PreviewFile, { fileList: formatImageUrl(item.attachments), disabled: true, listType: "picture-card" }) }))] })) }), item.taskItemId))) }));
}