mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
914 B
914 B
layout |
---|
templateLayout |
<template>
<Wb-select v-model="value4" :options="arr" options-value-name="value" options-text-name="text" filterable @on-change="change">
</Wb-select>
</template>
<script>
export default {
data() {
return {
value4: '',
arr: []
}
},
mounted () {
setTimeout(() => {
let i = 0;
this.arr = [];
while (i < 10000) {
this.arr.push({
value: i,
text: `option${i}`
})
i++;
}
}, 1000);
},
methods: {
search(value){
setTimeout(()=>{
this.options = [];
for(let i=1; i< 10; i++){
this.options.push(value + '|' + i)
}
}, 500)
}
}
}
</script>