mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 07:14:23 +00:00
Merge branch 'develop' into release/1.1.11-beta
This commit is contained in:
commit
71b3c057cc
@ -9,10 +9,10 @@ const instance: Record<string, Record<string, string>> = {
|
|||||||
|
|
||||||
export function createIntl(locale: string = 'zh-CN') {
|
export function createIntl(locale: string = 'zh-CN') {
|
||||||
const intl = (id: string) => {
|
const intl = (id: string) => {
|
||||||
return instance[locale][id];
|
return instance[locale]?.[id] || id;
|
||||||
};
|
};
|
||||||
|
|
||||||
const intlNode = (id: string) => createElement('span', instance[locale][id]);
|
const intlNode = (id: string) => createElement('span', instance[locale]?.[id] || id);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
intl,
|
intl,
|
||||||
|
|||||||
@ -52,11 +52,11 @@ const bizNameColors = [
|
|||||||
'#2e8b57',
|
'#2e8b57',
|
||||||
];
|
];
|
||||||
const bodyColors: Record<string, string> = {
|
const bodyColors: Record<string, string> = {
|
||||||
debug: '#666666',
|
debug: '#fadb14',
|
||||||
log: '#bbbbbb',
|
log: '#8c8c8c',
|
||||||
info: '#ffffff',
|
info: '#52c41a',
|
||||||
warn: '#bbbbbb',
|
warn: '#fa8c16',
|
||||||
error: '#bbbbbb',
|
error: '#ff4d4f',
|
||||||
};
|
};
|
||||||
const levelMarks: Record<string, string> = {
|
const levelMarks: Record<string, string> = {
|
||||||
debug: 'debug',
|
debug: 'debug',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user