* [refac] format code.

This commit is contained in:
sunhao
2024-10-17 08:16:47 +08:00
committed by 刘刚
parent 24ecacc2b1
commit bb2774923b
+2 -3
View File
@@ -64,7 +64,6 @@ function processDocAppAction(action, docApp)
if(action.mode && action.mode !== docApp.mode) return;
const method = zui.deepGet(docApp, action.call);
if(typeof method === 'function') method.apply(docApp, action.args);
if(config.debug) console.log('DocApp.action', {action, method, docApp});
}
/*
@@ -898,7 +897,6 @@ function getSortableOptions(type)
if(!fromKey || !toKey) return false;
const fromType = getItemType(fromKey);
const toType = getItemType(toKey);
console.log(fromType, toType);
if (fromType !== toType) return false;
return true;
},
@@ -908,7 +906,8 @@ function getSortableOptions(type)
if(!fromKey || !orders.length) return;
const fromType = getItemType(fromKey);
const orderedList = [];
orders.forEach((key, index) => {
orders.forEach((key, index) =>
{
const keyType = getItemType(key);
if(keyType !== fromType) return;
if(fromType !== 'doc') key = key.substring(1);