update 0.9.4
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
## changelog
|
||||
|
||||
## 0.9.4
|
||||
|
||||
修复preview组件不能解除loading的bug
|
||||
|
||||
## 0.9.3
|
||||
|
||||
增加双击置入画布。
|
||||
|
@@ -4,6 +4,10 @@ order: 1
|
||||
---
|
||||
## changelog
|
||||
|
||||
## 0.9.4
|
||||
|
||||
修复preview组件不能解除loading的bug
|
||||
|
||||
## 0.9.3
|
||||
|
||||
增加双击置入画布。
|
||||
|
@@ -34,12 +34,12 @@ dooringx-lib 在运行时维护一套数据流,主要分为json数据部分,
|
||||
|
||||
[阅读文档了解更多信息](https://h5-dooring.github.io/dooringx/).
|
||||
|
||||
## 安装 | Installation
|
||||
## 二次开发安装 | Installation
|
||||
```bash
|
||||
npm/yarn install dooringx-lib
|
||||
```
|
||||
|
||||
## 快速启动 | Quick Start
|
||||
## 项目上手 | Quick Start
|
||||
|
||||
```bash
|
||||
# 克隆项目
|
||||
@@ -56,16 +56,15 @@ cd dooringx
|
||||
# 安装依赖
|
||||
yarn install
|
||||
|
||||
# 启动基础示例
|
||||
yarn start:example
|
||||
|
||||
# 启动 dooringx-lib
|
||||
yarn start
|
||||
|
||||
# 启动基础示例
|
||||
yarn start:example
|
||||
|
||||
# 启动 dooringx doc 文档
|
||||
yarn start:doc
|
||||
|
||||
yarn build
|
||||
```
|
||||
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "0.9.3",
|
||||
"version": "0.9.4",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/dooringx-lib.esm.js",
|
||||
|
@@ -2,7 +2,7 @@
|
||||
* @Author: yehuozhili
|
||||
* @Date: 2021-03-14 05:40:37
|
||||
* @LastEditors: yehuozhili
|
||||
* @LastEditTime: 2021-09-28 22:26:00
|
||||
* @LastEditTime: 2021-10-10 00:54:55
|
||||
* @FilePath: \dooringx\packages\dooringx-lib\src\components\preview.tsx
|
||||
*/
|
||||
import Container from './container';
|
||||
@@ -41,6 +41,8 @@ function Preview(props: PreviewProps): ReactElement {
|
||||
const [loading, setLoading] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
const finalFn = () => {
|
||||
setTimeout(() => {
|
||||
// 链接数据
|
||||
props.config
|
||||
.getDataCenter()
|
||||
@@ -50,8 +52,6 @@ function Preview(props: PreviewProps): ReactElement {
|
||||
.getEventCenter()
|
||||
.syncEventMap(props.config.getStore().getData(), props.config.getStoreChanger());
|
||||
|
||||
const finalFn = () => {
|
||||
setTimeout(() => {
|
||||
// 设置全局
|
||||
const bodyColor = props.config.getStore().getData().globalState?.bodyColor;
|
||||
if (bodyColor) {
|
||||
@@ -89,6 +89,8 @@ function Preview(props: PreviewProps): ReactElement {
|
||||
.catch(() => {
|
||||
finalFn();
|
||||
});
|
||||
} else {
|
||||
finalFn();
|
||||
}
|
||||
}, [props, props.config]);
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dooringx-plugin-template",
|
||||
"version": "0.9.3",
|
||||
"version": "0.9.4",
|
||||
"description": "> TODO: description",
|
||||
"author": "yehuozhili <673632758@qq.com>",
|
||||
"homepage": "https://github.com/H5-Dooring/dooringx#readme",
|
||||
|
@@ -40,7 +40,7 @@
|
||||
"@rollup/plugin-node-resolve": "^13.0.4",
|
||||
"@rollup/plugin-url": "^6.1.0",
|
||||
"@svgr/rollup": "^5.5.0",
|
||||
"dooringx-lib": "^0.9.3",
|
||||
"dooringx-lib": "^0.9.4",
|
||||
"postcss": "^8.3.6",
|
||||
"rollup-plugin-peer-deps-external": "^2.2.4",
|
||||
"rollup-plugin-postcss": "^4.0.1",
|
||||
|
Reference in New Issue
Block a user