@aliretail/react-materials-components
Version:
30 lines (24 loc) • 1.21 kB
Markdown
title: CommoditySelector-API
order: 1
category: UI
description: 用于所添加商品的展示及查询
screenshot: https://gw.alicdn.com/imgextra/i2/O1CN01yW3hCD1M8CnqeKFlq_!!6000000001389-2-tps-90-90.png
# 商品选择器
用于所添加商品的展示及查询
## API
| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
| ------ | ---- | ---- | ---- | ------ | ---- |
| appCode | 应用名称 | Y | string | | |
| apiCode | API Code | Y | string | | |
| onChange | 获取选择器数据 | N | function | | 选择item后的确认操作 |
| title | 弹窗标题 | N | string | 添加商品 | |
| width | 弹窗宽度 | N | string | | |
| selectEls | 下拉框选项 | N | array | | |
| inputDefaultValue | input输入框defaultValue | N | string | | |
| selectDefaultValue | select选择defaultValue | N | number | | |
| placeholder | input占位 | N | string | | |
| isPreview | 是否只读 | N | boolean | false | |
| hidden | 是否隐藏 | N | boolean | false | |
| value | 编辑状态默认选择 | N | array | | |