ts-glitter 14.2.4 → 14.2.5

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.2.4';
73
+ glitter.share.editerVersion = 'V_14.2.5';
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.2.4';
75
+ glitter.share.editerVersion = 'V_14.2.5';
76
76
  glitter.share.start = new Date();
77
77
  const vm: {
78
78
  appConfig: any;
@@ -314,7 +314,7 @@ export class BgProduct {
314
314
  return text.replace(/\//g, html `<i class="fa-solid fa-angle-right mx-1"></i>`);
315
315
  }
316
316
  }
317
- BgProduct.getProductOpts = (def) => {
317
+ BgProduct.getProductOpts = (def, product_type) => {
318
318
  return new Promise((resolve) => {
319
319
  if (!def || def.length === 0) {
320
320
  resolve([]);
@@ -323,6 +323,7 @@ BgProduct.getProductOpts = (def) => {
323
323
  ApiShop.getProduct({
324
324
  page: 0,
325
325
  limit: 99999,
326
+ productType: product_type,
326
327
  id_list: def.map((d) => `${d}`).join(','),
327
328
  }).then((data) => {
328
329
  resolve(data.response.data.map((product) => {
@@ -252,7 +252,7 @@ export class BgProduct {
252
252
  }, 'productsDialog');
253
253
  }
254
254
 
255
- static getProductOpts = (def: (number | string)[]) => {
255
+ static getProductOpts = (def: (number | string)[],product_type?: 'product' | 'addProduct' | 'giveaway' ) => {
256
256
  return new Promise<OptionsItem[]>((resolve) => {
257
257
  if (!def || def.length === 0) {
258
258
  resolve([]);
@@ -261,6 +261,7 @@ export class BgProduct {
261
261
  ApiShop.getProduct({
262
262
  page: 0,
263
263
  limit: 99999,
264
+ productType:product_type,
264
265
  id_list: def.map((d) => `${d}`).join(','),
265
266
  }).then((data) => {
266
267
  resolve(
@@ -976,7 +976,7 @@ export class ShoppingDiscountSetting {
976
976
  loading: true,
977
977
  data: [],
978
978
  };
979
- BgProduct.getProductOpts(voucherData.add_on_products).then((res) => {
979
+ BgProduct.getProductOpts(voucherData.add_on_products, voucherData.reBackType === 'add_on_items' ? 'addProduct' : 'giveaway').then((res) => {
980
980
  vm.data = res;
981
981
  vm.loading = false;
982
982
  gvc.notifyDataChange(vm.id);
@@ -1089,7 +1089,7 @@ export class ShoppingDiscountSetting {
1089
1089
  loading: true,
1090
1090
  data: [],
1091
1091
  };
1092
- BgProduct.getProductOpts(voucherData.add_on_products!).then((res) => {
1092
+ BgProduct.getProductOpts(voucherData.add_on_products!,voucherData.reBackType === 'add_on_items' ? 'addProduct' : 'giveaway').then((res) => {
1093
1093
  vm.data = res;
1094
1094
  vm.loading = false;
1095
1095
  gvc.notifyDataChange(vm.id);
@@ -0,0 +1,4 @@
1
+ export class Blogs01 {
2
+ static main() {
3
+ }
4
+ }