mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[improvement] update basic icons (#2159)
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user