From d29a0198955b81e16efb6c4eec07748fcb139de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Fri, 12 Dec 2025 11:29:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E4=B8=AD=E6=9E=A2cont.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/factory/resource/components/ActionItem/index.jsx | 11 +++++++++++ 1 file changed, 11 insertions(+) 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];