ts-glitter 21.1.5 → 21.1.7
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/create.js +1 -0
- package/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/cms-plugin/module/order-excel.js +256 -132
- package/lowcode/cms-plugin/module/order-excel.ts +228 -81
- package/lowcode/cms-plugin/shopping-finance-setting.js +1 -1
- package/lowcode/cms-plugin/shopping-finance-setting.ts +1 -1
- package/lowcode/cms-plugin/shopping-order-manager.js +33 -29
- package/lowcode/cms-plugin/shopping-order-manager.ts +36 -30
- package/lowcode/editor-components/global-widget/bridge.js +43 -0
- package/lowcode/editor-components/global-widget/bridge.ts +46 -0
- package/lowcode/editor-components/global-widget/global-widget.js +254 -0
- package/lowcode/editor-components/global-widget/global-widget.ts +269 -0
- package/lowcode/editor-components/global-widget/src/banner.jpg +0 -0
- package/lowcode/editor-components/global-widget/src/footer.jpg +0 -0
- package/lowcode/editor-components/global-widget/src/header.png +0 -0
- package/lowcode/editor-components/global-widget/src/product.jpg +0 -0
- package/lowcode/glitterBundle/plugins/editor-elem.js +14 -4
- package/lowcode/glitterBundle/plugins/editor-elem.ts +13 -4
- package/lowcode/jspage/function-page/main_editor.js +14 -10
- package/lowcode/jspage/function-page/main_editor.ts +14 -10
- package/lowcode/jspage/function-page/tool-setting.js +260 -300
- package/lowcode/jspage/function-page/tool-setting.ts +350 -384
- package/lowcode/official_view_component/official/component.ts +1 -0
- package/lowcode/public-components/checkout/index.js +32 -1
- package/lowcode/public-components/checkout/index.ts +32 -1
- package/lowcode/public-components/product/pd-card-01.js +0 -58
- package/lowcode/public-components/product/pd-card-01.ts +0 -45
- package/lowcode/public-components/product/pd-card-02.js +1 -59
- package/lowcode/public-components/product/pd-card-02.ts +1 -45
- package/lowcode/public-components/product/pd-card-03.js +2 -59
- package/lowcode/public-components/product/pd-card-03.ts +2 -46
- package/package.json +3 -1
- package/src/api-public/services/financial-serviceV2.js +17 -7
- package/src/api-public/services/financial-serviceV2.js.map +1 -1
- package/src/api-public/services/post.js +17 -7
- package/src/api-public/services/post.js.map +1 -1
- package/src/api-public/services/shopee.js +17 -7
- package/src/api-public/services/shopee.js.map +1 -1
- package/src/api-public/services/shopping.js.map +1 -1
|
@@ -775,6 +775,15 @@ export class EditorElem {
|
|
|
775
775
|
structEnd?: string;
|
|
776
776
|
}) {
|
|
777
777
|
const codeID = obj.gvc.glitter.getUUID();
|
|
778
|
+
console.log(`codeEditor`, {
|
|
779
|
+
type: 'getData',
|
|
780
|
+
value: `${obj.structStart ? obj.structStart : `(()=>{`} ${obj.initial ?? ''}
|
|
781
|
+
${obj.structEnd ? obj.structEnd : '})()'}`,
|
|
782
|
+
language: 'javascript',
|
|
783
|
+
refactor: true,
|
|
784
|
+
structStart: obj.structStart,
|
|
785
|
+
structEnd: obj.structEnd,
|
|
786
|
+
});
|
|
778
787
|
|
|
779
788
|
function getComponent(gvc: GVC, height: number) {
|
|
780
789
|
return gvc.bindView(() => {
|
|
@@ -789,10 +798,10 @@ export class EditorElem {
|
|
|
789
798
|
childWindow.postMessage(
|
|
790
799
|
{
|
|
791
800
|
type: 'getData',
|
|
792
|
-
value: `${obj.structStart ? obj.structStart : `(()=>{`} ${obj.initial ?? ''}
|
|
793
|
-
|
|
801
|
+
value: `${obj.structStart ? obj.structStart : `(()=>{`} \n${obj.initial ?? ''}
|
|
802
|
+
${obj.structEnd ? obj.structEnd : '})()'}`,
|
|
794
803
|
language: 'javascript',
|
|
795
|
-
refactor:
|
|
804
|
+
refactor: false,
|
|
796
805
|
structStart: obj.structStart,
|
|
797
806
|
structEnd: obj.structEnd,
|
|
798
807
|
},
|
|
@@ -1132,7 +1141,7 @@ export class EditorElem {
|
|
|
1132
1141
|
快速插入
|
|
1133
1142
|
${obj.quick_insert
|
|
1134
1143
|
.map(dd => {
|
|
1135
|
-
return html
|
|
1144
|
+
return html` <div
|
|
1136
1145
|
style="cursor: pointer;"
|
|
1137
1146
|
onclick="${gvc.event(() => {
|
|
1138
1147
|
editor.selection.restore();
|
|
@@ -1046,14 +1046,7 @@ export class Main_editor {
|
|
|
1046
1046
|
};
|
|
1047
1047
|
})}
|
|
1048
1048
|
<div style="height: 60px;"></div>
|
|
1049
|
-
|
|
1050
|
-
class="${document.body.clientWidth < 800
|
|
1051
|
-
? `position-fixed`
|
|
1052
|
-
: `position-absolute`} w-100 bottom-0 d-flex align-items-center p-3 shadow justify-content-end border-top bg-white "
|
|
1053
|
-
style="height: 60px;${document.body.clientWidth < 800
|
|
1054
|
-
? `padding-bottom:${parseInt(glitter.share.bottom_inset, 10)}px !important;`
|
|
1055
|
-
: ``}"
|
|
1056
|
-
>
|
|
1049
|
+
|
|
1057
1050
|
${(() => {
|
|
1058
1051
|
const view = [];
|
|
1059
1052
|
if (viewModel.selectItem.deletable !== 'false') {
|
|
@@ -1098,9 +1091,20 @@ export class Main_editor {
|
|
|
1098
1091
|
glitter.htmlGenerate.deleteWidget(glitter.share.editorViewModel.selectContainer, viewModel.selectItem, () => { });
|
|
1099
1092
|
}), '刪除'));
|
|
1100
1093
|
}
|
|
1101
|
-
|
|
1094
|
+
if (!view.join('')) {
|
|
1095
|
+
return ``;
|
|
1096
|
+
}
|
|
1097
|
+
else {
|
|
1098
|
+
return ` <div
|
|
1099
|
+
class="${document.body.clientWidth < 800
|
|
1100
|
+
? `position-fixed`
|
|
1101
|
+
: `position-absolute`} w-100 bottom-0 d-flex align-items-center p-3 shadow justify-content-end border-top bg-white "
|
|
1102
|
+
style="height: 60px;${document.body.clientWidth < 800
|
|
1103
|
+
? `padding-bottom:${parseInt(glitter.share.bottom_inset, 10)}px !important;`
|
|
1104
|
+
: ``}"
|
|
1105
|
+
>${view.join('<div class="mx-1"></div>')}</div>`;
|
|
1106
|
+
}
|
|
1102
1107
|
})()}
|
|
1103
|
-
</div>
|
|
1104
1108
|
</div>
|
|
1105
1109
|
`,
|
|
1106
1110
|
gvc.bindView(() => {
|
|
@@ -1137,14 +1137,7 @@ export class Main_editor {
|
|
|
1137
1137
|
};
|
|
1138
1138
|
})}
|
|
1139
1139
|
<div style="height: 60px;"></div>
|
|
1140
|
-
|
|
1141
|
-
class="${document.body.clientWidth < 800
|
|
1142
|
-
? `position-fixed`
|
|
1143
|
-
: `position-absolute`} w-100 bottom-0 d-flex align-items-center p-3 shadow justify-content-end border-top bg-white "
|
|
1144
|
-
style="height: 60px;${document.body.clientWidth < 800
|
|
1145
|
-
? `padding-bottom:${parseInt(glitter.share.bottom_inset, 10)}px !important;`
|
|
1146
|
-
: ``}"
|
|
1147
|
-
>
|
|
1140
|
+
|
|
1148
1141
|
${(() => {
|
|
1149
1142
|
const view: any = [];
|
|
1150
1143
|
if (viewModel.selectItem.deletable !== 'false') {
|
|
@@ -1210,9 +1203,20 @@ export class Main_editor {
|
|
|
1210
1203
|
)
|
|
1211
1204
|
);
|
|
1212
1205
|
}
|
|
1213
|
-
|
|
1206
|
+
if(!view.join('')){
|
|
1207
|
+
return ``
|
|
1208
|
+
}else{
|
|
1209
|
+
return ` <div
|
|
1210
|
+
class="${document.body.clientWidth < 800
|
|
1211
|
+
? `position-fixed`
|
|
1212
|
+
: `position-absolute`} w-100 bottom-0 d-flex align-items-center p-3 shadow justify-content-end border-top bg-white "
|
|
1213
|
+
style="height: 60px;${document.body.clientWidth < 800
|
|
1214
|
+
? `padding-bottom:${parseInt(glitter.share.bottom_inset, 10)}px !important;`
|
|
1215
|
+
: ``}"
|
|
1216
|
+
>${view.join('<div class="mx-1"></div>')}</div>`
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1214
1219
|
})()}
|
|
1215
|
-
</div>
|
|
1216
1220
|
</div>
|
|
1217
1221
|
`,
|
|
1218
1222
|
gvc.bindView(() => {
|