[antdv: DatePicker] `value` provides invalidate moment time. If you want set empty value,use `null`
Always encounter this problem
Normal use:
html:
<a-month-picker v-model="monthValue" :allowClear="false" type="month" placeholder="选择月"></a-month-picker>
data:
monthValue:moment().format('YYYY-MM')
Reason:
ant design vue datepicker needs the format of moment by default, so an error will be reported.
Solution: use following method to define the data:
monthValue: moment(new Date(), 'YYYY-MM')
Read More:
- If you want to open more than one program “pdc140.xxx”, the CL.EXE To write to the same. Pdb file, please use
- If you open the store in iTunes, you will be prompted to solve the 310 error
- nbconvert failed: xelatex not found on PATH, if you have not installed xelatex you may need to do so
- Uncaught typeerror: cannot set property ‘of null error resolution
- Error (1820) if the password is not changed in time after MySQL installation
- Set the default time to the current value in MySQL
- Error attempting to get column time from result set. Cause: java.sql.SQLFe
- Python common error: if using all scalar values, you must pass an index (four solutions)
- What to do if you repeatedly format a cluster
- SqlNullValueException: Data is Null. This method or property cannot be called on Null values.
- The background object of thymeleaf is null, which solves the problem of error when the object is empty to get the property value
- In SQLite database, set the default value for the field as the current time
- Solve the problem of “error empty block statement no empty” in the console (Vue project)
- The time of the time database displayed by the front end is inconsistent
- How to get the current time in java time string
- Error: property ‘TZ’ does not exist on type ‘type of moment’
- Warning: use less storage class specifier in empty declaration
- How do you set, clear and toggle a single bit in C?
- [Solved] VUE Warning: Do not use empty rulesets scss(emptyrules)
- [Solved] VUE Error: “You may use special comments to disable some warnings.Use // eslint-disable-next-line to …