amis
amis copied to clipboard
普通下拉能否点击时再请求数据
实现场景:
下拉数据远程拉取。能不能在点击下拉的时候再发送请求
存在的问题:
数据量大的时候会一直转圈卡顿
当前方案:
{
"type": "select",
"className": "m-l",
"label": "下单渠道:",
"name": "channelKey",
"placeholder": "请选择",
"size": "md",
"clearable": true,
"searchable": true,
"source":"get:/amis/options/getChannelListByLevel?level=2",
},
你可以用 autoComplete 来试试看
可以,感觉比source的方式要好很多,但是如果能指定他啥时候加载,给个事件之类的就更加完美了