style(字体): 字体调整

This commit is contained in:
baiqi 2024-08-08 11:22:46 +08:00 committed by Craftsman
parent c882627e6c
commit 781d59d649
8 changed files with 2 additions and 17 deletions

View File

@ -78,7 +78,6 @@
.menu-item {
height: 38px;
line-height: 38px;
font-family: 'PingFang SC', AlibabaPuHuiTi;
}
}
}

View File

@ -60,7 +60,6 @@ function getSVGInfo(minder: any) {
$svg[index].setAttribute('width', renderBox.width + 1);
$svg[index].setAttribute('height', renderBox.height + 1);
$svg[index].setAttribute('style', 'font-family: "PingFang SC",AlibabaPuHuiTi;');
const div = document.createElement('div');
div.appendChild($svg[index]);

View File

@ -39,10 +39,6 @@ function exportSVG(minder: any) {
$svg[index].setAttribute('width', width + padding * 2 || 0);
$svg[index].setAttribute('height', height + padding * 2 || 0);
$svg[index].setAttribute(
'style',
`font-family: 'PingFang SC',AlibabaPuHuiTi; background: ${minder.getStyle('background')}`
);
$svg[index].setAttribute(
'viewBox',

View File

@ -38,7 +38,6 @@ div.minder-editor-container {
right: 0;
bottom: 0;
left: 0;
font-family: 'PingFang SC', AlibabaPuHuiTi;
}
.minder-editor {
@apply absolute bottom-0 left-0 right-0;

View File

@ -1,10 +1,5 @@
import type { LocaleType } from '#/global';
export function setHtmlPageLang(locale: LocaleType) {
document.querySelector('html')?.setAttribute('lang', locale);
document.body.style.fontFamily = 'PingFang SC, AlibabaPuHuiTi';
}
export const loadLocalePool: LocaleType[] = [];
export function setLoadLocalePool(cb: (lp: LocaleType[]) => void) {

View File

@ -1,6 +1,6 @@
import { createI18n } from 'vue-i18n';
import { setHtmlPageLang, setLoadLocalePool } from './helper';
import { setLoadLocalePool } from './helper';
import type { LocaleType } from '#/global';
import type { App } from 'vue';
import type { I18nOptions } from 'vue-i18n';
@ -18,7 +18,6 @@ async function createI18nOptions(): Promise<I18nOptions> {
const defaultLocal = await import(`./${locale}/index.ts`);
const message = defaultLocal.default?.message ?? {};
setHtmlPageLang(locale);
setLoadLocalePool((loadLocalePool) => {
loadLocalePool.push(locale);
});

View File

@ -3,7 +3,7 @@ import { Message } from '@arco-design/web-vue';
import dayjs from 'dayjs';
import { i18n } from '@/locale';
import { loadLocalePool, setHtmlPageLang } from '@/locale/helper';
import { loadLocalePool } from '@/locale/helper';
import type { LocaleType, Recordable } from '#/global';
@ -24,7 +24,6 @@ function setI18nLanguage(locale: LocaleType) {
(i18n.global.locale as any).value = locale;
}
localStorage.setItem('MS-locale', locale);
setHtmlPageLang(locale);
}
/**

View File

@ -155,7 +155,6 @@
.menu-item {
height: 38px;
line-height: 38px;
font-family: 'PingFang SC', AlibabaPuHuiTi;
}
}
}