Browse Source

fix: eslint rules

Sendya 6 years ago
parent
commit
9fb94ecc3f
3 changed files with 6 additions and 7 deletions
  1. 1 0
      package.json
  2. 2 4
      src/components/layout/LayoutMain.vue
  3. 3 3
      src/views/form/stepForm/StepForm.vue

+ 1 - 0
package.json

@@ -55,6 +55,7 @@
         }
       }],
       "vue/attribute-hyphenation": 0,
+      "vue/html-self-closing": 0,
       "no-console": 0
     }
   },

+ 2 - 4
src/components/layout/LayoutMain.vue

@@ -11,13 +11,11 @@
 
     <a-layout>
       <!-- layout header -->
-      <layout-header :collapsed="collapsed" @toggle="toggle">
-
-      </layout-header>
+      <layout-header :collapsed="collapsed" @toggle="toggle"/>
       <!-- layout content -->
       <a-layout-content :style="{ margin: '24px 24px 0', height: '100%' }">
         <!-- content -->
-        <slot></slot>
+        <slot/>
       </a-layout-content>
 
       <a-layout-footer style="padding: 0px">

+ 3 - 3
src/views/form/stepForm/StepForm.vue

@@ -6,9 +6,9 @@
       <a-step title="完成" />
     </a-steps>
     <div class="content">
-      <step1 v-if="currentTab === 0" @nextStep="nextStep"></step1>
-      <step2 v-if="currentTab === 1" @nextStep="nextStep" @prevStep="prevStep"></step2>
-      <step3 v-if="currentTab === 2" @prevStep="prevStep" @finish="finish"></step3>
+      <step1 v-if="currentTab === 0" @nextStep="nextStep"/>
+      <step2 v-if="currentTab === 1" @nextStep="nextStep" @prevStep="prevStep"/>
+      <step3 v-if="currentTab === 2" @prevStep="prevStep" @finish="finish"/>
     </div>
   </a-card>
 </template>