资源中枢cont.
This commit is contained in:
parent
d6987d7c6c
commit
d29a019895
|
|
@ -1,6 +1,17 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import './index.scss';
|
import './index.scss';
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param {
|
||||||
|
* children: React.ReactNode, // 子元素,第一个子元素是内容模块,第二个子元素是按钮列表
|
||||||
|
* className: string, // 自定义类名,边距之类的要在这个类名里写
|
||||||
|
* padding: string, // 内边距
|
||||||
|
* borderRadius: string, // 圆角
|
||||||
|
* backgroundColor: string, // 背景色
|
||||||
|
* } props
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
function ActionItem(props) {
|
function ActionItem(props) {
|
||||||
const childrenArray = React.Children.toArray(props.children);
|
const childrenArray = React.Children.toArray(props.children);
|
||||||
const contentChild = childrenArray[0];
|
const contentChild = childrenArray[0];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue