UI标签库课题六:JEECG智能开发平台 Autocomplete(自动补全标签 )

UI标签库专题六:JEECG智能开发平台 Autocomplete(自动补全标签 )


1. Autocomplete(自动补全标签)

1.1.  参数

属性名

类型

描述

是否必须

默认值

name

string

控件唯一标示

null

minLength

string

触发提示文字长度

2

labelField

string

提示显示的字段

null

searchField

string

查询关键字字段

null

valueField

string

传递后台的字段

null

entityName

string

实体名称

null

selectfun

string

选中后调用的函数

null

label

string

传入显示值

null

value

string

传入隐藏域值

null

datatype

string

数据验证类型

null

nullmsg

string

数据为空时验证

null

errormsg

string

数据格式不对时验证

null

closefun

string

没有选择下拉项目的处理函数

null

1.2.  用法

<t:autocomplete selectfun="aa" closefun="close" valueField="id" searchField="userName" labelField="userName,realName" name="user" entityName="TSUser" datatype="*" nullmsg="请输入关键字" errormsg="数据不存在,请重新输入"></t:autocomplete>