ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.12k stars 14.63k forks source link

[Feature Request] multi selector displays the contents of improvement #8086

Closed seamanm closed 7 years ago

seamanm commented 7 years ago

Existing Component

Yes

Component Name

Select

Description

选择器多选的时候,比如选择了10个或者20个item,边框会被撑得很大导致页面布局不协调。是否可以增加一个设置,比如当前有50个选项,用户选择了30个,就在文本框显示30/50即可,不需要把用户所选的都呈现出来。内容太多了。

element-bot commented 7 years ago

Translation of this issue:

Existing Component

Yes

Component Name

Select

Description

When the multi selector 10, such as 20 or item, the border will be holding up great cause the page layout is not harmonious. Whether you can add a setting, such as the current 50 options, the user selected 30, in the text box to display 30/50, you do not need to show the user selected. There's too much content.

Leopoldthecoder commented 7 years ago

I added an attribute collapse-tags in https://github.com/ElemeFE/element/pull/8190/commits/d99d3b34b53d94db0d9d0cf8506faa6ff0598585 .

image