|
|
@ -4,6 +4,7 @@ import { DataAdapter } from "../../Common/DataAdapter";
|
|
|
|
import { IConfigOption } from "../Components/Board/UserConfig";
|
|
|
|
import { IConfigOption } from "../Components/Board/UserConfig";
|
|
|
|
import { BoardStore } from "./BoardStore";
|
|
|
|
import { BoardStore } from "./BoardStore";
|
|
|
|
import { DrillingOption, SpacingType } from "./drillInterface";
|
|
|
|
import { DrillingOption, SpacingType } from "./drillInterface";
|
|
|
|
|
|
|
|
import { userConfig } from "../../Editor/UserConfig";
|
|
|
|
|
|
|
|
|
|
|
|
export class DrillStore extends BoardStore
|
|
|
|
export class DrillStore extends BoardStore
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -144,6 +145,8 @@ export class DrillStore extends BoardStore
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Object.assign(this.rules[this.m_CurrentRuleIndex], this.m_Option);
|
|
|
|
Object.assign(this.rules[this.m_CurrentRuleIndex], this.m_Option);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//写入时修改用户当前配置
|
|
|
|
|
|
|
|
userConfig.DrillConfigs.set(this.type, toJS(this.rules));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
SaveConfig()
|
|
|
|
SaveConfig()
|
|
|
|
{
|
|
|
|
{
|
|
|
|