@neatui/nuxt 1.6.5 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
// 创建日期
|
|
218
218
|
const cDate = (date: any = null) => {
|
|
219
219
|
const normalized = normalizeDateInput(date);
|
|
220
|
-
|
|
220
|
+
// iOS 兼容:Safari 不支持 "YYYY-MM-DD" 格式,需要替换为 "YYYY/MM/DD"
|
|
221
|
+
return isDateString(normalized) ? new Date(normalized?.replace(/-/g, '/')) : new Date();
|
|
221
222
|
};
|
|
222
223
|
|
|
223
224
|
// 快捷预设
|
|
File without changes
|