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 — docs: add view.tsx guide in material.md · khoh12/lowcode-engine@0fbf4cd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs/docs/guide/expand/editor
    • cli.md
    • material.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/docs/guide/expand/editor/cli.md‎

Copy file name to clipboardExpand all lines: docs/docs/guide/expand/editor/cli.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ npm run build
5757
npm publish
5858
```
5959

60-
## 🔥🔥🔥 调试物料/插件/设置器
60+
## 🔥🔥🔥 在低代码项目中调试物料/插件/设置器
6161

6262
> 📢📢📢 低代码生态脚手架提供的调试利器,在启动 setter/插件/物料 项目后,直接在已有的低代码平台就可以调试,不需要 npm link / 手改 npm main 入口等传统方式,轻松上手,强烈推荐使用!!
6363
Collapse file

‎docs/docs/guide/expand/editor/material.md‎

Copy file name to clipboardExpand all lines: docs/docs/guide/expand/editor/material.md
+8-1Lines changed: 8 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,14 @@ npm run lowcode:build
182182
display: 'accordion' | 'inline' | 'block' | 'plain' | 'popup' | 'entry', // 常用的是 inline(默认), block、entry
183183
}
184184
```
185-
发布组件
185+
#### 编辑态视图
186+
用户可以在 lowcode/<component-name\> 目录下新增 view.tsx 来增加编辑态视图。编辑态视图用于在编辑态时展示与真实预览不一样的视图。
187+
view.tsx 输出的也是一个 React 组件。
188+
189+
注意:如果是单组件,而非组件库模式的话,view.tsx 应置于 lowcode 而非 lowcode/<component-name\> 目录下
190+
191+
192+
#### 发布组件
186193
```bash
187194
# 在组件根目录下,执行
188195
$ npm publish

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.