(component): 补充 msg 案例说明

This commit is contained in:
就眠儀式
2022-10-14 22:09:17 +08:00
parent b4db47988b
commit 7057e4894f
3 changed files with 5 additions and 6 deletions

View File

@@ -22,9 +22,7 @@ const getStyle = computed<any>(() => {
let allChild = item.value.parentNode.children;
let allChildNum = allChild.length;
//当前的activeIndex
let activeIndex,
currentIndex = 0;
let activeIndex, currentIndex = 0;
for (let index = 0; index < allChild.length; index++) {
const element = allChild[index];
// @ts-ignore

View File

@@ -55,10 +55,11 @@ const changeLocales = (lang: string, locales: any, merge: boolean) => {
};
const changeTheme = (theme: string) => {
const defaultPartial: Partial<Theme> = {
mode: 1,
brightness: 100,
contrast: 80,
contrast: 90,
sepia: 0,
grayscale: 0,
};