[Improvement] Cell: add arrow-direction prop (#1323)

* [Improvement] Cell: add arrow-direction prop

* update
This commit is contained in:
Fyerl
2018-06-28 08:27:24 +08:00
committed by neverland
parent 83ab9b1917
commit f5fc86f182
5 changed files with 23 additions and 3 deletions

View File

@@ -28,7 +28,7 @@
</slot>
</div>
<slot name="right-icon">
<icon v-if="isLink" :class="b('right-icon')" name="arrow" />
<icon v-if="isLink" :class="`${b('right-icon')} ${arrowDirection ? b(`arrow--${arrowDirection}`) : ''}`" name="arrow" />
</slot>
<slot name="extra" />
</div>
@@ -60,7 +60,8 @@ export default create({
border: {
type: Boolean,
default: true
}
},
arrowDirection: String
},
methods: {