forked from github/dataease
Merge pull request #12513 from dataease/pr@dev-v2_st
feat(查询组件): 输入框删除placeholder
This commit is contained in:
commit
ed941cc922
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { toRefs, onBeforeMount, Ref, type PropType, inject, computed, nextTick } from 'vue'
|
import { toRefs, onBeforeMount, type PropType, inject, computed, nextTick } from 'vue'
|
||||||
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
|
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
interface SelectConfig {
|
interface SelectConfig {
|
||||||
@ -52,13 +52,6 @@ const props = defineProps({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const placeholder: Ref = inject('placeholder')
|
|
||||||
const placeholderText = computed(() => {
|
|
||||||
if (placeholder.value.placeholderShow) {
|
|
||||||
return placeholder.value.placeholder
|
|
||||||
}
|
|
||||||
return ' '
|
|
||||||
})
|
|
||||||
const { config } = toRefs(props)
|
const { config } = toRefs(props)
|
||||||
const setParams = () => {
|
const setParams = () => {
|
||||||
const {
|
const {
|
||||||
@ -111,7 +104,6 @@ const lineWidth = computed(() => {
|
|||||||
<el-input
|
<el-input
|
||||||
:style="selectStyle"
|
:style="selectStyle"
|
||||||
@blur="handleValueChange"
|
@blur="handleValueChange"
|
||||||
:placeholder="placeholderText"
|
|
||||||
class="condition-value-input"
|
class="condition-value-input"
|
||||||
v-model="config.conditionValueF"
|
v-model="config.conditionValueF"
|
||||||
/>
|
/>
|
||||||
@ -133,7 +125,6 @@ const lineWidth = computed(() => {
|
|||||||
<el-input
|
<el-input
|
||||||
:style="selectStyle"
|
:style="selectStyle"
|
||||||
@blur="handleValueChange"
|
@blur="handleValueChange"
|
||||||
:placeholder="placeholderText"
|
|
||||||
class="condition-value-input"
|
class="condition-value-input"
|
||||||
v-model="config.conditionValueS"
|
v-model="config.conditionValueS"
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user