ts-glitter 14.0.6 → 14.0.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/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.7';
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.7';
76
76
  glitter.share.start = new Date();
77
77
  const vm: {
78
78
  appConfig: any;
@@ -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.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {