diff --git a/es/components/articleMenu/treeCell/web.pc.js b/es/components/articleMenu/treeCell/web.pc.js index 49c2f63a3..0f570871a 100644 --- a/es/components/articleMenu/treeCell/web.pc.js +++ b/es/components/articleMenu/treeCell/web.pc.js @@ -138,7 +138,7 @@ export default function Render(props) { // }); // } // } - footer: _jsxs(Space, { children: [_jsx(ExtraFileCommit, { oakPath: oakFullpath, efPaths: [ + footer: () => (_jsxs(Space, { children: [_jsx(ExtraFileCommit, { oakPath: oakFullpath, efPaths: [ 'extraFile$entity$1', ], afterCommit: () => { modalInstance.destroy(); @@ -149,7 +149,7 @@ export default function Render(props) { else { return false; } - } }), _jsx(Button, { onClick: () => modalInstance.destroy(), children: "\u53D6\u6D88" })] }) + } }), _jsx(Button, { onClick: () => modalInstance.destroy(), children: "\u53D6\u6D88" })] })) }); }, style: { marginRight: 4 } }), _jsxs("div", { className: Styles.name, children: [logo ? (_jsx(Image, { height: 26, width: 26, src: logo, preview: false })) : null, _jsx("div", { style: { marginLeft: 4, overflow: 'hidden', width: '100px', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }, children: row?.name })] })] }) }), _jsx(Divider, { type: "vertical", style: { height: '100%', marginTop: 4, marginBottom: 4 } }), _jsxs("div", { className: Styles.control, children: [!row.parentId && _jsx(Button, { type: "text", onClick: () => { gotoDoc(row?.id); diff --git a/lib/components/articleMenu/treeCell/web.pc.js b/lib/components/articleMenu/treeCell/web.pc.js index 0b4d38218..a36035cb6 100644 --- a/lib/components/articleMenu/treeCell/web.pc.js +++ b/lib/components/articleMenu/treeCell/web.pc.js @@ -141,7 +141,7 @@ function Render(props) { // }); // } // } - footer: (0, jsx_runtime_1.jsxs)(antd_1.Space, { children: [(0, jsx_runtime_1.jsx)(commit_1.default, { oakPath: oakFullpath, efPaths: [ + footer: () => ((0, jsx_runtime_1.jsxs)(antd_1.Space, { children: [(0, jsx_runtime_1.jsx)(commit_1.default, { oakPath: oakFullpath, efPaths: [ 'extraFile$entity$1', ], afterCommit: () => { modalInstance.destroy(); @@ -152,7 +152,7 @@ function Render(props) { else { return false; } - } }), (0, jsx_runtime_1.jsx)(antd_1.Button, { onClick: () => modalInstance.destroy(), children: "\u53D6\u6D88" })] }) + } }), (0, jsx_runtime_1.jsx)(antd_1.Button, { onClick: () => modalInstance.destroy(), children: "\u53D6\u6D88" })] })) }); }, style: { marginRight: 4 } }), (0, jsx_runtime_1.jsxs)("div", { className: web_pc_module_less_1.default.name, children: [logo ? ((0, jsx_runtime_1.jsx)(antd_1.Image, { height: 26, width: 26, src: logo, preview: false })) : null, (0, jsx_runtime_1.jsx)("div", { style: { marginLeft: 4, overflow: 'hidden', width: '100px', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }, children: row?.name })] })] }) }), (0, jsx_runtime_1.jsx)(antd_1.Divider, { type: "vertical", style: { height: '100%', marginTop: 4, marginBottom: 4 } }), (0, jsx_runtime_1.jsxs)("div", { className: web_pc_module_less_1.default.control, children: [!row.parentId && (0, jsx_runtime_1.jsx)(antd_1.Button, { type: "text", onClick: () => { gotoDoc(row?.id);