Ant-design-vue: Select组件下拉框模式为multiple时,showArrow为true时,showArrow不生效,但是ant react版本是生效的

Created on 31 May 2019  ·  4Comments  ·  Source: vueComponent/ant-design-vue

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.9

Environment

Chrome latest verseion Vue2.6.10

Reproduction link

https://github.com/vueComponent/ant-design-vue.git

Steps to reproduce

  1. select组件multiple模式
  2. showArrow属性设置为true

What is expected?

showArrow为true 箭头应该出现

What is actually happening?

showArrow为true, 箭头没有出现

Accept bug question

Most helpful comment

1.4.0-beta.0 已经修复 可以直接使用

All 4 comments

js renderArrow(multiple) { const { showArrow, loading, prefixCls } = this.$props; const inputIcon = getComponentFromProp(this, 'inputIcon'); if (!showArrow) { return null; } // if loading have loading icon if (multiple && !loading) { return null; } const defaultIcon = loading ? ( <i class={`${prefixCls}-arrow-loading`} /> ) : ( <i class={`${prefixCls}-arrow-icon`} /> ); return ( <span key="arrow" class={`${prefixCls}-arrow`} style={UNSELECTABLE_STYLE} {...{ attrs: UNSELECTABLE_ATTRIBUTE }} onClick={this.onArrowClick} > {inputIcon || defaultIcon} </span> ); },
我看到代码里面是这样的,当为multiple模式时,直接return了null

I see the same issues. how did you resolved it?

1.4.0-beta.0 已经修复 可以直接使用

有修复吗 我1.6.5还是没有显示箭头

Was this page helpful?
0 / 5 - 0 ratings