@lemon-fe/components 0.1.105 → 0.1.116
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.
package/es/Dropdown/index.d.ts
CHANGED
package/es/Dropdown/index.js
CHANGED
|
@@ -21,7 +21,9 @@ export default function Dropdown(props) {
|
|
|
21
21
|
overlayClassName = props.overlayClassName,
|
|
22
22
|
_props$placement = props.placement,
|
|
23
23
|
placement = _props$placement === void 0 ? 'bottomRight' : _props$placement,
|
|
24
|
-
children = props.children
|
|
24
|
+
children = props.children,
|
|
25
|
+
_props$trigger = props.trigger,
|
|
26
|
+
trigger = _props$trigger === void 0 ? 'click' : _props$trigger;
|
|
25
27
|
|
|
26
28
|
var _useState = useState(false),
|
|
27
29
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -30,7 +32,7 @@ export default function Dropdown(props) {
|
|
|
30
32
|
|
|
31
33
|
var prefixCls = "".concat(PREFIX_CLS, "-dropdown");
|
|
32
34
|
return /*#__PURE__*/React.createElement(Popover, {
|
|
33
|
-
trigger:
|
|
35
|
+
trigger: trigger,
|
|
34
36
|
placement: placement,
|
|
35
37
|
visible: visible,
|
|
36
38
|
onVisibleChange: setVisible,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactElement, ReactNode } from 'react';
|
|
1
|
+
import type { ReactElement, ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import type { MenuFavorites, MenuItem } from './typings';
|
|
3
3
|
interface Props<T> {
|
|
4
4
|
title: string | ReactNode;
|
|
@@ -17,6 +17,8 @@ interface Props<T> {
|
|
|
17
17
|
onFavoritesChange?: (value: MenuFavorites) => void;
|
|
18
18
|
right?: ReactNode;
|
|
19
19
|
children?: ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
20
22
|
}
|
|
21
23
|
export default function MainFramework<TabType extends {
|
|
22
24
|
title: string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
2
3
|
import TabBar from './components/TabBar';
|
|
3
4
|
import Menu from './components/Menu';
|
|
4
5
|
import { PREFIX_CLS as prefixCls } from '../constants';
|
|
5
6
|
import RefreshButton from './components/RefreshButton';
|
|
6
7
|
export default function MainFramework(props) {
|
|
7
|
-
var
|
|
8
|
+
var className = props.className,
|
|
9
|
+
tabs = props.tabs,
|
|
8
10
|
active = props.active,
|
|
9
11
|
children = props.children,
|
|
10
12
|
right = props.right,
|
|
@@ -20,9 +22,11 @@ export default function MainFramework(props) {
|
|
|
20
22
|
title = props.title,
|
|
21
23
|
favorites = props.favorites,
|
|
22
24
|
onFavoritesChange = props.onFavoritesChange,
|
|
23
|
-
renderMenu = props.renderMenu
|
|
25
|
+
renderMenu = props.renderMenu,
|
|
26
|
+
style = props.style;
|
|
24
27
|
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
-
className: "".concat(prefixCls, "-main")
|
|
28
|
+
className: classNames("".concat(prefixCls, "-main"), className),
|
|
29
|
+
style: style
|
|
26
30
|
}, /*#__PURE__*/React.createElement("div", {
|
|
27
31
|
className: "".concat(prefixCls, "-nav")
|
|
28
32
|
}, /*#__PURE__*/React.createElement("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.116",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "鲁盛杰 <lusj@cnlemon.net>",
|
|
6
6
|
"homepage": "",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"react": "^17.0.2",
|
|
40
40
|
"react-dom": "^17.0.2"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "194c33e19585ca81634ccf44e6c8efa3beca743c"
|
|
43
43
|
}
|