forked from github/dataease
Merge pull request #12547 from dataease/pr@dev-v2_st
fix(查询组件): 文本下拉、数字下拉字体大小未变化
This commit is contained in:
commit
6437a6f68a
@ -185,6 +185,9 @@ const setCustomStyle = val => {
|
|||||||
'--ed-component-size',
|
'--ed-component-size',
|
||||||
`${customStyle.placeholderSize + 18}px`
|
`${customStyle.placeholderSize + 18}px`
|
||||||
)
|
)
|
||||||
|
vQueryRef.value.querySelectorAll('.ed-tag').forEach(ele => {
|
||||||
|
ele.style.setProperty('--ed-tag-font-size', `${customStyle.placeholderSize}px`)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
customStyle.placeholder = placeholder ?? '请选择'
|
customStyle.placeholder = placeholder ?? '请选择'
|
||||||
customStyle.titleShow = titleShow
|
customStyle.titleShow = titleShow
|
||||||
@ -495,6 +498,10 @@ watch(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const boxWidth = computed(() => {
|
||||||
|
return `${customStyle.placeholderSize}px`
|
||||||
|
})
|
||||||
|
|
||||||
const queryData = () => {
|
const queryData = () => {
|
||||||
let requiredName = ''
|
let requiredName = ''
|
||||||
const emitterList = (element.value.propValue || []).reduce((pre, next) => {
|
const emitterList = (element.value.propValue || []).reduce((pre, next) => {
|
||||||
@ -711,6 +718,14 @@ const autoStyle = computed(() => {
|
|||||||
position: relative;
|
position: relative;
|
||||||
--ed-font-size-base: 14px;
|
--ed-font-size-base: 14px;
|
||||||
|
|
||||||
|
:deep(.ed-tag) {
|
||||||
|
--ed-tag-font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.ed-select-v2) {
|
||||||
|
font-size: v-bind(boxWidth);
|
||||||
|
}
|
||||||
|
|
||||||
.no-list-label {
|
.no-list-label {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
Loading…
Reference in New Issue
Block a user