dev
lilu 2 years ago
parent 5ca150a872
commit b29c785b37

@ -23,6 +23,7 @@
:labelData="formLabel"
@change="formChange"
:formRes="formRes"
@pressEnter="pressEnterFun"
></formLabel>
</a-form-item>
</a-col>
@ -695,6 +696,9 @@ export default {
default:
return '--'
}
},
pressEnterFun () {
this.tableRefresh()
}
}
}

@ -1,7 +1,7 @@
<template>
<div class="from-label">
<template v-if="labelData.type == 'input'">
<a-input v-model="value" @change="changeInput" />
<a-input v-model="value" @change="changeInput" @pressEnter="$emit('pressEnter')"/>
</template>
<template v-else-if="labelData.type == 'date'">
<a-date-picker format="YYYY-MM-DD" @change="changeDate" />

Loading…
Cancel
Save