update 优化bpmn位置

This commit is contained in:
LiuHao
2024-04-15 12:02:40 +08:00
parent 73db6deec3
commit 945eec5418
28 changed files with 593 additions and 572 deletions

View File

@ -0,0 +1,15 @@
import zh from '../../lang/zh';
const customTranslate = (template: any, replacements: any) => {
replacements = replacements || {};
template = zh[template] || template;
return template.replace(/{([^}]+)}/g, function (_: any, key: any) {
return replacements[key] || '{' + key + '}';
});
};
export const translateModule = {
translate: ['value', customTranslate]
};
export default translateModule;