You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
这是一个
SaltUI 版本
4.10.6
浏览器、操作系统等环境信息
复现步骤
showErrInTip为false之后,错误信息是会在toast里展示,但是原来展示tip的地方也会被替换成errMsg.
看了下renderTip方法里的message取值是优先errMsg变量.
能否改成根据hasError来决定message是取errMsg变量还是tip变量
renderTip() {
const t = this;
const {
readOnly, disabled, tip, errMsg, showErrInTip, layout,
} = t.props;
if (!readOnly && !disabled && (tip || (errMsg && showErrInTip))) {
const message = errMsg || tip;
const hasError = errMsg && showErrInTip;
return (
<div className={classnames(prefixClass('field-box FBH field-tip-box'), {
[prefixClass('field-tip-box-error')]: hasError,
})}
>
{layout === 'h' ? t.renderLabel({ className: prefixClass('field-tip-placeholder') }) : null}
<div className={prefixClass('FBH FBAC LH1_5 field-tip')}>{message}
);
}
return null;
}
The text was updated successfully, but these errors were encountered: