@chaoswise/ui 3.0.10 → 3.0.11
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/lib/BasicLayout/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _Icon from "@chaoswise/ui/lib/Icon";
|
|
2
1
|
import _ErrorBoundary from "@chaoswise/ui/lib/ErrorBoundary";
|
|
3
2
|
import _Header from "@chaoswise/ui/lib/Header";
|
|
4
3
|
import _Layout from "@chaoswise/ui/lib/Layout";
|
|
@@ -11,6 +10,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
11
10
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
12
11
|
import React, { useState, useEffect, useRef } from "react";
|
|
13
12
|
import ReactDOM from "react-dom";
|
|
13
|
+
import { LeftOutlined } from '@ant-design/icons';
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import classnames from "classnames";
|
|
16
16
|
import Breadcrumb from "./Breadcrumb";
|
|
@@ -308,9 +308,7 @@ BasicLayout.defaultProps = {
|
|
|
308
308
|
breadcrumbOptions: {},
|
|
309
309
|
menuOptions: {},
|
|
310
310
|
customContent: true,
|
|
311
|
-
backIcon: /*#__PURE__*/React.createElement(
|
|
312
|
-
type: "left"
|
|
313
|
-
})
|
|
311
|
+
backIcon: /*#__PURE__*/React.createElement(LeftOutlined, null)
|
|
314
312
|
};
|
|
315
313
|
BasicLayout.propTypes = {
|
|
316
314
|
/**
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import "antd/es/button/style";
|
|
4
|
-
import _Button from "antd/es/button";
|
|
5
|
-
import "antd/es/icon/style";
|
|
6
|
-
import _Icon from "antd/es/icon";
|
|
1
|
+
import _Row from "@chaoswise/ui/lib/Row";
|
|
2
|
+
import _Button from "@chaoswise/ui/lib/Button";
|
|
7
3
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
4
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
9
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -12,6 +8,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
12
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
10
|
import React, { useEffect } from 'react';
|
|
11
|
+
import { CloseOutlined } from '@ant-design/icons';
|
|
15
12
|
import ReactDraggable from 'react-draggable';
|
|
16
13
|
import classnames from 'classnames';
|
|
17
14
|
import './index.less';
|
|
@@ -101,8 +98,7 @@ var EntiretyDrag = function EntiretyDrag(_ref) {
|
|
|
101
98
|
return e.stopPropagation();
|
|
102
99
|
},
|
|
103
100
|
style: fullScreenStyle
|
|
104
|
-
}, closable && /*#__PURE__*/React.createElement(
|
|
105
|
-
type: "close",
|
|
101
|
+
}, closable && /*#__PURE__*/React.createElement(CloseOutlined, {
|
|
106
102
|
className: "cw-draggable-close-btn",
|
|
107
103
|
onClick: onCancel
|
|
108
104
|
}), title && /*#__PURE__*/React.createElement("div", {
|
package/lib/SearchBar/index.js
CHANGED
|
@@ -278,7 +278,7 @@ var SearchBar = function SearchBar(props) {
|
|
|
278
278
|
if (item.span) {
|
|
279
279
|
return item.span;
|
|
280
280
|
}
|
|
281
|
-
return
|
|
281
|
+
return 6;
|
|
282
282
|
}
|
|
283
283
|
return 0;
|
|
284
284
|
}).reduce(function (prev, next) {
|
|
@@ -288,7 +288,7 @@ var SearchBar = function SearchBar(props) {
|
|
|
288
288
|
return 24;
|
|
289
289
|
} else {
|
|
290
290
|
var remainder = totalSpan % 24;
|
|
291
|
-
if (24 - remainder
|
|
291
|
+
if (24 - remainder >= 6) {
|
|
292
292
|
return 24 - remainder;
|
|
293
293
|
} else {
|
|
294
294
|
return 24;
|