feat: 增加自定义基础属性的功能

This commit is contained in:
albert
2024-03-21 12:44:00 +08:00
parent e8ebd2606a
commit ae5d9f7d39
4 changed files with 135 additions and 80 deletions

View File

@@ -39,4 +39,8 @@ export function renamePropertyAndKeepKeyPrecedence(_this, obj, [oldKey, newKey])
}, obj)
}
return obj
}
/**过滤数组元素 */
export function arrayDifference(basicArr, arr) {
return arr.filter(item => !basicArr.includes(item));
}