77f7bb95
梁灏
add Transfer comp...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<template>
<div :class="prefixCls + '-operation'">
<i-button type="primary" size="small" :disabled="!rightActive" @click="moveToLeft">
<Icon type="ios-arrow-left"></Icon> {{ operations[0] }}
</i-button>
<i-button type="primary" size="small" :disabled="!leftActive" @click="moveToRight">
{{ operations[1] }} <Icon type="ios-arrow-right"></Icon>
</i-button>
</div>
</template>
<script>
import iButton from '../button/button.vue';
import Icon from '../icon/icon.vue';
export default {
|
77f7bb95
梁灏
add Transfer comp...
|
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
props: {
prefixCls: String,
operations: Array,
leftActive: Boolean,
rightActive: Boolean
},
methods: {
moveToLeft () {
this.$parent.moveTo('left');
},
moveToRight () {
this.$parent.moveTo('right');
}
}
|