2019-01-12 03:33:27 +00:00
|
|
|
import PropTypes from '../_util/vue-types';
|
2018-02-06 11:00:34 +00:00
|
|
|
|
|
|
|
export const SelectPropTypes = {
|
|
|
|
defaultActiveFirstOption: PropTypes.bool,
|
|
|
|
multiple: PropTypes.bool,
|
|
|
|
filterOption: PropTypes.any,
|
|
|
|
// children: PropTypes.any,
|
|
|
|
showSearch: PropTypes.bool,
|
|
|
|
disabled: PropTypes.bool,
|
|
|
|
allowClear: PropTypes.bool,
|
|
|
|
showArrow: PropTypes.bool,
|
|
|
|
tags: PropTypes.bool,
|
|
|
|
prefixCls: PropTypes.string,
|
|
|
|
// className: PropTypes.string,
|
|
|
|
transitionName: PropTypes.string,
|
|
|
|
optionLabelProp: PropTypes.string,
|
|
|
|
optionFilterProp: PropTypes.string,
|
|
|
|
animation: PropTypes.string,
|
|
|
|
choiceTransitionName: PropTypes.string,
|
2018-11-09 06:23:19 +00:00
|
|
|
open: PropTypes.bool,
|
|
|
|
defaultOpen: PropTypes.bool,
|
2018-02-06 11:00:34 +00:00
|
|
|
// onChange: PropTypes.func,
|
|
|
|
// onBlur: PropTypes.func,
|
|
|
|
// onFocus: PropTypes.func,
|
|
|
|
// onSelect: PropTypes.func,
|
|
|
|
// onSearch: PropTypes.func,
|
|
|
|
// onPopupScroll: PropTypes.func,
|
|
|
|
// onMouseEnter: PropTypes.func,
|
|
|
|
// onMouseLeave: PropTypes.func,
|
|
|
|
// onInputKeyDown: PropTypes.func,
|
|
|
|
placeholder: PropTypes.any,
|
|
|
|
// onDeselect: PropTypes.func,
|
|
|
|
labelInValue: PropTypes.bool,
|
2019-01-04 15:00:09 +00:00
|
|
|
loading: PropTypes.bool,
|
2018-02-07 10:56:58 +00:00
|
|
|
value: PropTypes.any,
|
|
|
|
defaultValue: PropTypes.any,
|
2018-02-06 11:00:34 +00:00
|
|
|
dropdownStyle: PropTypes.object,
|
2018-02-28 11:07:04 +00:00
|
|
|
dropdownClassName: PropTypes.string,
|
2018-02-06 11:00:34 +00:00
|
|
|
maxTagTextLength: PropTypes.number,
|
|
|
|
maxTagCount: PropTypes.number,
|
2018-02-27 11:08:49 +00:00
|
|
|
maxTagPlaceholder: PropTypes.any,
|
2018-02-06 11:00:34 +00:00
|
|
|
tokenSeparators: PropTypes.arrayOf(PropTypes.string),
|
|
|
|
getInputElement: PropTypes.func,
|
|
|
|
showAction: PropTypes.arrayOf(PropTypes.string),
|
2020-07-17 09:36:58 +00:00
|
|
|
autofocus: PropTypes.bool,
|
2018-07-01 09:12:24 +00:00
|
|
|
getPopupContainer: PropTypes.func,
|
2018-11-09 06:23:19 +00:00
|
|
|
clearIcon: PropTypes.any,
|
|
|
|
inputIcon: PropTypes.any,
|
|
|
|
removeIcon: PropTypes.any,
|
|
|
|
menuItemSelectedIcon: PropTypes.any,
|
2019-01-04 15:00:09 +00:00
|
|
|
dropdownRender: PropTypes.func,
|
|
|
|
mode: PropTypes.oneOf(['multiple', 'tags']),
|
|
|
|
backfill: PropTypes.bool,
|
|
|
|
dropdownAlign: PropTypes.any,
|
|
|
|
dropdownMatchSelectWidth: PropTypes.bool,
|
|
|
|
dropdownMenuStyle: PropTypes.object,
|
|
|
|
notFoundContent: PropTypes.oneOfType([String, Number]),
|
2020-07-17 09:13:30 +00:00
|
|
|
tabindex: PropTypes.oneOfType([String, Number]),
|
2020-06-28 15:11:31 +00:00
|
|
|
__propsSymbol__: PropTypes.any,
|
|
|
|
children: PropTypes.array,
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|