ts-glitter 13.7.8 → 13.7.9
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
CHANGED
|
@@ -59,7 +59,7 @@ export class Entry {
|
|
|
59
59
|
}
|
|
60
60
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
61
61
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
62
|
-
glitter.share.editerVersion = "V_13.7.
|
|
62
|
+
glitter.share.editerVersion = "V_13.7.9";
|
|
63
63
|
glitter.share.start = (new Date());
|
|
64
64
|
const vm = {
|
|
65
65
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -59,7 +59,7 @@ export class Entry {
|
|
|
59
59
|
}
|
|
60
60
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
61
61
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
62
|
-
glitter.share.editerVersion = "V_13.7.
|
|
62
|
+
glitter.share.editerVersion = "V_13.7.9";
|
|
63
63
|
glitter.share.start = (new Date());
|
|
64
64
|
const vm: {
|
|
65
65
|
appConfig: any;
|
|
@@ -184,7 +184,7 @@ export class ProductSelect {
|
|
|
184
184
|
case 'product':
|
|
185
185
|
return html ` <div class="d-flex align-items-center form-check-label c_updown_label px-1" style="justify-content: space-between" data-index="${opt.key}">
|
|
186
186
|
<div class="d-flex align-items-center gap-3 cursor_move">
|
|
187
|
-
<i class="fa-solid fa-grip-dots-vertical"></i>
|
|
187
|
+
<i class="fa-solid fa-grip-dots-vertical dragItem"></i>
|
|
188
188
|
${BgWidget.validImageBox({
|
|
189
189
|
gvc,
|
|
190
190
|
image: opt.image,
|
|
@@ -231,6 +231,7 @@ export class ProductSelect {
|
|
|
231
231
|
const el = document.querySelector(`#${subVM.containerId}`);
|
|
232
232
|
window.Sortable.create(el, {
|
|
233
233
|
animation: 150,
|
|
234
|
+
handle: '.dragItem',
|
|
234
235
|
onEnd: function () {
|
|
235
236
|
const elements = el.querySelectorAll('[data-index]');
|
|
236
237
|
const dataIndices = Array.from(elements).map((element) => element.getAttribute('data-index'));
|
|
@@ -181,7 +181,7 @@ export class ProductSelect {
|
|
|
181
181
|
case 'product':
|
|
182
182
|
return html` <div class="d-flex align-items-center form-check-label c_updown_label px-1" style="justify-content: space-between" data-index="${opt.key}">
|
|
183
183
|
<div class="d-flex align-items-center gap-3 cursor_move">
|
|
184
|
-
<i class="fa-solid fa-grip-dots-vertical"></i>
|
|
184
|
+
<i class="fa-solid fa-grip-dots-vertical dragItem"></i>
|
|
185
185
|
${BgWidget.validImageBox({
|
|
186
186
|
gvc,
|
|
187
187
|
image: opt.image,
|
|
@@ -232,6 +232,7 @@ export class ProductSelect {
|
|
|
232
232
|
const el = document.querySelector(`#${subVM.containerId}`) as HTMLElement;
|
|
233
233
|
(window as any).Sortable.create(el, {
|
|
234
234
|
animation: 150,
|
|
235
|
+
handle: '.dragItem',
|
|
235
236
|
onEnd: function () {
|
|
236
237
|
const elements = el.querySelectorAll('[data-index]');
|
|
237
238
|
const dataIndices = Array.from(elements).map((element) => element.getAttribute('data-index'));
|
package/lowcode/jspage/editor.js
CHANGED
|
@@ -107,10 +107,6 @@ export class Editor {
|
|
|
107
107
|
content.config = glitter.share.editorViewModel.data.config;
|
|
108
108
|
localStorage.setItem('preview_data', JSON.stringify(content));
|
|
109
109
|
const url = new URL(href);
|
|
110
|
-
if (document.body.clientWidth < 800 && Storage.view_type === 'desktop' && gvc.glitter.deviceType === gvc.glitter.deviceTypeEnum.Ios) {
|
|
111
|
-
url.searchParams.set('_preview_width', '1300');
|
|
112
|
-
url.searchParams.set('_preview_scale', `${(document.body.clientWidth / 1300).toFixed(2)}`);
|
|
113
|
-
}
|
|
114
110
|
window.parent.glitter.openNewTab(url.href);
|
|
115
111
|
}
|
|
116
112
|
else if (gvc.glitter.getUrlParameter('device') === 'mobile') {
|
|
@@ -130,6 +126,10 @@ export class Editor {
|
|
|
130
126
|
const url = new URL('', glitter.share.editorViewModel.domain ? `https://${glitter.share.editorViewModel.domain}/?page=index` : location.href);
|
|
131
127
|
url.searchParams.delete('type');
|
|
132
128
|
url.searchParams.set('page', glitter.getUrlParameter('page'));
|
|
129
|
+
if (document.body.clientWidth < 800 && Storage.view_type === 'desktop' && gvc.glitter.deviceType === gvc.glitter.deviceTypeEnum.Ios) {
|
|
130
|
+
url.searchParams.set('_preview_width', '1300');
|
|
131
|
+
url.searchParams.set('_preview_scale', `${(document.body.clientWidth / 1300).toFixed(2)}`);
|
|
132
|
+
}
|
|
133
133
|
glitter.openNewTab(url.href);
|
|
134
134
|
}
|
|
135
135
|
}
|
package/lowcode/jspage/editor.ts
CHANGED
|
@@ -109,12 +109,7 @@ export class Editor {
|
|
|
109
109
|
content.config = glitter.share.editorViewModel.data.config;
|
|
110
110
|
localStorage.setItem('preview_data', JSON.stringify(content));
|
|
111
111
|
const url=new URL(href);
|
|
112
|
-
if(document.body.clientWidth < 800 && Storage.view_type==='desktop' && gvc.glitter.deviceType===gvc.glitter.deviceTypeEnum.Ios){
|
|
113
|
-
url.searchParams.set('_preview_width','1300');
|
|
114
|
-
url.searchParams.set('_preview_scale',`${(document.body.clientWidth / 1300).toFixed(2)}`);
|
|
115
|
-
}
|
|
116
112
|
(window.parent as any).glitter.openNewTab(url.href);
|
|
117
|
-
|
|
118
113
|
} else if (gvc.glitter.getUrlParameter('device') === 'mobile') {
|
|
119
114
|
if (document.body.clientWidth < 800) {
|
|
120
115
|
glitter.openNewTab(`${glitter.root_path}index-mobile?appName=${(window as any).appName}&device=mobile`);
|
|
@@ -130,6 +125,10 @@ export class Editor {
|
|
|
130
125
|
const url = new URL('', glitter.share.editorViewModel.domain ? `https://${glitter.share.editorViewModel.domain}/?page=index` : location.href);
|
|
131
126
|
url.searchParams.delete('type');
|
|
132
127
|
url.searchParams.set('page', glitter.getUrlParameter('page'));
|
|
128
|
+
if(document.body.clientWidth < 800 && Storage.view_type==='desktop' && gvc.glitter.deviceType===gvc.glitter.deviceTypeEnum.Ios){
|
|
129
|
+
url.searchParams.set('_preview_width','1300');
|
|
130
|
+
url.searchParams.set('_preview_scale',`${(document.body.clientWidth / 1300).toFixed(2)}`);
|
|
131
|
+
}
|
|
133
132
|
glitter.openNewTab(url.href);
|
|
134
133
|
}
|
|
135
134
|
}
|