bi-components-library 1.2.1 → 1.2.2

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/dist/index.es.js CHANGED
@@ -1756,7 +1756,7 @@ const Ac = (e) => {
1756
1756
  e.forEach((A) => {
1757
1757
  if (A.type === "multi-variable" && A.key) {
1758
1758
  const w = E?.[A.key];
1759
- Array.isArray(w) && w.length > 0 ? S[A.key] = Math.min(w.length, A.maxCount ?? 9) : S[A.key] = 1;
1759
+ Array.isArray(w) && w.length > 0 ? S[A.key] = Math.min(w.length + 1, A.maxCount ?? 9) : S[A.key] = 1;
1760
1760
  }
1761
1761
  }), i(S), r({}), o({}), l({}), p({});
1762
1762
  } else
@@ -23433,7 +23433,7 @@ const { RangePicker: BT } = Ll, FT = ({ host: e, onChange: t }) => {
23433
23433
  if (xe.type === "multi-variable" && xe.key) {
23434
23434
  const Xe = w[xe.key];
23435
23435
  if (Array.isArray(Xe) && Xe.length > 0) {
23436
- const Yt = xe.maxCount ?? 9, fn = Math.min(Xe.length, Yt);
23436
+ const Yt = xe.maxCount ?? 9, fn = Math.min(Xe.length + 1, Yt);
23437
23437
  Dt[xe.key] !== fn && (de[xe.key] = fn, ge = !0);
23438
23438
  }
23439
23439
  }