Merge branch dev/bug-63525 of zentao/zentaopms (#9836)
This commit is contained in:
@@ -890,7 +890,7 @@ const actionsMap =
|
||||
}
|
||||
|
||||
const isToolbar = info.ui === 'toolbar';
|
||||
const actions = [
|
||||
const actions = isInModal ? [] : [
|
||||
isToolbar ? {hint: docApp.fullscreen ? lang.exitFullscreen : lang.enterFullscreen, icon: docApp.fullscreen ? 'fullscreen-exit' : 'fullscreen', command: 'toggleFullscreen'} : null,
|
||||
canEditDoc ? {icon: 'edit', class: doc.editable ? null : 'disabled', type: doc.editable ? 'ghost text-primary' : 'ghost text-gray', hint: doc.editable ? lang.edit : lang.needEditable, rounded: 'lg', command: doc.editable ? 'startEditDoc' : null} : null,
|
||||
(isToolbar && docApp.props.showDocOutline !== false) ? {hint: lang.docOutline, icon: 'list-box', command: 'toggleViewSideTab/outline'} : null,
|
||||
|
||||
@@ -134,6 +134,7 @@ class docApp extends wg
|
||||
jsVar('enableHocuspocus', $config->docHocuspocus->enable);
|
||||
jsVar('needReadable', $lang->doc->needReadable);
|
||||
jsVar('vision', $config->vision);
|
||||
jsVar('isInModal', isInModal());
|
||||
|
||||
/**
|
||||
* 定义文档应用接口链接。
|
||||
|
||||
Reference in New Issue
Block a user