Select

defaultProps

下拉框组件默认值

const defaultSelectProps = {
  allowClear: true,
  showSearch: true,
  placeholder: "请选择",
  optionFilterProp: "children",
  filterOption: (input, option) =>
    option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
};
1
2
3
4
5
6
7
8
上次更新: 9/23/2019, 10:45:38 AM