UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

54 lines (53 loc) 2.53 kB
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import PropTypes, { withUndefined } from '../_util/vue-types'; import { SelectProps } from '../select'; import { tuple } from '../_util/type'; export var TreeData = PropTypes.shape({ key: PropTypes.string, value: PropTypes.string, label: PropTypes.VNodeChild, slots: PropTypes.object, children: PropTypes.array }).loose; export var TreeSelectProps = function TreeSelectProps() { return _extends(_extends({}, SelectProps()), { autofocus: PropTypes.looseBool, dropdownStyle: PropTypes.object, filterTreeNode: withUndefined(PropTypes.oneOfType([Function, Boolean])), getPopupContainer: PropTypes.func, labelInValue: PropTypes.looseBool, loadData: PropTypes.func, maxTagCount: PropTypes.number, maxTagPlaceholder: PropTypes.VNodeChild, value: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array, PropTypes.number]), defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array, PropTypes.number]), multiple: PropTypes.looseBool, notFoundContent: PropTypes.VNodeChild, searchPlaceholder: PropTypes.string, searchValue: PropTypes.string, showCheckedStrategy: PropTypes.oneOf(tuple('SHOW_ALL', 'SHOW_PARENT', 'SHOW_CHILD')), suffixIcon: PropTypes.VNodeChild, treeCheckable: PropTypes.looseBool, treeCheckStrictly: PropTypes.looseBool, treeData: PropTypes.arrayOf(Object), treeDataSimpleMode: withUndefined(PropTypes.oneOfType([PropTypes.looseBool, Object])), dropdownClassName: PropTypes.string, dropdownMatchSelectWidth: PropTypes.looseBool, treeDefaultExpandAll: PropTypes.looseBool, treeExpandedKeys: PropTypes.array, treeIcon: PropTypes.looseBool, treeDefaultExpandedKeys: PropTypes.array, treeNodeFilterProp: PropTypes.string, treeNodeLabelProp: PropTypes.string, replaceFields: PropTypes.object.def({}), clearIcon: PropTypes.VNodeChild, removeIcon: PropTypes.VNodeChild, onSelect: PropTypes.func, onChange: PropTypes.func, onSearch: PropTypes.func, onTreeExpand: PropTypes.func, 'onUpdate:treeExpandedKeys': PropTypes.func, 'onUpdate:searchValue': PropTypes.func, 'onUpdate:value': PropTypes.func }); };