소스 검색

fix: props 定义默认值拼写错误 defualt => default (#2362)

* fix: props 初始化拼写错误 defualt => default

* fix: props 定义默认值拼写错误 defualt => default

Co-authored-by: 苗大 <caoshengmiao@hypergryph.com>
Wit〆苗大 2 년 전
부모
커밋
6fa35521b7
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/layouts/default/setting/components/ThemeColorPicker.vue
  2. 1 1
      src/layouts/default/setting/components/TypePicker.vue

+ 1 - 1
src/layouts/default/setting/components/ThemeColorPicker.vue

@@ -31,7 +31,7 @@
     props: {
       colorList: {
         type: Array as PropType<string[]>,
-        defualt: [],
+        default: () => [],
       },
       event: {
         type: Number as PropType<HandlerEnum>,

+ 1 - 1
src/layouts/default/setting/components/TypePicker.vue

@@ -31,7 +31,7 @@
     props: {
       menuTypeList: {
         type: Array as PropType<typeof menuTypeList>,
-        defualt: () => [],
+        default: () => [],
       },
       handler: {
         type: Function as PropType<Fn>,