Skip to content

Commit 7dd5b7f

Browse files
committed
feat: tree-select support showArrow
1 parent 9b5a361 commit 7dd5b7f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

components/vc-tree-select/src/Select.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ const Select = {
141141
{
142142
prefixCls: 'rc-tree-select',
143143
prefixAria: 'rc-tree-select',
144-
showArrow: true,
145144
showSearch: true,
146145
autoClearSearchValue: true,
147146
showCheckedStrategy: SHOW_CHILD,

components/vc-tree-select/src/Selector/MultipleSelector/index.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,16 @@ const MultipleSelector = {
186186
},
187187

188188
render() {
189-
const { $slots } = this;
189+
const { $slots, $props } = this;
190190
const listeners = getListeners(this);
191+
const { showArrow = false } = $props;
191192
return (
192193
<Selector
193194
{...{
194195
props: {
195196
...this.$props,
197+
showArrow,
196198
tabIndex: -1,
197-
showArrow: false,
198199
renderSelection: this.renderSelection,
199200
renderPlaceholder: this._renderPlaceholder,
200201
},

components/vc-tree-select/src/Selector/SingleSelector.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ const SingleSelector = {
4242
},
4343

4444
render() {
45+
const { showArrow = true } = this.$props;
4546
const props = {
4647
props: {
4748
...getOptionProps(this),
49+
showArrow,
4850
renderSelection: this.renderSelection,
4951
},
5052
on: getListeners(this),

0 commit comments

Comments
 (0)