0.0.7 • Published 4 years ago

easy-element-suggest v0.0.7

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

说明

参数说明类型默认值
daoapi对象sbject-
api-path接口调用方法的路径string
query-param搜索内容对应的字段名string
extro-param额外的请求参数object
res-path其他搜索字段object
label各选项的显示哪些字段对应的文案,可自定义:用占位符“${}”拼接,如,"abc${name}_de${id}fg"string
disabled是否禁用boolean
placeholder对应option的labelstring
@change()选择某项后的回调,返回该条数据对应的所有内容function($event)
@focus()focus回调,返回事件对象function($event)

示例

<imp-suggest
    v-model="queryparam.agentUserId"
    :dao="$dao"
    :extro-param="{ limitSize: 20 }"
    :placeholder="`输入代理商${type === 'name' ? '' : '公司'}名称搜索...`"
    :query-param="type"
    api-path="activity.getAgentUser"
    res-path="data"
    unique-key="userId"
    label="${companyName}_${userName}"
    @change="queryparam.agentUserName = $event.userName;"
>
</imp-suggest>
0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago