Error Messages:
Error in event handler for “el.form.change”: “TypeError: value.getTime is not a function”
Element UI’s date picker el-date-picker in addition to format value-format=”yyyy-MM-dd” and format=”yyyy-MM-dd”
In form validation.
{ type: 'date', required: true, message: 'Please select a date', trigger: 'change' }
There will be conflicts
Solution: modify the verification rules
type: ‘date’-> type: ‘string’
Possible causes of errors:
After the format conversion of the element UI, the binding value will be converted to a string, and the type: ‘date’ in the verification rule does not match. As for its error, it is converted to a string, not a date object, so there is no gettime method.
Read More:
- [Solved] Vue element UI form verification error: cannot read property ‘validate’ of undefined
- The date selector Report Null Error in element is cleared
- [Solved] Element form method resetfields() error: vue.runtime.esm.js?2b0e:1888 TypeError: Cannot read properties of undefined (reading ‘indexOf’)
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)
- The toast light prompt of vant in Vue reports an error
- [Solved] Element form method Error: TypeError: Cannot read properties of undefined (reading ‘resetFields’)
- Vue form validate error: Error in v-on handler “TypeError Cannot read properties of undefined (reading ‘indexOf‘)
- Vue Import element-plus Error: Failed to resolve import “element-pluslibtheme-chalkindex.css“ from “src
- Vue warn]: vue3 element Component emit Pass Event Error
- [Solved] ERROR in ./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf
- After Vue is packaged to the server, the static resource path reports an error
- Vue installs sass loader directly, and node sass reports an error
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- How to Solve Vue add element Install Error
- Vue3 + vite install element-plus error [How to Solve]
- [Solved] Error in event handler for “el.form.blur“: “RangeError: Maximum call stack size exceeded“
- The solution to the problem that the custom styles of UI components such as element-ui in the vue project do not take effect
- [Solved] Vue3 Import element UI error: Uncaught TypeError: Cannot read properties of underfined…
- Vue wran name Error: Unkown custom element [How to Solve]
- Vue3 Error: [vue/no-multiple-template-root] The template root requires exactly one element