ts-glitter 13.6.2 → 13.6.3
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/glitterBundle/module/html-generate.js +13 -2
- package/lowcode/glitterBundle/module/html-generate.ts +12 -9
- package/lowcode/jspage/function-page/main_editor.js +2 -2
- package/lowcode/jspage/function-page/main_editor.ts +2 -2
- 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.6.
|
|
62
|
+
glitter.share.editerVersion = "V_13.6.3";
|
|
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.6.
|
|
63
|
+
glitter.share.editerVersion = "V_13.6.3";
|
|
64
64
|
glitter.share.start = (new Date());
|
|
65
65
|
const vm: {
|
|
66
66
|
appConfig: any;
|
|
@@ -1695,6 +1695,17 @@ ${obj.gvc.bindView({
|
|
|
1695
1695
|
{
|
|
1696
1696
|
key: 'onmouseover',
|
|
1697
1697
|
value: gvc.event((e, event) => {
|
|
1698
|
+
if (document.body.clientWidth < 800) {
|
|
1699
|
+
HtmlGenerate.selectWidget({
|
|
1700
|
+
gvc: gvc,
|
|
1701
|
+
widget: widget,
|
|
1702
|
+
widgetComponentID: cf.widget.id,
|
|
1703
|
+
event: event,
|
|
1704
|
+
glitter: window.parent.glitter,
|
|
1705
|
+
});
|
|
1706
|
+
return;
|
|
1707
|
+
}
|
|
1708
|
+
;
|
|
1698
1709
|
$(e).children('.editorChild').children('.copy-btn').show();
|
|
1699
1710
|
$(e).children('.editorChild').children('.plus_bt').show();
|
|
1700
1711
|
function loop(item) {
|
|
@@ -2062,12 +2073,12 @@ transform: translateY(5px);
|
|
|
2062
2073
|
</div>`;
|
|
2063
2074
|
}
|
|
2064
2075
|
return html `
|
|
2065
|
-
|
|
2076
|
+
${cf.gvc.glitter.document.body.clientWidth > 800 ? `<div
|
|
2066
2077
|
class="position-absolute align-items-center justify-content-center px-3 fw-500 fs-6 badge_it"
|
|
2067
2078
|
style="height:22px;left:-2px;top:-22px;background: linear-gradient(143deg, #FFB400 -22.7%, #FF6C02 114.57%);color:white;white-space: nowrap;"
|
|
2068
2079
|
>
|
|
2069
2080
|
${cf.label}
|
|
2070
|
-
</div
|
|
2081
|
+
</div>` : ``}
|
|
2071
2082
|
<div
|
|
2072
2083
|
class="position-absolute fs-1 plus_bt"
|
|
2073
2084
|
style="left:50%;transform: translateX(-50%);height:20px;top:${(Storage.view_type === 'mobile')
|
|
@@ -2181,15 +2181,18 @@ ${e.line}
|
|
|
2181
2181
|
{
|
|
2182
2182
|
key: 'onmouseover',
|
|
2183
2183
|
value: gvc.event((e, event) => {
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2184
|
+
if(document.body.clientWidth<800){
|
|
2185
|
+
HtmlGenerate.selectWidget({
|
|
2186
|
+
gvc: gvc,
|
|
2187
|
+
widget: widget,
|
|
2188
|
+
widgetComponentID: cf.widget.id,
|
|
2189
|
+
event: event,
|
|
2190
|
+
glitter: (window.parent as any).glitter,
|
|
2191
|
+
});
|
|
2192
|
+
return
|
|
2193
|
+
};
|
|
2190
2194
|
($(e).children('.editorChild').children('.copy-btn') as any).show();
|
|
2191
2195
|
($(e).children('.editorChild').children('.plus_bt') as any).show();
|
|
2192
|
-
|
|
2193
2196
|
function loop(item: any) {
|
|
2194
2197
|
|
|
2195
2198
|
if(item[0] && item[0].tagName.toLowerCase()==='li'){
|
|
@@ -2586,12 +2589,12 @@ transform: translateY(5px);
|
|
|
2586
2589
|
}
|
|
2587
2590
|
|
|
2588
2591
|
return html`
|
|
2589
|
-
|
|
2592
|
+
${cf.gvc.glitter.document.body.clientWidth>800 ? `<div
|
|
2590
2593
|
class="position-absolute align-items-center justify-content-center px-3 fw-500 fs-6 badge_it"
|
|
2591
2594
|
style="height:22px;left:-2px;top:-22px;background: linear-gradient(143deg, #FFB400 -22.7%, #FF6C02 114.57%);color:white;white-space: nowrap;"
|
|
2592
2595
|
>
|
|
2593
2596
|
${cf.label}
|
|
2594
|
-
</div
|
|
2597
|
+
</div>`:``}
|
|
2595
2598
|
<div
|
|
2596
2599
|
class="position-absolute fs-1 plus_bt"
|
|
2597
2600
|
style="left:50%;transform: translateX(-50%);height:20px;top:${(Storage.view_type === 'mobile')
|
|
@@ -1033,7 +1033,7 @@ export class Main_editor {
|
|
|
1033
1033
|
})();
|
|
1034
1034
|
const container_height = (() => {
|
|
1035
1035
|
if (gvc.glitter.share.top_inset) {
|
|
1036
|
-
return document.body.clientHeight - 56 - (parseInt(gvc.glitter.share.top_inset, 10)
|
|
1036
|
+
return document.body.clientHeight - 56 - (parseInt(gvc.glitter.share.top_inset, 10));
|
|
1037
1037
|
}
|
|
1038
1038
|
else {
|
|
1039
1039
|
return document.body.clientHeight - 56;
|
|
@@ -1059,7 +1059,7 @@ export class Main_editor {
|
|
|
1059
1059
|
frame.style.left = `0`;
|
|
1060
1060
|
}
|
|
1061
1061
|
if (gvc.glitter.share.top_inset) {
|
|
1062
|
-
frame.style.top = `${parseInt(gvc.glitter.share.top_inset, 10) +
|
|
1062
|
+
frame.style.top = `${parseInt(gvc.glitter.share.top_inset, 10) + tool_box}px`;
|
|
1063
1063
|
}
|
|
1064
1064
|
else {
|
|
1065
1065
|
frame.style.top = `${tool_box}px`;
|
|
@@ -1111,7 +1111,7 @@ export class Main_editor {
|
|
|
1111
1111
|
})()
|
|
1112
1112
|
const container_height = (() => {
|
|
1113
1113
|
if (gvc.glitter.share.top_inset) {
|
|
1114
|
-
return document.body.clientHeight - 56 - (parseInt(gvc.glitter.share.top_inset, 10)
|
|
1114
|
+
return document.body.clientHeight - 56 - (parseInt(gvc.glitter.share.top_inset, 10));
|
|
1115
1115
|
} else {
|
|
1116
1116
|
return document.body.clientHeight - 56;
|
|
1117
1117
|
}
|
|
@@ -1135,7 +1135,7 @@ export class Main_editor {
|
|
|
1135
1135
|
frame.style.left = `0`;
|
|
1136
1136
|
}
|
|
1137
1137
|
if (gvc.glitter.share.top_inset) {
|
|
1138
|
-
frame.style.top = `${parseInt(gvc.glitter.share.top_inset, 10)
|
|
1138
|
+
frame.style.top = `${parseInt(gvc.glitter.share.top_inset, 10) + tool_box}px`;
|
|
1139
1139
|
} else {
|
|
1140
1140
|
frame.style.top = `${tool_box}px`;
|
|
1141
1141
|
}
|