Skip to content

Commit 373fe23

Browse files
committed
feat: 支持基本组件渲染
1 parent 3ee6677 commit 373fe23

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-flow-interface",
3-
"version": "0.17.12",
3+
"version": "0.17.13",
44
"description": "Interface package for NEXT FlOW. You can use this package to build your own plugin that can control anything.",
55
"type": "module",
66
"module": "dist/index.js",

src/plugin/dialog-plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ export default interface DialogPlugin extends IconPlugin {
1010
view: MixView<PluginViewProps>
1111

1212
onRender?: () => void
13-
onEffect?: () => () => void
1413
}

src/plugin/drawer-plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default interface DrawerPlugin extends IconPlugin {
1111
drawer: MixView<PluginViewProps>
1212

1313
onRender?: () => void
14-
onEffect?: () => () => void
1514

1615
onTitleClick?: () => void
1716
onTitleContextMenu?: () => void

src/plugin/view-plugin.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import { FunctionComponent } from 'react'
2-
31
import { PluginViewProps } from '@/plugin/dto/plugin-view-props.interface'
2+
import { MixView } from '@/type/view/mix-view'
43

54
import BasePlugin from './base-plugin'
65

76
export default interface ViewPlugin extends BasePlugin {
8-
view: FunctionComponent<PluginViewProps>
7+
view: MixView<PluginViewProps>
98

109
onRender?: () => void
11-
onEffect?: () => () => void
1210
}

0 commit comments

Comments
 (0)