Skip to content

Commit

Permalink
debug: demo
Browse files Browse the repository at this point in the history
  • Loading branch information
pcloth committed Jun 4, 2024
1 parent b9560c5 commit 80c39a5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions examples/pages/zh-CN/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,36 @@ export default {
},
],
ipageProps:{
searchItems:[
{
id:'test',
slot:'select-more',
props:{
service:async (params)=>{
return new Promise((resolve)=>{
console.log(params, "params");
const data = []
for(let i=0;i<this.count*10;i++){
data.push({
label: "label-"+i,
value: "value-"+i,
})
}
setTimeout(()=>{
resolve({
data:{
records:data,
total:this.count*10
},
})
},5000)
})
},
}
}
],
searchProps:{
queryFunc:async (params)=>{
console.log(params, "params");
Expand Down

0 comments on commit 80c39a5

Please sign in to comment.