!756 修复板件UI和编辑bug

pull/756/MERGE
ZoeLeeFZ 5 years ago committed by ChenX
parent ac305cd312
commit 41300b0c0e

@ -467,6 +467,7 @@ interface IDrillTypeSelect
br: Board;
isShowHigh?: boolean;
onFocus?: Function;
drillOption: IHightDrillOption;
}
@observer
@ -529,6 +530,11 @@ export class DrillTypeSelectCom extends React.Component<IDrillTypeSelect, { isDa
{
this.props.opt.drillType = e.target.value;
this.props.opt.highDrill.fill(e.target.value);
for (let k in this.props.drillOption)
{
if (this.props.drillOption.hasOwnProperty(k))
this.props.drillOption[k] = e.target.value;
}
this.setState({ isDanger: false });
};
UNSAFE_componentWillMount()

@ -53,8 +53,7 @@ export interface BoardModalProps
@observer
export class BoardModal extends React.Component<BoardModalProps, {}>
{
private highDrillOption: IHightDrillOption = { up: "", down: "", left: "", right: "" };
@observable private remarks: [string, string][] = Array.from({ length: 12 }, () => ["", ""]);
@observable private highDrillOption: IHightDrillOption = { up: "", down: "", left: "", right: "" };
constructor(props: BoardModalProps)
{
super(props);

@ -277,6 +277,7 @@ export class BoardProcessModal extends React.Component<BoardProcessProps, {}>{
opt={this.props.opt}
br={this.props.br}
isShowHigh={isShowHighEditor}
drillOption={this.props.drillOption}
/>
</label>
<label className="bp3-label bp3-inline .modifier">

@ -162,7 +162,7 @@ export class BoardStore extends Singleton implements IConfigStore
d[1] = "";
});
if (cof.processData.remarks)
if (cof.processData?.remarks)
{
cof.processData.remarks.forEach((d, i) =>
{

Loading…
Cancel
Save