GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: shell node add isRGLContainer API (#1190) · ikvm/lowcode-engine@9a0fd15

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/shell/src
    • node.ts
  • pnpm-lock.yaml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/shell/src/node.ts‎

Copy file name to clipboardExpand all lines: packages/shell/src/node.ts
+14-3Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ export default class Node {
124124
/**
125125
* judge if it is a node or not
126126
*/
127-
get isNode() {
128-
return true;
129-
}
127+
readonly isNode = true;
130128

131129
/**
132130
* 获取当前节点的锁定状态
@@ -476,6 +474,19 @@ export default class Node {
476474
remove() {
477475
this[nodeSymbol].remove();
478476
}
477+
/**
478+
* 设置为磁贴布局节点
479+
*/
480+
set isRGLContainer(flag: boolean) {
481+
this[nodeSymbol].isRGLContainer = flag;
482+
}
483+
/**
484+
* 获取磁贴布局节点设置状态
485+
* @returns Boolean
486+
*/
487+
get isRGLContainer() {
488+
return this[nodeSymbol].isRGLContainer;
489+
}
479490

480491
internalToShellNode() {
481492
return this;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.