Skip to content

Commit 465300c

Browse files
committed
feat: 优化data数据
1 parent af1600e commit 465300c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/plugin.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {DrawerPlugin} from "oflow-interface";
33
import {loadApi} from "./api";
44
import React from 'react';
55
import Drawer from "./drawer/drawer";
6+
import {proxy} from "valtio";
67

78

89
export default class Plugin implements DrawerPlugin {
@@ -15,7 +16,9 @@ export default class Plugin implements DrawerPlugin {
1516
type: PluginType = PluginType.DRAWER
1617
theme: ThemeColor = ThemeColor.BLUE
1718

18-
data = {}
19+
data = proxy({
20+
21+
})
1922

2023
async onInstall() {
2124
loadApi()

0 commit comments

Comments
 (0)