ts-glitter 15.9.5 → 15.9.7
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
|
@@ -79,7 +79,7 @@ export class Entry {
|
|
|
79
79
|
}
|
|
80
80
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
81
81
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
82
|
-
glitter.share.editerVersion = 'V_15.9.
|
|
82
|
+
glitter.share.editerVersion = 'V_15.9.7';
|
|
83
83
|
glitter.share.start = new Date();
|
|
84
84
|
const vm = {
|
|
85
85
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -81,7 +81,7 @@ export class Entry {
|
|
|
81
81
|
|
|
82
82
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
83
83
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
84
|
-
glitter.share.editerVersion = 'V_15.9.
|
|
84
|
+
glitter.share.editerVersion = 'V_15.9.7';
|
|
85
85
|
glitter.share.start = new Date();
|
|
86
86
|
const vm: {
|
|
87
87
|
appConfig: any;
|
|
@@ -892,10 +892,10 @@ export class SaasViewModel {
|
|
|
892
892
|
`);
|
|
893
893
|
gvc.glitter.addStyleLink(gvc.glitter.root_path + `/css/editor.css`);
|
|
894
894
|
const hr = html `
|
|
895
|
-
<div style="width: 600px;max-width: calc(100vw - 20px); overflow-y: auto;max-height: 100vh
|
|
896
|
-
class="bg-white shadow rounded-3">
|
|
895
|
+
<div style="${(document.body.clientWidth < 800) ? `width: 100%;` : `width: 600px;max-width: calc(100vw - 20px); overflow-y: auto;max-height: 100vh;`}"
|
|
896
|
+
class="bg-white shadow ${(document.body.clientWidth > 800) ? `rounded-3` : ``}">
|
|
897
897
|
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
898
|
-
<div class="fw-500 color39">建立您的商店</div>
|
|
898
|
+
<div class="fw-500 color39" style="padding-top: ${gvc.glitter.share.top_inset}px;">建立您的商店</div>
|
|
899
899
|
<div class="flex-fill"></div>
|
|
900
900
|
<i
|
|
901
901
|
class="fa-regular fa-circle-xmark fs-5 color39 ${register ? `d-none` : ``}"
|
|
@@ -960,7 +960,7 @@ ${['選擇初始模板', BgWidget.grayNote('請選擇初始模板,後續可在
|
|
|
960
960
|
</div>`;
|
|
961
961
|
},
|
|
962
962
|
divCreate: {
|
|
963
|
-
style: `max-height:calc(
|
|
963
|
+
style: `max-height:calc(${window.innerHeight - gvc.glitter.share.top_inset - gvc.glitter.share.bottom_inset}px - 115px);overflow-y:auto;`,
|
|
964
964
|
class: ``,
|
|
965
965
|
},
|
|
966
966
|
};
|
|
@@ -990,6 +990,11 @@ ${['選擇初始模板', BgWidget.grayNote('請選擇初始模板,後續可在
|
|
|
990
990
|
</div>
|
|
991
991
|
</div>`;
|
|
992
992
|
if (register) {
|
|
993
|
+
if (document.body.clientWidth < 800) {
|
|
994
|
+
return `<div class="position-fixed w-100 vh-100 bg-white" style="top:0px;left:0px;">
|
|
995
|
+
${hr}
|
|
996
|
+
</div>`;
|
|
997
|
+
}
|
|
993
998
|
return html `
|
|
994
999
|
<div
|
|
995
1000
|
class="position-fixed vw-100 vh-100 d-flex align-items-center justify-content-center bg-white"
|
|
@@ -931,10 +931,10 @@ export class SaasViewModel {
|
|
|
931
931
|
`);
|
|
932
932
|
gvc.glitter.addStyleLink(gvc.glitter.root_path + `/css/editor.css`);
|
|
933
933
|
const hr = html`
|
|
934
|
-
<div style="width: 600px;max-width: calc(100vw - 20px); overflow-y: auto;max-height: 100vh
|
|
935
|
-
class="bg-white shadow rounded-3">
|
|
934
|
+
<div style="${(document.body.clientWidth<800) ? `width: 100%;`:`width: 600px;max-width: calc(100vw - 20px); overflow-y: auto;max-height: 100vh;`}"
|
|
935
|
+
class="bg-white shadow ${(document.body.clientWidth>800) ? `rounded-3`:``}">
|
|
936
936
|
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
937
|
-
<div class="fw-500 color39">建立您的商店</div>
|
|
937
|
+
<div class="fw-500 color39" style="padding-top: ${gvc.glitter.share.top_inset}px;">建立您的商店</div>
|
|
938
938
|
<div class="flex-fill"></div>
|
|
939
939
|
<i
|
|
940
940
|
class="fa-regular fa-circle-xmark fs-5 color39 ${register ? `d-none` : ``}"
|
|
@@ -1000,7 +1000,7 @@ ${['選擇初始模板',BgWidget.grayNote('請選擇初始模板,後續可在
|
|
|
1000
1000
|
</div>`;
|
|
1001
1001
|
},
|
|
1002
1002
|
divCreate: {
|
|
1003
|
-
style: `max-height:calc(
|
|
1003
|
+
style: `max-height:calc(${window.innerHeight - gvc.glitter.share.top_inset - gvc.glitter.share.bottom_inset}px - 115px);overflow-y:auto;`,
|
|
1004
1004
|
class: ``,
|
|
1005
1005
|
},
|
|
1006
1006
|
};
|
|
@@ -1030,6 +1030,11 @@ ${['選擇初始模板',BgWidget.grayNote('請選擇初始模板,後續可在
|
|
|
1030
1030
|
</div>
|
|
1031
1031
|
</div>`;
|
|
1032
1032
|
if (register) {
|
|
1033
|
+
if(document.body.clientWidth<800){
|
|
1034
|
+
return `<div class="position-fixed w-100 vh-100 bg-white" style="top:0px;left:0px;">
|
|
1035
|
+
${hr}
|
|
1036
|
+
</div>`
|
|
1037
|
+
}
|
|
1033
1038
|
return html`
|
|
1034
1039
|
<div
|
|
1035
1040
|
class="position-fixed vw-100 vh-100 d-flex align-items-center justify-content-center bg-white"
|