* [story #69184, doing] add custom renders setting to DocApp.

This commit is contained in:
sunhao
2024-11-13 09:22:31 +08:00
committed by 刘刚
parent 99ef7b5f1f
commit 44dbccd0ff
+17 -7
View File
@@ -1027,8 +1027,15 @@ const commands =
$.post($.createLink('doc', 'edit', `docID=${docID}`), docData);
}
});
/**
* 定义页面上的自定义渲染器。
* Define the custom renderers on the page.
*/
const customRenders =
{
}
};
};
/**
* 获取文档界面上的表格初始化选项。
@@ -1299,9 +1306,11 @@ window.setDocAppOptions = function(_, options)
return $.extend(
{
defaultState : {listType: '', libReleaseMap: {}},
commands : commands,
onCreateDoc : userPrivs.create ? handleCreateDoc: null,
onSaveDoc : userPrivs.edit ? handleSaveDoc : null,
customRenders : customRenders,
onCreateDoc : userPrivs.create ? handleCreateDoc : null,
onSaveDoc : userPrivs.edit ? handleSaveDoc : null,
canMoveDoc : canMoveDoc,
onSwitchView : handleSwitchView,
getActions : getActions,
@@ -1314,8 +1323,9 @@ window.setDocAppOptions = function(_, options)
}, window.docAppOptions, options);
};
window.docAppActions = actionsMap;
window.docAppCommands = commands;
window.getDocApp = getDocApp;
window.getDocAppLang = getLang;
window.docAppHasPriv = hasPriv;
window.docAppActions = actionsMap;
window.docAppCommands = commands;
window.docAppCustomRenders = customRenders;
window.getDocApp = getDocApp;
window.getDocAppLang = getLang;
window.docAppHasPriv = hasPriv;