ts-glitter 13.8.816 → 13.8.818
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 +1 -5
- package/lowcode/cms-plugin/shopping-product-setting.ts +15 -19
- package/lowcode/jspage/function-page/setting_editor.js +0 -4
- package/lowcode/jspage/function-page/setting_editor.ts +0 -4
- package/lowcode/modules/image-library-clone.js +1049 -0
- package/lowcode/modules/image-library-clone.ts +1187 -0
- package/lowcode/modules/image-library.js +28 -7
- package/lowcode/modules/image-library.ts +31 -11
- package/package.json +1 -1
- package/src/services/app.js.map +5 -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.818';
|
|
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.818';
|
|
75
75
|
glitter.share.start = new Date();
|
|
76
76
|
const vm: {
|
|
77
77
|
appConfig: any;
|
|
@@ -1382,7 +1382,6 @@ export class ShoppingProductSetting {
|
|
|
1382
1382
|
obj.gvc.glitter.openDiaLog(new URL('../dialog/image-preview.js', import.meta.url).href, 'preview', variant.preview_image || BgWidget.noImageURL);
|
|
1383
1383
|
})}"
|
|
1384
1384
|
></i>
|
|
1385
|
-
|
|
1386
1385
|
</div>
|
|
1387
1386
|
</div>
|
|
1388
1387
|
<div
|
|
@@ -2275,10 +2274,7 @@ export class ShoppingProductSetting {
|
|
|
2275
2274
|
imageLibrary.selectImageLibrary(gvc, (urlArray) => {
|
|
2276
2275
|
if (urlArray.length > 0) {
|
|
2277
2276
|
for (const url of urlArray) {
|
|
2278
|
-
editor.html.insert(html `<img
|
|
2279
|
-
src="${url.data}"
|
|
2280
|
-
style="width: 25%;"
|
|
2281
|
-
/>`);
|
|
2277
|
+
editor.html.insert(html `<img src="${url.data}" />`);
|
|
2282
2278
|
}
|
|
2283
2279
|
editor.undo.saveStep();
|
|
2284
2280
|
}
|
|
@@ -1652,26 +1652,25 @@ export class ShoppingProductSetting {
|
|
|
1652
1652
|
);
|
|
1653
1653
|
})}"
|
|
1654
1654
|
></i>
|
|
1655
|
-
|
|
1656
1655
|
</div>
|
|
1657
1656
|
</div>
|
|
1658
1657
|
<div
|
|
1659
1658
|
style="width: 136px;text-align: center;color: #36B;cursor: pointer;"
|
|
1660
1659
|
onclick="${obj.gvc.event(() => {
|
|
1661
1660
|
imageLibrary.selectImageLibrary(
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
)
|
|
1661
|
+
gvc,
|
|
1662
|
+
(urlArray) => {
|
|
1663
|
+
if (urlArray.length > 0) {
|
|
1664
|
+
variant.preview_image = urlArray[0].data;
|
|
1665
|
+
gvc.notifyDataChange(id);
|
|
1666
|
+
} else {
|
|
1667
|
+
const dialog = new ShareDialog(gvc.glitter);
|
|
1668
|
+
dialog.errorMessage({ text: '請選擇至少一張圖片' });
|
|
1669
|
+
}
|
|
1670
|
+
},
|
|
1671
|
+
html` <div class="d-flex flex-column" style="border-radius: 10px 10px 0px 0px;background: #F2F2F2;">圖片庫</div>`,
|
|
1672
|
+
{ mul: false }
|
|
1673
|
+
);
|
|
1675
1674
|
})}"
|
|
1676
1675
|
>
|
|
1677
1676
|
變更
|
|
@@ -1935,7 +1934,7 @@ export class ShoppingProductSetting {
|
|
|
1935
1934
|
const dialog = new ShareDialog(gvc.glitter);
|
|
1936
1935
|
if (!variant.barcode) {
|
|
1937
1936
|
dialog.errorMessage({ text: '請先設定商品條碼' });
|
|
1938
|
-
return
|
|
1937
|
+
return;
|
|
1939
1938
|
}
|
|
1940
1939
|
(window.parent as any).glitter.addMtScript(
|
|
1941
1940
|
[
|
|
@@ -2680,10 +2679,7 @@ export class ShoppingProductSetting {
|
|
|
2680
2679
|
(urlArray) => {
|
|
2681
2680
|
if (urlArray.length > 0) {
|
|
2682
2681
|
for (const url of urlArray) {
|
|
2683
|
-
editor.html.insert(html`<img
|
|
2684
|
-
src="${url.data}"
|
|
2685
|
-
style="width: 25%;"
|
|
2686
|
-
/>`);
|
|
2682
|
+
editor.html.insert(html`<img src="${url.data}" />`);
|
|
2687
2683
|
}
|
|
2688
2684
|
editor.undo.saveStep();
|
|
2689
2685
|
} else {
|
|
@@ -87,10 +87,6 @@ export class Setting_editor {
|
|
|
87
87
|
const authConfig = permissionData.config.auth;
|
|
88
88
|
let list = [];
|
|
89
89
|
function click_item(index) {
|
|
90
|
-
if (!glitter.share.checkData()) {
|
|
91
|
-
alert('是否確認跳轉');
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
90
|
const itemPage = items[parseInt(index)].page;
|
|
95
91
|
const page = permissionTitle === 'employee' && !getCRUD(itemPage).read ? 'noPermission' : itemPage;
|
|
96
92
|
if (['page_layout', 'dev_mode'].indexOf(page) !== -1) {
|
|
@@ -721,10 +721,6 @@ export class Setting_editor {
|
|
|
721
721
|
let list: any = [];
|
|
722
722
|
|
|
723
723
|
function click_item(index: any) {
|
|
724
|
-
if(!glitter.share.checkData()){
|
|
725
|
-
alert('是否確認跳轉')
|
|
726
|
-
return
|
|
727
|
-
}
|
|
728
724
|
const itemPage = items[parseInt(index)].page;
|
|
729
725
|
const page = permissionTitle === 'employee' && !getCRUD(itemPage).read ? 'noPermission' : itemPage;
|
|
730
726
|
if (['page_layout', 'dev_mode'].indexOf(page) !== -1) {
|