update
This commit is contained in:
parent
2a3262456d
commit
3288b53099
3 changed files with 22 additions and 31 deletions
|
@ -1,25 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<Dropdown transfer>
|
<Dropdown trigger="click" style="margin-left: 20px">
|
||||||
<a href="javascript:void(0)">
|
<a href="javascript:void(0)">
|
||||||
北京小吃
|
click 触发
|
||||||
<Icon type="arrow-down-b"></Icon>
|
<Icon type="arrow-down-b"></Icon>
|
||||||
</a>
|
</a>
|
||||||
<Dropdown-menu slot="list">
|
<DropdownMenu slot="list">
|
||||||
<Dropdown-item>驴打滚</Dropdown-item>
|
<DropdownItem>驴打滚</DropdownItem>
|
||||||
<Dropdown-item>炸酱面</Dropdown-item>
|
<DropdownItem>炸酱面</DropdownItem>
|
||||||
<Dropdown-item>豆汁儿</Dropdown-item>
|
<DropdownItem>豆汁儿</DropdownItem>
|
||||||
<Dropdown placement="right-start" transfer>
|
<DropdownItem>冰糖葫芦</DropdownItem>
|
||||||
<Dropdown-item>
|
<DropdownItem>北京烤鸭</DropdownItem>
|
||||||
北京烤鸭
|
</DropdownMenu>
|
||||||
<Icon type="ios-arrow-right"></Icon>
|
|
||||||
</Dropdown-item>
|
|
||||||
<Dropdown-menu slot="list">
|
|
||||||
<Dropdown-item>挂炉烤鸭</Dropdown-item>
|
|
||||||
<Dropdown-item>焖炉烤鸭</Dropdown-item>
|
|
||||||
</Dropdown-menu>
|
|
||||||
</Dropdown>
|
|
||||||
<Dropdown-item>冰糖葫芦</Dropdown-item>
|
|
||||||
</Dropdown-menu>
|
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -220,7 +220,7 @@
|
||||||
}
|
}
|
||||||
getSelections(this.data);
|
getSelections(this.data);
|
||||||
selections = selections.filter(item => {
|
selections = selections.filter(item => {
|
||||||
return item.label ? item.label.indexOf(this.query) > -1 : false
|
return item.label ? item.label.indexOf(this.query) > -1 : false;
|
||||||
}).map(item => {
|
}).map(item => {
|
||||||
item.display = item.display.replace(new RegExp(this.query, 'g'), `<span>${this.query}</span>`);
|
item.display = item.display.replace(new RegExp(this.query, 'g'), `<span>${this.query}</span>`);
|
||||||
return item;
|
return item;
|
||||||
|
|
Loading…
Add table
Reference in a new issue