ts-glitter 17.3.2 → 17.3.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/lowcode/Entry.js CHANGED
@@ -89,7 +89,7 @@ export class Entry {
89
89
  }
90
90
  window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : clockF();
91
91
  console.log(`Entry-time:`, window.renderClock.stop());
92
- glitter.share.editerVersion = 'V_17.3.2';
92
+ glitter.share.editerVersion = 'V_17.3.3';
93
93
  glitter.share.start = new Date();
94
94
  const vm = {
95
95
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -90,7 +90,7 @@ export class Entry {
90
90
  }
91
91
  (window as any).renderClock = (window as any).renderClock ?? clockF();
92
92
  console.log(`Entry-time:`, (window as any).renderClock.stop());
93
- glitter.share.editerVersion = 'V_17.3.2';
93
+ glitter.share.editerVersion = 'V_17.3.3';
94
94
  glitter.share.start = new Date();
95
95
  const vm: {
96
96
  appConfig: any;
@@ -196,6 +196,9 @@ export class PdClass {
196
196
 
197
197
  .swiper-slide.swiper-slide-sm {
198
198
  opacity: 0.5;
199
+ background: none !important;
200
+ padding: 0 !important;
201
+ width: auto !important;
199
202
  }
200
203
 
201
204
  .swiper-slide.swiper-slide-sm.swiper-slide-thumb-active {
@@ -356,7 +359,7 @@ export class PdClass {
356
359
  ${obj.prod.preview_image
357
360
  .map((image, index) => {
358
361
  return html ` <div class="swiper-slide swiper-slide-sm" data-image-index="${index}">
359
- <img src="${image}" alt="${obj.prod.title}-${index}-sm" />
362
+ <img src="${image}" alt="${obj.prod.title}-${index}-sm" style="height: ${isPhone ? 75 : 100}px;width: auto !important;" />
360
363
  </div>`;
361
364
  })
362
365
  .join('')}
@@ -366,9 +369,9 @@ export class PdClass {
366
369
  `;
367
370
  },
368
371
  divCreate: {
369
- class: `w-100`,
372
+ class: ``,
370
373
  option: [{ key: 'id', value: id }],
371
- style: `overflow:hidden;position:relative;`,
374
+ style: `overflow:hidden;position:relative;${document.body.clientWidth > 800 ? `width:500px;` : `width:100%:`}`,
372
375
  },
373
376
  onCreate: () => {
374
377
  const si = setInterval(() => {
@@ -416,19 +419,6 @@ export class PdClass {
416
419
  clearInterval(si);
417
420
  }
418
421
  }, 200);
419
- function updateSwiperHeight() {
420
- const size = setTimeout(() => {
421
- const container = document.getElementById(id);
422
- const swiper = document.getElementById('dynamic-swiper' + id);
423
- if (swiper && container) {
424
- const rem = document.body.clientWidth > 768 ? '2rem' : '0rem';
425
- swiper.style.height = `calc(${container.clientWidth}px - ${rem})`;
426
- clearInterval(size);
427
- }
428
- }, 200);
429
- }
430
- updateSwiperHeight();
431
- window.addEventListener('resize', updateSwiperHeight);
432
422
  },
433
423
  };
434
424
  });
@@ -311,6 +311,9 @@ export class PdClass {
311
311
 
312
312
  .swiper-slide.swiper-slide-sm {
313
313
  opacity: 0.5;
314
+ background: none !important;
315
+ padding: 0 !important;
316
+ width: auto !important;
314
317
  }
315
318
 
316
319
  .swiper-slide.swiper-slide-sm.swiper-slide-thumb-active {
@@ -483,7 +486,7 @@ export class PdClass {
483
486
  ${obj.prod.preview_image
484
487
  .map((image, index) => {
485
488
  return html` <div class="swiper-slide swiper-slide-sm" data-image-index="${index}">
486
- <img src="${image}" alt="${obj.prod.title}-${index}-sm" />
489
+ <img src="${image}" alt="${obj.prod.title}-${index}-sm" style="height: ${isPhone ? 75 : 100}px;width: auto !important;" />
487
490
  </div>`;
488
491
  })
489
492
  .join('')}
@@ -493,9 +496,9 @@ export class PdClass {
493
496
  `;
494
497
  },
495
498
  divCreate: {
496
- class: `w-100`,
499
+ class: ``,
497
500
  option: [{ key: 'id', value: id }],
498
- style: `overflow:hidden;position:relative;`,
501
+ style: `overflow:hidden;position:relative;${document.body.clientWidth>800 ? `width:500px;`:`width:100%:`}`,
499
502
  },
500
503
  onCreate: () => {
501
504
  const si = setInterval(() => {
@@ -549,20 +552,20 @@ export class PdClass {
549
552
  }
550
553
  }, 200);
551
554
 
552
- function updateSwiperHeight() {
553
- const size = setTimeout(() => {
554
- const container = document.getElementById(id);
555
- const swiper = document.getElementById('dynamic-swiper' + id);
556
- if (swiper && container) {
557
- const rem = document.body.clientWidth > 768 ? '2rem' : '0rem';
558
- swiper.style.height = `calc(${container.clientWidth}px - ${rem})`;
559
- clearInterval(size);
560
- }
561
- }, 200);
562
- }
563
-
564
- updateSwiperHeight();
565
- window.addEventListener('resize', updateSwiperHeight);
555
+ // function updateSwiperHeight() {
556
+ // const size = setTimeout(() => {
557
+ // const container = document.getElementById(id);
558
+ // const swiper = document.getElementById('dynamic-swiper' + id);
559
+ // if (swiper && container) {
560
+ // const rem = document.body.clientWidth > 768 ? '2rem' : '0rem';
561
+ // // swiper.style.height = `calc(${container.clientWidth}px - ${rem})`;
562
+ // clearInterval(size);
563
+ // }
564
+ // }, 200);
565
+ // }
566
+
567
+ // updateSwiperHeight();
568
+ // window.addEventListener('resize', updateSwiperHeight);
566
569
  },
567
570
  };
568
571
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "17.3.2",
3
+ "version": "17.3.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {