mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:19:01 +08:00
Merge pull request #733 from RickCole21/master
remark classname调整下、验证问题修复
This commit is contained in:
commit
fc1a24f38d
@ -76,6 +76,7 @@ class Remark extends React.Component<RemarkProps> {
|
||||
classPrefix={ns}
|
||||
classnames={cx}
|
||||
tooltip={filterContents(tooltip || content, data)}
|
||||
tooltipClassName={tooltip && tooltip.tooltipClassName}
|
||||
placement={(tooltip && tooltip.placement) || placement}
|
||||
rootClose={(tooltip && tooltip.rootClose) || rootClose}
|
||||
trigger={(tooltip && tooltip.trigger) || trigger}
|
||||
|
@ -259,7 +259,7 @@ export function validate(
|
||||
|
||||
rules &&
|
||||
Object.keys(rules).forEach(ruleName => {
|
||||
if (!rules[ruleName]) {
|
||||
if (!isExisty(rules[ruleName]) || isEmpty(rules[ruleName])) {
|
||||
return;
|
||||
} else if (typeof validations[ruleName] !== 'function') {
|
||||
throw new Error('Validation `' + ruleName + '` not exists!');
|
||||
|
Loading…
Reference in New Issue
Block a user