mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-29 22:14:49 +08:00
42 lines
914 B
Markdown
42 lines
914 B
Markdown
---
|
|
layout: templateLayout
|
|
---
|
|
```vue
|
|
<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>
|
|
``` |