浏览代码

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: {