浏览代码

fix(button): template this #1008

richard1015 4 年之前
父节点
当前提交
db72e36981
共有 1 个文件被更改,包括 2 次插入2 次删除
  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>