diff --git a/components/FormBuilder/FormItemsRenderer.js b/components/FormBuilder/FormItemsRenderer.js index 65b1d70..8897ba6 100644 --- a/components/FormBuilder/FormItemsRenderer.js +++ b/components/FormBuilder/FormItemsRenderer.js @@ -263,8 +263,8 @@ const FormItemsRenderer = ({ {options.map((option, index) => { // 列数 const itemSpan = option.render === FORM_ITEM_RENDER_ENUM.DIVIDER ? 24 : option.span ?? span; - const itemLabelCol = option.labelCol ? option.labelCol : (itemSpan === 24 ? { span: labelCol.span / 2 } : labelCol); - const itemWrapperCol = option.wrapperCol ? option.wrapperCol : { span: 24 - itemLabelCol.span }; + const itemLabelCol = option.labelCol ?? (itemSpan === 24 ? { span: labelCol.span / 2 } : labelCol); + const itemWrapperCol = option.wrapperCol ?? { span: 24 - itemLabelCol.span }; // 使用 style 控制显示/隐藏 const style = collapse && index >= 3 ? { display: "none" } : undefined; diff --git a/components/Map/index.js b/components/Map/index.js index 45bdd2f..b9205c3 100644 --- a/components/Map/index.js +++ b/components/Map/index.js @@ -35,16 +35,14 @@ const Map = (props) => { -
- + +
- - - -
+
+