mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
34 lines
528 B
Vue
34 lines
528 B
Vue
|
<template>
|
||
|
<el-transfer
|
||
|
v-model="value"
|
||
|
:props="{
|
||
|
key: 'value',
|
||
|
label: 'desc',
|
||
|
}"
|
||
|
:data="data"
|
||
|
>
|
||
|
</el-transfer>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
export default {
|
||
|
data() {
|
||
|
const generateData = (_) => {
|
||
|
const data = []
|
||
|
for (let i = 1; i <= 15; i++) {
|
||
|
data.push({
|
||
|
value: i,
|
||
|
desc: `Option ${i}`,
|
||
|
disabled: i % 4 === 0,
|
||
|
})
|
||
|
}
|
||
|
return data
|
||
|
}
|
||
|
return {
|
||
|
data: generateData(),
|
||
|
value: [],
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
</script>
|