Blame view

src/components/transfer/operation.vue 977 Bytes
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 {
53f5de96   诗人的咸鱼   Update operation.vue
16
          components: { iButton, Icon },
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');
              }
          }
b0893113   jingsam   :art: add eslint
31
      };
53f5de96   诗人的咸鱼   Update operation.vue
32
  </script>