Blame view

src/components/transfer/operation.vue 1018 Bytes
77f7bb95   梁灏   add Transfer comp...
1
2
  <template>
      <div :class="prefixCls + '-operation'">
5b19b5f5   梁灏   support Transfer
3
          <i-button type="primary" size="small" :disabled="!rightActive" @click.native="moveToLeft">
77f7bb95   梁灏   add Transfer comp...
4
5
              <Icon type="ios-arrow-left"></Icon> {{ operations[0] }}
          </i-button>
5b19b5f5   梁灏   support Transfer
6
          <i-button type="primary" size="small" :disabled="!leftActive" @click.native="moveToRight">
77f7bb95   梁灏   add Transfer comp...
7
8
9
10
11
12
13
14
15
              {{ 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 {
5b19b5f5   梁灏   support Transfer
16
          name: 'Operation',
53f5de96   诗人的咸鱼   Update operation.vue
17
          components: { iButton, Icon },
77f7bb95   梁灏   add Transfer comp...
18
19
20
21
22
23
24
25
26
27
28
29
30
31
          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
32
      };
53f5de96   诗人的咸鱼   Update operation.vue
33
  </script>