File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
docs/docs/guide/expand/editor Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ npm run build
5757npm publish
5858```
5959
60- ## 🔥🔥🔥 调试物料 /插件/设置器
60+ ## 🔥🔥🔥 在低代码项目中调试物料 /插件/设置器
6161
6262> 📢📢📢 低代码生态脚手架提供的调试利器,在启动 setter/插件/物料 项目后,直接在已有的低代码平台就可以调试,不需要 npm link / 手改 npm main 入口等传统方式,轻松上手,强烈推荐使用!!
6363
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments