diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index 6ec2b33..21e4c97 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -17,7 +17,7 @@ @input="onInputChange" @change="onInputChange" /> + :placeholder="getPlaceholder()" @visible-change="onSelectBlur" @change="onInputChange"> @@ -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;