[improvement] update basic icons (#2159)

This commit is contained in:
neverland
2018-11-27 16:20:30 +08:00
committed by GitHub
parent ae49bdc89d
commit 0c51c3c9e7
16 changed files with 195 additions and 140 deletions

View File

@@ -42,8 +42,8 @@
<slot name="right-icon">
<icon
v-if="isLink"
:class="b('right-icon', arrowDirection)"
name="arrow"
:class="b('right-icon')"
:name="arrowIcon"
/>
</slot>
<slot name="extra" />
@@ -84,6 +84,12 @@ export default create({
}
},
computed: {
arrowIcon() {
return this.arrowDirection ? `arrow-${this.arrowDirection}` : 'arrow';
}
},
methods: {
onClick() {
this.$emit('click');