Browse Source

feat:[模板管理][update]

master
luojie 3 hours ago
parent
commit
6a5ad10b80
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/components/Template/HandleFormItem.vue

+ 6
- 1
src/components/Template/HandleFormItem.vue View File

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

Loading…
Cancel
Save