forked from github/dataease
Merge pull request #12560 from dataease/pr@dev-v2_st
feat(查询组件): 查询组件 placeholder 内容支持设置 #11881
This commit is contained in:
commit
863c4c11c6
@ -132,6 +132,10 @@ const checkBold = type => {
|
|||||||
chart.value.customStyle.component[type] = chart.value.customStyle.component[type] ? '' : 'bold'
|
chart.value.customStyle.component[type] = chart.value.customStyle.component[type] ? '' : 'bold'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleCurrentPlaceholderChange = () => {
|
||||||
|
snapshotStore.recordSnapshotCache()
|
||||||
|
}
|
||||||
|
|
||||||
const checkItalic = type => {
|
const checkItalic = type => {
|
||||||
if (!chart.value.customStyle.component.labelShow) return
|
if (!chart.value.customStyle.component.labelShow) return
|
||||||
chart.value.customStyle.component[type] = chart.value.customStyle.component[type] ? '' : 'italic'
|
chart.value.customStyle.component[type] = chart.value.customStyle.component[type] ? '' : 'italic'
|
||||||
@ -406,6 +410,7 @@ if (props.element.propValue.length) {
|
|||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
:effect="themes"
|
:effect="themes"
|
||||||
|
@change="handleCurrentPlaceholderChange"
|
||||||
:disabled="!chart.customStyle.component.placeholderShow || !currentPlaceholder"
|
:disabled="!chart.customStyle.component.placeholderShow || !currentPlaceholder"
|
||||||
v-model.lazy="currentSearch.placeholder"
|
v-model.lazy="currentSearch.placeholder"
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user