ts-glitter 13.8.742 → 13.8.745
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 +3 -3
- package/lowcode/glitterBundle/module/html-generate.ts +3 -3
- package/lowcode/jspage/editor.js +2 -2
- package/lowcode/jspage/editor.ts +2 -2
- package/lowcode/jspage/function-page/main_editor.js +3 -3
- package/lowcode/jspage/function-page/main_editor.ts +3 -3
- 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.745';
|
|
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.745';
|
|
72
72
|
glitter.share.start = new Date();
|
|
73
73
|
const vm: {
|
|
74
74
|
appConfig: any;
|
|
@@ -1661,7 +1661,7 @@ ${obj.gvc.bindView({
|
|
|
1661
1661
|
${widget.visible === false ? ` hide-elem` : ``}`,
|
|
1662
1662
|
option: option.concat((() => {
|
|
1663
1663
|
if (root && isEditMode()) {
|
|
1664
|
-
if (window.parent.document.body.clientWidth <
|
|
1664
|
+
if (window.parent.document.body.clientWidth < 992) {
|
|
1665
1665
|
return [
|
|
1666
1666
|
{
|
|
1667
1667
|
key: 'onclick',
|
|
@@ -1958,7 +1958,7 @@ background: white;
|
|
|
1958
1958
|
}
|
|
1959
1959
|
else {
|
|
1960
1960
|
function getPlusAndPasteView(dir) {
|
|
1961
|
-
if (window.parent.document.body.clientWidth <
|
|
1961
|
+
if (window.parent.document.body.clientWidth < 992) {
|
|
1962
1962
|
return ``;
|
|
1963
1963
|
}
|
|
1964
1964
|
const detID = cf.gvc.glitter.getUUID();
|
|
@@ -2079,7 +2079,7 @@ transform: translateY(5px);
|
|
|
2079
2079
|
</div>`;
|
|
2080
2080
|
}
|
|
2081
2081
|
return html `
|
|
2082
|
-
${cf.gvc.glitter.document.body.clientWidth >
|
|
2082
|
+
${cf.gvc.glitter.document.body.clientWidth > 992
|
|
2083
2083
|
? `<div
|
|
2084
2084
|
class="position-absolute align-items-center justify-content-center px-3 fw-500 fs-6 badge_it"
|
|
2085
2085
|
style="height:22px;left:-2px;top:-22px;background: linear-gradient(143deg, #FFB400 -22.7%, #FF6C02 114.57%);color:white;white-space: nowrap;"
|
|
@@ -2122,7 +2122,7 @@ ${e.line}
|
|
|
2122
2122
|
option: option.concat(
|
|
2123
2123
|
(() => {
|
|
2124
2124
|
if (root && isEditMode()) {
|
|
2125
|
-
if ((window.parent as any).document.body.clientWidth <
|
|
2125
|
+
if ((window.parent as any).document.body.clientWidth < 992) {
|
|
2126
2126
|
return [
|
|
2127
2127
|
{
|
|
2128
2128
|
key: 'onclick',
|
|
@@ -2442,7 +2442,7 @@ background: white;
|
|
|
2442
2442
|
`;
|
|
2443
2443
|
} else {
|
|
2444
2444
|
function getPlusAndPasteView(dir: number) {
|
|
2445
|
-
if ((window.parent as any).document.body.clientWidth <
|
|
2445
|
+
if ((window.parent as any).document.body.clientWidth < 992) {
|
|
2446
2446
|
return ``;
|
|
2447
2447
|
}
|
|
2448
2448
|
const detID = cf.gvc.glitter.getUUID();
|
|
@@ -2566,7 +2566,7 @@ transform: translateY(5px);
|
|
|
2566
2566
|
}
|
|
2567
2567
|
|
|
2568
2568
|
return html`
|
|
2569
|
-
${cf.gvc.glitter.document.body.clientWidth >
|
|
2569
|
+
${cf.gvc.glitter.document.body.clientWidth > 992
|
|
2570
2570
|
? `<div
|
|
2571
2571
|
class="position-absolute align-items-center justify-content-center px-3 fw-500 fs-6 badge_it"
|
|
2572
2572
|
style="height:22px;left:-2px;top:-22px;background: linear-gradient(143deg, #FFB400 -22.7%, #FF6C02 114.57%);color:white;white-space: nowrap;"
|
package/lowcode/jspage/editor.js
CHANGED
|
@@ -326,7 +326,7 @@ color: transparent;"
|
|
|
326
326
|
gvc.glitter.share.editorViewModel.waitCopy = undefined;
|
|
327
327
|
gvc.glitter.share.editorViewModel.selectItem = undefined;
|
|
328
328
|
Storage.page_setting_item = dd.index;
|
|
329
|
-
if (document.body.clientWidth <
|
|
329
|
+
if (document.body.clientWidth < 992) {
|
|
330
330
|
glitter.share.toggle_left_bar();
|
|
331
331
|
}
|
|
332
332
|
Storage.lastSelect = '';
|
|
@@ -400,7 +400,7 @@ ${dd.title}</a></li>`;
|
|
|
400
400
|
view: () => {
|
|
401
401
|
const size = document.body.clientWidth > 768 ? 24 : 18;
|
|
402
402
|
return [
|
|
403
|
-
(document.body.clientWidth <
|
|
403
|
+
(document.body.clientWidth < 992) ? `` : html `
|
|
404
404
|
<div
|
|
405
405
|
class="ms-auto me-2 bt_orange_lin_mb d-md-flex"
|
|
406
406
|
style=""
|
package/lowcode/jspage/editor.ts
CHANGED
|
@@ -325,7 +325,7 @@ color: transparent;"
|
|
|
325
325
|
gvc.glitter.share.editorViewModel.waitCopy = undefined;
|
|
326
326
|
gvc.glitter.share.editorViewModel.selectItem = undefined;
|
|
327
327
|
Storage.page_setting_item = dd.index as any;
|
|
328
|
-
if (document.body.clientWidth <
|
|
328
|
+
if (document.body.clientWidth < 992) {
|
|
329
329
|
glitter.share.toggle_left_bar()
|
|
330
330
|
}
|
|
331
331
|
Storage.lastSelect = '';
|
|
@@ -416,7 +416,7 @@ ${dd.title}</a></li>`
|
|
|
416
416
|
// class="me-2" style="width:${size}px;height: ${size}px;">
|
|
417
417
|
// <span class="fw-500" style="font-size: 10px;">AI</span>
|
|
418
418
|
// </div>`,
|
|
419
|
-
(document.body.clientWidth<
|
|
419
|
+
(document.body.clientWidth<992) ? ``: html`
|
|
420
420
|
<div
|
|
421
421
|
class="ms-auto me-2 bt_orange_lin_mb d-md-flex"
|
|
422
422
|
style=""
|
|
@@ -1041,7 +1041,7 @@ export class Main_editor {
|
|
|
1041
1041
|
gvc.glitter.share.resetCenterFrame = (scale) => {
|
|
1042
1042
|
const container_width = (() => {
|
|
1043
1043
|
if (Storage.view_type === ViewType.mobile) {
|
|
1044
|
-
return (document.body.clientWidth >
|
|
1044
|
+
return (document.body.clientWidth > 800) ? 414 : document.body.clientWidth;
|
|
1045
1045
|
}
|
|
1046
1046
|
else {
|
|
1047
1047
|
return (document.body.clientWidth < 992) ? document.body.clientWidth : document.body.clientWidth - 365;
|
|
@@ -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 > 800 && Storage.view_type === ViewType.mobile) {
|
|
1080
1080
|
frame.style.left = `25%`;
|
|
1081
1081
|
}
|
|
1082
1082
|
else {
|
|
@@ -1217,7 +1217,7 @@ export class Main_editor {
|
|
|
1217
1217
|
<div class="rounded-1 border bg-white p-1 px-2 fw-500"
|
|
1218
1218
|
style="font-size: 14px;color:black;"
|
|
1219
1219
|
onclick="${gvc.event(() => {
|
|
1220
|
-
gvc.glitter.
|
|
1220
|
+
gvc.glitter.share.toggle_left_bar();
|
|
1221
1221
|
})}">編輯
|
|
1222
1222
|
</div>
|
|
1223
1223
|
<div class="rounded-1 border bg-white p-1 px-2 fw-500 ${(gvc.glitter.share.editorViewModel.selectItem.deletable === 'false') ? `d-none` : ``}"
|
|
@@ -1123,7 +1123,7 @@ export class Main_editor {
|
|
|
1123
1123
|
gvc.glitter.share.resetCenterFrame = (scale?: number) => {
|
|
1124
1124
|
const container_width = (() => {
|
|
1125
1125
|
if (Storage.view_type === ViewType.mobile) {
|
|
1126
|
-
return (document.body.clientWidth >
|
|
1126
|
+
return (document.body.clientWidth > 800) ? 414 : document.body.clientWidth;
|
|
1127
1127
|
} else {
|
|
1128
1128
|
return (document.body.clientWidth < 992) ? document.body.clientWidth : document.body.clientWidth - 365;
|
|
1129
1129
|
}
|
|
@@ -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 > 800 && Storage.view_type === ViewType.mobile) {
|
|
1158
1158
|
frame.style.left = `25%`;
|
|
1159
1159
|
} else {
|
|
1160
1160
|
frame.style.left = `0`;
|
|
@@ -1291,7 +1291,7 @@ export class Main_editor {
|
|
|
1291
1291
|
<div class="rounded-1 border bg-white p-1 px-2 fw-500"
|
|
1292
1292
|
style="font-size: 14px;color:black;"
|
|
1293
1293
|
onclick="${gvc.event(() => {
|
|
1294
|
-
gvc.glitter.
|
|
1294
|
+
gvc.glitter.share.toggle_left_bar()
|
|
1295
1295
|
})}">編輯
|
|
1296
1296
|
</div>
|
|
1297
1297
|
<div class="rounded-1 border bg-white p-1 px-2 fw-500 ${(gvc.glitter.share.editorViewModel.selectItem.deletable === 'false') ? `d-none` : ``}"
|