Commit 4403c167 authored by XieZhiXiong's avatar XieZhiXiong

feat: 添加 gutter 属性

parent 8eaea579
......@@ -146,6 +146,7 @@ registerVirtualBox('ColumnLayout', (_props) => {
const xComponentProps = props['x-component-props'] || {};
const {
column = 3,
gutter = 20,
} = xComponentProps;
const span = 24 / column;
......@@ -160,7 +161,7 @@ registerVirtualBox('ColumnLayout', (_props) => {
return (
<Row
gutter={20}
gutter={gutter}
>
{cols.map((item, index) => (
<Col key={index} span={span}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment