change pkg

This commit is contained in:
yehuozhili
2021-07-09 01:41:03 +08:00
commit 968a072537
115 changed files with 19556 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
---
title: dooringx-lib 是什么?
sTitle: 介绍
order: 1
---
dooringx-lib 是 dooringx 的基座,是移除了 dooringx 插件的无代码低代码框架。
dooringx-lib 提供自己的一套数据流事件机制以及弹窗等解决方案,可以让你更快地自己定制开发无代码或低代码平台。

View File

@@ -0,0 +1,13 @@
---
title: dooringx-lib 如何工作?
sTitle: 介绍
order: 2
---
dooringx-lib 在载入后会进行实例化,如果有插件需要传递给 config。
开发者通过调用 api 来获取想要的数据,来开发出自己想要的功能。
对于概念部分请参考 dooringx-lib 基础,对于 api 部分请参考 api。
建议先学习 dooringx-lib 基础和 dooringx-lib 插件开发注意事项再去看 api

View File

@@ -0,0 +1,15 @@
---
title: 快速上手
sTitle: 介绍
order: 3
---
### 安装
使用 npm 或者 yarn 安装
```bash
npm i dooringx-lib
```
有关 api 部分请参考 api

View File

@@ -0,0 +1,17 @@
---
title: store
sTitle: dooringx-lib基础
order: 3
---
store 类似于 redux 的概念,它内部实现了 redo、undo、发布订阅、置换数据、强制刷新等功能。
store 可以在 config 中获取。
在最开始时,需要通过 useStoreState 与 react 结合,此时可以在任意位置使用 store.forceUpdate 强刷,也可以使用 state 获取 store 中的数据。
store 的主要数据是保存着每次修改 jsonSchema 队列。
如果你需要更新数据,在深拷贝后使用 setData 方法进行更新。
如果你需要更新时不记录在 redo 或 undo 上留下记录,那么请操作队列删除其中保存内容即可。

View File

@@ -0,0 +1,5 @@
---
title: functionCenter
sTitle: dooringx-lib基础
order: 3
---