fix some warning

This commit is contained in:
yupeng12 2024-07-01 16:41:48 +08:00
parent dc927969af
commit c953d6a3e3
3 changed files with 19 additions and 22 deletions

View File

@ -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) || ''}`}

View File

@ -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);

View File

@ -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>
);