feat: tree-select support showArrow (#4360)

pull/4417/head
zkwolf 2021-07-14 10:32:49 +08:00 committed by GitHub
parent 9b5a36186b
commit 72ca67b103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -141,7 +141,6 @@ const Select = {
{
prefixCls: 'rc-tree-select',
prefixAria: 'rc-tree-select',
showArrow: true,
showSearch: true,
autoClearSearchValue: true,
showCheckedStrategy: SHOW_CHILD,

View File

@ -186,15 +186,16 @@ const MultipleSelector = {
},
render() {
const { $slots } = this;
const { $slots, $props } = this;
const listeners = getListeners(this);
const { showArrow = false } = $props;
return (
<Selector
{...{
props: {
...this.$props,
showArrow,
tabIndex: -1,
showArrow: false,
renderSelection: this.renderSelection,
renderPlaceholder: this._renderPlaceholder,
},

View File

@ -42,9 +42,11 @@ const SingleSelector = {
},
render() {
const { showArrow = true } = this.$props;
const props = {
props: {
...getOptionProps(this),
showArrow,
renderSelection: this.renderSelection,
},
on: getListeners(this),