;
export const FORM_PROPS = [
'colon',
diff --git a/src/components/renderFormItem/index.tsx b/src/components/renderFormItem/index.tsx
index f0ac55af2..02e8c26a8 100644
--- a/src/components/renderFormItem/index.tsx
+++ b/src/components/renderFormItem/index.tsx
@@ -10,7 +10,7 @@ interface ItemType {
key: string | number | (string | number)[];
required?: boolean;
component?: React.ReactNode;
- tooltip?: React.ReactNode | string;
+ tooltip?: React.ReactNode;
extra?: React.ReactNode;
options?: {
className?: string;
diff --git a/src/components/textMark/index.tsx b/src/components/textMark/index.tsx
index 6bc5a7eb5..224830017 100644
--- a/src/components/textMark/index.tsx
+++ b/src/components/textMark/index.tsx
@@ -7,7 +7,7 @@ export interface TextMarkProps {
[propName: string]: any;
}
class TextMark extends React.Component {
- renderMark(text = '', markText = ''): React.ReactNode | string {
+ renderMark(text = '', markText = ''): React.ReactNode {
const markTextIndex = text.indexOf(markText);
if (markTextIndex !== -1) {
return (
diff --git a/src/components/toolModal/index.tsx b/src/components/toolModal/index.tsx
index 942342bbd..5f7b56219 100644
--- a/src/components/toolModal/index.tsx
+++ b/src/components/toolModal/index.tsx
@@ -5,7 +5,7 @@ import Fullscreen from '../fullscreen';
export interface ToolModalProps {
visible: boolean;
- toolbox?: React.ReactNode | string;
+ toolbox?: React.ReactNode;
fullscreen?: boolean | undefined;
[propName: string]: any;
}
diff --git a/src/stories/blockHeader.stories.tsx b/src/stories/blockHeader.stories.tsx
index ebb6581eb..b89b8029d 100644
--- a/src/stories/blockHeader.stories.tsx
+++ b/src/stories/blockHeader.stories.tsx
@@ -71,6 +71,20 @@ const propDefinitions = [
description: '是否默认展开内容',
defaultValue: 'true',
},
+ {
+ property: 'hasBottom',
+ propType: 'boolean',
+ required: false,
+ description: '是否有默认下边距16px',
+ defaultValue: 'false',
+ },
+ {
+ property: 'spaceBottom',
+ propType: 'number',
+ required: false,
+ description: '自定义下边距,优先级高于 hasBottom',
+ defaultValue: 0,
+ },
{
property: 'children',
propType: 'React.ReactNode',
diff --git a/src/stories/modalWithForm.stories.tsx b/src/stories/modalWithForm.stories.tsx
index cd1d7c139..af5c7f9af 100644
--- a/src/stories/modalWithForm.stories.tsx
+++ b/src/stories/modalWithForm.stories.tsx
@@ -60,7 +60,7 @@ const propDefinitions = [
},
{
property: 'title',
- propType: 'React.ReactNode | string',
+ propType: 'React.ReactNode',
required: false,
description: '标题',
defaultValue: '--',