TerryZ / v-selectmenu

SelectMenu for Vuejs, A simple, easier and highly customized menu solution
https://terryz.github.io/docs-vue/#/selectmenu
MIT License
187 stars 25 forks source link

Setting regular to true doesn't respect key-field or show-field #18

Closed rlightner closed 5 years ago

TerryZ commented 5 years ago

image

Please checkout the code in v-selectmenu offical site, the regular menu is using fixed data format:

[
    {content:'163 NetEase',url : 'http://www.163.com'},
    {content:'Sina',disabled: true, url : 'http://www.sina.com'},
    {content:'sm_divider'},
    {content:'<i class="fa fa-fw fa-github"></i> GitHub',url : 'https://github.com'},
    {content:'callback',callback : function(){ alert('clicked!'); },
    {...}
]
TerryZ commented 5 years ago

show-field, key-field option only work on advanced mode.

rlightner commented 5 years ago

Can I ask why it couldn't support show-field and key-field? Something you would accept a pull request on?

TerryZ commented 5 years ago

Because regular mode have different rendering methods with advanced mode.

asalgan commented 4 years ago

@TerryZ I'm trying to use the show-field on an advanced menu and it isn't working. When I select an option it doesn't show up in the menu as the selected option, it remains blank, any ideas as to why?