!3001 优化:修改 Tooltip 的语义易于理解

pull/3003/head
钱若寒 1 month ago committed by ChenX
parent ff5d0438b1
commit 5011d12d31

@ -82,7 +82,8 @@ export class Curve2RecModalStore extends Singleton implements IConfigStore
} }
} }
@observer @observer
export class Curve2RecModal extends React.Component<{ store: Curve2RecModalStore; }, {}>{ export class Curve2RecModal extends React.Component<{ store: Curve2RecModalStore; }, {}>
{
private removeFuncs: Function[] = []; //移除注入 private removeFuncs: Function[] = []; //移除注入
componentDidMount() componentDidMount()
{ {
@ -133,27 +134,29 @@ export class Curve2RecModal extends React.Component<{ store: Curve2RecModalStore
<div className="checkbox-input-group"> <div className="checkbox-input-group">
<Checkbox checked={option.isSaveSmall} onChange={() => { this.props.store.option.isSaveSmall = !this.props.store.option.isSaveSmall; }}> <Checkbox checked={option.isSaveSmall} onChange={() => { this.props.store.option.isSaveSmall = !this.props.store.option.isSaveSmall; }}>
</Checkbox> </Checkbox>
<div> <Tooltip content={<span>,2040,<br />线,120(),<br />线120,</span>}>
<div>
<ToasterInput
inputClassName={Classes.INPUT} <ToasterInput
type={CheckObjectType.OnlyNumber} inputClassName={Classes.INPUT}
option={option} type={CheckObjectType.OnlyNumber}
uiOption={store.UIOption} option={option}
optKey={"width"} uiOption={store.UIOption}
onChange={(e) => optKey={"width"}
{ onChange={(e) =>
if (e.target.value === "")
{ {
this.props.store.option.width = 0; if (e.target.value === "")
return; {
} this.props.store.option.width = 0;
let num = safeEval(e.target.value.trim()); return;
this.props.store.option.width = (!isNaN(num)) ? num : undefined; }
}} let num = safeEval(e.target.value.trim());
/> this.props.store.option.width = (!isNaN(num)) ? num : undefined;
}}
</div> />
</div>
</Tooltip>
</div> </div>
<div className="checkbox-analy"> <div className="checkbox-analy">
<Checkbox <Checkbox

@ -8,11 +8,24 @@
} }
.undefined.br-set { .undefined.br-set {
> span:first-child { >span:first-child {
width: 4.5rem; width: 4.5rem;
} }
} }
.flexWrap.flexWrapWidth {
.br-set:nth-of-type(2) .bp3-input {
width: 3.9rem;
margin-left: 11px;
}
}
.bp3-input-group {
.bp3-input {
width: 4rem
}
}
.select-drillType { .select-drillType {
width: 9rem; width: 9rem;
} }
@ -32,14 +45,14 @@
line-height: @noteInputHeight; line-height: @noteInputHeight;
} }
> div { >div {
display: flex; display: flex;
input:hover { input:hover {
background: #ccc; background: #ccc;
} }
> label { >label {
height: @noteInputHeight; height: @noteInputHeight;
line-height: @noteInputHeight; line-height: @noteInputHeight;
} }
@ -56,44 +69,44 @@
margin: 10px; margin: 10px;
} }
.roomName{ .roomName {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.roomNameBody{ .roomNameBody {
width: 196px; width: 196px;
} }
.inputGroup{ .inputGroup {
width: 107px; width: 107px;
input{ input {
width : 110px; width: 110px;
margin-right : 10px; margin-right: 10px;
} }
} }
button{ button {
width : 30px; width: 30px;
height: 47px; height: 47px;
} }
} }
.multiBackBr{ .multiBackBr {
.bp3-control.bp3-inline{ .bp3-control.bp3-inline {
margin-right: 25px; margin-right: 25px;
} }
} }
} }
/* 备注信息 */ /* 备注信息 */
#rec2Br .notes > div > label:first-child, #rec2Br .notes>div>label:first-child,
#rec2Br .notes > div > input:first-child { #rec2Br .notes>div>input:first-child {
width: 30%; width: 30%;
} }
#rec2Br .notes > div > label:last-child, #rec2Br .notes>div>label:last-child,
#rec2Br .notes > div > input:last-child { #rec2Br .notes>div>input:last-child {
width: 70%; width: 70%;
} }
@ -130,16 +143,16 @@
} }
.rec2br { .rec2br {
> div:nth-child(1) { >div:nth-child(1) {
max-height: 660px; max-height: 660px;
> div:nth-child(1) { >div:nth-child(1) {
display: flex; display: flex;
flex-flow: column wrap; flex-flow: column wrap;
flex-grow: 1; flex-grow: 1;
padding: 0; padding: 0;
> .board-name { >.board-name {
padding: 20px; padding: 20px;
height: 100%; height: 100%;
} }

@ -229,7 +229,7 @@ export class ParseBoardName extends Component<IParseBoardProps>
</div> </div>
<div className="multiBackBr"> <div className="multiBackBr">
<H5></H5> <H5></H5>
<Tooltip content="多背板=单个柜子(名称) 单背板=多个柜子"> <Tooltip content={<span>:()<br />:,</span>}>
<RadioGroup <RadioGroup
inline inline
selectedValue={store.m_Option.isMultiBackBr ? "1" : "0"} selectedValue={store.m_Option.isMultiBackBr ? "1" : "0"}

@ -103,8 +103,8 @@ export class R2BConfigComponent extends React.Component<IR2BConfigComponentProps
/> />
<SetBoardDataBlock <SetBoardDataBlock
type={CheckObjectType.R2B} type={CheckObjectType.R2B}
className="flexWrap" className="flexWrap flexWrapWidth"
pars={[["backBrBiggerThanHeight", "大于"], ["backBrBiggerThanWidth", "大于"]]} pars={[["backBrBiggerThanHeight", "大于"], ["backBrBiggerThanWidth", "且宽大于"]]}
option={store.m_Option} option={store.m_Option}
uiOption={store.UIOption} uiOption={store.UIOption}
/> />

@ -33,7 +33,7 @@ export class ModelingComponent extends React.Component<{ store?: RightPanelStore
<ul className={"modeling " + Classes.LIST_UNSTYLED}> <ul className={"modeling " + Classes.LIST_UNSTYLED}>
<li> <li>
<Label></Label> <Label></Label>
<Label></Label> <Label></Label>
<Label></Label> <Label></Label>
<Label></Label> <Label></Label>
<Label></Label> <Label></Label>

Loading…
Cancel
Save