This commit is contained in:
lys 2025-06-04 09:12:20 +08:00
parent 45862052c7
commit f46a01daf2
1 changed files with 13 additions and 35 deletions

View File

@ -442,41 +442,19 @@ export function renderCols(initialState: any[], type: string, i18n?: AnyObject,
case "operate": case "operate":
col = { col = {
...col, ...col,
width: 176, ellipsis: false,
fixed: "right" // render: (__: string, record: any) => { width: 120,
// let items: MenuProps["items"] = [ render: (__: string, record: any) => {
// { return (
// key: "DeleteList", <Space>
// label: i18n?.["删除"], {_.map(col?.operateType, (o) => (
// onClick: () => postMessageToParent("DEL", record) <Button key={o.key} type="link" onClick={() => postMessageToParent(o.key, record)}>
// }, {o.label}
// { </Button>
// key: "Log", ))}
// label: i18n?.["操作日志"], </Space>
// onClick: () => postMessageToParent("log", record) );
// } }
// ];
// isSpecial && items.shift();
// return (
// <Space>
// <Button type="link" onClick={() => postMessageToParent("EDIT", record)}>
// {i18n?.["编辑"]}
// </Button>
// {isSpecial ? (
// <Button type="link" onClick={() => postMessageToParent("DEL", record)}>
// {i18n?.["删除"]}
// </Button>
// ) : (
// <Button type="link" onClick={() => postMessageToParent("VIEW", record)}>
// {i18n?.["查看明细"]}
// </Button>
// )}
// <Dropdown menu={{ items }} placement="bottomRight">
// <Button type="link" icon={<MoreOutlined />} />
// </Dropdown>
// </Space>
// );
// }
}; };
break; break;
default: default: