Skip to content

Commit db72e36

Browse files
committed
fix(button): template this #1008
1 parent aef517d commit db72e36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packages/button/button.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<button :class="clsStyle" :disabled="disabled" @click="clickHandler">
3-
<nut-icon class="txt-icon" v-if="icon != ''" :type="icon" :color="this.color"></nut-icon>
4-
<span :style="{ color: this.color }">
3+
<nut-icon class="txt-icon" v-if="icon != ''" :type="icon" :color="color"></nut-icon>
4+
<span :style="{ color: color }">
55
<slot></slot>
66
</span>
77
</button>

0 commit comments

Comments
 (0)