update 0.8.4
This commit is contained in:
@@ -2,18 +2,20 @@
|
||||
* @Author: yehuozhili
|
||||
* @Date: 2021-07-07 20:05:48
|
||||
* @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
|
||||
*/
|
||||
|
||||
import { PREVIEWSTATE } from '@/constant';
|
||||
import { Preview, UserConfig } from 'dooringx-lib';
|
||||
import { useState } from 'react';
|
||||
import plugin from '../../plugin';
|
||||
|
||||
const config = new UserConfig(plugin);
|
||||
|
||||
function PreviewPage() {
|
||||
const data = localStorage.getItem(PREVIEWSTATE);
|
||||
//const [loading, setLoading] = useState(true);
|
||||
if (data) {
|
||||
try {
|
||||
const json = JSON.parse(data);
|
||||
@@ -30,7 +32,15 @@ function PreviewPage() {
|
||||
alignItems: 'center',
|
||||
}}
|
||||
>
|
||||
<Preview config={config}></Preview>
|
||||
<Preview
|
||||
//loadingState={loading}
|
||||
// completeFn={() => {
|
||||
// setTimeout(() => {
|
||||
// setLoading(false);
|
||||
// }, 10000);
|
||||
// }}
|
||||
config={config}
|
||||
></Preview>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user