|
|
|
@ -44,7 +44,7 @@ export interface IChat
|
|
|
|
|
|
|
|
|
|
export class UserConfig implements IConfigStore
|
|
|
|
|
{
|
|
|
|
|
private readonly _version = 36; //🌟🌟每次更新必须向上添加一次版本号🌟🌟
|
|
|
|
|
private readonly _version = 37; //🌟🌟每次更新必须向上添加一次版本号🌟🌟
|
|
|
|
|
@observable designer = ""; //一键布局的设计师
|
|
|
|
|
_renderType: RenderType = RenderType.Wireframe;
|
|
|
|
|
@observable maxSize: IMaxSizeProps = {
|
|
|
|
@ -172,7 +172,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
pageFooterName: "", //页脚名称
|
|
|
|
|
printResolution: 1450,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@observable templateDisplayCount: number = 100; //插入模板时显示的最大个数
|
|
|
|
|
constructor()
|
|
|
|
|
{
|
|
|
|
|
this.Init();
|
|
|
|
@ -272,6 +272,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
pageFooterName: "",
|
|
|
|
|
printResolution: 1450,
|
|
|
|
|
});
|
|
|
|
|
this.templateDisplayCount = 100;
|
|
|
|
|
}
|
|
|
|
|
SaveConfig()
|
|
|
|
|
{
|
|
|
|
@ -326,6 +327,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
printOption: toJS(this.printOption),
|
|
|
|
|
show2DPathLine: this.show2DPathLine,
|
|
|
|
|
show2DPathObject: this.show2DPathObject,
|
|
|
|
|
templateDisplayCount: this.templateDisplayCount,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
@ -488,6 +490,10 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
this.show2DPathLine = config.option.show2DPathLine;
|
|
|
|
|
this.show2DPathObject = config.option.show2DPathObject;
|
|
|
|
|
}
|
|
|
|
|
if (config.option.version > 36)
|
|
|
|
|
{
|
|
|
|
|
this.templateDisplayCount = config.option.templateDisplayCount;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|