Home Reference Source Repository
public class | source

InlinePicker

Extends:

react~Component → InlinePicker

內联选择器

Constructor Summary

Public Constructor
public

constructor(props: Object, context: Object)

构造函数

Method Summary

Public Methods
public

render(): *

Public Constructors

public constructor(props: Object, context: Object) source

构造函数

Params:

NameTypeAttributeDescription
props Object

组件所使用的属性

props.optionsList Object[] | string[] | number[]

进行选择的数据列表

props.labelName string
  • optional
  • default: 'name'

当可选择的数据列表的项是对象(obj)时,obj[labelName] 就是选择器显示的文案

props.nextName string
  • optional
  • default: 'childs'

某个列表项的下一个选择列表数据多对应的 key

props.selectedList number[]
  • optional

当前选中的数据列表项下标组成的数组

props.onChange function

选中某一个项时触发的函数回调

context Object

Public Methods

public render(): * source

Return:

*