ts-glitter 14.1.7 → 14.2.0
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/backend-manager/bg-list-component.js +1 -1
- package/lowcode/backend-manager/bg-list-component.ts +1 -1
- package/lowcode/editor/normal-page-editor.js +6 -4
- package/lowcode/editor/normal-page-editor.ts +6 -4
- package/lowcode/jspage/main.ts +0 -1
- package/lowcode/public-components/checkout/index.js +640 -421
- package/lowcode/public-components/checkout/index.ts +1101 -864
- package/lowcode/public-components/product/pd-card-01.js +1 -1
- package/lowcode/public-components/product/pd-card-01.ts +1 -1
- package/lowcode/public-components/product/pd-class.js +1 -0
- package/lowcode/public-components/product/pd-class.ts +2 -0
- package/package.json +1 -1
- package/src/api-public/services/shopping.js +1 -4
- package/src/api-public/services/shopping.js.map +1 -5
- package/src/api-public/services/shopping.ts +1 -6
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_14.
|
|
73
|
+
glitter.share.editerVersion = 'V_14.2.0';
|
|
74
74
|
glitter.share.start = new Date();
|
|
75
75
|
const vm = {
|
|
76
76
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -72,7 +72,7 @@ export class Entry {
|
|
|
72
72
|
}
|
|
73
73
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
74
74
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
75
|
-
glitter.share.editerVersion = 'V_14.
|
|
75
|
+
glitter.share.editerVersion = 'V_14.2.0';
|
|
76
76
|
glitter.share.start = new Date();
|
|
77
77
|
const vm: {
|
|
78
78
|
appConfig: any;
|
|
@@ -84,7 +84,7 @@ export class BgListComponent {
|
|
|
84
84
|
}
|
|
85
85
|
showRightMenu(items) {
|
|
86
86
|
const glitter = window.parent.glitter;
|
|
87
|
-
const gvc = glitter.pageConfig[
|
|
87
|
+
const gvc = glitter.pageConfig[glitter.pageConfig.length - 1].gvc;
|
|
88
88
|
const menu = glitter.share.NormalPageEditor;
|
|
89
89
|
const vmShow = { id: gvc.glitter.getUUID() };
|
|
90
90
|
menu.closeEvent = () => gvc.notifyDataChange(this.vm.id);
|
|
@@ -108,7 +108,7 @@ export class BgListComponent {
|
|
|
108
108
|
|
|
109
109
|
showRightMenu(items: FilterItem[]) {
|
|
110
110
|
const glitter = (window.parent as any).glitter;
|
|
111
|
-
const gvc: GVC = glitter.pageConfig[
|
|
111
|
+
const gvc: GVC = glitter.pageConfig[glitter.pageConfig.length-1].gvc;
|
|
112
112
|
const menu = glitter.share.NormalPageEditor;
|
|
113
113
|
const vmShow = { id: gvc.glitter.getUUID() };
|
|
114
114
|
menu.closeEvent = () => gvc.notifyDataChange(this.vm.id);
|
|
@@ -10,9 +10,6 @@ export class NormalPageEditor {
|
|
|
10
10
|
const html = String.raw;
|
|
11
11
|
return gvc.bindView(() => {
|
|
12
12
|
const id = gvc.glitter.getUUID();
|
|
13
|
-
NormalPageEditor.refresh = () => {
|
|
14
|
-
gvc.notifyDataChange(id);
|
|
15
|
-
};
|
|
16
13
|
return {
|
|
17
14
|
bind: id,
|
|
18
15
|
view: () => {
|
|
@@ -57,6 +54,9 @@ export class NormalPageEditor {
|
|
|
57
54
|
html ` <div style="height:calc(100vh - ${(65 + gvc.glitter.share.top_inset)}px); overflow-y: auto; ">${NormalPageEditor.viewArray[NormalPageEditor.viewArray.length - 1].view}</div>`,
|
|
58
55
|
].join('');
|
|
59
56
|
},
|
|
57
|
+
divCreate: {
|
|
58
|
+
class: `normal_page_editor`
|
|
59
|
+
}
|
|
60
60
|
};
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -121,7 +121,9 @@ export class NormalPageEditor {
|
|
|
121
121
|
return this.visible;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
NormalPageEditor.refresh = () => {
|
|
124
|
+
NormalPageEditor.refresh = () => {
|
|
125
|
+
(window).parent.glitter.recreateView('.normal_page_editor');
|
|
126
|
+
};
|
|
125
127
|
NormalPageEditor.viewArray = [];
|
|
126
128
|
NormalPageEditor.isRight = false;
|
|
127
129
|
NormalPageEditor.visible = false;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { GVC } from '../glitterBundle/GVController.js';
|
|
2
2
|
|
|
3
3
|
export class NormalPageEditor {
|
|
4
|
-
public static refresh = () => {
|
|
4
|
+
public static refresh = () => {
|
|
5
|
+
((window).parent as any).glitter.recreateView('.normal_page_editor')
|
|
6
|
+
};
|
|
5
7
|
|
|
6
8
|
public static back() {
|
|
7
9
|
const index2 = NormalPageEditor.viewArray.length;
|
|
@@ -15,9 +17,6 @@ export class NormalPageEditor {
|
|
|
15
17
|
const html = String.raw;
|
|
16
18
|
return gvc.bindView(() => {
|
|
17
19
|
const id = gvc.glitter.getUUID();
|
|
18
|
-
NormalPageEditor.refresh = () => {
|
|
19
|
-
gvc.notifyDataChange(id);
|
|
20
|
-
};
|
|
21
20
|
return {
|
|
22
21
|
bind: id,
|
|
23
22
|
view: () => {
|
|
@@ -62,6 +61,9 @@ export class NormalPageEditor {
|
|
|
62
61
|
html` <div style="height:calc(100vh - ${(65 + gvc.glitter.share.top_inset)}px); overflow-y: auto; ">${NormalPageEditor.viewArray[NormalPageEditor.viewArray.length - 1].view}</div>`,
|
|
63
62
|
].join('');
|
|
64
63
|
},
|
|
64
|
+
divCreate:{
|
|
65
|
+
class:`normal_page_editor`
|
|
66
|
+
}
|
|
65
67
|
};
|
|
66
68
|
});
|
|
67
69
|
}
|
package/lowcode/jspage/main.ts
CHANGED