소스 검색

chore: 规范`menuArrowIconNoTransition` 写法

xiaoxian521 2 년 전
부모
커밋
12db42892d
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      public/serverConfig.json
  2. 1 1
      src/layout/components/sidebar/sidebarItem.vue
  3. 1 1
      types/global.d.ts

+ 1 - 1
public/serverConfig.json

@@ -16,7 +16,7 @@
   "EpThemeColor": "#409EFF",
   "ShowLogo": true,
   "ShowModel": "smart",
-  "menuArrowIconNoTransition": false,
+  "MenuArrowIconNoTransition": false,
   "MapConfigure": {
     "amapKey": "97b3248d1553172e81f168cf94ea667e",
     "options": {

+ 1 - 1
src/layout/components/sidebar/sidebarItem.vue

@@ -78,7 +78,7 @@ const getSpanStyle = computed(() => {
 });
 
 const expandCloseIcon = computed(() => {
-  return getConfig()?.menuArrowIconNoTransition ? "expand-close-icon" : "";
+  return getConfig()?.MenuArrowIconNoTransition ? "expand-close-icon" : "";
 });
 
 const onlyOneChild: childrenType = ref(null);

+ 1 - 1
types/global.d.ts

@@ -110,7 +110,7 @@ declare global {
     EpThemeColor?: string;
     ShowLogo?: boolean;
     ShowModel?: string;
-    menuArrowIconNoTransition?: boolean;
+    MenuArrowIconNoTransition?: boolean;
     MapConfigure?: {
       amapKey?: string;
       options: {