fix: Date Column editing issue.
docs: add some examples.
This commit is contained in:
@ -29,7 +29,12 @@ export function createDateInput(min, max, element) {
|
||||
return date;
|
||||
}
|
||||
|
||||
function toDateValue(dt) {
|
||||
/**
|
||||
* 将日期转换为 `yyyy-MM-dd` 格式的字符串
|
||||
* @param {Date} dt 要转换的日期值
|
||||
* @returns 返回 `yyyy-MM-dd` 格式的字符串
|
||||
*/
|
||||
export function toDateValue(dt) {
|
||||
if (isNaN(dt)) {
|
||||
return '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user