|
|
|
@ -17,7 +17,7 @@ |
|
|
|
@input="onInputChange" @change="onInputChange" /> |
|
|
|
<el-select v-else-if="type === 'select'" class="flex1" :multiple="item.multiple" |
|
|
|
:class="getFillTypeStyle() + (orangeBg ? ' orange-bg' : '')" v-model="inputValue" :disabled="getDisabled()" |
|
|
|
:placeholder="getPlaceholder()" @change="onCommonHandleSaveRecord"> |
|
|
|
:placeholder="getPlaceholder()" @visible-change="onSelectBlur" @change="onInputChange"> |
|
|
|
<el-option v-for="op in item.options" :key="op.value" :label="op.label" :value="op.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
@ -167,6 +167,11 @@ export default { |
|
|
|
// this.$emit('input', val); |
|
|
|
// this.$emit('change', val); |
|
|
|
}, |
|
|
|
onSelectBlur(visible) { |
|
|
|
if (!visible) { |
|
|
|
this.onCommonHandleSaveRecord(this.inputValue); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 统一处理输入变化 |
|
|
|
onInputChange(val) { |
|
|
|
const value = val !== undefined ? val : this.inputValue; |
|
|
|
|