ts-glitter 13.8.53 → 13.8.54
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 +6 -10
- package/lowcode/Entry.ts +6 -10
- package/lowcode/glitterBundle/html-component/global-widget.js +10 -5
- package/lowcode/glitterBundle/html-component/global-widget.ts +32 -27
- package/lowcode/official_view_component/official/component.js +0 -6
- package/lowcode/official_view_component/official/component.ts +5 -5
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -44,23 +44,19 @@ export class Entry {
|
|
|
44
44
|
Entry.checkRedirectPage(glitter);
|
|
45
45
|
glitter.share.logID = glitter.getUUID();
|
|
46
46
|
glitter.addStyle(`
|
|
47
|
-
|
|
47
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
48
48
|
:root {
|
|
49
49
|
scroll-behavior: auto !important;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
display: none !important;
|
|
55
|
-
}
|
|
56
|
-
=======
|
|
57
|
-
.hide-elem {
|
|
52
|
+
|
|
53
|
+
.hide-elem {
|
|
58
54
|
display: none !important;
|
|
59
55
|
}
|
|
56
|
+
|
|
60
57
|
.hy-drawer-left {
|
|
61
|
-
|
|
58
|
+
left:-1000px !important;
|
|
62
59
|
}
|
|
63
|
-
>>>>>>> d311c294 (update glitter version)
|
|
64
60
|
`);
|
|
65
61
|
if (glitter.getUrlParameter('appName')) {
|
|
66
62
|
window.appName = glitter.getUrlParameter('appName');
|
|
@@ -68,7 +64,7 @@ export class Entry {
|
|
|
68
64
|
}
|
|
69
65
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
70
66
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
71
|
-
glitter.share.editerVersion = 'V_13.8.
|
|
67
|
+
glitter.share.editerVersion = 'V_13.8.54';
|
|
72
68
|
glitter.share.start = new Date();
|
|
73
69
|
const vm = {
|
|
74
70
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -44,23 +44,19 @@ export class Entry {
|
|
|
44
44
|
Entry.checkRedirectPage(glitter);
|
|
45
45
|
glitter.share.logID = glitter.getUUID();
|
|
46
46
|
glitter.addStyle(`
|
|
47
|
-
|
|
47
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
48
48
|
:root {
|
|
49
49
|
scroll-behavior: auto !important;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
display: none !important;
|
|
55
|
-
}
|
|
56
|
-
=======
|
|
57
|
-
.hide-elem {
|
|
52
|
+
|
|
53
|
+
.hide-elem {
|
|
58
54
|
display: none !important;
|
|
59
55
|
}
|
|
56
|
+
|
|
60
57
|
.hy-drawer-left {
|
|
61
|
-
|
|
58
|
+
left:-1000px !important;
|
|
62
59
|
}
|
|
63
|
-
>>>>>>> d311c294 (update glitter version)
|
|
64
60
|
`);
|
|
65
61
|
if (glitter.getUrlParameter('appName')) {
|
|
66
62
|
(window as any).appName = glitter.getUrlParameter('appName');
|
|
@@ -68,7 +64,7 @@ export class Entry {
|
|
|
68
64
|
}
|
|
69
65
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
70
66
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
71
|
-
glitter.share.editerVersion = 'V_13.8.
|
|
67
|
+
glitter.share.editerVersion = 'V_13.8.54';
|
|
72
68
|
glitter.share.start = new Date();
|
|
73
69
|
const vm: {
|
|
74
70
|
appConfig: any;
|
|
@@ -192,15 +192,18 @@ export class GlobalWidget {
|
|
|
192
192
|
return {
|
|
193
193
|
bind: id,
|
|
194
194
|
view: () => {
|
|
195
|
-
return
|
|
195
|
+
return html `
|
|
196
|
+
<div class="my-auto tx_title fw-normal d-flex align-items-center"
|
|
197
|
+
style="white-space: nowrap;font-size: 16px;">在${(() => {
|
|
196
198
|
if (GlobalWidget.glitter_view_type === "mobile") {
|
|
197
199
|
return `手機`;
|
|
198
200
|
}
|
|
199
201
|
else {
|
|
200
202
|
return `電腦`;
|
|
201
203
|
}
|
|
202
|
-
})()}版上${(obj.widget[key].refer === 'hide') ? `不` : ``}
|
|
203
|
-
|
|
204
|
+
})()}版上${(obj.widget[key].refer === 'hide') ? `不` : ``}顯示
|
|
205
|
+
</div>
|
|
206
|
+
${GlobalWidget.switchButton(obj.gvc, obj.widget[key].refer !== 'hide', (bool) => {
|
|
204
207
|
if (bool) {
|
|
205
208
|
obj.widget[key].refer = 'def';
|
|
206
209
|
}
|
|
@@ -215,7 +218,8 @@ ${GlobalWidget.switchButton(obj.gvc, obj.widget[key].refer !== 'hide', (bool) =>
|
|
|
215
218
|
})}`;
|
|
216
219
|
},
|
|
217
220
|
divCreate: {
|
|
218
|
-
class: `d-flex align-content-center px-3`,
|
|
221
|
+
class: `d-flex align-content-center px-3`,
|
|
222
|
+
style: `gap:10px;margin-bottom:18px;margin-top:13px;`
|
|
219
223
|
}
|
|
220
224
|
};
|
|
221
225
|
})
|
|
@@ -245,7 +249,8 @@ ${GlobalWidget.switchButton(obj.gvc, obj.widget[key].refer === 'custom', (bool)
|
|
|
245
249
|
})}`;
|
|
246
250
|
},
|
|
247
251
|
divCreate: {
|
|
248
|
-
class: `d-flex align-content-center px-3`,
|
|
252
|
+
class: `d-flex align-content-center px-3`,
|
|
253
|
+
style: `gap:10px;margin-top:13px;`
|
|
249
254
|
}
|
|
250
255
|
};
|
|
251
256
|
}) + `<div class="px-3 pt-2" style="white-space: normal;word-break: break-all;color: #8D8D8D; font-size: 14px; font-weight: 400; ">透過設定獨立樣式在${(() => {
|
|
@@ -214,29 +214,33 @@ export class GlobalWidget {
|
|
|
214
214
|
return {
|
|
215
215
|
bind: id,
|
|
216
216
|
view: () => {
|
|
217
|
-
return
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
obj.
|
|
235
|
-
|
|
236
|
-
|
|
217
|
+
return html`
|
|
218
|
+
<div class="my-auto tx_title fw-normal d-flex align-items-center"
|
|
219
|
+
style="white-space: nowrap;font-size: 16px;">在${(() => {
|
|
220
|
+
if (GlobalWidget.glitter_view_type === "mobile") {
|
|
221
|
+
return `手機`
|
|
222
|
+
} else {
|
|
223
|
+
return `電腦`
|
|
224
|
+
}
|
|
225
|
+
})()}版上${(obj.widget[key].refer === 'hide') ? `不` : ``}顯示
|
|
226
|
+
</div>
|
|
227
|
+
${GlobalWidget.switchButton(obj.gvc, obj.widget[key].refer !== 'hide', (bool) => {
|
|
228
|
+
// vm.data.main = bool;
|
|
229
|
+
if (bool) {
|
|
230
|
+
obj.widget[key].refer = 'def'
|
|
231
|
+
} else {
|
|
232
|
+
obj.widget[key].refer = 'hide'
|
|
233
|
+
}
|
|
234
|
+
obj.toggle_visible && obj.toggle_visible(bool);
|
|
235
|
+
gvc.notifyDataChange(id)
|
|
236
|
+
setTimeout(() => {
|
|
237
|
+
obj.widget.refreshComponent()
|
|
238
|
+
}, 250)
|
|
239
|
+
})}`
|
|
237
240
|
},
|
|
238
241
|
divCreate: {
|
|
239
|
-
class: `d-flex align-content-center px-3`,
|
|
242
|
+
class: `d-flex align-content-center px-3`,
|
|
243
|
+
style: `gap:10px;margin-bottom:18px;margin-top:13px;`
|
|
240
244
|
}
|
|
241
245
|
}
|
|
242
246
|
})
|
|
@@ -254,7 +258,7 @@ ${GlobalWidget.switchButton(obj.gvc, obj.widget[key].refer !== 'hide', (bool) =>
|
|
|
254
258
|
view: () => {
|
|
255
259
|
return `<div class="my-auto tx_title fw-normal d-flex align-items-center" style="white-space: nowrap;font-size: 16px;">顯示獨立樣式</div>
|
|
256
260
|
${GlobalWidget.switchButton(obj.gvc, obj.widget[key].refer === 'custom', (bool) => {
|
|
257
|
-
obj.widget[key].refer = (bool) ? `custom
|
|
261
|
+
obj.widget[key].refer = (bool) ? `custom` : `def`;
|
|
258
262
|
if (obj.widget.refreshComponent) {
|
|
259
263
|
obj.widget.refreshComponent()
|
|
260
264
|
} else if (obj.widget.refreshAll) {
|
|
@@ -263,16 +267,17 @@ ${GlobalWidget.switchButton(obj.gvc, obj.widget[key].refer === 'custom', (bool)
|
|
|
263
267
|
})}`
|
|
264
268
|
},
|
|
265
269
|
divCreate: {
|
|
266
|
-
class: `d-flex align-content-center px-3`,
|
|
270
|
+
class: `d-flex align-content-center px-3`,
|
|
271
|
+
style: `gap:10px;margin-top:13px;`
|
|
267
272
|
}
|
|
268
273
|
}
|
|
269
|
-
})
|
|
274
|
+
}) + `<div class="px-3 pt-2" style="white-space: normal;word-break: break-all;color: #8D8D8D; font-size: 14px; font-weight: 400; ">透過設定獨立樣式在${(() => {
|
|
270
275
|
if (GlobalWidget.glitter_view_type === "mobile") {
|
|
271
276
|
return `手機`
|
|
272
277
|
} else {
|
|
273
278
|
return `電腦`
|
|
274
279
|
}
|
|
275
|
-
})()}版上顯示特定設計效果</div>`)
|
|
280
|
+
})()}版上顯示特定設計效果</div>`), `<div class="mx-n3" style="background: #DDD;height: 1px;"></div>`].join(`<div style="height:18px;"></div>`)
|
|
276
281
|
}
|
|
277
282
|
|
|
278
283
|
|
|
@@ -292,7 +297,7 @@ ${GlobalWidget.switchButton(obj.gvc, obj.widget[key].refer === 'custom', (bool)
|
|
|
292
297
|
const view = [selector(obj.widget.mobile, 'mobile')]
|
|
293
298
|
if (obj.widget.mobile.refer === 'custom') {
|
|
294
299
|
view.push(obj.view(obj.widget.mobile, 'mobile'))
|
|
295
|
-
}else {
|
|
300
|
+
} else {
|
|
296
301
|
view.push(obj.view(obj.widget, 'def'))
|
|
297
302
|
}
|
|
298
303
|
return view.join('')
|
|
@@ -300,7 +305,7 @@ ${GlobalWidget.switchButton(obj.gvc, obj.widget[key].refer === 'custom', (bool)
|
|
|
300
305
|
const view = [selector(obj.widget.desktop, 'desktop')]
|
|
301
306
|
if (obj.widget.desktop.refer === 'custom') {
|
|
302
307
|
view.push(obj.view(obj.widget.desktop, 'desktop'))
|
|
303
|
-
}else{
|
|
308
|
+
} else {
|
|
304
309
|
view.push(obj.view(obj.widget, 'def'))
|
|
305
310
|
}
|
|
306
311
|
return view.join('')
|
|
@@ -1257,12 +1257,6 @@ font-weight: 700;" onclick="${gvc.event(() => {
|
|
|
1257
1257
|
},
|
|
1258
1258
|
custom_edit: true,
|
|
1259
1259
|
toggle_visible: (bool) => {
|
|
1260
|
-
if (bool) {
|
|
1261
|
-
$(gvc.glitter.document.querySelector('#editerCenter iframe').contentWindow.document.querySelector('.' + view_container_id)).show();
|
|
1262
|
-
}
|
|
1263
|
-
else {
|
|
1264
|
-
$(gvc.glitter.document.querySelector('#editerCenter iframe').contentWindow.document.querySelector('.' + view_container_id)).hide();
|
|
1265
|
-
}
|
|
1266
1260
|
}
|
|
1267
1261
|
})
|
|
1268
1262
|
].join('')}
|
|
@@ -1291,11 +1291,11 @@ font-weight: 700;" onclick="${gvc.event(() => {
|
|
|
1291
1291
|
},
|
|
1292
1292
|
custom_edit: true,
|
|
1293
1293
|
toggle_visible: (bool) => {
|
|
1294
|
-
if (bool) {
|
|
1295
|
-
|
|
1296
|
-
} else {
|
|
1297
|
-
|
|
1298
|
-
}
|
|
1294
|
+
// if (bool) {
|
|
1295
|
+
// $((gvc.glitter.document.querySelector('#editerCenter iframe') as any).contentWindow.document.querySelector('.' + view_container_id)).show()
|
|
1296
|
+
// } else {
|
|
1297
|
+
// $((gvc.glitter.document.querySelector('#editerCenter iframe') as any).contentWindow.document.querySelector('.' + view_container_id)).hide()
|
|
1298
|
+
// }
|
|
1299
1299
|
}
|
|
1300
1300
|
})
|
|
1301
1301
|
].join('')}
|