ts-glitter 17.5.8 → 17.6.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/cms-plugin/shopping-product-setting.js +12 -2
- package/lowcode/cms-plugin/shopping-product-setting.ts +12 -2
- package/lowcode/public-components/user-manager/um-info.js +2 -1
- package/lowcode/public-components/user-manager/um-info.ts +1 -0
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -89,7 +89,7 @@ export class Entry {
|
|
|
89
89
|
}
|
|
90
90
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : clockF();
|
|
91
91
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
92
|
-
glitter.share.editerVersion = 'V_17.
|
|
92
|
+
glitter.share.editerVersion = 'V_17.6.0';
|
|
93
93
|
glitter.share.start = new Date();
|
|
94
94
|
const vm = {
|
|
95
95
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -90,7 +90,7 @@ export class Entry {
|
|
|
90
90
|
}
|
|
91
91
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
92
92
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
93
|
-
glitter.share.editerVersion = 'V_17.
|
|
93
|
+
glitter.share.editerVersion = 'V_17.6.0';
|
|
94
94
|
glitter.share.start = new Date();
|
|
95
95
|
const vm: {
|
|
96
96
|
appConfig: any;
|
|
@@ -586,13 +586,18 @@ export class ShoppingProductSetting {
|
|
|
586
586
|
{
|
|
587
587
|
key: '商品',
|
|
588
588
|
value: html `
|
|
589
|
-
<div class="d-flex">
|
|
589
|
+
<div class="d-flex align-items-center">
|
|
590
590
|
${BgWidget.validImageBox({
|
|
591
591
|
gvc: gvc,
|
|
592
592
|
image: dd.content.preview_image[0],
|
|
593
593
|
width: 40,
|
|
594
594
|
class: 'rounded border me-4',
|
|
595
|
-
})}
|
|
595
|
+
})}<div class="d-flex flex-column" style="">
|
|
596
|
+
${(dd.content.shopee_id) ? `
|
|
597
|
+
<div style="margin-bottom: -10px;"><div class="insignia" style="background: orangered;color: white;">蝦皮</div></div>
|
|
598
|
+
` : ``}
|
|
599
|
+
<div> ${Tool.truncateString(dd.content.title)}</div>
|
|
600
|
+
</div>
|
|
596
601
|
</div>`,
|
|
597
602
|
},
|
|
598
603
|
{
|
|
@@ -1263,6 +1268,10 @@ export class ShoppingProductSetting {
|
|
|
1263
1268
|
<div class="flex-fill d-flex flex-column"
|
|
1264
1269
|
style="gap: 8px">
|
|
1265
1270
|
<div>庫存數量</div>
|
|
1271
|
+
<div class="w-100 ${postMD.shopee_id ? `` : `d-none`}"
|
|
1272
|
+
style="font-size: 14px;font-weight: 400;color: #8D8D8D;">
|
|
1273
|
+
此商品來源為蝦皮電商平台,將自動同步蝦皮庫存
|
|
1274
|
+
</div>
|
|
1266
1275
|
<input
|
|
1267
1276
|
class="w-100"
|
|
1268
1277
|
type="number"
|
|
@@ -1272,6 +1281,7 @@ export class ShoppingProductSetting {
|
|
|
1272
1281
|
onchange="${gvc.event((e) => {
|
|
1273
1282
|
variant.stock = e.value;
|
|
1274
1283
|
})}"
|
|
1284
|
+
${postMD.shopee_id ? `readonly` : ``}
|
|
1275
1285
|
/>
|
|
1276
1286
|
</div>
|
|
1277
1287
|
|
|
@@ -651,13 +651,18 @@ export class ShoppingProductSetting {
|
|
|
651
651
|
{
|
|
652
652
|
key: '商品',
|
|
653
653
|
value: html`
|
|
654
|
-
<div class="d-flex">
|
|
654
|
+
<div class="d-flex align-items-center">
|
|
655
655
|
${BgWidget.validImageBox({
|
|
656
656
|
gvc: gvc,
|
|
657
657
|
image: dd.content.preview_image[0],
|
|
658
658
|
width: 40,
|
|
659
659
|
class: 'rounded border me-4',
|
|
660
|
-
})}
|
|
660
|
+
})}<div class="d-flex flex-column" style="">
|
|
661
|
+
${(dd.content.shopee_id) ? `
|
|
662
|
+
<div style="margin-bottom: -10px;"><div class="insignia" style="background: orangered;color: white;">蝦皮</div></div>
|
|
663
|
+
`:``}
|
|
664
|
+
<div> ${Tool.truncateString(dd.content.title)}</div>
|
|
665
|
+
</div>
|
|
661
666
|
</div>`,
|
|
662
667
|
},
|
|
663
668
|
{
|
|
@@ -1395,6 +1400,10 @@ export class ShoppingProductSetting {
|
|
|
1395
1400
|
<div class="flex-fill d-flex flex-column"
|
|
1396
1401
|
style="gap: 8px">
|
|
1397
1402
|
<div>庫存數量</div>
|
|
1403
|
+
<div class="w-100 ${(postMD as any).shopee_id ? ``:`d-none`}"
|
|
1404
|
+
style="font-size: 14px;font-weight: 400;color: #8D8D8D;">
|
|
1405
|
+
此商品來源為蝦皮電商平台,將自動同步蝦皮庫存
|
|
1406
|
+
</div>
|
|
1398
1407
|
<input
|
|
1399
1408
|
class="w-100"
|
|
1400
1409
|
type="number"
|
|
@@ -1404,6 +1413,7 @@ export class ShoppingProductSetting {
|
|
|
1404
1413
|
onchange="${gvc.event((e) => {
|
|
1405
1414
|
variant.stock = e.value;
|
|
1406
1415
|
})}"
|
|
1416
|
+
${(postMD as any).shopee_id ? `readonly`:``}
|
|
1407
1417
|
/>
|
|
1408
1418
|
</div>
|
|
1409
1419
|
|
|
@@ -243,9 +243,10 @@ export class UMInfo {
|
|
|
243
243
|
const update_userData = JSON.parse(JSON.stringify(vm.data.userData));
|
|
244
244
|
ApiUser.getPublicConfig('custom_form_register', 'manager').then((res) => {
|
|
245
245
|
ApiUser.getPublicConfig('login_config', 'manager').then((data) => {
|
|
246
|
-
var _a, _b;
|
|
246
|
+
var _a, _b, _c;
|
|
247
247
|
vm_info.login_config = (_a = data.response.value) !== null && _a !== void 0 ? _a : {};
|
|
248
248
|
vm_info.list = ((_b = res.response.value) !== null && _b !== void 0 ? _b : { list: [] }).list;
|
|
249
|
+
vm_info.list = (_c = vm_info.list) !== null && _c !== void 0 ? _c : [];
|
|
249
250
|
vm_info.form_array = FormCheck.initialRegisterForm(vm_info.list).filter((dd) => {
|
|
250
251
|
return !dd.hidden;
|
|
251
252
|
});
|
|
@@ -349,6 +349,7 @@ export class UMInfo {
|
|
|
349
349
|
ApiUser.getPublicConfig('login_config', 'manager').then((data) => {
|
|
350
350
|
vm_info.login_config = data.response.value ?? {};
|
|
351
351
|
vm_info.list = (res.response.value ?? { list: [] }).list;
|
|
352
|
+
vm_info.list=vm_info.list??[]
|
|
352
353
|
vm_info.form_array = FormCheck.initialRegisterForm(vm_info.list).filter((dd: any) => {
|
|
353
354
|
return !dd.hidden;
|
|
354
355
|
});
|