ts-glitter 13.8.738 → 13.8.742

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
@@ -68,7 +68,7 @@ export class Entry {
68
68
  }
69
69
  window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
70
70
  console.log(`Entry-time:`, window.renderClock.stop());
71
- glitter.share.editerVersion = 'V_13.8.736';
71
+ glitter.share.editerVersion = 'V_13.8.742';
72
72
  glitter.share.start = new Date();
73
73
  const vm = {
74
74
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -68,7 +68,7 @@ export class Entry {
68
68
  }
69
69
  (window as any).renderClock = (window as any).renderClock ?? clockF();
70
70
  console.log(`Entry-time:`, (window as any).renderClock.stop());
71
- glitter.share.editerVersion = 'V_13.8.738';
71
+ glitter.share.editerVersion = 'V_13.8.742';
72
72
  glitter.share.start = new Date();
73
73
  const vm: {
74
74
  appConfig: any;
@@ -4541,6 +4541,9 @@ export class BgGuide {
4541
4541
  return html ``;
4542
4542
  }
4543
4543
  drawGuide() {
4544
+ if (document.body.clientWidth < 922) {
4545
+ return;
4546
+ }
4544
4547
  const that = this;
4545
4548
  const timer = setInterval(function () {
4546
4549
  if (document.querySelector('iframe')) {
@@ -5023,6 +5023,9 @@ export class BgGuide {
5023
5023
  }
5024
5024
 
5025
5025
  public drawGuide() {
5026
+ if(document.body.clientWidth<922){
5027
+ return
5028
+ }
5026
5029
  const that = this;
5027
5030
  const timer = setInterval(function () {
5028
5031
  if (document.querySelector('iframe')) {
@@ -110,7 +110,7 @@ export class Editor {
110
110
  window.parent.glitter.openNewTab(url.href);
111
111
  }
112
112
  else if (gvc.glitter.getUrlParameter('device') === 'mobile') {
113
- if (document.body.clientWidth < 800) {
113
+ if (document.body.clientWidth < 920) {
114
114
  glitter.openNewTab(`${glitter.root_path}index-mobile?appName=${window.appName}&device=mobile`);
115
115
  }
116
116
  else {
@@ -126,7 +126,7 @@ export class Editor {
126
126
  const url = new URL('', glitter.share.editorViewModel.domain ? `https://${glitter.share.editorViewModel.domain}/?page=index` : location.href);
127
127
  url.searchParams.delete('type');
128
128
  url.searchParams.set('page', glitter.getUrlParameter('page'));
129
- if (document.body.clientWidth < 800 && Storage.view_type === 'desktop' && gvc.glitter.deviceType === gvc.glitter.deviceTypeEnum.Ios) {
129
+ if (document.body.clientWidth < 922 && Storage.view_type === 'desktop' && gvc.glitter.deviceType === gvc.glitter.deviceTypeEnum.Ios) {
130
130
  url.searchParams.set('_preview_width', '1300');
131
131
  url.searchParams.set('_preview_scale', `${(document.body.clientWidth / 1300).toFixed(2)}`);
132
132
  }
@@ -275,7 +275,7 @@ color: transparent;"
275
275
  >
276
276
  </div>
277
277
 
278
- ${(document.body.clientWidth > 800 || EditorConfig.backend_page() === 'backend-manger') ? `
278
+ ${(document.body.clientWidth > 922 || EditorConfig.backend_page() === 'backend-manger') ? `
279
279
  <div
280
280
  class="border-end d-flex align-items-center justify-content-center ${(document.body.clientWidth > 800 ? `ms-n2` : ``)} fs-3 d-lg-none"
281
281
  style="width:56px;height: 56px;cursor: pointer;"
@@ -366,7 +366,7 @@ ${dd.title}</a></li>`;
366
366
  if (Storage.select_function === 'backend-manger') {
367
367
  return html `
368
368
  <div
369
- class=" t_39_normal border-end px-4 d-flex align-items-center justify-content-center indexGuideBTN d-none d-sm-flex"
369
+ class=" t_39_normal border-end px-4 d-flex align-items-center justify-content-center indexGuideBTN d-none d-lg-flex"
370
370
  style="height: 56px;cursor: pointer;"
371
371
  onclick="${gvc.event(() => {
372
372
  let bgGuide = new BgGuide(gvc, 0);
@@ -365,7 +365,7 @@ ${dd.title}</a></li>`
365
365
  if (Storage.select_function === 'backend-manger') {
366
366
  return html`
367
367
  <div
368
- class=" t_39_normal border-end px-4 d-flex align-items-center justify-content-center indexGuideBTN d-none d-sm-flex"
368
+ class=" t_39_normal border-end px-4 d-flex align-items-center justify-content-center indexGuideBTN d-none d-lg-flex"
369
369
  style="height: 56px;cursor: pointer;"
370
370
  onclick="${gvc.event(() => {
371
371
  let bgGuide = new BgGuide(gvc, 0);
@@ -1041,14 +1041,14 @@ export class Main_editor {
1041
1041
  gvc.glitter.share.resetCenterFrame = (scale) => {
1042
1042
  const container_width = (() => {
1043
1043
  if (Storage.view_type === ViewType.mobile) {
1044
- return (document.body.clientWidth > 800) ? 414 : document.body.clientWidth;
1044
+ return (document.body.clientWidth > 992) ? 414 : document.body.clientWidth;
1045
1045
  }
1046
1046
  else {
1047
- return (document.body.clientWidth < 800) ? document.body.clientWidth : document.body.clientWidth - 365;
1047
+ return (document.body.clientWidth < 992) ? document.body.clientWidth : document.body.clientWidth - 365;
1048
1048
  }
1049
1049
  })() * (scale || 1);
1050
1050
  const tool_box = (() => {
1051
- if (document.body.clientWidth < 800) {
1051
+ if (document.body.clientWidth < 992) {
1052
1052
  return 40;
1053
1053
  }
1054
1054
  else {
@@ -1076,7 +1076,7 @@ export class Main_editor {
1076
1076
  frame.style.width = `${frame_width}px`;
1077
1077
  frame.style.height = `${frame_height}px`;
1078
1078
  frame.style.transform = `scale(${(container_width / frame_width).toFixed(2)})`;
1079
- if (document.body.clientWidth > 800 && Storage.view_type === ViewType.mobile) {
1079
+ if (document.body.clientWidth > 992 && Storage.view_type === ViewType.mobile) {
1080
1080
  frame.style.left = `25%`;
1081
1081
  }
1082
1082
  else {
@@ -1108,7 +1108,7 @@ export class Main_editor {
1108
1108
  <div class="position-relative w-100 h-100"
1109
1109
  style="${(parseInt(gvc.glitter.share.top_inset, 10)) ? `padding-top:${parseInt(gvc.glitter.share.top_inset, 10) + 10}px;` : ``}"
1110
1110
  id="editerCenter">
1111
- ${(document.body.clientWidth < 800) ? gvc.bindView(() => {
1111
+ ${(document.body.clientWidth < 992) ? gvc.bindView(() => {
1112
1112
  let last_selected = '';
1113
1113
  return {
1114
1114
  bind: `item-editor-select`,
@@ -1289,7 +1289,7 @@ export class Main_editor {
1289
1289
  ? `d-flex align-items-center justify-content-center flex-column mx-auto` : `d-flex align-items-center justify-content-center flex-column `,
1290
1290
  style: (Storage.select_function === 'page-editor' || Storage.select_function === 'user-editor')
1291
1291
  ? ``
1292
- : `width: calc(${(document.body.clientWidth < 800) ? `${document.body.clientWidth}px` : `100%`});height: ${window.innerHeight - EditorConfig.getPaddingTop(gvc) - 56}px;overflow:hidden;`
1292
+ : `width: calc(${(document.body.clientWidth < 992) ? `${document.body.clientWidth}px` : `100%`});height: ${window.innerHeight - EditorConfig.getPaddingTop(gvc) - 56}px;overflow:hidden;`
1293
1293
  };
1294
1294
  }
1295
1295
  };
@@ -1323,7 +1323,7 @@ export class Main_editor {
1323
1323
  class: Storage.view_type === ViewType.mobile && (Storage.select_function === 'page-editor' || Storage.select_function === 'user-editor')
1324
1324
  ? `d-flex align-items-center justify-content-center flex-column mx-auto` : `d-flex align-items-center justify-content-center flex-column`,
1325
1325
  style: Storage.view_type === ViewType.mobile && (Storage.select_function === 'page-editor' || Storage.select_function === 'user-editor')
1326
- ? `width: calc(${(document.body.clientWidth < 800) ? `${document.body.clientWidth}px` : `414px`});height: ${window.innerHeight - EditorConfig.getPaddingTop(gvc) - 56}px;` : `width: calc(${(document.body.clientWidth < 800) ? `${document.body.clientWidth}px` : `100%`});height: ${window.innerHeight - EditorConfig.getPaddingTop(gvc) - 56}px;overflow:hidden;`
1326
+ ? `width: calc(${(document.body.clientWidth < 992) ? `${document.body.clientWidth}px` : `414px`});height: ${window.innerHeight - EditorConfig.getPaddingTop(gvc) - 56}px;` : `width: calc(${(document.body.clientWidth < 800) ? `${document.body.clientWidth}px` : `100%`});height: ${window.innerHeight - EditorConfig.getPaddingTop(gvc) - 56}px;overflow:hidden;`
1327
1327
  };
1328
1328
  }
1329
1329
  };
@@ -1123,13 +1123,13 @@ export class Main_editor {
1123
1123
  gvc.glitter.share.resetCenterFrame = (scale?: number) => {
1124
1124
  const container_width = (() => {
1125
1125
  if (Storage.view_type === ViewType.mobile) {
1126
- return (document.body.clientWidth > 800) ? 414 : document.body.clientWidth;
1126
+ return (document.body.clientWidth > 992) ? 414 : document.body.clientWidth;
1127
1127
  } else {
1128
- return (document.body.clientWidth < 800) ? document.body.clientWidth : document.body.clientWidth - 365;
1128
+ return (document.body.clientWidth < 992) ? document.body.clientWidth : document.body.clientWidth - 365;
1129
1129
  }
1130
1130
  })() * (scale || 1)
1131
1131
  const tool_box = (() => {
1132
- if (document.body.clientWidth < 800) {
1132
+ if (document.body.clientWidth < 992) {
1133
1133
  return 40
1134
1134
  } else {
1135
1135
  return 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "13.8.738",
3
+ "version": "13.8.742",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {