UNPKG

@aliretail/react-materials-components

Version:
28 lines (23 loc) 2.88 kB
--- title: ServiceArea-API order: 1 category: UI description: ServiceArea 组件描述 screenshot: https://gw.alicdn.com/imgextra/i2/O1CN01yW3hCD1M8CnqeKFlq_!!6000000001389-2-tps-90-90.png --- 服务区域组件,针对商家变更封装区域展示组件 ## API | 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 | | ------------------ | ---------------------------------------------------------- | ---- | --------------- | ------------------------------------------ | --------------------------------------------------------------------------- | | value | 传进来的 code list | N | `Array<string>` | [] | | readOnly | 是否为只读状态 | N | boolean | false | | onChange | 选择区域弹窗确定时的更改事件 | N | func | 参数:list 代表当前所选的 code 数组 ()=>{} | | appCode | 应用名称 | Y | string | '' | | areaApi | 区域接口 api | N | string | 'list_town_cover_info' | | tableApi | 表格展示 api | N | string | 'render_region_guid' | | existApi | 已存在的服务区域 api | N | string | 'findRegionByCodes' | | areaApiUrl | 区域接口 api 完整 url, 填了的话优先级高于 areaApi | N | string | '' | | tableApiUrl | 表格展示 api 完整 url, 填了的话优先级高于 tableApi | N | string | '' | | existApiUrl | 已存在的服务区域 api 完整 url, 填了的话优先级高于 existApi | N | string | '' | | initValues | 区域选择回显数组 | N | array | 值为 code, name | [] | | extFetchListParams | 表格展示 api 所需参数 | N | object | {} | currentSelectedRegionCode: 当前值, lastSelectedRegionCode:已有的服务 code |