Commit 4e8daedc by 胡悦

修改下拉框样式

1 parent 392671b7
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditTime: 2023-07-14 16:25:16
* @LastEditTime: 2023-07-14 16:49:50
* @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @Description: 页面头部组件
-->
......@@ -69,9 +69,6 @@ export default {
},
mounted() {
this.timer()
console.log(this.dataList)
// this.merchantList = utils.deepClone(this.dataList)
console.log(this.merchantList, '=-===')
},
methods: {
timer() {
......@@ -84,7 +81,6 @@ export default {
},
// 监听子菜单变化
selectVal(val) {
console.log(val)
this.firstTab = val
this.$bus.$emit('selectVal', val.value)
this.openSelect()
......@@ -110,7 +106,6 @@ export default {
// }
// ]
this.merchantList = []
this.$bus.$emit('searchEmpty')
},
handleInput: utils.throttle(function(e) {
this.searchMerchant()
......@@ -242,4 +237,9 @@ export default {
.search-empty {
text-align: center;
}
input:focus-visible {
border: 1px solid;
outline-offset: -4vh;
border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1 !important;
}
</style>
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-05 15:11:53
* @LastEditors: huyue
* @LastEditTime: 2023-07-14 16:20:13
* @LastEditTime: 2023-07-14 16:34:42
-->
<template>
<div v-click-outside="handleClickOutside" @mouseleave="handleMouseLeave" v-show="isShow" class="select-box" :style="{'width': boxWidth}">
......@@ -76,14 +76,7 @@ export default {
},
mounted() {
const { valueName, isObject, dataList, defaultValue } = this
console.log(valueName, isObject, dataList, defaultValue)
this.value = defaultValue || (isObject ? dataList[0][valueName] : dataList[0])
// console.log(this.value, (isObject ? item[valueName] : item) == value)
dataList.forEach(item => {
console.log(isObject ? item[valueName] : item)
})
// const { valueName, isObject, dataList } = this
// this.value = isObject ? dataList[0][valueName] : dataList[0]
},
methods: {
select(item) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!