去掉form添加校验hook的限制,以及一点小修改

This commit is contained in:
rickcole 2020-03-19 17:51:10 +08:00
parent e5e7316d10
commit 5c163da831
3 changed files with 9 additions and 2 deletions

View File

@ -239,6 +239,9 @@ amis 集成了 [fontawesome](http://fontawesome.io/icons/),所以关于图标
.text-u-c { text-transform: uppercase; }
.text-l-t { text-decoration: line-through; }
.text-u-l { text-decoration: underline; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
```

View File

@ -309,7 +309,7 @@ export default class FormControl extends React.PureComponent<
control = control.getWrappedInstance();
}
if (control && control.validate && this.model) {
if (control && control.validate) {
const formItem = this.model as IFormItemStore;
let validate = promisify(control.validate.bind(control));
this.hook = function() {

View File

@ -94,6 +94,8 @@ export interface TableProps extends RendererProps {
buildItemProps?: (item: any, index: number) => any;
checkOnItemClick?: boolean;
hideCheckToggler?: boolean;
rowClassName?: string;
rowClassNameExpr?: string;
}
export default class Table extends React.Component<TableProps, object> {
@ -125,7 +127,9 @@ export default class Table extends React.Component<TableProps, object> {
'combineNum',
'items',
'valueField',
'saveImmediately'
'saveImmediately',
'rowClassName',
'rowClassNameExpr'
];
static defaultProps: Partial<TableProps> = {
className: '',