mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-07 07:03:34 +08:00
🔧 chore(deps/bindings): 同步直接依赖与原生窗口类型
- 将代码直接使用的 golang.org/x/sync 标记为直接依赖 - 为 Wails OperationResult 绑定补充 applied 可选字段 - 在构造阶段同步反序列化 applied 以保持前后端类型一致
This commit is contained in:
@@ -1695,6 +1695,7 @@ export namespace nativewindow {
|
||||
id?: string;
|
||||
bounds?: WindowBounds;
|
||||
visibilityRevision?: number;
|
||||
applied?: boolean;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new OperationResult(source);
|
||||
@@ -1707,6 +1708,7 @@ export namespace nativewindow {
|
||||
this.id = source["id"];
|
||||
this.bounds = this.convertValues(source["bounds"], WindowBounds);
|
||||
this.visibilityRevision = source["visibilityRevision"];
|
||||
this.applied = source["applied"];
|
||||
}
|
||||
|
||||
convertValues(a: any, classs: any, asMap: boolean = false): any {
|
||||
|
||||
2
go.mod
2
go.mod
@@ -154,7 +154,7 @@ require (
|
||||
go.opentelemetry.io/otel/trace v1.39.0 // indirect
|
||||
go.yaml.in/yaml/v3 v3.0.4 // indirect
|
||||
golang.org/x/exp v0.0.0-20260112195511-716be5621a96 // indirect
|
||||
golang.org/x/sync v0.19.0 // indirect
|
||||
golang.org/x/sync v0.19.0
|
||||
golang.org/x/telemetry v0.0.0-20260209163413-e7419c687ee4 // indirect
|
||||
golang.org/x/term v0.40.0 // indirect
|
||||
golang.org/x/tools v0.42.0 // indirect
|
||||
|
||||
Reference in New Issue
Block a user