浏览代码

feat(button): use taro button (#918)

* feat(button): use taro button
安泊尔 3 年之前
父节点
当前提交
9bb328db54
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 3 0
      src/packages/__VUE/button/index.scss
  2. 2 2
      src/packages/__VUE/button/index.taro.vue

+ 3 - 0
src/packages/__VUE/button/index.scss

@@ -34,6 +34,9 @@
     opacity: 0;
     content: ' ';
   }
+  &::after {
+    border: none;
+  }
   &:active::before {
     opacity: 0.1;
   }

+ 2 - 2
src/packages/__VUE/button/index.taro.vue

@@ -1,5 +1,5 @@
 <template>
-  <view :class="classes" :style="getStyle" @click="handleClick">
+  <button :class="classes" :style="getStyle" @click="handleClick">
     <view class="nut-button__warp">
       <nut-icon class="nut-icon-loading" v-if="loading"></nut-icon>
       <nut-icon :class="icon" v-if="icon && !loading" :name="icon"></nut-icon>
@@ -7,7 +7,7 @@
         <slot></slot>
       </view>
     </view>
-  </view>
+  </button>
 </template>
 
 <script lang="ts">