X Tutup
Skip to content

Commit 0fbf4cd

Browse files
eternalskyJackLian
authored andcommitted
docs: add view.tsx guide in material.md
1 parent 20c8419 commit 0fbf4cd

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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

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

Lines changed: 8 additions & 1 deletion
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)
X Tutup