diff --git a/core/core-frontend/src/custom-component/v-query/Select.vue b/core/core-frontend/src/custom-component/v-query/Select.vue index 00aa2afc03..f4d06da2fb 100644 --- a/core/core-frontend/src/custom-component/v-query/Select.vue +++ b/core/core-frontend/src/custom-component/v-query/Select.vue @@ -676,11 +676,11 @@ onMounted(() => { }) const tagWidth = computed(() => { - return Math.min((getCustomWidth() - 60) / 2, 50) + 'px' + return (getCustomWidth() - 65) / 2 + 'px' }) const tagTextWidth = computed(() => { - return Math.min((getCustomWidth() - 60) / 2 - 25, 40) + 'px' + return (getCustomWidth() - 65) / 2 - 20 + 'px' }) defineExpose({ diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue index b7a199e729..1f96ac68ca 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue @@ -279,6 +279,16 @@ const onTitleChange = () => { element.value.name = chart.value.customStyle.component.title chart.value.title = chart.value.customStyle.component.title } + +const onPlaceholderChange = () => { + props.element.propValue.forEach(ele => { + if (ele.id === currentPlaceholder.value) { + ele.placeholder = currentSearch.value.placeholder + ele.queryConditionWidth = currentSearch.value.queryConditionWidth + } + }) + snapshotStore.recordSnapshotCacheToMobile('propValue') +}