|
|
@ -26,7 +26,8 @@ export interface ICommonMetalPanelProps
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@observer
|
|
|
|
@observer
|
|
|
|
export class CommonMetalPanel extends React.Component<ICommonMetalPanelProps> {
|
|
|
|
export class CommonMetalPanel extends React.Component<ICommonMetalPanelProps>
|
|
|
|
|
|
|
|
{
|
|
|
|
private size = new Vector3();
|
|
|
|
private size = new Vector3();
|
|
|
|
private length: string;
|
|
|
|
private length: string;
|
|
|
|
|
|
|
|
|
|
|
@ -155,7 +156,7 @@ export class CommonMetalPanel extends React.Component<ICommonMetalPanelProps> {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|
<label className="bp3-label bp3-inline .modifier" style={{ display: "flex" }}>
|
|
|
|
<label className="bp3-label bp3-inline .modifier" style={{ display: "flex" }}>
|
|
|
|
<span style={{ width: 65 }}>加工组:</span>
|
|
|
|
<span style={{ width: 47 }}>加工组:</span>
|
|
|
|
<div style={{ display: "inline-flex", flex: 1, minWidth: 120 }}>
|
|
|
|
<div style={{ display: "inline-flex", flex: 1, minWidth: 120 }}>
|
|
|
|
<input className="bp3-input" title="双击查看详细内容" value={this.tags.length > 0 ? this.tags.join(", ") : ""} readOnly style={{ minWidth: 100, flex: 1 }} onDoubleClick={this.onProcessInputDbClick} />
|
|
|
|
<input className="bp3-input" title="双击查看详细内容" value={this.tags.length > 0 ? this.tags.join(", ") : ""} readOnly style={{ minWidth: 100, flex: 1 }} onDoubleClick={this.onProcessInputDbClick} />
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
@ -227,7 +228,7 @@ export class CommonMetalPanel extends React.Component<ICommonMetalPanelProps> {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Label className={`metal-label ${Classes.INLINE}`} key={k}>
|
|
|
|
<Label className={`metal-label ${Classes.INLINE}`} key={k}>
|
|
|
|
<span>{t}</span>
|
|
|
|
<span >{t}</span>
|
|
|
|
<input tabIndex={1} type="text" className={Classes.INPUT} value={option[k]} onChange={e => option[k] = e.target.value} />
|
|
|
|
<input tabIndex={1} type="text" className={Classes.INPUT} value={option[k]} onChange={e => option[k] = e.target.value} />
|
|
|
|
</Label>
|
|
|
|
</Label>
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -288,7 +289,7 @@ export class CommonMetalPanel extends React.Component<ICommonMetalPanelProps> {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
metalTypeFields.map(([t, k]) => (
|
|
|
|
metalTypeFields.map(([t, k]) => (
|
|
|
|
<Label className={`metal-label ${Classes.INLINE}`} key={k}>
|
|
|
|
<Label className={`metal-label ${Classes.INLINE}`} key={k}>
|
|
|
|
<span>{t}</span>
|
|
|
|
<span >{t}</span>
|
|
|
|
<input
|
|
|
|
<input
|
|
|
|
tabIndex={1}
|
|
|
|
tabIndex={1}
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|