mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
* api/ui 改名为 server/client * 微调 * 继续完善 pages * Fix env file and file mode. (#1) * Fix: ignore .env file and environment variable names. * Fix: correct file mode. * fix: put environment variables together * fix: separate data and ui resourcer * feat: collection loader * feat: redirectTo * feat: fields & actions & views * feat: fields & actions * feat: app & pages & collections... * feat: collections & pages & permissions... * Doc: add readme (#2) * Doc: add README.md. * Util: add .editorconfig. * Fix: use glob ignore option instead of additional checking. (#3) * Fix: typo. (#4) * feat: permissions * feat: getCollection & getView actions * refactor: code cleanup Co-authored-by: Junyi <mytharcher@users.noreply.github.com>
24 lines
568 B
TypeScript
24 lines
568 B
TypeScript
import React from 'react'
|
|
import { createVirtualBox } from '@formily/react-schema-renderer'
|
|
import { Card } from 'antd'
|
|
import { CardProps } from 'antd/lib/card'
|
|
import styled from 'styled-components'
|
|
|
|
export const FormBlock = createVirtualBox<CardProps>(
|
|
'block',
|
|
styled(({ children, className, ...props }) => {
|
|
return (
|
|
<Card className={className} size="small" {...props}>
|
|
{children}
|
|
</Card>
|
|
)
|
|
})`
|
|
margin-bottom: 10px !important;
|
|
&.ant-card {
|
|
border: none;
|
|
box-shadow: none;
|
|
}
|
|
`
|
|
)
|
|
|
|
export default FormBlock |