mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:28:37 +08:00
修复 onAction 报错问题
This commit is contained in:
parent
e3ba9861cd
commit
781c51aa57
@ -117,8 +117,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
|
||||
'loadDataOnce',
|
||||
'loadDataOnceFetchOnFilter',
|
||||
'source',
|
||||
'header',
|
||||
'onAction'
|
||||
'header'
|
||||
];
|
||||
static defaultProps = {
|
||||
toolbarInline: true,
|
||||
|
@ -78,10 +78,7 @@ export default class Page extends React.Component<PageProps> {
|
||||
'body',
|
||||
'aside',
|
||||
'messages',
|
||||
'style',
|
||||
'onAction',
|
||||
'onConfirm',
|
||||
'onClose'
|
||||
'style'
|
||||
];
|
||||
|
||||
componentWillMount() {
|
||||
|
@ -122,9 +122,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||
'combineNum',
|
||||
'items',
|
||||
'valueField',
|
||||
'saveImmediately',
|
||||
'onAction',
|
||||
'onQuickChange'
|
||||
'saveImmediately'
|
||||
];
|
||||
static defaultProps: Partial<TableProps> = {
|
||||
className: '',
|
||||
|
@ -1098,7 +1098,8 @@ export function chainEvents(props: any, schema: any) {
|
||||
if (
|
||||
key.substr(0, 2) === 'on' &&
|
||||
typeof props[key] === 'function' &&
|
||||
typeof schema[key] === 'function'
|
||||
typeof schema[key] === 'function' &&
|
||||
schema[key] !== props[key]
|
||||
) {
|
||||
ret[key] = chainFunctions(schema[key], props[key]);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user