mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-10 16:53:35 +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 {
|
||||
|
||||
Reference in New Issue
Block a user