@peng_kai/kit 0.2.1-beta.1 → 0.2.1

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.
@@ -65,6 +65,8 @@ function useAntdForm<S extends Record<string, unknown>, TS = S>(schemas: MaybeRe
65
65
  const name = buildGroupField(groupName, i, key);
66
66
  schemasR.value[name] = groupSchemas[key];
67
67
  });
68
+
69
+ return i;
68
70
  },
69
71
  removeGroup(groupName: string, index?: number) {
70
72
  const i = index ?? getGroupIndex(groupName, schemasR.value);
@@ -73,6 +75,8 @@ function useAntdForm<S extends Record<string, unknown>, TS = S>(schemas: MaybeRe
73
75
  if (key.startsWith(groupName + GROUP_SEP + i))
74
76
  Reflect.deleteProperty(schemasR.value, key);
75
77
  });
78
+
79
+ return i;
76
80
  },
77
81
  };
78
82
 
package/libs/dayjs.ts CHANGED
@@ -4,8 +4,7 @@ import relativeTime from 'dayjs/esm/plugin/relativeTime';
4
4
  import 'dayjs/esm/locale/zh';
5
5
  import 'dayjs/esm/locale/en';
6
6
 
7
- export { isDayjs, unix, locale, extend } from 'dayjs/esm';
8
- export type { Dayjs, PluginFunc, UnitType, UnitTypeLong, UnitTypeLongPlural, UnitTypeShort, QUnitType, ConfigType, ConfigTypeMap, OpUnitType, OptionType, ManipulateType } from 'dayjs/esm';
7
+ export type { Dayjs, PluginFunc, UnitType, UnitTypeLong, UnitTypeLongPlural, UnitTypeShort, QUnitType, ConfigType, ConfigTypeMap, OpUnitType, OptionType, ManipulateType } from 'dayjs';
9
8
  export default dayjs;
10
9
 
11
10
  dayjs.locale('zh');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@peng_kai/kit",
3
3
  "type": "module",
4
- "version": "0.2.1-beta.1",
4
+ "version": "0.2.1",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",