fix(查询组件): 修改边框颜色,文本搜索的边框颜色没生效

This commit is contained in:
dataeaseShu 2025-02-12 10:38:12 +08:00 committed by fit2cloud-chenyw
parent 53b0a9a89d
commit ebc546b045

View File

@ -82,7 +82,7 @@ onBeforeMount(() => {
setParams()
})
const queryConditionWidth = inject('com-width', Function, true)
const customStyle = inject<{ background: string }>('$custom-style-filter')
const customStyle = inject<{ background: string; border: string }>('$custom-style-filter')
const isConfirmSearch = inject('is-confirm-search', Function, true)
const getCustomWidth = () => {
@ -106,7 +106,7 @@ const handleValueChange = () => {
}
}
const lineWidth = computed(() => {
return { width: getCustomWidth() - 15 + 'px' }
return { width: getCustomWidth() - 15 + 'px', background: customStyle.border }
})
const handleKeyEnter = () => {