@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/nuxt",
3
- "version": "1.6.5",
3
+ "version": "1.6.7",
4
4
  "description": "NeatUI component library for Nuxt 3",
5
5
  "main": "./src/index.ts",
6
6
  "license": "MIT",
@@ -217,7 +217,8 @@
217
217
  // 创建日期
218
218
  const cDate = (date: any = null) => {
219
219
  const normalized = normalizeDateInput(date);
220
- return isDateString(normalized) ? new Date(normalized) : new Date();
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
  // 快捷预设