ant-design-vue/components/vc-select/PropTypes.js

45 lines
1.4 KiB
JavaScript
Raw Normal View History

2018-02-06 11:00:34 +00:00
import PropTypes from '../_util/vue-types'
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,
// 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,
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,
maxTagTextLength: PropTypes.number,
maxTagCount: PropTypes.number,
maxTagPlaceholder: PropTypes.oneOfType([
PropTypes.node,
PropTypes.func,
]),
tokenSeparators: PropTypes.arrayOf(PropTypes.string),
getInputElement: PropTypes.func,
showAction: PropTypes.arrayOf(PropTypes.string),
}