mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
去掉form添加校验hook的限制,以及一点小修改
This commit is contained in:
parent
e5e7316d10
commit
5c163da831
@ -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; }
|
||||
```
|
||||
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -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: '',
|
||||
|
Loading…
Reference in New Issue
Block a user