Blame view

src/components/transfer/operation.vue 1.02 KB
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">
a61acfdc   梁灏   update Transfer i...
4
              <Icon type="ios-arrow-back"></Icon> <span>{{ operations[0] }}</span>
77f7bb95   梁灏   add Transfer comp...
5
          </i-button>
5b19b5f5   梁灏   support Transfer
6
          <i-button type="primary" size="small" :disabled="!leftActive" @click.native="moveToRight">
a61acfdc   梁灏   update Transfer i...
7
              <span>{{ operations[1] }}</span> <Icon type="ios-arrow-forward"></Icon>
77f7bb95   梁灏   add Transfer comp...
8
9
10
11
12
13
14
15
          </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>