fix: Date Column editing issue.

docs: add some examples.
This commit is contained in:
2024-02-05 09:52:26 +08:00
parent 12680cc662
commit 8a9ba4d4fb
7 changed files with 78 additions and 11 deletions

View File

@ -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 '';
}