【类 型】:fix 移动端的下拉选择框 屏蔽输入搜索功能
【原 因】:移动端 搜索输入不方便 【过 程】: 【影 响】:
This commit is contained in:
parent
a03cf8b27b
commit
629ed8c45d
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-select v-model="form.path" filterable placeholder="'请选择,也可输入搜索'" @input="updatePath">
|
||||
<el-select v-model="form.path" :filterable="isMobile" placeholder="'请选择,也可输入搜索'" @input="updatePath">
|
||||
<el-option v-if="allSel === true" label="所有分类" value="">
|
||||
<el-avatar class="vm f-s-12" shape="square" :size="25"> all </el-avatar>
|
||||
<span class="m-l-15">所有分类</span>
|
||||
@ -44,6 +44,12 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
/**
|
||||
* @description: 终端平台是否是pc
|
||||
*/
|
||||
isMobile () {
|
||||
return this.$store.state.app.isMobile
|
||||
},
|
||||
// 获取分类列表
|
||||
categoryList () {
|
||||
return this.$store.state.categoryList
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-select v-model="form.shop_id" filterable :placeholder="allSel === true ? '所有商铺' : '请选择,也可输入搜索'"
|
||||
<el-select v-model="form.shop_id" :filterable="isMobile" :placeholder="allSel === true ? '所有商铺' : '请选择,也可输入搜索'"
|
||||
@input="updateShopId">
|
||||
<el-option v-if="allSel === true && shopList.length > 1" label="所有商铺" value="">
|
||||
<el-avatar class="vm f-s-12" shape="square" :size="25"> all </el-avatar>
|
||||
@ -35,6 +35,12 @@ export default {
|
||||
// 获取商铺列表
|
||||
shopList () {
|
||||
return this.$store.state.shopList
|
||||
},
|
||||
/**
|
||||
* @description: 终端平台是否是pc
|
||||
*/
|
||||
isMobile () {
|
||||
return this.$store.state.app.isMobile
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
Loading…
Reference in New Issue
Block a user