change: replace date controller of Scheduler.
feature: `ui.formatDate` supports formatter. fix: issue about boolean sort.
This commit is contained in:
5
lib/ui/date.d.ts
vendored
5
lib/ui/date.d.ts
vendored
@ -10,8 +10,9 @@ export function createDateInput(min?: string, max?: string, element?: HTMLInputE
|
||||
/**
|
||||
* 将日期转换成 yyyy-MM-dd 格式的字符串
|
||||
* @param dt 日期值
|
||||
* @param local 是否视日期为本地时间
|
||||
*/
|
||||
export function toDateValue(dt: Date): string;
|
||||
export function toDateValue(dt: Date, local?: boolean): string;
|
||||
|
||||
/**
|
||||
* 格式化日期字符串
|
||||
@ -23,7 +24,7 @@ export function toDateValue(dt: Date): string;
|
||||
* `new Date('2024-01-26')`<br/>
|
||||
* @returns 格式化为 M/d/yyyy 的日期字符串
|
||||
*/
|
||||
export function formatDate(date: Date | number | string): string;
|
||||
export function formatDate(date: Date | number | string, formatter?: string): string;
|
||||
|
||||
/**
|
||||
* 设置显示日期
|
||||
|
Reference in New Issue
Block a user