mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-23 14:39:32 +08:00
fix(layout): implement blockDefaultProps in layout
This commit is contained in:
parent
a128de6810
commit
b1fe2b9f41
@ -17,6 +17,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Row } from 'antd';
|
import { Row } from 'antd';
|
||||||
import gutterSetup from './gutterSetup.js';
|
import gutterSetup from './gutterSetup.js';
|
||||||
|
import { blockDefaultProps } from '@lowdefy/block-tools';
|
||||||
|
|
||||||
const Area = ({ area, areaStyle, children, highlightBorders, id, makeCssClass }) => (
|
const Area = ({ area, areaStyle, children, highlightBorders, id, makeCssClass }) => (
|
||||||
<Row
|
<Row
|
||||||
@ -37,4 +38,6 @@ const Area = ({ area, areaStyle, children, highlightBorders, id, makeCssClass })
|
|||||||
</Row>
|
</Row>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Area.defaultProps = blockDefaultProps;
|
||||||
|
|
||||||
export default Area;
|
export default Area;
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Col } from 'antd';
|
import { Col } from 'antd';
|
||||||
import deriveLayout from './deriveLayout.js';
|
import deriveLayout from './deriveLayout.js';
|
||||||
|
import { blockDefaultProps } from '@lowdefy/block-tools';
|
||||||
|
|
||||||
const alignSelf = (align) => {
|
const alignSelf = (align) => {
|
||||||
if (align === 'bottom') {
|
if (align === 'bottom') {
|
||||||
@ -54,4 +55,6 @@ const BlockLayout = ({ id, blockStyle, children, highlightBorders, layout, makeC
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
BlockLayout.defaultProps = blockDefaultProps;
|
||||||
|
|
||||||
export default BlockLayout;
|
export default BlockLayout;
|
||||||
|
Loading…
Reference in New Issue
Block a user