mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
fix some warning
This commit is contained in:
parent
dc927969af
commit
c953d6a3e3
@ -219,6 +219,7 @@ export function renderChild(
|
||||
<StatusScopedSchemaRenderer
|
||||
render={renderChild as any}
|
||||
{...props}
|
||||
key={schema.key}
|
||||
schema={schema}
|
||||
propKey={schema.key}
|
||||
$path={`${prefix ? `${prefix}/` : ''}${(schema && schema.type) || ''}`}
|
||||
@ -230,6 +231,7 @@ export function renderChild(
|
||||
<SchemaRenderer
|
||||
render={renderChild as any}
|
||||
{...props}
|
||||
key={schema.key}
|
||||
schema={schema}
|
||||
propKey={schema.key}
|
||||
$path={`${prefix ? `${prefix}/` : ''}${(schema && schema.type) || ''}`}
|
||||
|
@ -43,15 +43,15 @@ export function Layout({
|
||||
header,
|
||||
headerClassName,
|
||||
aside,
|
||||
asideClassName,
|
||||
asideClassName = '',
|
||||
children,
|
||||
className,
|
||||
contentClassName,
|
||||
folded,
|
||||
asideFixed,
|
||||
headerFixed,
|
||||
footer,
|
||||
offScreen,
|
||||
asideFixed = true,
|
||||
headerFixed = true,
|
||||
footer = true,
|
||||
offScreen = true,
|
||||
size,
|
||||
boxed,
|
||||
classnames: cx,
|
||||
@ -116,13 +116,4 @@ export function Layout({
|
||||
);
|
||||
}
|
||||
|
||||
Layout.defaultProps = {
|
||||
// asideWide: false,
|
||||
asideFixed: true,
|
||||
asideClassName: '',
|
||||
headerFixed: true,
|
||||
offScreen: false,
|
||||
footer: false
|
||||
};
|
||||
|
||||
export default themeable(Layout);
|
||||
|
@ -549,14 +549,18 @@ export default class Drawer extends React.Component<DrawerProps> {
|
||||
</div>
|
||||
) : null}
|
||||
{actions.map((action, key) =>
|
||||
render(`action/${key}`, action, {
|
||||
onAction: this.handleAction,
|
||||
onActionSensor: undefined,
|
||||
btnDisabled: store.loading,
|
||||
data: store.formData,
|
||||
key,
|
||||
disabled: action.disabled || store.loading
|
||||
})
|
||||
render(
|
||||
`action/${key}`,
|
||||
{key, ...action},
|
||||
{
|
||||
onAction: this.handleAction,
|
||||
onActionSensor: undefined,
|
||||
btnDisabled: store.loading,
|
||||
data: store.formData,
|
||||
key,
|
||||
disabled: action.disabled || store.loading
|
||||
}
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user