ts-glitter 13.7.5 → 13.7.6

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.5";
62
+ glitter.share.editerVersion = "V_13.7.6";
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.7.5";
63
+ glitter.share.editerVersion = "V_13.7.6";
64
64
  glitter.share.start = (new Date());
65
65
  const vm: {
66
66
  appConfig: any;
@@ -1691,11 +1691,11 @@ ${obj.gvc.bindView({
1691
1691
  ${widget.visible === false ? ` hide-elem` : ``}`,
1692
1692
  option: option.concat((() => {
1693
1693
  if (root && isEditMode()) {
1694
- return [
1695
- {
1696
- key: 'onmouseover',
1697
- value: gvc.event((e, event) => {
1698
- if (window.parent.document.body.clientWidth < 800) {
1694
+ if (window.parent.document.body.clientWidth < 800) {
1695
+ return [
1696
+ {
1697
+ key: 'onclick',
1698
+ value: gvc.event((e, event) => {
1699
1699
  HtmlGenerate.selectWidget({
1700
1700
  gvc: gvc,
1701
1701
  widget: widget,
@@ -1703,8 +1703,29 @@ ${obj.gvc.bindView({
1703
1703
  event: event,
1704
1704
  glitter: window.parent.glitter,
1705
1705
  });
1706
- }
1707
- ;
1706
+ function loop(item) {
1707
+ if (item[0] && item[0].tagName.toLowerCase() === 'li') {
1708
+ if (item[0].children[0] && (!item[0].children[0].className.includes('active_F2F2F2'))) {
1709
+ item[0].children[0].style.background = '#F2F2F2';
1710
+ }
1711
+ }
1712
+ if (!item[0] || (!item[0].className.includes('root-left-container'))) {
1713
+ loop(item.parent());
1714
+ }
1715
+ }
1716
+ if (window.parent.document.querySelector(`.it-${widget.id}`)) {
1717
+ loop(window.parent.glitter.$(`.it-${widget.id}`).parent());
1718
+ window.parent.document.querySelector(`.it-${widget.id}`).style.background = '#F2F2F2';
1719
+ }
1720
+ $(e).children('.editorChild').get(0).style.background = 'linear-gradient(143deg, rgba(255, 180, 0, 0.2) -22.7%, rgba(255, 108, 2, 0.2) 114.57%)';
1721
+ })
1722
+ }
1723
+ ];
1724
+ }
1725
+ return [
1726
+ {
1727
+ key: 'onmouseover',
1728
+ value: gvc.event((e, event) => {
1708
1729
  $(e).children('.editorChild').children('.copy-btn').show();
1709
1730
  $(e).children('.editorChild').children('.plus_bt').show();
1710
1731
  function loop(item) {
@@ -2177,19 +2177,42 @@ ${e.line}
2177
2177
  option: option.concat(
2178
2178
  (() => {
2179
2179
  if (root && isEditMode()) {
2180
+ if((window.parent as any).document.body.clientWidth<800){
2181
+ return [
2182
+ {
2183
+ key:'onclick',
2184
+ value:gvc.event((e,event)=>{
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
+ function loop(item: any) {
2193
+
2194
+ if(item[0] && item[0].tagName.toLowerCase()==='li'){
2195
+ if(item[0].children[0] && (!item[0].children[0].className.includes('active_F2F2F2'))){
2196
+ item[0].children[0].style.background = '#F2F2F2';
2197
+ }
2198
+ }
2199
+ if (!item[0] || (!item[0].className.includes('root-left-container'))) {
2200
+ loop(item.parent())
2201
+ }
2202
+ }
2203
+ if( (window.parent as any).document.querySelector(`.it-${widget.id}`)){
2204
+ loop((window.parent as any).glitter.$(`.it-${widget.id}`).parent());
2205
+ (window.parent as any).document.querySelector(`.it-${widget.id}`).style.background = '#F2F2F2';
2206
+ }
2207
+ ($(e).children('.editorChild').get(0) as any).style.background = 'linear-gradient(143deg, rgba(255, 180, 0, 0.2) -22.7%, rgba(255, 108, 2, 0.2) 114.57%)';
2208
+ })
2209
+ }
2210
+ ]
2211
+ }
2180
2212
  return [
2181
2213
  {
2182
2214
  key: 'onmouseover',
2183
2215
  value: gvc.event((e, event) => {
2184
- if((window.parent as any).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
- };
2193
2216
  ($(e).children('.editorChild').children('.copy-btn') as any).show();
2194
2217
  ($(e).children('.editorChild').children('.plus_bt') as any).show();
2195
2218
  function loop(item: any) {
@@ -1207,7 +1207,7 @@ export class Main_editor {
1207
1207
  gvc.glitter.openDrawer();
1208
1208
  })}">編輯
1209
1209
  </div>
1210
- <div class="rounded-1 border bg-white p-1 px-2 fw-500"
1210
+ <div class="rounded-1 border bg-white p-1 px-2 fw-500 ${(gvc.glitter.share.editorViewModel.selectItem.deletable === 'false') ? `d-none` : ``}"
1211
1211
  style="font-size: 14px;color:black;"
1212
1212
  onclick="${gvc.event(() => {
1213
1213
  const dialog = new ShareDialog(gvc.glitter);
@@ -1280,7 +1280,7 @@ export class Main_editor {
1280
1280
  gvc.glitter.openDrawer();
1281
1281
  })}">編輯
1282
1282
  </div>
1283
- <div class="rounded-1 border bg-white p-1 px-2 fw-500"
1283
+ <div class="rounded-1 border bg-white p-1 px-2 fw-500 ${(gvc.glitter.share.editorViewModel.selectItem.deletable==='false') ? `d-none`:``}"
1284
1284
  style="font-size: 14px;color:black;"
1285
1285
  onclick="${gvc.event(() => {
1286
1286
  const dialog = new ShareDialog(gvc.glitter)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "13.7.5",
3
+ "version": "13.7.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {