iglooform 2.5.21 → 2.5.22

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.
@@ -2,12 +2,13 @@ import "antd/es/space/style";
2
2
  import _Space from "antd/es/space";
3
3
  import "antd/es/grid/style";
4
4
  import _Grid from "antd/es/grid";
5
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
6
6
  import Typography from '../typography';
7
7
  import Button from '../button';
8
8
  import './style';
9
9
 
10
- var DefaultFooter = function DefaultFooter() {
10
+ var DefaultFooter = function DefaultFooter(props) {
11
+ var hiddenIglooIcon = props.hiddenIglooIcon;
11
12
  var useBreakpoint = _Grid.useBreakpoint;
12
13
 
13
14
  var _useBreakpoint = useBreakpoint(),
@@ -17,18 +18,20 @@ var DefaultFooter = function DefaultFooter() {
17
18
  className: "igloo-layout-footer",
18
19
  children: _jsxs("div", {
19
20
  className: "footer-content",
20
- children: [_jsx(_Space, {
21
- size: 32,
22
- align: "start",
23
- className: "footer-top",
24
- children: _jsx("div", {
25
- className: "top-left",
21
+ children: [!hiddenIglooIcon && _jsxs(_Fragment, {
22
+ children: [_jsx(_Space, {
23
+ size: 32,
24
+ align: "start",
25
+ className: "footer-top",
26
26
  children: _jsx("div", {
27
- className: "igloo-logo"
27
+ className: "top-left",
28
+ children: _jsx("div", {
29
+ className: "igloo-logo"
30
+ })
28
31
  })
29
- })
30
- }), _jsx("div", {
31
- className: "footer-divider"
32
+ }), _jsx("div", {
33
+ className: "footer-divider"
34
+ })]
32
35
  }), _jsxs("div", {
33
36
  className: "footer-bottom",
34
37
  children: [_jsx(Typography, {
@@ -67,7 +70,7 @@ var DefaultFooter = function DefaultFooter() {
67
70
  className: "igloo-layout-footer",
68
71
  children: _jsxs("div", {
69
72
  className: "footer-content",
70
- children: [_jsx("div", {
73
+ children: [!hiddenIglooIcon && _jsx("div", {
71
74
  className: "igloo-logo"
72
75
  }), _jsxs("div", {
73
76
  className: "footer-bottom",
@@ -4,12 +4,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import classnames from 'classnames';
5
5
  import './style';
6
6
 
7
- var DefaultHeader = function DefaultHeader() {
7
+ var DefaultHeader = function DefaultHeader(props) {
8
+ var hiddenIglooIcon = props.hiddenIglooIcon;
8
9
  var useBreakpoint = _Grid.useBreakpoint;
9
10
 
10
11
  var _useBreakpoint = useBreakpoint(),
11
12
  md = _useBreakpoint.md;
12
13
 
14
+ if (hiddenIglooIcon) return null;
13
15
  return md ? _jsx("div", {
14
16
  className: classnames({
15
17
  'igloo-layout-header': true
@@ -1,12 +1,5 @@
1
- import { FC, ReactNode } from 'react';
1
+ import { FC } from 'react';
2
+ import { FooterConfig } from './index';
2
3
  import './style';
3
- interface ILayoutFooter {
4
- companyInfoRender?: () => any;
5
- copyRightRender?: (origin: ReactNode) => any;
6
- tel?: string;
7
- email?: string;
8
- workTime?: any;
9
- address?: string;
10
- }
11
- declare const LayoutFooter: FC<ILayoutFooter>;
4
+ declare const LayoutFooter: FC<FooterConfig>;
12
5
  export default LayoutFooter;
@@ -4,12 +4,15 @@ import "antd/es/grid/style";
4
4
  import _Grid from "antd/es/grid";
5
5
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
6
6
  import { EmailOutlined, LocationOutlined, TimeOutlined, PhoneOutlined } from 'iglooicon';
7
+ import classnames from 'classnames';
7
8
  import Typography from '../typography';
8
9
  import Button from '../button';
9
10
  import './style';
10
11
 
11
12
  var LayoutFooter = function LayoutFooter(_ref) {
12
- var companyInfoRender = _ref.companyInfoRender,
13
+ var hiddenIglooIcon = _ref.hiddenIglooIcon,
14
+ extraInfo = _ref.extraInfo,
15
+ companyInfoRender = _ref.companyInfoRender,
13
16
  copyRightRender = _ref.copyRightRender,
14
17
  tel = _ref.tel,
15
18
  email = _ref.email,
@@ -79,11 +82,11 @@ var LayoutFooter = function LayoutFooter(_ref) {
79
82
  className: "igloo-layout-footer",
80
83
  children: _jsxs("div", {
81
84
  className: "footer-content",
82
- children: [_jsxs(_Space, {
85
+ children: [extraInfo && extraInfo(), _jsxs(_Space, {
83
86
  size: 32,
84
87
  align: "start",
85
88
  className: "footer-top",
86
- children: [_jsx("div", {
89
+ children: [!hiddenIglooIcon && _jsx("div", {
87
90
  className: "top-left",
88
91
  children: _jsx("div", {
89
92
  className: "igloo-logo"
@@ -131,10 +134,12 @@ var LayoutFooter = function LayoutFooter(_ref) {
131
134
  className: "igloo-layout-footer",
132
135
  children: _jsxs("div", {
133
136
  className: "footer-content",
134
- children: [_jsx("div", {
137
+ children: [extraInfo && extraInfo(), !hiddenIglooIcon && _jsx("div", {
135
138
  className: "igloo-logo"
136
139
  }), _jsxs("div", {
137
- className: "compony-info",
140
+ className: classnames('compony-info', {
141
+ 'compony-info-without-icon': hiddenIglooIcon
142
+ }),
138
143
  children: [tel && _jsxs("div", {
139
144
  className: "info-item",
140
145
  children: [_jsx(PhoneOutlined, {}), _jsx("div", {
@@ -1,31 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { BadgeProps } from 'antd';
2
+ import { HeaderConfig } from './index';
3
3
  import './style/index';
4
- interface Menu {
5
- title: string;
6
- key: string;
7
- badge?: 'dot' | number | string | BadgeProps | (() => any);
8
- }
9
- interface Info {
10
- title: string;
11
- value: string;
12
- }
13
- interface Action {
14
- title: string;
15
- onClick?: () => void;
16
- }
17
- interface ILayoutHeader {
18
- menus?: Menu[];
19
- defaultSelected?: string;
20
- selectedKey?: string;
21
- onMenuChange?: (menuItem: any) => any;
22
- dropMenuConfig?: {
23
- customInfos: Info[];
24
- actions: Action[];
25
- };
26
- userName?: string;
27
- userAvatar?: string;
28
- spaceBetween?: boolean;
29
- }
30
- declare const LayoutHeader: FC<ILayoutHeader>;
4
+ declare const LayoutHeader: FC<HeaderConfig>;
31
5
  export default LayoutHeader;
@@ -40,7 +40,8 @@ import defaultAvatar from './style/avatar.svg';
40
40
  import './style/index';
41
41
 
42
42
  var LayoutHeader = function LayoutHeader(_ref) {
43
- var _ref$menus = _ref.menus,
43
+ var hiddenIglooIcon = _ref.hiddenIglooIcon,
44
+ _ref$menus = _ref.menus,
44
45
  menus = _ref$menus === void 0 ? [] : _ref$menus,
45
46
  _ref$defaultSelected = _ref.defaultSelected,
46
47
  defaultSelected = _ref$defaultSelected === void 0 ? '' : _ref$defaultSelected,
@@ -66,6 +67,7 @@ var LayoutHeader = function LayoutHeader(_ref) {
66
67
  activeMenu = _useState4[0],
67
68
  setActiveMenu = _useState4[1];
68
69
 
70
+ var onlyHaveIconButNotShow = hiddenIglooIcon && menus.length === 0 && Object.keys(dropMenuConfig || {}).length === 0 && !userName && !children;
69
71
  useEffect(function () {
70
72
  if (selectedKey) {
71
73
  setSelectedMenu(selectedKey);
@@ -144,6 +146,8 @@ var LayoutHeader = function LayoutHeader(_ref) {
144
146
  }
145
147
  }
146
148
 
149
+ if (onlyHaveIconButNotShow) return null;
150
+
147
151
  if (md) {
148
152
  return _jsx("div", {
149
153
  className: classnames({
@@ -156,7 +160,7 @@ var LayoutHeader = function LayoutHeader(_ref) {
156
160
  }),
157
161
  children: [_jsxs("div", {
158
162
  className: "header-left",
159
- children: [_jsx("div", {
163
+ children: [!hiddenIglooIcon && _jsx("div", {
160
164
  className: "igloo-logo"
161
165
  }), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && !children && _jsx(_Row, {
162
166
  children: menus.map(function (menu) {
@@ -191,7 +195,7 @@ var LayoutHeader = function LayoutHeader(_ref) {
191
195
  'igloo-layout-header': true,
192
196
  'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
193
197
  }),
194
- children: [_jsx("div", {
198
+ children: [!hiddenIglooIcon && _jsx("div", {
195
199
  className: "igloo-logo"
196
200
  }), dropMenuConfig && !children && _jsx(HomeMenu, _objectSpread({
197
201
  userAvatar: userAvatar,
@@ -14,7 +14,8 @@ interface Action {
14
14
  title: string;
15
15
  onClick?: () => void;
16
16
  }
17
- interface HeaderConfig {
17
+ export interface HeaderConfig {
18
+ hiddenIglooIcon?: boolean;
18
19
  menus?: Menu[];
19
20
  defaultSelected?: string;
20
21
  selectedKey?: string;
@@ -27,7 +28,9 @@ interface HeaderConfig {
27
28
  userAvatar?: string;
28
29
  children?: any;
29
30
  }
30
- interface FooterConfig {
31
+ export interface FooterConfig {
32
+ hiddenIglooIcon?: boolean;
33
+ extraInfo?: () => any;
31
34
  companyInfoRender?: () => any;
32
35
  copyRightRender?: (origin: ReactNode) => any;
33
36
  tel?: string;
@@ -36,6 +39,7 @@ interface FooterConfig {
36
39
  address?: string;
37
40
  }
38
41
  interface layoutType {
42
+ hiddenIglooIcon?: boolean;
39
43
  className?: string;
40
44
  style?: CSSProperties;
41
45
  withFixedPanel?: boolean;
@@ -16,7 +16,8 @@ import DefaultFooter from './defaultFooter';
16
16
  import './style';
17
17
 
18
18
  var Layout = function Layout(props) {
19
- var className = props.className,
19
+ var hiddenIglooIcon = props.hiddenIglooIcon,
20
+ className = props.className,
20
21
  style = props.style,
21
22
  headerConfig = props.headerConfig,
22
23
  footerConfig = props.footerConfig,
@@ -95,13 +96,17 @@ var Layout = function Layout(props) {
95
96
  return _jsxs("div", {
96
97
  style: style,
97
98
  className: classnames(layoutContainerClass, className),
98
- children: [!headerDom && !headerConfig && _jsx(DefaultHeader, {}), headerConfig && _jsx(LayoutHeader, _objectSpread({}, headerConfig)), headerDom, _jsx("div", {
99
+ children: [!headerDom && !headerConfig && _jsx(DefaultHeader, {
100
+ hiddenIglooIcon: hiddenIglooIcon
101
+ }), headerConfig && _jsx(LayoutHeader, _objectSpread({}, headerConfig)), headerDom, _jsx("div", {
99
102
  className: "igloo-layout-center",
100
103
  children: _jsx("div", {
101
104
  className: "igloo-layout-content",
102
105
  children: contentDom
103
106
  })
104
- }), !footerDom && !footerConfig && _jsx(DefaultFooter, {}), footerConfig && _jsx(LayoutFooter, _objectSpread({}, footerConfig)), footerDom]
107
+ }), !footerDom && !footerConfig && _jsx(DefaultFooter, {
108
+ hiddenIglooIcon: hiddenIglooIcon
109
+ }), footerConfig && _jsx(LayoutFooter, _objectSpread({}, footerConfig)), footerDom]
105
110
  });
106
111
  };
107
112
 
@@ -359,6 +359,10 @@
359
359
  }
360
360
  }
361
361
 
362
+ .compony-info-without-icon {
363
+ margin-top: 0;
364
+ }
365
+
362
366
  .footer-bottom {
363
367
  text-align: center;
364
368
  color: #666666;
@@ -7,6 +7,7 @@ export declare const compareSelected: (newValue: any | any[], oldValue: any | an
7
7
  declare type Options = SelectProps<SelectValue>['options'];
8
8
  export interface HOCProps extends IglooComponentProps {
9
9
  options?: Options;
10
+ onSearch?: any;
10
11
  getOptions?: (form: FormInstance) => any[];
11
12
  optionGroups?: {
12
13
  parentKey: string;
@@ -1,4 +1,4 @@
1
- var _excluded = ["options", "optionGroups", "getOptions", "datasourceKey", "dependField", "children"];
1
+ var _excluded = ["options", "optionGroups", "getOptions", "datasourceKey", "dependField", "children", "onSearch"];
2
2
 
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
 
@@ -89,6 +89,7 @@ export function optionsHOC(Component) {
89
89
  datasourceKey = props.datasourceKey,
90
90
  dependField = props.dependField,
91
91
  children = props.children,
92
+ _onSearch = props.onSearch,
92
93
  rest = _objectWithoutProperties(props, _excluded);
93
94
 
94
95
  var _useState = useState(false),
@@ -249,7 +250,10 @@ export function optionsHOC(Component) {
249
250
  return _options ? _jsx(Component, _objectSpread(_objectSpread({
250
251
  options: _options
251
252
  }, rest), {}, {
252
- onSearch: setSearchKey,
253
+ onSearch: function onSearch(e) {
254
+ setSearchKey(e);
255
+ typeof _onSearch === 'function' && _onSearch(e);
256
+ },
253
257
  optionsUpdating: updating
254
258
  })) : null;
255
259
  };
@@ -23,7 +23,8 @@ require("./style");
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
26
- var DefaultFooter = function DefaultFooter() {
26
+ var DefaultFooter = function DefaultFooter(props) {
27
+ var hiddenIglooIcon = props.hiddenIglooIcon;
27
28
  var useBreakpoint = _grid.default.useBreakpoint;
28
29
 
29
30
  var _useBreakpoint = useBreakpoint(),
@@ -33,18 +34,20 @@ var DefaultFooter = function DefaultFooter() {
33
34
  className: "igloo-layout-footer",
34
35
  children: (0, _jsxRuntime.jsxs)("div", {
35
36
  className: "footer-content",
36
- children: [(0, _jsxRuntime.jsx)(_space.default, {
37
- size: 32,
38
- align: "start",
39
- className: "footer-top",
40
- children: (0, _jsxRuntime.jsx)("div", {
41
- className: "top-left",
37
+ children: [!hiddenIglooIcon && (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
38
+ children: [(0, _jsxRuntime.jsx)(_space.default, {
39
+ size: 32,
40
+ align: "start",
41
+ className: "footer-top",
42
42
  children: (0, _jsxRuntime.jsx)("div", {
43
- className: "igloo-logo"
43
+ className: "top-left",
44
+ children: (0, _jsxRuntime.jsx)("div", {
45
+ className: "igloo-logo"
46
+ })
44
47
  })
45
- })
46
- }), (0, _jsxRuntime.jsx)("div", {
47
- className: "footer-divider"
48
+ }), (0, _jsxRuntime.jsx)("div", {
49
+ className: "footer-divider"
50
+ })]
48
51
  }), (0, _jsxRuntime.jsxs)("div", {
49
52
  className: "footer-bottom",
50
53
  children: [(0, _jsxRuntime.jsx)(_typography.default, {
@@ -83,7 +86,7 @@ var DefaultFooter = function DefaultFooter() {
83
86
  className: "igloo-layout-footer",
84
87
  children: (0, _jsxRuntime.jsxs)("div", {
85
88
  className: "footer-content",
86
- children: [(0, _jsxRuntime.jsx)("div", {
89
+ children: [!hiddenIglooIcon && (0, _jsxRuntime.jsx)("div", {
87
90
  className: "igloo-logo"
88
91
  }), (0, _jsxRuntime.jsxs)("div", {
89
92
  className: "footer-bottom",
@@ -17,12 +17,14 @@ require("./style");
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- var DefaultHeader = function DefaultHeader() {
20
+ var DefaultHeader = function DefaultHeader(props) {
21
+ var hiddenIglooIcon = props.hiddenIglooIcon;
21
22
  var useBreakpoint = _grid.default.useBreakpoint;
22
23
 
23
24
  var _useBreakpoint = useBreakpoint(),
24
25
  md = _useBreakpoint.md;
25
26
 
27
+ if (hiddenIglooIcon) return null;
26
28
  return md ? (0, _jsxRuntime.jsx)("div", {
27
29
  className: (0, _classnames.default)({
28
30
  'igloo-layout-header': true
@@ -1,12 +1,5 @@
1
- import { FC, ReactNode } from 'react';
1
+ import { FC } from 'react';
2
+ import { FooterConfig } from './index';
2
3
  import './style';
3
- interface ILayoutFooter {
4
- companyInfoRender?: () => any;
5
- copyRightRender?: (origin: ReactNode) => any;
6
- tel?: string;
7
- email?: string;
8
- workTime?: any;
9
- address?: string;
10
- }
11
- declare const LayoutFooter: FC<ILayoutFooter>;
4
+ declare const LayoutFooter: FC<FooterConfig>;
12
5
  export default LayoutFooter;
@@ -17,6 +17,8 @@ var _jsxRuntime = require("react/jsx-runtime");
17
17
 
18
18
  var _iglooicon = require("iglooicon");
19
19
 
20
+ var _classnames = _interopRequireDefault(require("classnames"));
21
+
20
22
  var _typography = _interopRequireDefault(require("../typography"));
21
23
 
22
24
  var _button = _interopRequireDefault(require("../button"));
@@ -26,7 +28,9 @@ require("./style");
26
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
29
 
28
30
  var LayoutFooter = function LayoutFooter(_ref) {
29
- var companyInfoRender = _ref.companyInfoRender,
31
+ var hiddenIglooIcon = _ref.hiddenIglooIcon,
32
+ extraInfo = _ref.extraInfo,
33
+ companyInfoRender = _ref.companyInfoRender,
30
34
  copyRightRender = _ref.copyRightRender,
31
35
  tel = _ref.tel,
32
36
  email = _ref.email,
@@ -96,11 +100,11 @@ var LayoutFooter = function LayoutFooter(_ref) {
96
100
  className: "igloo-layout-footer",
97
101
  children: (0, _jsxRuntime.jsxs)("div", {
98
102
  className: "footer-content",
99
- children: [(0, _jsxRuntime.jsxs)(_space.default, {
103
+ children: [extraInfo && extraInfo(), (0, _jsxRuntime.jsxs)(_space.default, {
100
104
  size: 32,
101
105
  align: "start",
102
106
  className: "footer-top",
103
- children: [(0, _jsxRuntime.jsx)("div", {
107
+ children: [!hiddenIglooIcon && (0, _jsxRuntime.jsx)("div", {
104
108
  className: "top-left",
105
109
  children: (0, _jsxRuntime.jsx)("div", {
106
110
  className: "igloo-logo"
@@ -148,10 +152,12 @@ var LayoutFooter = function LayoutFooter(_ref) {
148
152
  className: "igloo-layout-footer",
149
153
  children: (0, _jsxRuntime.jsxs)("div", {
150
154
  className: "footer-content",
151
- children: [(0, _jsxRuntime.jsx)("div", {
155
+ children: [extraInfo && extraInfo(), !hiddenIglooIcon && (0, _jsxRuntime.jsx)("div", {
152
156
  className: "igloo-logo"
153
157
  }), (0, _jsxRuntime.jsxs)("div", {
154
- className: "compony-info",
158
+ className: (0, _classnames.default)('compony-info', {
159
+ 'compony-info-without-icon': hiddenIglooIcon
160
+ }),
155
161
  children: [tel && (0, _jsxRuntime.jsxs)("div", {
156
162
  className: "info-item",
157
163
  children: [(0, _jsxRuntime.jsx)(_iglooicon.PhoneOutlined, {}), (0, _jsxRuntime.jsx)("div", {
@@ -1,31 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { BadgeProps } from 'antd';
2
+ import { HeaderConfig } from './index';
3
3
  import './style/index';
4
- interface Menu {
5
- title: string;
6
- key: string;
7
- badge?: 'dot' | number | string | BadgeProps | (() => any);
8
- }
9
- interface Info {
10
- title: string;
11
- value: string;
12
- }
13
- interface Action {
14
- title: string;
15
- onClick?: () => void;
16
- }
17
- interface ILayoutHeader {
18
- menus?: Menu[];
19
- defaultSelected?: string;
20
- selectedKey?: string;
21
- onMenuChange?: (menuItem: any) => any;
22
- dropMenuConfig?: {
23
- customInfos: Info[];
24
- actions: Action[];
25
- };
26
- userName?: string;
27
- userAvatar?: string;
28
- spaceBetween?: boolean;
29
- }
30
- declare const LayoutHeader: FC<ILayoutHeader>;
4
+ declare const LayoutHeader: FC<HeaderConfig>;
31
5
  export default LayoutHeader;
@@ -66,7 +66,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
66
66
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
67
67
 
68
68
  var LayoutHeader = function LayoutHeader(_ref) {
69
- var _ref$menus = _ref.menus,
69
+ var hiddenIglooIcon = _ref.hiddenIglooIcon,
70
+ _ref$menus = _ref.menus,
70
71
  menus = _ref$menus === void 0 ? [] : _ref$menus,
71
72
  _ref$defaultSelected = _ref.defaultSelected,
72
73
  defaultSelected = _ref$defaultSelected === void 0 ? '' : _ref$defaultSelected,
@@ -92,6 +93,7 @@ var LayoutHeader = function LayoutHeader(_ref) {
92
93
  activeMenu = _useState4[0],
93
94
  setActiveMenu = _useState4[1];
94
95
 
96
+ var onlyHaveIconButNotShow = hiddenIglooIcon && menus.length === 0 && Object.keys(dropMenuConfig || {}).length === 0 && !userName && !children;
95
97
  (0, _react.useEffect)(function () {
96
98
  if (selectedKey) {
97
99
  setSelectedMenu(selectedKey);
@@ -170,6 +172,8 @@ var LayoutHeader = function LayoutHeader(_ref) {
170
172
  }
171
173
  }
172
174
 
175
+ if (onlyHaveIconButNotShow) return null;
176
+
173
177
  if (md) {
174
178
  return (0, _jsxRuntime.jsx)("div", {
175
179
  className: (0, _classnames.default)({
@@ -182,7 +186,7 @@ var LayoutHeader = function LayoutHeader(_ref) {
182
186
  }),
183
187
  children: [(0, _jsxRuntime.jsxs)("div", {
184
188
  className: "header-left",
185
- children: [(0, _jsxRuntime.jsx)("div", {
189
+ children: [!hiddenIglooIcon && (0, _jsxRuntime.jsx)("div", {
186
190
  className: "igloo-logo"
187
191
  }), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && !children && (0, _jsxRuntime.jsx)(_row.default, {
188
192
  children: menus.map(function (menu) {
@@ -217,7 +221,7 @@ var LayoutHeader = function LayoutHeader(_ref) {
217
221
  'igloo-layout-header': true,
218
222
  'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
219
223
  }),
220
- children: [(0, _jsxRuntime.jsx)("div", {
224
+ children: [!hiddenIglooIcon && (0, _jsxRuntime.jsx)("div", {
221
225
  className: "igloo-logo"
222
226
  }), dropMenuConfig && !children && (0, _jsxRuntime.jsx)(_index.default, _objectSpread({
223
227
  userAvatar: userAvatar,
@@ -14,7 +14,8 @@ interface Action {
14
14
  title: string;
15
15
  onClick?: () => void;
16
16
  }
17
- interface HeaderConfig {
17
+ export interface HeaderConfig {
18
+ hiddenIglooIcon?: boolean;
18
19
  menus?: Menu[];
19
20
  defaultSelected?: string;
20
21
  selectedKey?: string;
@@ -27,7 +28,9 @@ interface HeaderConfig {
27
28
  userAvatar?: string;
28
29
  children?: any;
29
30
  }
30
- interface FooterConfig {
31
+ export interface FooterConfig {
32
+ hiddenIglooIcon?: boolean;
33
+ extraInfo?: () => any;
31
34
  companyInfoRender?: () => any;
32
35
  copyRightRender?: (origin: ReactNode) => any;
33
36
  tel?: string;
@@ -36,6 +39,7 @@ interface FooterConfig {
36
39
  address?: string;
37
40
  }
38
41
  interface layoutType {
42
+ hiddenIglooIcon?: boolean;
39
43
  className?: string;
40
44
  style?: CSSProperties;
41
45
  withFixedPanel?: boolean;
@@ -32,7 +32,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
32
32
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
33
33
 
34
34
  var Layout = function Layout(props) {
35
- var className = props.className,
35
+ var hiddenIglooIcon = props.hiddenIglooIcon,
36
+ className = props.className,
36
37
  style = props.style,
37
38
  headerConfig = props.headerConfig,
38
39
  footerConfig = props.footerConfig,
@@ -111,13 +112,17 @@ var Layout = function Layout(props) {
111
112
  return (0, _jsxRuntime.jsxs)("div", {
112
113
  style: style,
113
114
  className: (0, _classnames.default)(layoutContainerClass, className),
114
- children: [!headerDom && !headerConfig && (0, _jsxRuntime.jsx)(_defaultHeader.default, {}), headerConfig && (0, _jsxRuntime.jsx)(_header.default, _objectSpread({}, headerConfig)), headerDom, (0, _jsxRuntime.jsx)("div", {
115
+ children: [!headerDom && !headerConfig && (0, _jsxRuntime.jsx)(_defaultHeader.default, {
116
+ hiddenIglooIcon: hiddenIglooIcon
117
+ }), headerConfig && (0, _jsxRuntime.jsx)(_header.default, _objectSpread({}, headerConfig)), headerDom, (0, _jsxRuntime.jsx)("div", {
115
118
  className: "igloo-layout-center",
116
119
  children: (0, _jsxRuntime.jsx)("div", {
117
120
  className: "igloo-layout-content",
118
121
  children: contentDom
119
122
  })
120
- }), !footerDom && !footerConfig && (0, _jsxRuntime.jsx)(_defaultFooter.default, {}), footerConfig && (0, _jsxRuntime.jsx)(_footer.default, _objectSpread({}, footerConfig)), footerDom]
123
+ }), !footerDom && !footerConfig && (0, _jsxRuntime.jsx)(_defaultFooter.default, {
124
+ hiddenIglooIcon: hiddenIglooIcon
125
+ }), footerConfig && (0, _jsxRuntime.jsx)(_footer.default, _objectSpread({}, footerConfig)), footerDom]
121
126
  });
122
127
  };
123
128
 
@@ -359,6 +359,10 @@
359
359
  }
360
360
  }
361
361
 
362
+ .compony-info-without-icon {
363
+ margin-top: 0;
364
+ }
365
+
362
366
  .footer-bottom {
363
367
  text-align: center;
364
368
  color: #666666;
@@ -7,6 +7,7 @@ export declare const compareSelected: (newValue: any | any[], oldValue: any | an
7
7
  declare type Options = SelectProps<SelectValue>['options'];
8
8
  export interface HOCProps extends IglooComponentProps {
9
9
  options?: Options;
10
+ onSearch?: any;
10
11
  getOptions?: (form: FormInstance) => any[];
11
12
  optionGroups?: {
12
13
  parentKey: string;
@@ -14,7 +14,7 @@ var _formContext = _interopRequireDefault(require("../form-context"));
14
14
 
15
15
  var _invariant = _interopRequireDefault(require("invariant"));
16
16
 
17
- var _excluded = ["options", "optionGroups", "getOptions", "datasourceKey", "dependField", "children"];
17
+ var _excluded = ["options", "optionGroups", "getOptions", "datasourceKey", "dependField", "children", "onSearch"];
18
18
 
19
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
20
 
@@ -109,6 +109,7 @@ function optionsHOC(Component) {
109
109
  datasourceKey = props.datasourceKey,
110
110
  dependField = props.dependField,
111
111
  children = props.children,
112
+ _onSearch = props.onSearch,
112
113
  rest = _objectWithoutProperties(props, _excluded);
113
114
 
114
115
  var _useState = (0, _react.useState)(false),
@@ -269,7 +270,10 @@ function optionsHOC(Component) {
269
270
  return _options ? (0, _jsxRuntime.jsx)(Component, _objectSpread(_objectSpread({
270
271
  options: _options
271
272
  }, rest), {}, {
272
- onSearch: setSearchKey,
273
+ onSearch: function onSearch(e) {
274
+ setSearchKey(e);
275
+ typeof _onSearch === 'function' && _onSearch(e);
276
+ },
273
277
  optionsUpdating: updating
274
278
  })) : null;
275
279
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iglooform",
3
- "version": "2.5.21",
3
+ "version": "2.5.22",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "build-dev": "dumi build",