ts-glitter 13.8.736 → 13.8.738
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.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.738';
|
|
72
72
|
glitter.share.start = new Date();
|
|
73
73
|
const vm: {
|
|
74
74
|
appConfig: any;
|
package/lowcode/jspage/editor.ts
CHANGED
|
@@ -111,7 +111,7 @@ export class Editor {
|
|
|
111
111
|
const url = new URL(href);
|
|
112
112
|
(window.parent as any).glitter.openNewTab(url.href);
|
|
113
113
|
} else if (gvc.glitter.getUrlParameter('device') === 'mobile') {
|
|
114
|
-
if (document.body.clientWidth <
|
|
114
|
+
if (document.body.clientWidth < 920) {
|
|
115
115
|
glitter.openNewTab(`${glitter.root_path}index-mobile?appName=${(window as any).appName}&device=mobile`);
|
|
116
116
|
} else {
|
|
117
117
|
BgWidget.appPreview({
|
|
@@ -125,7 +125,7 @@ export class Editor {
|
|
|
125
125
|
const url = new URL('', glitter.share.editorViewModel.domain ? `https://${glitter.share.editorViewModel.domain}/?page=index` : location.href);
|
|
126
126
|
url.searchParams.delete('type');
|
|
127
127
|
url.searchParams.set('page', glitter.getUrlParameter('page'));
|
|
128
|
-
if (document.body.clientWidth <
|
|
128
|
+
if (document.body.clientWidth < 922 && Storage.view_type === 'desktop' && gvc.glitter.deviceType === gvc.glitter.deviceTypeEnum.Ios) {
|
|
129
129
|
url.searchParams.set('_preview_width', '1300');
|
|
130
130
|
url.searchParams.set('_preview_scale', `${(document.body.clientWidth / 1300).toFixed(2)}`);
|
|
131
131
|
}
|
|
@@ -276,7 +276,7 @@ color: transparent;"
|
|
|
276
276
|
>
|
|
277
277
|
</div>
|
|
278
278
|
|
|
279
|
-
${(document.body.clientWidth >
|
|
279
|
+
${(document.body.clientWidth > 922 || EditorConfig.backend_page() === 'backend-manger') ? `
|
|
280
280
|
<div
|
|
281
281
|
class="border-end d-flex align-items-center justify-content-center ${(document.body.clientWidth>800?`ms-n2`:``)} fs-3 d-lg-none"
|
|
282
282
|
style="width:56px;height: 56px;cursor: pointer;"
|
|
@@ -1154,7 +1154,7 @@ export class Main_editor {
|
|
|
1154
1154
|
frame.style.width = `${frame_width}px`;
|
|
1155
1155
|
frame.style.height = `${frame_height}px`;
|
|
1156
1156
|
frame.style.transform = `scale(${(container_width / frame_width).toFixed(2)})`
|
|
1157
|
-
if (document.body.clientWidth >
|
|
1157
|
+
if (document.body.clientWidth > 992 && Storage.view_type === ViewType.mobile) {
|
|
1158
1158
|
frame.style.left = `25%`;
|
|
1159
1159
|
} else {
|
|
1160
1160
|
frame.style.left = `0`;
|
|
@@ -1184,7 +1184,7 @@ export class Main_editor {
|
|
|
1184
1184
|
<div class="position-relative w-100 h-100"
|
|
1185
1185
|
style="${(parseInt(gvc.glitter.share.top_inset, 10)) ? `padding-top:${parseInt(gvc.glitter.share.top_inset, 10) + 10}px;` : ``}"
|
|
1186
1186
|
id="editerCenter">
|
|
1187
|
-
${(document.body.clientWidth <
|
|
1187
|
+
${(document.body.clientWidth < 992) ? gvc.bindView(() => {
|
|
1188
1188
|
let last_selected = '';
|
|
1189
1189
|
return {
|
|
1190
1190
|
bind: `item-editor-select`,
|
|
@@ -1362,7 +1362,7 @@ export class Main_editor {
|
|
|
1362
1362
|
? `d-flex align-items-center justify-content-center flex-column mx-auto` : `d-flex align-items-center justify-content-center flex-column `,
|
|
1363
1363
|
style: (Storage.select_function === 'page-editor' || Storage.select_function === 'user-editor')
|
|
1364
1364
|
? ``
|
|
1365
|
-
: `width: calc(${(document.body.clientWidth <
|
|
1365
|
+
: `width: calc(${(document.body.clientWidth < 992) ? `${document.body.clientWidth}px` : `100%`});height: ${window.innerHeight - EditorConfig.getPaddingTop(gvc) - 56}px;overflow:hidden;`
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
@@ -1397,7 +1397,7 @@ export class Main_editor {
|
|
|
1397
1397
|
class: Storage.view_type === ViewType.mobile && (Storage.select_function === 'page-editor' || Storage.select_function === 'user-editor')
|
|
1398
1398
|
? `d-flex align-items-center justify-content-center flex-column mx-auto` : `d-flex align-items-center justify-content-center flex-column`,
|
|
1399
1399
|
style: Storage.view_type === ViewType.mobile && (Storage.select_function === 'page-editor' || Storage.select_function === 'user-editor')
|
|
1400
|
-
? `width: calc(${(document.body.clientWidth <
|
|
1400
|
+
? `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;`
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|