提交 5036c94c 编写于 作者: KK's avatar KK

样式调整

上级 23483c6d
<template> <template>
<van-dropdown-menu active-color="#ee0a24" :class="showTitle === title?'':'dropdown-menu-ative'" class="dropdown-menu"> <van-dropdown-menu active-color="#323233" :class="showTitle === title?'':'dropdown-menu-ative'" class="dropdown-menu">
<van-dropdown-item :title="showTitle" ref="item" > <van-dropdown-item :title="showTitle" ref="item" >
<div class="dropdown-box"> <div class="dropdown-box">
<div v-for="(item,index) in items" :key="index" class="dropdown-item" @click="itemClick(item)"> <div v-for="(item,index) in items" :key="index" class="dropdown-item" @click="itemClick(item)">
...@@ -111,7 +111,9 @@ export default class AppVanSelect extends Vue { ...@@ -111,7 +111,9 @@ export default class AppVanSelect extends Vue {
* @memberof AppVanMenu * @memberof AppVanMenu
*/ */
public onConfirm() { public onConfirm() {
if(this.selectItem.label){
this.showTitle = this.selectItem.label; this.showTitle = this.selectItem.label;
}
this.closeDropdown(); this.closeDropdown();
} }
...@@ -147,6 +149,7 @@ export default class AppVanSelect extends Vue { ...@@ -147,6 +149,7 @@ export default class AppVanSelect extends Vue {
border: solid #ccc 1px; border: solid #ccc 1px;
border-radius: 30px; border-radius: 30px;
margin: 5px; margin: 5px;
background: #f2f2f2;
.van-ellipsis { .van-ellipsis {
padding-right: 15px; padding-right: 15px;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册