ts-glitter 13.8.668 → 13.8.669
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
|
@@ -64,7 +64,7 @@ export class Entry {
|
|
|
64
64
|
}
|
|
65
65
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
66
66
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
67
|
-
glitter.share.editerVersion = 'V_13.8.
|
|
67
|
+
glitter.share.editerVersion = 'V_13.8.669';
|
|
68
68
|
glitter.share.start = new Date();
|
|
69
69
|
const vm = {
|
|
70
70
|
appConfig: [],
|
|
@@ -432,6 +432,20 @@ export class Entry {
|
|
|
432
432
|
});
|
|
433
433
|
}
|
|
434
434
|
static resourceInitial(glitter, vm, callback) {
|
|
435
|
+
glitter.runJsInterFace('getTopInset', {}, (response) => {
|
|
436
|
+
glitter.share.top_inset = (response.data);
|
|
437
|
+
}, {
|
|
438
|
+
webFunction: () => {
|
|
439
|
+
return { data: 0 };
|
|
440
|
+
},
|
|
441
|
+
});
|
|
442
|
+
glitter.runJsInterFace('getBottomInset', {}, (response) => {
|
|
443
|
+
glitter.share.bottom_inset = (response.data);
|
|
444
|
+
}, {
|
|
445
|
+
webFunction: () => {
|
|
446
|
+
return { data: 0 };
|
|
447
|
+
},
|
|
448
|
+
});
|
|
435
449
|
window.glitterInitialHelper.getPlugin((dd) => {
|
|
436
450
|
var _a, _b, _c, _d, _e;
|
|
437
451
|
console.log(`getPlugin-time:`, window.renderClock.stop());
|
package/lowcode/Entry.ts
CHANGED
|
@@ -64,7 +64,7 @@ export class Entry {
|
|
|
64
64
|
}
|
|
65
65
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
66
66
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
67
|
-
glitter.share.editerVersion = 'V_13.8.
|
|
67
|
+
glitter.share.editerVersion = 'V_13.8.669';
|
|
68
68
|
glitter.share.start = new Date();
|
|
69
69
|
const vm: {
|
|
70
70
|
appConfig: any;
|
|
@@ -491,6 +491,32 @@ export class Entry {
|
|
|
491
491
|
|
|
492
492
|
// 資源初始化
|
|
493
493
|
public static resourceInitial(glitter: Glitter, vm: any, callback: (data: any) => void) {
|
|
494
|
+
//取得APP的上間隔距離
|
|
495
|
+
glitter.runJsInterFace(
|
|
496
|
+
'getTopInset',
|
|
497
|
+
{},
|
|
498
|
+
(response: any) => {
|
|
499
|
+
glitter.share.top_inset=(response.data);
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
webFunction: () => {
|
|
503
|
+
return {data: 0};
|
|
504
|
+
},
|
|
505
|
+
}
|
|
506
|
+
);
|
|
507
|
+
//取得APP的底部間隔距離
|
|
508
|
+
glitter.runJsInterFace(
|
|
509
|
+
'getBottomInset',
|
|
510
|
+
{},
|
|
511
|
+
(response: any) => {
|
|
512
|
+
glitter.share.bottom_inset=(response.data);
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
webFunction: () => {
|
|
516
|
+
return {data: 0};
|
|
517
|
+
},
|
|
518
|
+
}
|
|
519
|
+
);
|
|
494
520
|
(window as any).glitterInitialHelper.getPlugin((dd: any) => {
|
|
495
521
|
console.log(`getPlugin-time:`, (window as any).renderClock.stop());
|
|
496
522
|
(window as any).saasConfig.appConfig = dd.response.data;
|
|
@@ -314,14 +314,14 @@ height: 51px;
|
|
|
314
314
|
return html `
|
|
315
315
|
<div
|
|
316
316
|
class="d-flex nav-top"
|
|
317
|
-
style="z-index:20;height: ${(() => {
|
|
317
|
+
style="z-index:20;min-height: ${(() => {
|
|
318
318
|
if (document.body.offsetWidth > 800) {
|
|
319
319
|
return `86px`;
|
|
320
320
|
}
|
|
321
321
|
else {
|
|
322
322
|
return `66px`;
|
|
323
323
|
}
|
|
324
|
-
})()};width: 100%;background: #FFF;box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.10);position: fixed;left: 0;top: 0;"
|
|
324
|
+
})()};padding-top:${glitter.share.top_inset}px;width: 100%;background: #FFF;box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.10);position: fixed;left: 0;top: 0;"
|
|
325
325
|
>
|
|
326
326
|
<div
|
|
327
327
|
class="POS-logo h-100 d-flex align-items-center ${document.body.offsetWidth < 800 ? `justify-content-center` : ``} mx-2 w-100"
|
|
@@ -611,7 +611,7 @@ cursor: pointer;
|
|
|
611
611
|
}),
|
|
612
612
|
divCreate: {
|
|
613
613
|
class: `h-100 ${document.body.clientWidth < 768 ? `` : `d-flex`}`,
|
|
614
|
-
style: `background: #F7F7F7;`,
|
|
614
|
+
style: `background: #F7F7F7;padding-top:${glitter.share.top_inset}px;`,
|
|
615
615
|
},
|
|
616
616
|
})}
|
|
617
617
|
${gvc.bindView({
|
|
@@ -355,13 +355,13 @@ height: 51px;
|
|
|
355
355
|
return html`
|
|
356
356
|
<div
|
|
357
357
|
class="d-flex nav-top"
|
|
358
|
-
style="z-index:20;height: ${(() => {
|
|
358
|
+
style="z-index:20;min-height: ${(() => {
|
|
359
359
|
if (document.body.offsetWidth > 800) {
|
|
360
360
|
return `86px`
|
|
361
361
|
} else {
|
|
362
362
|
return `66px`
|
|
363
363
|
}
|
|
364
|
-
})()};width: 100%;background: #FFF;box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.10);position: fixed;left: 0;top: 0;"
|
|
364
|
+
})()};padding-top:${glitter.share.top_inset}px;width: 100%;background: #FFF;box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.10);position: fixed;left: 0;top: 0;"
|
|
365
365
|
>
|
|
366
366
|
<div
|
|
367
367
|
class="POS-logo h-100 d-flex align-items-center ${document.body.offsetWidth < 800 ? `justify-content-center` : ``} mx-2 w-100"
|
|
@@ -654,7 +654,7 @@ cursor: pointer;
|
|
|
654
654
|
},
|
|
655
655
|
divCreate: {
|
|
656
656
|
class: `h-100 ${document.body.clientWidth < 768 ? `` : `d-flex`}`,
|
|
657
|
-
style: `background: #F7F7F7;`,
|
|
657
|
+
style: `background: #F7F7F7;padding-top:${glitter.share.top_inset}px;`,
|
|
658
658
|
},
|
|
659
659
|
})}
|
|
660
660
|
${gvc.bindView({
|
package/lowcode/jspage/main.js
CHANGED
|
@@ -180,15 +180,6 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
|
|
|
180
180
|
else {
|
|
181
181
|
dialog.dataLoading({ visible: true });
|
|
182
182
|
}
|
|
183
|
-
glitter.share.top_inset = yield new Promise((resolve, reject) => {
|
|
184
|
-
glitter.runJsInterFace('getTopInset', {}, (response) => {
|
|
185
|
-
resolve(response.data);
|
|
186
|
-
}, {
|
|
187
|
-
webFunction: () => {
|
|
188
|
-
return { data: 0 };
|
|
189
|
-
},
|
|
190
|
-
});
|
|
191
|
-
});
|
|
192
183
|
if (parseInt(glitter.share.top_inset, 10)) {
|
|
193
184
|
gvc.addStyle(css `
|
|
194
185
|
.scroll-in {
|
|
@@ -200,15 +191,6 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
|
|
|
200
191
|
}
|
|
201
192
|
`);
|
|
202
193
|
}
|
|
203
|
-
glitter.share.bottom_inset = yield new Promise((resolve, reject) => {
|
|
204
|
-
glitter.runJsInterFace('getBottomInset', {}, (response) => {
|
|
205
|
-
resolve(response.data);
|
|
206
|
-
}, {
|
|
207
|
-
webFunction: () => {
|
|
208
|
-
return { data: 0 };
|
|
209
|
-
},
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
194
|
const waitGetData = [
|
|
213
195
|
() => __awaiter(this, void 0, void 0, function* () {
|
|
214
196
|
return yield new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
package/lowcode/jspage/main.ts
CHANGED
|
@@ -203,20 +203,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
|
|
|
203
203
|
} else {
|
|
204
204
|
dialog.dataLoading({visible: true})
|
|
205
205
|
}
|
|
206
|
-
|
|
207
|
-
glitter.runJsInterFace(
|
|
208
|
-
'getTopInset',
|
|
209
|
-
{},
|
|
210
|
-
(response: any) => {
|
|
211
|
-
resolve(response.data);
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
webFunction: () => {
|
|
215
|
-
return {data: 0};
|
|
216
|
-
},
|
|
217
|
-
}
|
|
218
|
-
)
|
|
219
|
-
})
|
|
206
|
+
|
|
220
207
|
if (parseInt(glitter.share.top_inset, 10)) {
|
|
221
208
|
gvc.addStyle(css`
|
|
222
209
|
.scroll-in {
|
|
@@ -229,20 +216,6 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
|
|
|
229
216
|
`)
|
|
230
217
|
}
|
|
231
218
|
|
|
232
|
-
glitter.share.bottom_inset = await new Promise((resolve, reject) => {
|
|
233
|
-
glitter.runJsInterFace(
|
|
234
|
-
'getBottomInset',
|
|
235
|
-
{},
|
|
236
|
-
(response: any) => {
|
|
237
|
-
resolve(response.data);
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
webFunction: () => {
|
|
241
|
-
return {data: 0};
|
|
242
|
-
},
|
|
243
|
-
}
|
|
244
|
-
)
|
|
245
|
-
})
|
|
246
219
|
|
|
247
220
|
|
|
248
221
|
const waitGetData = [
|