@yorkjs/hive-biz 0.2.2 → 0.2.3

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": "@yorkjs/hive-biz",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "util function",
5
5
  "main": "dist/hive-biz.esm.js",
6
6
  "module": "dist/hive-biz.esm.js",
@@ -22,7 +22,7 @@ export declare class CouponSelector {
22
22
  constructor(options: ICouponSelectorOptions);
23
23
  /** 全量替换列表,并清掉已不存在的选中 / 展开 */
24
24
  setList(list: any[]): void;
25
- /** 分页追加,保持接口顺序,不把后一页可用券插到已渲染的过期券前面 */
25
+ /** 分页追加。追加后仍按可用在前重排 */
26
26
  appendList(list: any[]): void;
27
27
  /** 当前列表票面快照,给 CouponCard 渲染 */
28
28
  getView(): ICouponSelectorView;
@@ -16,7 +16,7 @@ export declare function resolveCouponAvailableError(coupon: Pick<ICoupon, 'avail
16
16
  /**
17
17
  * 原始列表 → 标准 ICoupon。
18
18
  * 有 formatItem 就逐项转换(返回空则跳过);没有则把项当作已是 ICoupon。
19
- * 未带 original 时自动挂上原始 item。顺序与接口一致,不做可用/不可用重排。
19
+ * 未带 original 时自动挂上原始 item。可用券排在不可用前面,组内保持原相对顺序。
20
20
  */
21
21
  export declare function formatCouponList(rawList?: any[], formatItem?: CouponFormatItem): ICoupon[];
22
22
  /**