amis icon indicating copy to clipboard operation
amis copied to clipboard

form text autoComplete

Open icodingx opened this issue 7 years ago • 7 comments

在使用text 的 autoComplete时,本文本的值 怎么没有包含到请求参数内呢 ?

icodingx avatar Nov 18 '19 03:11 icodingx

${term} 用这个取,比如 autoComplete: "/api/xxx?term=${term}"

2betop avatar Nov 18 '19 03:11 2betop

请问有关于 AMis 的技术讨论群吗 ?

icodingx avatar Nov 18 '19 06:11 icodingx

@2betop 这个属性可以设置为 text 到指定长度后,再发请求吗?

icodingx avatar Nov 27 '19 10:11 icodingx

目前不支持,加入下个版本计划

2betop avatar Nov 27 '19 10:11 2betop

@2betop 1.0.6 预计什么时候 发布呢?还有,API可以设置参数为空时不发请求吗?

icodingx avatar Dec 03 '19 11:12 icodingx

着急先用这个版本 [email protected],支持以下配置实现你的需求。

autoCompelte: {
   method: "get",
   url: 'xxxx',
   sendOn: 'this.term && this.term.length > 2'
}

当有输入值,且大于2个字符时发送请求。

2betop avatar Dec 03 '19 12:12 2betop

发布了正式版本,所以先关了

2betop avatar Dec 09 '19 14:12 2betop