ts-glitter 14.0.6 → 14.0.8

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/lowcode/Entry.js CHANGED
@@ -70,7 +70,7 @@ export class Entry {
70
70
  }
71
71
  window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
72
72
  console.log(`Entry-time:`, window.renderClock.stop());
73
- glitter.share.editerVersion = 'V_14.0.6';
73
+ glitter.share.editerVersion = 'V_14.0.8';
74
74
  glitter.share.start = new Date();
75
75
  const vm = {
76
76
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -72,7 +72,7 @@ export class Entry {
72
72
  }
73
73
  (window as any).renderClock = (window as any).renderClock ?? clockF();
74
74
  console.log(`Entry-time:`, (window as any).renderClock.stop());
75
- glitter.share.editerVersion = 'V_14.0.6';
75
+ glitter.share.editerVersion = 'V_14.0.8';
76
76
  glitter.share.start = new Date();
77
77
  const vm: {
78
78
  appConfig: any;
@@ -701,6 +701,7 @@ export class CheckoutIndex {
701
701
  }, () => {
702
702
  });
703
703
  }
704
+ gvc.glitter.recreateView('.js-cart-count');
704
705
  }
705
706
  refreshCartData();
706
707
  return gvc.bindView((() => {
@@ -749,11 +749,7 @@ export class CheckoutIndex {
749
749
  }
750
750
  );
751
751
  }
752
-
753
-
754
-
755
-
756
-
752
+ gvc.glitter.recreateView('.js-cart-count')
757
753
  }
758
754
  refreshCartData()
759
755
  return gvc.bindView(
@@ -273,7 +273,7 @@ export class PdClass {
273
273
  if (!variant) {
274
274
  return html `<button class="no-stock" disabled>發生錯誤</button>`;
275
275
  }
276
- if (variant.stock < parseInt(vm.quantity, 10) || (cartItem && variant.stock < cartItem.count + parseInt(vm.quantity, 10))) {
276
+ if ((variant.stock < parseInt(vm.quantity, 10) || (cartItem && variant.stock < cartItem.count + parseInt(vm.quantity, 10))) && (`${variant.show_understocking}` !== 'false')) {
277
277
  return html `<button class="no-stock" disabled>庫存不足</button>`;
278
278
  }
279
279
  return html `<button
@@ -418,7 +418,7 @@ export class PdClass {
418
418
  if (!variant) {
419
419
  return html`<button class="no-stock" disabled>發生錯誤</button>`;
420
420
  }
421
- if (variant.stock < parseInt(vm.quantity, 10) || (cartItem && variant.stock < cartItem.count + parseInt(vm.quantity, 10))) {
421
+ if ((variant.stock < parseInt(vm.quantity, 10) || (cartItem && variant.stock < cartItem.count + parseInt(vm.quantity, 10)) ) && (`${variant.show_understocking}`!=='false')) {
422
422
  return html`<button class="no-stock" disabled>庫存不足</button>`;
423
423
  }
424
424
  return html`<button
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "14.0.6",
3
+ "version": "14.0.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {