master
This commit is contained in:
parent
45862052c7
commit
f46a01daf2
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue