ts-glitter 13.6.2 → 13.6.4

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.6.2";
62
+ glitter.share.editerVersion = "V_13.6.4";
63
63
  glitter.share.start = (new Date());
64
64
  const vm = {
65
65
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -60,7 +60,7 @@ export class Entry {
60
60
  }
61
61
  (window as any).renderClock = (window as any).renderClock ?? clockF();
62
62
  console.log(`Entry-time:`, (window as any).renderClock.stop());
63
- glitter.share.editerVersion = "V_13.6.2";
63
+ glitter.share.editerVersion = "V_13.6.4";
64
64
  glitter.share.start = (new Date());
65
65
  const vm: {
66
66
  appConfig: any;
@@ -1695,6 +1695,16 @@ ${obj.gvc.bindView({
1695
1695
  {
1696
1696
  key: 'onmouseover',
1697
1697
  value: gvc.event((e, event) => {
1698
+ if (document.body.clientWidth < 800) {
1699
+ HtmlGenerate.selectWidget({
1700
+ gvc: gvc,
1701
+ widget: widget,
1702
+ widgetComponentID: cf.widget.id,
1703
+ event: event,
1704
+ glitter: window.parent.glitter,
1705
+ });
1706
+ }
1707
+ ;
1698
1708
  $(e).children('.editorChild').children('.copy-btn').show();
1699
1709
  $(e).children('.editorChild').children('.plus_bt').show();
1700
1710
  function loop(item) {
@@ -1831,7 +1841,7 @@ ${obj.gvc.bindView({
1831
1841
  try {
1832
1842
  glitter.share.editorViewModel.selectItem = dd;
1833
1843
  Storage.page_setting_item = 'layout';
1834
- glitter.pageConfig[gvc.glitter.pageConfig.length - 1].gvc.notifyDataChange(['top_sm_bar', 'left_sm_bar', 'item-editor-select']);
1844
+ glitter.pageConfig[glitter.pageConfig.length - 1].gvc.notifyDataChange(['top_sm_bar', 'left_sm_bar', 'item-editor-select']);
1835
1845
  gvc.glitter.$('.editorItemActive').removeClass('editorItemActive');
1836
1846
  gvc.glitter.$(`.editor_it_${widgetComponentID}`).addClass('editorItemActive');
1837
1847
  Storage.lastSelect = dd.id;
@@ -2062,12 +2072,12 @@ transform: translateY(5px);
2062
2072
  </div>`;
2063
2073
  }
2064
2074
  return html `
2065
- <div
2075
+ ${cf.gvc.glitter.document.body.clientWidth > 800 ? `<div
2066
2076
  class="position-absolute align-items-center justify-content-center px-3 fw-500 fs-6 badge_it"
2067
2077
  style="height:22px;left:-2px;top:-22px;background: linear-gradient(143deg, #FFB400 -22.7%, #FF6C02 114.57%);color:white;white-space: nowrap;"
2068
2078
  >
2069
2079
  ${cf.label}
2070
- </div>
2080
+ </div>` : ``}
2071
2081
  <div
2072
2082
  class="position-absolute fs-1 plus_bt"
2073
2083
  style="left:50%;transform: translateX(-50%);height:20px;top:${(Storage.view_type === 'mobile')
@@ -2181,15 +2181,17 @@ ${e.line}
2181
2181
  {
2182
2182
  key: 'onmouseover',
2183
2183
  value: gvc.event((e, event) => {
2184
- // if(document.body.clientWidth<800){
2185
- // if(!(window.parent as any).drawer.opened){
2186
- // $(e).click();
2187
- // }
2188
- // return
2189
- // };
2184
+ if(document.body.clientWidth<800){
2185
+ HtmlGenerate.selectWidget({
2186
+ gvc: gvc,
2187
+ widget: widget,
2188
+ widgetComponentID: cf.widget.id,
2189
+ event: event,
2190
+ glitter: (window.parent as any).glitter,
2191
+ });
2192
+ };
2190
2193
  ($(e).children('.editorChild').children('.copy-btn') as any).show();
2191
2194
  ($(e).children('.editorChild').children('.plus_bt') as any).show();
2192
-
2193
2195
  function loop(item: any) {
2194
2196
 
2195
2197
  if(item[0] && item[0].tagName.toLowerCase()==='li'){
@@ -2343,7 +2345,7 @@ ${e.line}
2343
2345
  try {
2344
2346
  glitter.share.editorViewModel.selectItem = dd;
2345
2347
  Storage.page_setting_item = 'layout';
2346
- (glitter.pageConfig[gvc.glitter.pageConfig.length - 1] as any).gvc.notifyDataChange(['top_sm_bar','left_sm_bar','item-editor-select']);
2348
+ (glitter.pageConfig[glitter.pageConfig.length - 1] as any).gvc.notifyDataChange(['top_sm_bar','left_sm_bar','item-editor-select']);
2347
2349
  gvc.glitter.$('.editorItemActive').removeClass('editorItemActive');
2348
2350
  gvc.glitter.$(`.editor_it_${widgetComponentID}`).addClass('editorItemActive');
2349
2351
  Storage.lastSelect = dd.id;
@@ -2586,12 +2588,12 @@ transform: translateY(5px);
2586
2588
  }
2587
2589
 
2588
2590
  return html`
2589
- <div
2591
+ ${cf.gvc.glitter.document.body.clientWidth>800 ? `<div
2590
2592
  class="position-absolute align-items-center justify-content-center px-3 fw-500 fs-6 badge_it"
2591
2593
  style="height:22px;left:-2px;top:-22px;background: linear-gradient(143deg, #FFB400 -22.7%, #FF6C02 114.57%);color:white;white-space: nowrap;"
2592
2594
  >
2593
2595
  ${cf.label}
2594
- </div>
2596
+ </div>`:``}
2595
2597
  <div
2596
2598
  class="position-absolute fs-1 plus_bt"
2597
2599
  style="left:50%;transform: translateX(-50%);height:20px;top:${(Storage.view_type === 'mobile')
@@ -1059,7 +1059,7 @@ export class Main_editor {
1059
1059
  frame.style.left = `0`;
1060
1060
  }
1061
1061
  if (gvc.glitter.share.top_inset) {
1062
- frame.style.top = `${parseInt(gvc.glitter.share.top_inset, 10) + 10 + tool_box}px`;
1062
+ frame.style.top = `${parseInt(gvc.glitter.share.top_inset, 10) + tool_box + 10}px`;
1063
1063
  }
1064
1064
  else {
1065
1065
  frame.style.top = `${tool_box}px`;
@@ -1082,7 +1082,7 @@ export class Main_editor {
1082
1082
  }, 50);
1083
1083
  return html `
1084
1084
  <div class="position-relative w-100 h-100"
1085
- style="${(parseInt(gvc.glitter.share.top_inset, 10)) ? `padding-top:${parseInt(gvc.glitter.share.top_inset, 10)}px;` : ``}"
1085
+ style="${(parseInt(gvc.glitter.share.top_inset, 10)) ? `padding-top:${parseInt(gvc.glitter.share.top_inset, 10) + 10}px;` : ``}"
1086
1086
  id="editerCenter">
1087
1087
  ${(document.body.clientWidth < 800) ? gvc.bindView(() => {
1088
1088
  return {
@@ -1135,7 +1135,7 @@ export class Main_editor {
1135
1135
  frame.style.left = `0`;
1136
1136
  }
1137
1137
  if (gvc.glitter.share.top_inset) {
1138
- frame.style.top = `${parseInt(gvc.glitter.share.top_inset, 10) + 10 + tool_box}px`;
1138
+ frame.style.top = `${parseInt(gvc.glitter.share.top_inset, 10) + tool_box + 10}px`;
1139
1139
  } else {
1140
1140
  frame.style.top = `${tool_box}px`;
1141
1141
  }
@@ -1157,7 +1157,7 @@ export class Main_editor {
1157
1157
  }, 50)
1158
1158
  return html`
1159
1159
  <div class="position-relative w-100 h-100"
1160
- style="${(parseInt(gvc.glitter.share.top_inset, 10)) ? `padding-top:${parseInt(gvc.glitter.share.top_inset, 10)}px;` : ``}"
1160
+ style="${(parseInt(gvc.glitter.share.top_inset, 10)) ? `padding-top:${parseInt(gvc.glitter.share.top_inset, 10) + 10}px;` : ``}"
1161
1161
  id="editerCenter">
1162
1162
  ${(document.body.clientWidth < 800) ? gvc.bindView(() => {
1163
1163
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "13.6.2",
3
+ "version": "13.6.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {