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

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

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

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

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

Loading…
Cancel
Save