We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aef517d commit db72e36Copy full SHA for db72e36
src/packages/button/button.vue
@@ -1,7 +1,7 @@
1
<template>
2
<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 }">
+ <nut-icon class="txt-icon" v-if="icon != ''" :type="icon" :color="color"></nut-icon>
+ <span :style="{ color: color }">
5
<slot></slot>
6
</span>
7
</button>
0 commit comments