Closed bearbattle closed 2 years ago
Perhaps it can be in this way.
Avoid using option-style mounted
api, use onMounted
instead.
import { defineComponent, reactive, onMounted } from 'vue'
export default defineComponent({
name: 'BugReport',
setup() {
const form = reactive({ foo: 'bar'})
onMounted(() => console.log(form));
return {
form,
}
},
})
Bug description
When using
<el-form>
, giving the form withref
attribute the same asmodel
attribute would cause inappropriate behaviour of accessing data field associated with themodel
attribute.What is the current behavior?
Given the code below:
What is the expected behavior?
this.form
should provide the content of filed previously defined.Steps to Reproduce
Refer to code above.
Live Demo:
Bug Report for Element3
Environment
0.0.40
v14.17.3
Windows 10 LTSC 2019 (Version 1809)