@lemon-fe/kits 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,6 +54,10 @@ interface Props extends Pick<TabsProps, 'activeKey' | 'onTabClick'> {
|
|
|
54
54
|
* @description 同 style flex属性, 为true时 flex = 1
|
|
55
55
|
*/
|
|
56
56
|
flex?: boolean | number;
|
|
57
|
+
/**
|
|
58
|
+
* @description 是否启用title背景色
|
|
59
|
+
*/
|
|
60
|
+
titleBar?: boolean;
|
|
57
61
|
}
|
|
58
62
|
export default function Section(props: Props): JSX.Element;
|
|
59
63
|
export {};
|
|
@@ -26,7 +26,8 @@ export default function Section(props) {
|
|
|
26
26
|
flex = props.flex,
|
|
27
27
|
activeKey = props.activeKey,
|
|
28
28
|
_onTabClick = props.onTabClick,
|
|
29
|
-
hideTabBar = props.hideTabBar
|
|
29
|
+
hideTabBar = props.hideTabBar,
|
|
30
|
+
titleBar = props.titleBar;
|
|
30
31
|
var containerStyle = style;
|
|
31
32
|
|
|
32
33
|
if (flex) {
|
|
@@ -40,7 +41,7 @@ export default function Section(props) {
|
|
|
40
41
|
className: classNames(prefix(), (_classNames = {}, _defineProperty(_classNames, prefix(type), !!type), _defineProperty(_classNames, prefix('flex'), !!flex), _classNames), className),
|
|
41
42
|
style: containerStyle
|
|
42
43
|
}, title || hasActions ? /*#__PURE__*/React.createElement("div", {
|
|
43
|
-
className: prefix('header')
|
|
44
|
+
className: classNames(prefix('header'), _defineProperty({}, prefix('header-bar'), titleBar))
|
|
44
45
|
}, /*#__PURE__*/React.createElement("div", {
|
|
45
46
|
className: prefix('title')
|
|
46
47
|
}, title), actions) : null, tabs !== undefined && tabs.length > 0 ? Array.isArray(children) && children.length > 1 ? /*#__PURE__*/React.createElement(Tabs, {
|