update 0.8.4
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
## changelog
|
## changelog
|
||||||
|
|
||||||
|
## 0.8.4
|
||||||
|
|
||||||
|
增加preview的属性,可外界控制loading。
|
||||||
## 0.8.3
|
## 0.8.3
|
||||||
|
|
||||||
增加timeline拖动条与选中。
|
增加timeline拖动条与选中。
|
||||||
|
@@ -4,7 +4,9 @@ order: 1
|
|||||||
---
|
---
|
||||||
## changelog
|
## changelog
|
||||||
|
|
||||||
|
## 0.8.4
|
||||||
|
|
||||||
|
增加preview的属性,可外界控制loading。
|
||||||
## 0.8.3
|
## 0.8.3
|
||||||
|
|
||||||
增加timeline拖动条与选中。
|
增加timeline拖动条与选中。
|
||||||
|
@@ -2,18 +2,20 @@
|
|||||||
* @Author: yehuozhili
|
* @Author: yehuozhili
|
||||||
* @Date: 2021-07-07 20:05:48
|
* @Date: 2021-07-07 20:05:48
|
||||||
* @LastEditors: yehuozhili
|
* @LastEditors: yehuozhili
|
||||||
* @LastEditTime: 2021-07-10 18:01:15
|
* @LastEditTime: 2021-08-19 17:09:24
|
||||||
* @FilePath: \dooringx\packages\dooringx-example\src\pages\preview\index.tsx
|
* @FilePath: \dooringx\packages\dooringx-example\src\pages\preview\index.tsx
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { PREVIEWSTATE } from '@/constant';
|
import { PREVIEWSTATE } from '@/constant';
|
||||||
import { Preview, UserConfig } from 'dooringx-lib';
|
import { Preview, UserConfig } from 'dooringx-lib';
|
||||||
|
import { useState } from 'react';
|
||||||
import plugin from '../../plugin';
|
import plugin from '../../plugin';
|
||||||
|
|
||||||
const config = new UserConfig(plugin);
|
const config = new UserConfig(plugin);
|
||||||
|
|
||||||
function PreviewPage() {
|
function PreviewPage() {
|
||||||
const data = localStorage.getItem(PREVIEWSTATE);
|
const data = localStorage.getItem(PREVIEWSTATE);
|
||||||
|
//const [loading, setLoading] = useState(true);
|
||||||
if (data) {
|
if (data) {
|
||||||
try {
|
try {
|
||||||
const json = JSON.parse(data);
|
const json = JSON.parse(data);
|
||||||
@@ -30,7 +32,15 @@ function PreviewPage() {
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Preview config={config}></Preview>
|
<Preview
|
||||||
|
//loadingState={loading}
|
||||||
|
// completeFn={() => {
|
||||||
|
// setTimeout(() => {
|
||||||
|
// setLoading(false);
|
||||||
|
// }, 10000);
|
||||||
|
// }}
|
||||||
|
config={config}
|
||||||
|
></Preview>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@@ -142,7 +142,7 @@ Contributions, issues and feature requests are welcome!.
|
|||||||
|
|
||||||
### 技术交流 | Technical Communication
|
### 技术交流 | Technical Communication
|
||||||
|
|
||||||
<a href="http://cdn.dooring.cn/dr/gp.jpeg" target="_blank"><img src="http://cdn.dooring.cn/dr/gp.jpeg" width=260 />dooringx-lib交流群</a>
|
<a href="http://cdn.dooring.cn/dr/q3.png" target="_blank"><img src="http://cdn.dooring.cn/dr/q3.png" width=260 />dooringx-lib交流群</a>
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.8.3",
|
"version": "0.8.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist/dooringx-lib.esm.js",
|
"module": "dist/dooringx-lib.esm.js",
|
||||||
|
Reference in New Issue
Block a user