ts-glitter 13.5.9 → 13.6.1
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/jspage/editor.js +1 -1
- package/lowcode/jspage/editor.ts +1 -1
- package/lowcode/jspage/function-page/main_editor.js +4 -0
- package/lowcode/jspage/function-page/main_editor.ts +7 -3
- package/lowcode/jspage/function-page/tool-setting.js +1 -1
- package/lowcode/jspage/function-page/tool-setting.ts +1 -1
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -59,7 +59,7 @@ export class Entry {
|
|
|
59
59
|
}
|
|
60
60
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
61
61
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
62
|
-
glitter.share.editerVersion = "V_13.
|
|
62
|
+
glitter.share.editerVersion = "V_13.6.1";
|
|
63
63
|
glitter.share.start = (new Date());
|
|
64
64
|
const vm = {
|
|
65
65
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -60,7 +60,7 @@ export class Entry {
|
|
|
60
60
|
}
|
|
61
61
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
62
62
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
63
|
-
glitter.share.editerVersion = "V_13.
|
|
63
|
+
glitter.share.editerVersion = "V_13.6.1";
|
|
64
64
|
glitter.share.start = (new Date());
|
|
65
65
|
const vm: {
|
|
66
66
|
appConfig: any;
|
package/lowcode/jspage/editor.js
CHANGED
|
@@ -270,7 +270,7 @@ color: transparent;"
|
|
|
270
270
|
>
|
|
271
271
|
</div>
|
|
272
272
|
|
|
273
|
-
${(document.body.clientWidth > 800) ? `
|
|
273
|
+
${(document.body.clientWidth > 800 || EditorConfig.backend_page() === 'backend-manger') ? `
|
|
274
274
|
<div
|
|
275
275
|
class="border-end d-flex align-items-center justify-content-center ms-n2 fs-3 d-sm-none"
|
|
276
276
|
style="width:56px;height: 56px;cursor: pointer;"
|
package/lowcode/jspage/editor.ts
CHANGED
|
@@ -271,7 +271,7 @@ color: transparent;"
|
|
|
271
271
|
>
|
|
272
272
|
</div>
|
|
273
273
|
|
|
274
|
-
${(document.body.clientWidth > 800) ? `
|
|
274
|
+
${(document.body.clientWidth > 800 || EditorConfig.backend_page() === 'backend-manger') ? `
|
|
275
275
|
<div
|
|
276
276
|
class="border-end d-flex align-items-center justify-content-center ms-n2 fs-3 d-sm-none"
|
|
277
277
|
style="width:56px;height: 56px;cursor: pointer;"
|
|
@@ -1034,6 +1034,10 @@ export class Main_editor {
|
|
|
1034
1034
|
else {
|
|
1035
1035
|
frame.style.left = `0`;
|
|
1036
1036
|
}
|
|
1037
|
+
if (gvc.glitter.share.top_inset) {
|
|
1038
|
+
frame.style.top = `${parseInt(gvc.glitter.share.top_inset, 10) + 10}px`;
|
|
1039
|
+
frame.style.height = `${frame_height - (parseInt(gvc.glitter.share.top_inset, 10) + 10)}px`;
|
|
1040
|
+
}
|
|
1037
1041
|
};
|
|
1038
1042
|
return gvc.bindView(() => {
|
|
1039
1043
|
return {
|
|
@@ -593,7 +593,7 @@ export class Main_editor {
|
|
|
593
593
|
} else {
|
|
594
594
|
return ``
|
|
595
595
|
}
|
|
596
|
-
})(),Main_editor.color_list(vm, gvc, id, globalValue),
|
|
596
|
+
})(), Main_editor.color_list(vm, gvc, id, globalValue),
|
|
597
597
|
// CustomStyle.globalContainerList(vm, gvc, id, globalValue),
|
|
598
598
|
Main_editor.fonts_list(vm, gvc, id, globalValue)
|
|
599
599
|
].join('');
|
|
@@ -1113,13 +1113,17 @@ export class Main_editor {
|
|
|
1113
1113
|
const frame_height = container_height * (frame_width / container_width);
|
|
1114
1114
|
const frame: any = document.querySelector('.iframe_view')!
|
|
1115
1115
|
frame.style.width = `${frame_width}px`;
|
|
1116
|
-
frame.style.height = `${frame_height}px`;
|
|
1116
|
+
frame.style.height = `${frame_height }px`;
|
|
1117
1117
|
frame.style.transform = `scale(${(container_width / frame_width).toFixed(2)})`
|
|
1118
1118
|
if (document.body.clientWidth > 800 && Storage.view_type === ViewType.mobile) {
|
|
1119
1119
|
frame.style.left = `25%`;
|
|
1120
|
-
}else{
|
|
1120
|
+
} else {
|
|
1121
1121
|
frame.style.left = `0`;
|
|
1122
1122
|
}
|
|
1123
|
+
if (gvc.glitter.share.top_inset) {
|
|
1124
|
+
frame.style.top = `${parseInt(gvc.glitter.share.top_inset, 10) + 10}px`;
|
|
1125
|
+
frame.style.height = `${frame_height - (parseInt(gvc.glitter.share.top_inset, 10) + 10)}px`;
|
|
1126
|
+
}
|
|
1123
1127
|
|
|
1124
1128
|
}
|
|
1125
1129
|
return gvc.bindView(() => {
|
|
@@ -48,7 +48,7 @@ export class ToolSetting {
|
|
|
48
48
|
return html `
|
|
49
49
|
${(() => {
|
|
50
50
|
if (document.body.clientWidth < 800) {
|
|
51
|
-
return `<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
51
|
+
return `<div class="w-100 d-flex align-items-center p-3 border-bottom mt-n2">
|
|
52
52
|
<h5 class="offcanvas-title " style="max-width: calc(100% - 50px);overflow: hidden;text-overflow: ellipsis;">統一元件設定</h5>
|
|
53
53
|
<div class="flex-fill"></div>
|
|
54
54
|
<div
|
|
@@ -49,7 +49,7 @@ export class ToolSetting {
|
|
|
49
49
|
return html`
|
|
50
50
|
${(() => {
|
|
51
51
|
if (document.body.clientWidth < 800) {
|
|
52
|
-
return `<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
52
|
+
return `<div class="w-100 d-flex align-items-center p-3 border-bottom mt-n2">
|
|
53
53
|
<h5 class="offcanvas-title " style="max-width: calc(100% - 50px);overflow: hidden;text-overflow: ellipsis;">統一元件設定</h5>
|
|
54
54
|
<div class="flex-fill"></div>
|
|
55
55
|
<div
|