Commit 696bcf2c by Jings

fix: 头部导航商铺选择下拉样式修改

parent 336c1b46
...@@ -9,9 +9,14 @@ ...@@ -9,9 +9,14 @@
<div class="store-list"> <div class="store-list">
<el-dropdown-item v-for="el in storeList" :key="el.enterpriseId" :class="['store-item', { actived: el.enterpriseId == activedStoreId }]" :command="el.enterpriseId"> <el-dropdown-item v-for="el in storeList" :key="el.enterpriseId" :class="['store-item', { actived: el.enterpriseId == activedStoreId }]" :command="el.enterpriseId">
<div> <div>
<div class="store-name">{{ el.brandName }}</div> <!-- <div class="store-name">{{ el.brandName }}</div>
<div class="default-store-tag" v-if="el.defaultFlag == 1">默认商户</div> -->
<div class="dis_f ai_c">
<div class="store-name txt_ellipsis" :class="[el.defaultFlag == 1 ? 'maxW_170' : 'maxW_250']">{{ el.brandName }}</div>
<div class="default-store-tag" v-if="el.defaultFlag == 1">默认商户</div> <div class="default-store-tag" v-if="el.defaultFlag == 1">默认商户</div>
</div> </div>
<div class="txt_ellipsis maxW_250 FS_12">{{ el.enterpriseName }}</div>
</div>
<i class="el-icon-check checked" v-if="el.enterpriseId == activedStoreId"></i> <i class="el-icon-check checked" v-if="el.enterpriseId == activedStoreId"></i>
</el-dropdown-item> </el-dropdown-item>
</div> </div>
...@@ -123,6 +128,26 @@ export default { ...@@ -123,6 +128,26 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.FS_12 {
font-size: 12px;
}
.maxW_170 {
max-width: 170px;
}
.maxW_250 {
max-width: 250px;
}
.txt_ellipsis {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.dis_f {
display: flex;
}
.ai_c {
align-items: center;
}
.change-store-btn { .change-store-btn {
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -171,7 +196,8 @@ export default { ...@@ -171,7 +196,8 @@ export default {
<style lang="scss"> <style lang="scss">
.change-store-popper { .change-store-popper {
padding: 7px 0 0 !important; padding: 7px 0 0 !important;
width: 200px; /* width: 200px; */
width: 300px;
box-sizing: border-box; box-sizing: border-box;
.el-dropdown-menu__item { .el-dropdown-menu__item {
padding: 0; padding: 0;
...@@ -202,12 +228,14 @@ export default { ...@@ -202,12 +228,14 @@ export default {
background: #f7f8fa; background: #f7f8fa;
} }
.store-name { .store-name {
margin-right: 5px;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #303133; color: #303133;
line-height: 20px; line-height: 20px;
} }
.default-store-tag { .default-store-tag {
padding: 0 4px;
height: 18px; height: 18px;
text-align: center; text-align: center;
line-height: 18px; line-height: 18px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment