Merge pull request #12560 from dataease/pr@dev-v2_st

feat(查询组件): 查询组件 placeholder 内容支持设置 #11881
This commit is contained in:
dataeaseShu 2024-10-08 11:03:50 +08:00 committed by GitHub
commit 863c4c11c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,6 +132,10 @@ const checkBold = type => {
chart.value.customStyle.component[type] = chart.value.customStyle.component[type] ? '' : 'bold'
}
const handleCurrentPlaceholderChange = () => {
snapshotStore.recordSnapshotCache()
}
const checkItalic = type => {
if (!chart.value.customStyle.component.labelShow) return
chart.value.customStyle.component[type] = chart.value.customStyle.component[type] ? '' : 'italic'
@ -406,6 +410,7 @@ if (props.element.propValue.length) {
>
<el-input
:effect="themes"
@change="handleCurrentPlaceholderChange"
:disabled="!chart.customStyle.component.placeholderShow || !currentPlaceholder"
v-model.lazy="currentSearch.placeholder"
/>