[story#76528,done,4h] export docs in project space.

This commit is contained in:
hujunqing
2025-09-04 06:35:01 +00:00
parent e3de62f28f
commit cd5fe1ca97
+2 -2
View File
@@ -1115,8 +1115,8 @@ const actionsMap =
canCreateLib ? {icon: 'wiki-lib', text: lang.createLib, command: 'createLib'} : null,
].filter(Boolean) : [];
return [
((canExportDoc && libID > 0) || canCreateDoc) ? {type: 'divider', style: {margin: '6px 0'}} : null,
canExportDoc && libID > 0 ? {icon: 'export', text: lang.export, command: 'exportWord'} : null, // 不在库中,无法导出
(canExportDoc || canCreateDoc) ? {type: 'divider', style: {margin: '6px 0'}} : null,
canExportDoc ? {icon: 'export', text: lang.export, command: 'exportWord'} : null,
canUploadDoc ? {icon: 'import', text: lang.uploadDoc, command: 'uploadDoc'} : null,
items.length ? {icon: 'plus', type: 'dropdown', btnType: 'primary', size: 'md', text: lang.create, items: items} : null,
];