Commit 395c6008 by wusiyi

fix: 修复placeholder不展示bug

parent f185347d
......@@ -214,7 +214,7 @@ const editId = ref<number>()
const createConditionItem = (): SortingPortCondition => ({
conditionType: '',
operator: '',
conditionValue: undefined,
conditionValue: [],
})
const createDefaultForm = (): IsortingInfo => ({
......@@ -238,7 +238,7 @@ const getAvailableConditionTypes = (currentIndex: number) => {
}
const handleConditionTypeChange = (item: SortingPortCondition) => {
item.conditionValue = undefined
item.conditionValue = []
item.operator = 'in'
}
......@@ -280,7 +280,9 @@ const formatConditionsForForm = (conditions: SortingPortCondition[]) =>
conditionValue:
typeof item.conditionValue === 'string'
? item.conditionValue.split(',').filter(Boolean)
: item.conditionValue,
: Array.isArray(item.conditionValue)
? item.conditionValue
: [],
}))
const addConditionItem = () => {
......@@ -415,7 +417,6 @@ defineExpose({ open })
:deep(.el-select__selection) {
flex-wrap: nowrap;
overflow: hidden;
}
:deep(.el-select__selected-item) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment