mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
fix: 🐛 清理无用代码
This commit is contained in:
parent
49c477003b
commit
015b58a1e6
@ -336,24 +336,6 @@ function initHistoryPane() {
|
||||
enablePageHistory: true,
|
||||
};;
|
||||
|
||||
// if (!historyConfigs) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
// if (historyConfigs === true) {
|
||||
// historyConfigs = {
|
||||
// enableRedoAndUndo: true,
|
||||
// enablePageHistory: true,
|
||||
// };
|
||||
// }
|
||||
|
||||
// if (historyConfigs.enableRedoAndUndo === undefined) {
|
||||
// historyConfigs.enableRedoAndUndo = true;
|
||||
// }
|
||||
// if (historyConfigs.enablePageHistory === undefined) {
|
||||
// historyConfigs.enablePageHistory = true;
|
||||
// }
|
||||
|
||||
const isDemoMode = false;
|
||||
const isEnvSupportsHistoryPane = true;
|
||||
const historyManager = PageHistoryManager.getManager();
|
||||
@ -362,19 +344,6 @@ function initHistoryPane() {
|
||||
console.log('PageHistoryManager.onOpenPane', historyManager.onOpenPane);
|
||||
// 历史撤销、重做以及唤起页面历史按钮
|
||||
if (typeof HistoryPane === 'function') {
|
||||
// const historyPane = {
|
||||
// ...HistoryPane({
|
||||
// showPageHistory:
|
||||
// isEnvSupportsHistoryPane
|
||||
// // && this.app.isForm()
|
||||
// && !isDemoMode,
|
||||
// historyManager,
|
||||
// historyConfigs,
|
||||
// }),
|
||||
// index: -940,
|
||||
// };
|
||||
// console.log('aaaaaa', historyPane);
|
||||
|
||||
Panes.add(HistoryPane, {
|
||||
props : {
|
||||
showPageHistory:
|
||||
@ -398,10 +367,6 @@ function initHistoryPane() {
|
||||
&& !isDemoMode
|
||||
&& isEnvSupportsHistoryPane
|
||||
) {
|
||||
console.log(1111, PageHistoryPane({
|
||||
historyManager: PageHistoryManager.getManager(),
|
||||
app: {},
|
||||
}))
|
||||
Panes.add(PageHistoryPane, {
|
||||
props : {
|
||||
historyManager: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user