<template>
  <div class="demo-transfer-alias">
    <ui-transfer
      v-model="value"
      :keymap="{
        label: 'desc',
        key: 'value',
      }"
      :data="data"></ui-transfer>
  </div>
</template>
<script>
import { Transfer } from "amumu-ui"

export default {
  components: {
    "ui-transfer": Transfer,
  },
  data() {
    const generateData = _ => {
      const data = []
      for (let i = 1; i <= 15; i++) {
        data.push({
          value: i,
          desc: `备选项 ${i}`,
          disabled: i % 4 === 0,
        })
      }
      return data
    }

    return {
      data: generateData(),
      value: [1, 4],
    }
  },
}
</script>
