ts-glitter 13.8.831 → 13.8.833
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/cms-plugin/shopping-product-setting.js +13 -1
- package/lowcode/cms-plugin/shopping-product-setting.ts +12 -1
- package/lowcode/jspage/function-page/main_editor.js +1 -1
- package/lowcode/jspage/function-page/main_editor.ts +2 -2
- package/lowcode/jspage/main.ts +0 -1
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -70,7 +70,7 @@ export class Entry {
|
|
|
70
70
|
}
|
|
71
71
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
72
72
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
73
|
-
glitter.share.editerVersion = 'V_13.8.
|
|
73
|
+
glitter.share.editerVersion = 'V_13.8.833';
|
|
74
74
|
glitter.share.start = new Date();
|
|
75
75
|
const vm = {
|
|
76
76
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -71,7 +71,7 @@ export class Entry {
|
|
|
71
71
|
}
|
|
72
72
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
73
73
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
74
|
-
glitter.share.editerVersion = 'V_13.8.
|
|
74
|
+
glitter.share.editerVersion = 'V_13.8.833';
|
|
75
75
|
glitter.share.start = new Date();
|
|
76
76
|
const vm: {
|
|
77
77
|
appConfig: any;
|
|
@@ -2053,7 +2053,19 @@ export class ShoppingProductSetting {
|
|
|
2053
2053
|
BgWidget.container(html `
|
|
2054
2054
|
<div class="title-container">
|
|
2055
2055
|
${BgWidget.goBack(obj.gvc.event(() => {
|
|
2056
|
-
|
|
2056
|
+
if (window.parent.glitter.share.checkData && (!window.parent.glitter.share.checkData())) {
|
|
2057
|
+
const dialog = new ShareDialog(gvc.glitter);
|
|
2058
|
+
dialog.checkYesOrNot({
|
|
2059
|
+
text: '尚未儲存內容,是否確認跳轉?', callback: (response) => {
|
|
2060
|
+
if (response) {
|
|
2061
|
+
obj.vm.type = 'list';
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
});
|
|
2065
|
+
}
|
|
2066
|
+
else {
|
|
2067
|
+
obj.vm.type = 'list';
|
|
2068
|
+
}
|
|
2057
2069
|
}))}
|
|
2058
2070
|
<h3 class="mb-0 me-3 tx_title">${obj.type === 'replace' ? postMD.title || '編輯商品' : `新增商品`}</h3>
|
|
2059
2071
|
<div class="flex-fill"></div>
|
|
@@ -2409,7 +2409,18 @@ export class ShoppingProductSetting {
|
|
|
2409
2409
|
<div class="title-container">
|
|
2410
2410
|
${BgWidget.goBack(
|
|
2411
2411
|
obj.gvc.event(() => {
|
|
2412
|
-
|
|
2412
|
+
if ((window.parent as any).glitter.share.checkData && (!(window.parent as any).glitter.share.checkData())) {
|
|
2413
|
+
const dialog = new ShareDialog(gvc.glitter)
|
|
2414
|
+
dialog.checkYesOrNot({
|
|
2415
|
+
text: '尚未儲存內容,是否確認跳轉?', callback: (response) => {
|
|
2416
|
+
if(response){
|
|
2417
|
+
obj.vm.type = 'list';
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
})
|
|
2421
|
+
}else{
|
|
2422
|
+
obj.vm.type = 'list';
|
|
2423
|
+
}
|
|
2413
2424
|
})
|
|
2414
2425
|
)}
|
|
2415
2426
|
<h3 class="mb-0 me-3 tx_title">${obj.type === 'replace' ? postMD.title || '編輯商品' : `新增商品`}</h3>
|
|
@@ -1288,7 +1288,7 @@ export class Main_editor {
|
|
|
1288
1288
|
? `d-flex align-items-center justify-content-center flex-column mx-auto` : `d-flex align-items-center justify-content-center flex-column `,
|
|
1289
1289
|
style: (Storage.select_function === 'page-editor' || Storage.select_function === 'user-editor')
|
|
1290
1290
|
? ``
|
|
1291
|
-
: `width: calc(${(document.body.clientWidth < 992) ? `${document.body.clientWidth}px` : `100%`});height: ${Storage.select_function
|
|
1291
|
+
: `width: calc(${(document.body.clientWidth < 992) ? `${document.body.clientWidth}px` : `100%`});height: ${Storage.select_function !== 'backend-manger' ? window.parent.innerHeight - 56 : window.innerHeight - (EditorConfig.getPaddingTop(gvc)) - 56}px;overflow:hidden;`
|
|
1292
1292
|
};
|
|
1293
1293
|
}
|
|
1294
1294
|
};
|
|
@@ -1361,7 +1361,7 @@ export class Main_editor {
|
|
|
1361
1361
|
? `d-flex align-items-center justify-content-center flex-column mx-auto` : `d-flex align-items-center justify-content-center flex-column `,
|
|
1362
1362
|
style: (Storage.select_function === 'page-editor' || Storage.select_function === 'user-editor')
|
|
1363
1363
|
? ``
|
|
1364
|
-
: `width: calc(${(document.body.clientWidth < 992) ? `${document.body.clientWidth}px` : `100%`});height: ${Storage.select_function
|
|
1364
|
+
: `width: calc(${(document.body.clientWidth < 992) ? `${document.body.clientWidth}px` : `100%`});height: ${Storage.select_function !== 'backend-manger' ? window.parent.innerHeight - 56 : window.innerHeight - (EditorConfig.getPaddingTop(gvc)) - 56}px;overflow:hidden;`
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
@@ -1396,7 +1396,7 @@ export class Main_editor {
|
|
|
1396
1396
|
class: Storage.view_type === ViewType.mobile && (Storage.select_function === 'page-editor' || Storage.select_function === 'user-editor')
|
|
1397
1397
|
? `d-flex align-items-center justify-content-center flex-column mx-auto` : `d-flex align-items-center justify-content-center flex-column`,
|
|
1398
1398
|
style: Storage.view_type === ViewType.mobile && (Storage.select_function === 'page-editor' || Storage.select_function === 'user-editor')
|
|
1399
|
-
? `width: calc(${(document.body.clientWidth < 992) ? `${document.body.clientWidth}px` : `414px`});height: ${window.innerHeight - EditorConfig.getPaddingTop(gvc) - 56}px;`
|
|
1399
|
+
? `width: calc(${(document.body.clientWidth < 992) ? `${document.body.clientWidth}px` : `414px`});height: ${window.innerHeight - EditorConfig.getPaddingTop(gvc) - 56}px;`
|
|
1400
1400
|
: `width: calc(${(document.body.clientWidth < 800) ? `${document.body.clientWidth}px` : `100%`});height: ${window.innerHeight - EditorConfig.getPaddingTop(gvc) - 56}px;overflow:hidden;`
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
package/lowcode/jspage/main.ts
CHANGED
|
@@ -735,7 +735,6 @@ ${Storage.page_setting_item === `${da.index}` ? `background:${EditorConfig.edito
|
|
|
735
735
|
switch (Storage.select_function) {
|
|
736
736
|
case 'backend-manger': {
|
|
737
737
|
let bgGuide = new BgGuide(gvc, 0);
|
|
738
|
-
// let bgMobileGuide = new BgMobileGuide(gvc,1);
|
|
739
738
|
console.log("appear -- ")
|
|
740
739
|
if (document.body.clientWidth > 1000) {
|
|
741
740
|
ApiShop.getGuideable().then(r => {
|