2 Star 0 Fork 0

yanghy / wui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
components.go 729 Bytes
一键复制 编辑 原始数据 按行查看 历史
yanghy 提交于 2021-11-12 21:00 . 增加点东西
package webview
import (
"gitee.com/snxamdf/wui/util/w"
)
type EventFn func(w WidgetInterface) *RPCData
type WidgetInterface interface {
GoSyncJS()
Eval(js string) error
GetComponent() ComponentInterface
CBEvent(EventFn) WidgetInterface
GetEvent() EventFn
GetValue() w.WMap
GetId() string
SetValue(value interface{})
}
type ComponentInterface interface {
GetName() string
NewWidget(widgetId string) WidgetInterface
GetWidget(widgetId string) WidgetInterface
GetWidgets() map[string]WidgetInterface
SetWidget(widgetId string, w WidgetInterface) WidgetInterface
GetWV() WV
}
type WV interface {
IEval(js string) error
}
type Binding interface {
BindingJS(widgets map[string]WidgetInterface)
EvalJS(wv WV)
}
Go
1
https://gitee.com/snxamdf/wui.git
git@gitee.com:snxamdf/wui.git
snxamdf
wui
wui
4e24f74d83c0

搜索帮助