ts-glitter 13.8.738 → 13.8.741
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 +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/backend-manager/bg-guide.js +3 -0
- package/lowcode/backend-manager/bg-guide.ts +3 -0
- package/lowcode/jspage/editor.js +4 -4
- package/lowcode/jspage/editor.ts +1 -1
- package/lowcode/jspage/function-page/main_editor.js +4 -4
- package/package.json +1 -1
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.
|
|
71
|
+
glitter.share.editerVersion = 'V_13.8.741';
|
|
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.
|
|
71
|
+
glitter.share.editerVersion = 'V_13.8.741';
|
|
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')) {
|
package/lowcode/jspage/editor.js
CHANGED
|
@@ -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 <
|
|
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 <
|
|
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 >
|
|
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-
|
|
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);
|
package/lowcode/jspage/editor.ts
CHANGED
|
@@ -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-
|
|
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);
|
|
@@ -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 >
|
|
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 <
|
|
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 <
|
|
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 <
|
|
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
|
};
|