initial commit

This commit is contained in:
xiaomai
2025-10-01 16:52:52 +08:00
commit e93b931288
35 changed files with 12784 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
export const useChineseDateFormat = (input: Date | string) => {
const date = input instanceof Date ? input : new Date(input);
const y = date.getFullYear();
const m = String(date.getMonth() + 1).padStart(2, "0");
const d = String(date.getDate()).padStart(2, "0");
// 返回一个响应式值
return ref(`${y}${m}${d}`);
};