ts-glitter 13.3.8 → 13.4.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 +4 -1
- package/lowcode/Entry.ts +4 -1
- package/lowcode/glitterBundle/html-component/widget.js +2 -2
- package/lowcode/glitterBundle/html-component/widget.ts +2 -2
- package/lowcode/glitterBundle/module/html-generate.js +2 -2
- package/lowcode/glitterBundle/module/html-generate.ts +4 -4
- package/lowcode/jspage/function-page/main_editor.js +2 -2
- package/lowcode/jspage/function-page/main_editor.ts +2 -2
- package/lowcode/jspage/main.js +1 -0
- package/lowcode/jspage/main.ts +1 -0
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -49,6 +49,9 @@ export class Entry {
|
|
|
49
49
|
scroll-behavior: auto !important;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
+
.hide-elem {
|
|
53
|
+
display: none !important;
|
|
54
|
+
}
|
|
52
55
|
`);
|
|
53
56
|
if (glitter.getUrlParameter('appName')) {
|
|
54
57
|
window.appName = glitter.getUrlParameter('appName');
|
|
@@ -56,7 +59,7 @@ export class Entry {
|
|
|
56
59
|
}
|
|
57
60
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
58
61
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
59
|
-
glitter.share.editerVersion = "V_13.
|
|
62
|
+
glitter.share.editerVersion = "V_13.4.0";
|
|
60
63
|
glitter.share.start = (new Date());
|
|
61
64
|
const vm = {
|
|
62
65
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -49,6 +49,9 @@ export class Entry {
|
|
|
49
49
|
scroll-behavior: auto !important;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
+
.hide-elem {
|
|
53
|
+
display: none !important;
|
|
54
|
+
}
|
|
52
55
|
`);
|
|
53
56
|
if (glitter.getUrlParameter('appName')) {
|
|
54
57
|
(window as any).appName = glitter.getUrlParameter('appName');
|
|
@@ -56,7 +59,7 @@ export class Entry {
|
|
|
56
59
|
}
|
|
57
60
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
58
61
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
59
|
-
glitter.share.editerVersion = "V_13.
|
|
62
|
+
glitter.share.editerVersion = "V_13.4.0";
|
|
60
63
|
glitter.share.start = (new Date());
|
|
61
64
|
const vm: {
|
|
62
65
|
appConfig: any;
|
|
@@ -171,8 +171,8 @@ export const widgetComponent = {
|
|
|
171
171
|
style_user += widget.code_style || '';
|
|
172
172
|
return {
|
|
173
173
|
elem: elem,
|
|
174
|
-
class: classList.join(' ')
|
|
175
|
-
style: glitter.htmlGenerate.styleEditor(widget.data, gvc, widget, subData).style() + ` ${
|
|
174
|
+
class: classList.join(' ') + ` ${(window.parent.editerData !== undefined) ? `${(widget.visible === false) ? `hide-elem` : ``}` : ``}`,
|
|
175
|
+
style: glitter.htmlGenerate.styleEditor(widget.data, gvc, widget, subData).style() + ` ${style_user}`,
|
|
176
176
|
option: option.concat(htmlGenerate.option),
|
|
177
177
|
};
|
|
178
178
|
}
|
|
@@ -171,8 +171,8 @@ export const widgetComponent = {
|
|
|
171
171
|
style_user += widget.code_style || '';
|
|
172
172
|
return {
|
|
173
173
|
elem: elem,
|
|
174
|
-
class: classList.join(' ')
|
|
175
|
-
style: glitter.htmlGenerate.styleEditor(widget.data, gvc, widget as any, subData).style() + ` ${
|
|
174
|
+
class: classList.join(' ')+` ${((window.parent as any).editerData !== undefined) ? `${((widget as any).visible === false) ? `hide-elem` : ``}` : ``}`,
|
|
175
|
+
style: glitter.htmlGenerate.styleEditor(widget.data, gvc, widget as any, subData).style() + ` ${style_user}`,
|
|
176
176
|
option: option.concat(htmlGenerate.option),
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -1682,13 +1682,13 @@ ${obj.gvc.bindView({
|
|
|
1682
1682
|
}));
|
|
1683
1683
|
},
|
|
1684
1684
|
divCreate: {
|
|
1685
|
-
style: `position: relative;${gvc.glitter.htmlGenerate.styleEditor(widget, gvc, widget, {}).style()}
|
|
1685
|
+
style: `position: relative;${gvc.glitter.htmlGenerate.styleEditor(widget, gvc, widget, {}).style()};
|
|
1686
1686
|
${widget.code_style || ''}
|
|
1687
1687
|
`,
|
|
1688
1688
|
class: `${(_a = cf.widget.class) !== null && _a !== void 0 ? _a : ''} ${cf.widget.hashTag ? `glitterTag${cf.widget.hashTag}` : ''}
|
|
1689
1689
|
${(isEditMode() || isIdeaMode()) ? `editorParent` : ``}
|
|
1690
1690
|
${gvc.glitter.htmlGenerate.styleEditor(widget, gvc, widget, {}).class()}
|
|
1691
|
-
`,
|
|
1691
|
+
${widget.visible === false ? ` hide-elem` : ``}`,
|
|
1692
1692
|
option: option.concat((() => {
|
|
1693
1693
|
if (root && isEditMode()) {
|
|
1694
1694
|
return [
|
|
@@ -2165,15 +2165,15 @@ ${e.line}
|
|
|
2165
2165
|
});
|
|
2166
2166
|
},
|
|
2167
2167
|
divCreate: {
|
|
2168
|
-
style: `position: relative;${gvc.glitter.htmlGenerate.styleEditor(widget, gvc, widget, {}).style()}
|
|
2169
|
-
(widget as any).visible === false ? `display:none;` : ``
|
|
2170
|
-
}
|
|
2168
|
+
style: `position: relative;${gvc.glitter.htmlGenerate.styleEditor(widget, gvc, widget, {}).style()};
|
|
2171
2169
|
${widget.code_style || ''}
|
|
2172
2170
|
`,
|
|
2173
2171
|
class: `${cf.widget.class ?? ''} ${cf.widget.hashTag ? `glitterTag${cf.widget.hashTag}` : ''}
|
|
2174
2172
|
${(isEditMode() || isIdeaMode()) ? `editorParent` : ``}
|
|
2175
2173
|
${gvc.glitter.htmlGenerate.styleEditor(widget, gvc, widget, {}).class()}
|
|
2176
|
-
|
|
2174
|
+
${
|
|
2175
|
+
(widget as any).visible === false ? ` hide-elem` : ``
|
|
2176
|
+
}`,
|
|
2177
2177
|
option: option.concat(
|
|
2178
2178
|
(() => {
|
|
2179
2179
|
if (root && isEditMode()) {
|
|
@@ -245,13 +245,13 @@ export class Main_editor {
|
|
|
245
245
|
document.querySelector('#editerCenter iframe').contentWindow.glitter
|
|
246
246
|
.$(`.editor_it_${og_array[index].id}`)
|
|
247
247
|
.parent()
|
|
248
|
-
.
|
|
248
|
+
.removeClass('hide-elem');
|
|
249
249
|
}
|
|
250
250
|
else {
|
|
251
251
|
document.querySelector('#editerCenter iframe').contentWindow.glitter
|
|
252
252
|
.$(`.editor_it_${og_array[index].id}`)
|
|
253
253
|
.parent()
|
|
254
|
-
.hide
|
|
254
|
+
.addClass('hide-elem');
|
|
255
255
|
}
|
|
256
256
|
})}"
|
|
257
257
|
>
|
|
@@ -262,12 +262,12 @@ export class Main_editor {
|
|
|
262
262
|
(document.querySelector('#editerCenter iframe')! as any).contentWindow.glitter
|
|
263
263
|
.$(`.editor_it_${og_array[index].id}`)
|
|
264
264
|
.parent()
|
|
265
|
-
.
|
|
265
|
+
.removeClass('hide-elem');
|
|
266
266
|
} else {
|
|
267
267
|
(document.querySelector('#editerCenter iframe')! as any).contentWindow.glitter
|
|
268
268
|
.$(`.editor_it_${og_array[index].id}`)
|
|
269
269
|
.parent()
|
|
270
|
-
.hide
|
|
270
|
+
.addClass('hide-elem');
|
|
271
271
|
}
|
|
272
272
|
})}"
|
|
273
273
|
>
|
package/lowcode/jspage/main.js
CHANGED
package/lowcode/jspage/main.ts
CHANGED