diff --git a/src/factory/resource/components/ActionItem/index.jsx b/src/factory/resource/components/ActionItem/index.jsx index 9d377782..79a52f83 100644 --- a/src/factory/resource/components/ActionItem/index.jsx +++ b/src/factory/resource/components/ActionItem/index.jsx @@ -1,6 +1,17 @@ import React from 'react'; import './index.scss'; +/** + * + * @param { + * children: React.ReactNode, // 子元素,第一个子元素是内容模块,第二个子元素是按钮列表 + * className: string, // 自定义类名,边距之类的要在这个类名里写 + * padding: string, // 内边距 + * borderRadius: string, // 圆角 + * backgroundColor: string, // 背景色 + * } props + * @returns + */ function ActionItem(props) { const childrenArray = React.Children.toArray(props.children); const contentChild = childrenArray[0];