Browse Source

fix(button): template this #1008

richard1015 4 years ago
parent
commit
db72e36981
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/packages/button/button.vue

+ 2 - 2
src/packages/button/button.vue

@@ -1,7 +1,7 @@
 <template>
   <button :class="clsStyle" :disabled="disabled" @click="clickHandler">
-    <nut-icon class="txt-icon" v-if="icon != ''" :type="icon" :color="this.color"></nut-icon>
-    <span :style="{ color: this.color }">
+    <nut-icon class="txt-icon" v-if="icon != ''" :type="icon" :color="color"></nut-icon>
+    <span :style="{ color: color }">
       <slot></slot>
     </span>
   </button>