@chaoswise/ui 2.4.0 → 2.5.0
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/config/babel/index.js +1 -28
- package/config/swc.js +5 -0
- package/lib/AbreastLayout/CollapsedBtn.js +1 -1
- package/lib/AbreastLayout/NavTreeContainer.js +1 -1
- package/lib/AbreastLayout/index.js +2 -2
- package/lib/Ace/ace.js +2 -2
- package/lib/Ace/diff.js +2 -2
- package/lib/Ace/split.js +2 -2
- package/lib/AdaptiveLayout/index.js +2 -2
- package/lib/Alert/index.js +1 -1
- package/lib/AlgorithmChart/common/chart.option.js +0 -5
- package/lib/Anchor/index.js +3 -0
- package/lib/Antd/Drawer.js +2 -2
- package/lib/Antd3/es/cascader/index.js +0 -1
- package/lib/Antd3/es/message/index.js +0 -2
- package/lib/Antd4/message/index-copy.js +0 -2
- package/lib/Antd4/notification/index.js +0 -1
- package/lib/Antd4/statistic/utils.js +0 -1
- package/lib/Antd4/tabs/index.js +1 -1
- package/lib/Antd4/tooltip/index.js +0 -1
- package/lib/Antd4/tree/Tree.js +0 -1
- package/lib/Antd4Form/FieldList.js +2 -2
- package/lib/Antd4Form/FormItem.js +2 -2
- package/lib/Antd4Form/FormItemChildren.js +2 -2
- package/lib/Antd4Form/useForm.js +2 -2
- package/lib/AutoComplete/index.js +3 -0
- package/lib/Avatar/index.js +3 -0
- package/lib/BackTop/index.js +3 -0
- package/lib/Badge/index.less +5 -0
- package/lib/BasicLayout/Breadcrumb.js +3 -3
- package/lib/BasicLayout/Sider.js +5 -5
- package/lib/BasicLayout/index.js +2 -3
- package/lib/Breadcrumb/Breadcrumb.less +34 -0
- package/lib/Breadcrumb/index.js +2 -9
- package/lib/CWCascader/Cascader/index.js +2 -2
- package/lib/CWCascader/rc-cascader/OptionList/Checkbox.js +2 -2
- package/lib/CWCascader/rc-cascader/OptionList/Column.js +5 -5
- package/lib/CWCascader/rc-cascader/OptionList/index.js +2 -2
- package/lib/CWCascader/rc-cascader/hooks/useEntities.js +2 -2
- package/lib/CWCascader/rc-cascader/hooks/useSearchConfig.js +2 -2
- package/lib/CWCascader/rc-cascader/hooks/useSearchOptions.js +2 -2
- package/lib/CWMessage/MessageContent/TabList/index.js +2 -2
- package/lib/CWMessage/MessageContent/index.js +12 -5
- package/lib/CWMessage/index.js +3 -3
- package/lib/CWRadioTabs/index.js +2 -2
- package/lib/CWRangePicker/DropdownMenu/MoreHistoryList/index.js +1 -1
- package/lib/CWRangePicker/DropdownMenu/MoreTimeList/index.js +2 -2
- package/lib/CWRangePicker/DropdownMenu/index.js +4 -4
- package/lib/CWRangePicker/Refresh/index.js +2 -2
- package/lib/CWRangePicker/index.js +4 -4
- package/lib/CWRangePicker/utils/index.js +2 -2
- package/lib/CWSelect/Tag.js +1 -1
- package/lib/CWSelect/antd-select.js +3 -4
- package/lib/CWSelect/index.js +2 -2
- package/lib/CWTable/CWTable.js +4 -6
- package/lib/CWTable/EditLine.js +4 -4
- package/lib/CWTable/Filter.js +1 -1
- package/lib/CWTable/FormTable.js +2 -2
- package/lib/CWTable/header.js +23 -22
- package/lib/CWTree/index.js +4 -5
- package/lib/CWTree/utils/index.js +2 -2
- package/lib/CWUpload/upload/DragList.js +2 -2
- package/lib/CWUpload/upload/Dragger.js +3 -3
- package/lib/CWUpload/upload/Upload.js +4 -4
- package/lib/CWUpload/upload/UploadList.js +28 -28
- package/lib/Calendar/index.js +3 -0
- package/lib/Card/index.js +3 -0
- package/lib/CardSelect/index.js +0 -1
- package/lib/Carousel/index.js +3 -0
- package/lib/ChangeIcon/index.js +1 -1
- package/lib/Checkbox/Checkbox.js +2 -2
- package/lib/Checkbox/Group.js +2 -2
- package/lib/Col/Collapse.less +129 -0
- package/lib/Col/index.js +3 -0
- package/lib/Collapse/index.js +1 -1
- package/lib/ColorPicker/index.js +4 -5
- package/lib/Comment/index.js +3 -0
- package/lib/ConfigProvider/ConfigProvider.js +50 -30
- package/lib/ConfigProvider/Switch.js +1 -1
- package/lib/CustomScrollBar/index.js +2 -2
- package/lib/DatePicker/DatePicker.js +1 -1
- package/lib/DatePicker/MonthPicker.js +1 -1
- package/lib/DatePicker/RangePicker.js +1 -1
- package/lib/DateRangePicker/components/ExtraTimeFooter.js +2 -2
- package/lib/Descriptions/index.js +3 -0
- package/lib/Divider/index.js +3 -0
- package/lib/Documentation/Tocify.js +2 -2
- package/lib/Documentation/index.js +2 -3
- package/lib/Drawer/Drawer.less +305 -0
- package/lib/Drawer/index.js +120 -0
- package/lib/Dropdown/Dropdown.less +124 -0
- package/lib/Dropdown/index.js +4 -0
- package/lib/DropdownDatePicker/DropdownMenu/MoreTimeList/index.js +2 -2
- package/lib/DropdownDatePicker/DropdownMenu/index.js +4 -4
- package/lib/DropdownDatePicker/index.js +3 -3
- package/lib/DropdownDatePicker/utils/index.js +2 -2
- package/lib/EchartsArea/index.js +2 -2
- package/lib/EchartsBar/index.js +2 -2
- package/lib/EchartsBase/index.js +2 -3
- package/lib/EchartsLine/index.js +2 -3
- package/lib/ErrorBoundary/history.js +2 -2
- package/lib/ErrorBoundary/index.js +2 -2
- package/lib/FilterDropDown/DragList.js +3 -4
- package/lib/FilterDropDown/index.js +1 -1
- package/lib/Flow/Flow.js +0 -2
- package/lib/Flow/commons/initCommands.js +0 -2
- package/lib/Flow/components/PluginWrapper.js +2 -2
- package/lib/Flow/layouts/callChain.js +2 -2
- package/lib/Flow/plugins/CommandLifeCycle.js +2 -2
- package/lib/Flow/plugins/InitSideBarPlugin.js +2 -2
- package/lib/Flow/plugins/InitToolBarPlugin.js +2 -2
- package/lib/Flow/shape/nodes/baseNode.js +0 -1
- package/lib/Form/FormItem.js +2 -2
- package/lib/FormItemWrapper/index.js +2 -2
- package/lib/Formily/FieldList/index.js +2 -2
- package/lib/Formily/FormItem/index.js +3 -3
- package/lib/Formily/FormItem/items/Password.js +2 -2
- package/lib/Formily/FormItem/items/Rating.js +1 -1
- package/lib/Formily/FormItem/items/Switch.js +1 -1
- package/lib/Formily/FormItem/items/Tansfer.js +1 -1
- package/lib/Formily/FormItem/items/TimePicker.js +1 -1
- package/lib/Formily/MegaLayout/index.js +2 -2
- package/lib/Formily/subscribeFields/index.js +2 -2
- package/lib/GlobalTabs/index.js +2 -2
- package/lib/Header/CommonDropMenu.js +2 -2
- package/lib/Header/CommonIcon.js +2 -2
- package/lib/Header/TopNavigationMenu/index.js +2 -2
- package/lib/Header/UserSetting/index.js +2 -2
- package/lib/Header/UserSetting/utils.js +2 -2
- package/lib/Header/index.js +2 -2
- package/lib/Icon/index.js +3 -0
- package/lib/IconSelect/components/CustomImg/index.js +0 -1
- package/lib/IconSelect/index.js +1 -1
- package/lib/Input/InputComponent.js +2 -2
- package/lib/IntersectionInput/index.js +2 -2
- package/lib/Joyride/List.js +2 -2
- package/lib/Joyride/index.js +3 -3
- package/lib/Layout/Layout.less +6 -0
- package/lib/Layout/index.js +4 -0
- package/lib/LayoutBreadcrumb/index.js +3 -3
- package/lib/LazyLoadingTreeSelect/index.js +2 -2
- package/lib/List/index.js +3 -0
- package/lib/LocaleProvider/index.js +3 -0
- package/lib/Mention/index.js +3 -0
- package/lib/Mentions/index.js +3 -0
- package/lib/Menu/menu/MenuItem.js +2 -3
- package/lib/Menu/menu/SubMenu.js +2 -2
- package/lib/Menu/menu/index.js +2 -2
- package/lib/Modal/Modal.js +2 -2
- package/lib/Modal/custom-backup/entiretyDrag.js +2 -2
- package/lib/Modal/index.js +3 -4
- package/lib/ModuleFederation/ErrorBoundary/index.js +2 -2
- package/lib/ModuleFederation/index.js +1 -1
- package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +3 -3
- package/lib/PageHeader/index.js +3 -0
- package/lib/Pagination/index.js +2 -2
- package/lib/PolymerizationSearch/index.js +2 -2
- package/lib/Popover/index.js +3 -0
- package/lib/Progress/index.js +1 -1
- package/lib/QuickRangePicker/index.js +5 -5
- package/lib/QuickTransfer/Drag.js +0 -1
- package/lib/QuickTransfer/DragList.js +1 -1
- package/lib/QuickTransfer/NotDragList.js +1 -1
- package/lib/QuickTransfer/index.js +2 -2
- package/lib/QuickTransfer/utils.js +2 -4
- package/lib/Radio/Group.js +2 -2
- package/lib/Radio/Radio.js +2 -2
- package/lib/RangePicker/components/ExtraTimeFooter.js +3 -3
- package/lib/Rate/index.js +3 -0
- package/lib/ReactSelect/CustomArrow.js +1 -1
- package/lib/ReactSelect/TagMore.js +1 -1
- package/lib/ReactSelect/customStyles.js +2 -2
- package/lib/ReactSelect/index.js +2 -2
- package/lib/Result/index.js +3 -0
- package/lib/Row/index.js +3 -0
- package/lib/SearchBar/index.js +6 -6
- package/lib/Select/TreeSelect.less +10 -0
- package/lib/Select/index.js +4 -0
- package/lib/SelectBackup/index.js +2 -2
- package/lib/SelectBackup/select/index.js +0 -1
- package/lib/SiderMenu/Item.js +2 -2
- package/lib/SiderMenu/index.js +3 -3
- package/lib/SimplePagination/index.js +3 -3
- package/lib/SingleSpa/import-html/process-tpl.js +0 -1
- package/lib/SingleSpa/index.js +2 -2
- package/lib/SingleSpa/singleSpa/single-spa.dev.js +2 -3
- package/lib/Skeleton/index.js +3 -0
- package/lib/Spin/Spin.less +16 -0
- package/lib/Spin/index.js +4 -0
- package/lib/Statistic/index.js +3 -0
- package/lib/Steps/Steps.less +502 -0
- package/lib/Steps/index.js +4 -0
- package/lib/Switch/Switch.less +62 -0
- package/lib/Switch/index.js +4 -0
- package/lib/Table/Table.less +306 -0
- package/lib/Table/index.js +4 -0
- package/lib/Tabs/index.js +2 -2
- package/lib/Tabs/index.less +3 -0
- package/lib/ThemeProvider/main.js +2 -2
- package/lib/TimePicker/index.js +3 -2
- package/lib/Transfer/index.js +3 -0
- package/lib/Tree/TreeSelect.less +10 -0
- package/lib/Tree/index.js +4 -0
- package/lib/TreeList/index.js +2 -2
- package/lib/TreeSelect/TreeSelect.less +10 -0
- package/lib/TreeSelect/index.js +4 -0
- package/lib/TreeSelect111/index.js +2 -2
- package/lib/TreeSelect111/utils/index.js +2 -2
- package/lib/Typography/index.js +3 -0
- package/lib/WangEditor/release/wangEditor.js +0 -6
- package/lib/WangEditor/wangEditor.js +0 -3
- package/lib/Watermark/index.js +2 -2
- package/lib/index.js +145 -0
- package/lib/message/index.js +3 -5
- package/lib/noticeManager/globalState.js +2 -2
- package/lib/portalNoticeManager/usePortalDispatchNotice.js +2 -2
- package/lib/useLocale/index.js +2 -2
- package/lib/version/index.js +3 -0
- package/package.json +2 -2
- /package/config/babel/{antdComs.js → antdComs-nouse.js} +0 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
import "antd/es/drawer/style";
|
|
3
|
+
import _Drawer from "antd/es/drawer";
|
|
4
|
+
var _excluded = ["size", "children", "footer", "bodyStyle", "title", "extraLeft", "extraRight", "visible", "closable"];
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
|
+
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; }
|
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
|
+
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); }
|
|
11
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
14
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
15
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
18
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
19
|
+
import React, { forwardRef, useRef, useState, useEffect, useMemo } from "react";
|
|
20
|
+
import PropTypes from "prop-types";
|
|
21
|
+
import classnames from "classnames";
|
|
22
|
+
import "./Drawer.less";
|
|
23
|
+
var DrawerFooter = function DrawerFooter(_ref) {
|
|
24
|
+
var footer = _ref.footer,
|
|
25
|
+
setHeight = _ref.setHeight;
|
|
26
|
+
var footerRef = useRef(null);
|
|
27
|
+
useEffect(function () {
|
|
28
|
+
// 延时解决初始化高度值绑定不上
|
|
29
|
+
setTimeout(function () {
|
|
30
|
+
var _footerRef$current;
|
|
31
|
+
setHeight(((_footerRef$current = footerRef.current) === null || _footerRef$current === void 0 ? void 0 : _footerRef$current.offsetHeight) || 0);
|
|
32
|
+
});
|
|
33
|
+
}, [footer]);
|
|
34
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
ref: footerRef,
|
|
36
|
+
className: "cw-drawer-footer"
|
|
37
|
+
}, footer);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 基于antd Drawer封装,在原有api基础上增加以下api
|
|
42
|
+
*/
|
|
43
|
+
var CWDrawer = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
44
|
+
var _ref2$size = _ref2.size,
|
|
45
|
+
size = _ref2$size === void 0 ? "small" : _ref2$size,
|
|
46
|
+
children = _ref2.children,
|
|
47
|
+
footer = _ref2.footer,
|
|
48
|
+
bodyStyle = _ref2.bodyStyle,
|
|
49
|
+
title = _ref2.title,
|
|
50
|
+
extraLeft = _ref2.extraLeft,
|
|
51
|
+
extraRight = _ref2.extraRight,
|
|
52
|
+
visible = _ref2.visible,
|
|
53
|
+
_ref2$closable = _ref2.closable,
|
|
54
|
+
closable = _ref2$closable === void 0 ? true : _ref2$closable,
|
|
55
|
+
resP = _objectWithoutProperties(_ref2, _excluded);
|
|
56
|
+
var _useState = useState(0),
|
|
57
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
58
|
+
height = _useState2[0],
|
|
59
|
+
setHeight = _useState2[1];
|
|
60
|
+
var SIZE_MAP = {
|
|
61
|
+
small: "480",
|
|
62
|
+
middle: "660",
|
|
63
|
+
large: "920"
|
|
64
|
+
};
|
|
65
|
+
var headerHeight = useMemo(function () {
|
|
66
|
+
return title ? 52 : 0;
|
|
67
|
+
}, [title]);
|
|
68
|
+
var _bodyStyle = {
|
|
69
|
+
height: "calc(100% - ".concat(headerHeight, "px - ").concat(height, "px )"),
|
|
70
|
+
overflow: "auto"
|
|
71
|
+
};
|
|
72
|
+
var title_ = useMemo(function () {
|
|
73
|
+
if (title) {
|
|
74
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
className: "cw-drawer-header"
|
|
76
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
77
|
+
className: "cw-drawer-title"
|
|
78
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
|
79
|
+
className: classnames("cw-drawer-extra", {
|
|
80
|
+
"cw-drawer-extra-un-closable": !closable
|
|
81
|
+
})
|
|
82
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
83
|
+
className: "cw-drawer-extra-left"
|
|
84
|
+
}, extraLeft), /*#__PURE__*/React.createElement("div", {
|
|
85
|
+
className: "cw-drawer-extra-right"
|
|
86
|
+
}, extraRight)));
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
}, [title, extraLeft, extraRight]);
|
|
90
|
+
return /*#__PURE__*/React.createElement(_Drawer, _extends({
|
|
91
|
+
ref: ref,
|
|
92
|
+
visible: visible,
|
|
93
|
+
width: SIZE_MAP[size],
|
|
94
|
+
closable: closable,
|
|
95
|
+
bodyStyle: _objectSpread(_objectSpread({}, _bodyStyle), bodyStyle),
|
|
96
|
+
title: title_
|
|
97
|
+
}, resP), children, footer && /*#__PURE__*/React.createElement(DrawerFooter, {
|
|
98
|
+
footer: footer,
|
|
99
|
+
setHeight: setHeight
|
|
100
|
+
}));
|
|
101
|
+
});
|
|
102
|
+
CWDrawer.propTypes = {
|
|
103
|
+
/**
|
|
104
|
+
* 弹窗尺寸
|
|
105
|
+
*/
|
|
106
|
+
size: PropTypes.oneOf(["small", "middle", "large"]),
|
|
107
|
+
/**
|
|
108
|
+
* 抽屉左上角的操作区域(标题之后)
|
|
109
|
+
*/
|
|
110
|
+
extraLeft: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
111
|
+
/**
|
|
112
|
+
* 抽屉右上角的操作区域
|
|
113
|
+
*/
|
|
114
|
+
extraRight: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
115
|
+
/**
|
|
116
|
+
* 底部页脚
|
|
117
|
+
*/
|
|
118
|
+
footer: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
119
|
+
};
|
|
120
|
+
export default CWDrawer;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
|
|
2
|
+
|
|
3
|
+
.@{dropdown-prefix-cls} {
|
|
4
|
+
&-menu {
|
|
5
|
+
max-width: 160px;
|
|
6
|
+
box-shadow: @box-shadow-base;
|
|
7
|
+
|
|
8
|
+
&-item {
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
text-overflow: ellipsis;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-submenu-popup {
|
|
15
|
+
ul {
|
|
16
|
+
margin-right: 0;
|
|
17
|
+
margin-left: 0;
|
|
18
|
+
padding: 4px 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-item,
|
|
23
|
+
&-submenu-title {
|
|
24
|
+
.@{dropdown-prefix-cls}-menu-submenu-arrow {
|
|
25
|
+
right: 2px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.@{dropdown-prefix-cls}-menu-submenu-arrow {
|
|
30
|
+
&-icon {
|
|
31
|
+
color: @text-color;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-submenu-title {
|
|
36
|
+
padding-right: 30px; // UI规范
|
|
37
|
+
}
|
|
38
|
+
&-item-group{
|
|
39
|
+
&-title {
|
|
40
|
+
padding: 8px 0 7px;
|
|
41
|
+
color: @text-color-secondary;
|
|
42
|
+
transition: all 0.3s;
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
line-height: 22px;
|
|
46
|
+
color: @text-color;
|
|
47
|
+
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
48
|
+
margin: 0 16px;
|
|
49
|
+
}
|
|
50
|
+
ul&-list{
|
|
51
|
+
padding: 4px 0 8px;
|
|
52
|
+
.@{dropdown-prefix-cls}-menu-item{
|
|
53
|
+
padding: 5px 16px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
&-item-group:not(:first-child):last-child{
|
|
58
|
+
ul.@{dropdown-prefix-cls}-menu-item-group-list{
|
|
59
|
+
padding: 4px 0 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&-button {
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
.@{dropdown-prefix-cls}-trigger,
|
|
71
|
+
.@{dropdown-prefix-cls}-link {
|
|
72
|
+
> .@{iconfont-css-prefix}.@{iconfont-css-prefix}-down {
|
|
73
|
+
width: 12px;
|
|
74
|
+
height: 12px;
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
transform: scale(1);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.@{dropdown-prefix-cls}-trigger.@{ant-prefix}-btn-lg,
|
|
80
|
+
.@{dropdown-prefix-cls}-link.@{ant-prefix}-btn-lg {
|
|
81
|
+
> .@{iconfont-css-prefix}.@{iconfont-css-prefix}-down {
|
|
82
|
+
width: 14px;
|
|
83
|
+
height: 14px;
|
|
84
|
+
font-size: 14px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
// .@{dropdown-prefix-cls}-trigger{
|
|
88
|
+
// &.@{ant-prefix}-btn{
|
|
89
|
+
// padding-right: 7px;
|
|
90
|
+
// &.@{ant-prefix}-btn-lg{
|
|
91
|
+
// padding-right: 11px;
|
|
92
|
+
// }
|
|
93
|
+
// }
|
|
94
|
+
// }
|
|
95
|
+
.@{dropdown-prefix-cls}-button {
|
|
96
|
+
&.@{ant-prefix}-btn-group>.@{ant-prefix}-btn:last-child:not(:first-child) {
|
|
97
|
+
padding-right: 7px; // UI规范
|
|
98
|
+
padding-left: 7px; // UI规范
|
|
99
|
+
|
|
100
|
+
.@{iconfont-css-prefix} {
|
|
101
|
+
width: 12px;
|
|
102
|
+
height: 12px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.@{ant-prefix}-btn-group-lg {
|
|
107
|
+
>.@{ant-prefix}-btn:last-child:not(:first-child) {
|
|
108
|
+
padding-right: 12px; // UI规范
|
|
109
|
+
padding-left: 12px; // UI规范
|
|
110
|
+
|
|
111
|
+
.@{iconfont-css-prefix} {
|
|
112
|
+
width: 14px;
|
|
113
|
+
height: 14px;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&.@{ant-prefix}-btn-group-sm {
|
|
119
|
+
>.@{ant-prefix}-btn:last-child:not(:first-child) {
|
|
120
|
+
padding-right: 5px; // UI规范
|
|
121
|
+
padding-left: 5px; // UI规范
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _Row from "@chaoswise/ui/lib/
|
|
2
|
-
import _Col from "@chaoswise/ui/lib/
|
|
1
|
+
import _Row from "@chaoswise/ui/lib/Row";
|
|
2
|
+
import _Col from "@chaoswise/ui/lib/Col";
|
|
3
3
|
import "@chaoswise/ui/lib/TooltipText/index.less";
|
|
4
4
|
import _TooltipText from "@chaoswise/ui/lib/TooltipText";
|
|
5
5
|
import _useLocale2 from "@chaoswise/ui/lib/useLocale";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
import _Dropdown from "@chaoswise/ui/lib/
|
|
3
|
-
import _Icon from "@chaoswise/ui/lib/
|
|
2
|
+
import _Dropdown from "@chaoswise/ui/lib/Dropdown";
|
|
3
|
+
import _Icon from "@chaoswise/ui/lib/Icon";
|
|
4
4
|
import _useLocale2 from "@chaoswise/ui/lib/useLocale";
|
|
5
5
|
var _excluded = ["timeDomain", "number", "unit", "value", "isRecently"];
|
|
6
6
|
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; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
8
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
-
function _toPropertyKey(
|
|
10
|
-
function _toPrimitive(
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
|
+
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); }
|
|
11
11
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12
12
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
13
13
|
import React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
import _Dropdown from "@chaoswise/ui/lib/
|
|
2
|
+
import _Dropdown from "@chaoswise/ui/lib/Dropdown";
|
|
3
3
|
import "@chaoswise/ui/lib/Input/index.less";
|
|
4
4
|
import _Input from "@chaoswise/ui/lib/Input";
|
|
5
5
|
import "@chaoswise/ui/lib/DatePicker/index.less";
|
|
@@ -16,8 +16,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
16
16
|
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; }
|
|
17
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
18
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
-
function _toPropertyKey(
|
|
20
|
-
function _toPrimitive(
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
20
|
+
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); }
|
|
21
21
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
22
22
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
23
23
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
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; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
package/lib/EchartsArea/index.js
CHANGED
|
@@ -5,8 +5,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
5
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; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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); }
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import React, { forw, forwardRef } from 'react';
|
package/lib/EchartsBar/index.js
CHANGED
|
@@ -5,8 +5,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
5
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; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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); }
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import React, { forwardRef } from 'react';
|
package/lib/EchartsBase/index.js
CHANGED
|
@@ -4,8 +4,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
4
4
|
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; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
-
function _toPropertyKey(
|
|
8
|
-
function _toPrimitive(
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
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); }
|
|
9
9
|
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); }
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -52,7 +52,6 @@ var EchartsBase = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
52
52
|
type: 'none' // 默认为直线,可选为:'line' | 'shadow'
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
|
|
56
55
|
legend: {
|
|
57
56
|
icon: "circle",
|
|
58
57
|
bottom: 10
|
package/lib/EchartsLine/index.js
CHANGED
|
@@ -5,8 +5,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
5
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; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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); }
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import React, { forwardRef } from 'react';
|
|
@@ -31,7 +31,6 @@ var EchartsLine = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31
31
|
// 坐标轴指示器,坐标轴触发有效
|
|
32
32
|
type: 'line' // 默认为直线,可选为:'line' | 'shadow'
|
|
33
33
|
},
|
|
34
|
-
|
|
35
34
|
confine: true,
|
|
36
35
|
enterable: true,
|
|
37
36
|
extraCssText: 'max-height:80%;overflow:auto;box-shadow: 0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05);border-radius: 2px',
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
7
|
var Dep = /*#__PURE__*/function () {
|
|
8
8
|
// 订阅池
|
|
9
9
|
function Dep(name) {
|
|
@@ -10,8 +10,8 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
10
10
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
11
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
12
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
-
function _toPropertyKey(
|
|
14
|
-
function _toPrimitive(
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
14
|
+
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); }
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import NoPage from './assets/images/No-data.png';
|
|
17
17
|
import './history';
|
|
@@ -3,10 +3,10 @@ import "@chaoswise/ui/lib/Checkbox/index.less";
|
|
|
3
3
|
import _Checkbox from "@chaoswise/ui/lib/Checkbox";
|
|
4
4
|
import "@chaoswise/ui/lib/Tooltip/index.less";
|
|
5
5
|
import _Tooltip from "@chaoswise/ui/lib/Tooltip";
|
|
6
|
-
import _Icon from "@chaoswise/ui/lib/
|
|
6
|
+
import _Icon from "@chaoswise/ui/lib/Icon";
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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); }
|
|
10
10
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
11
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
12
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -65,7 +65,6 @@ function DragList(_ref) {
|
|
|
65
65
|
moveList(dragIndex, hoverIndex); //调用方法完成交换
|
|
66
66
|
item.index = hoverIndex; //重新赋值index,否则会出现无限交换情况
|
|
67
67
|
},
|
|
68
|
-
|
|
69
68
|
collect: function collect(monitor) {
|
|
70
69
|
var _ref2 = monitor.getItem() || {},
|
|
71
70
|
dragIndex = _ref2.index;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@chaoswise/ui/lib/Button/index.less";
|
|
2
2
|
import _Button from "@chaoswise/ui/lib/Button";
|
|
3
|
-
import _Row from "@chaoswise/ui/lib/
|
|
3
|
+
import _Row from "@chaoswise/ui/lib/Row";
|
|
4
4
|
import "@chaoswise/ui/lib/Tooltip/index.less";
|
|
5
5
|
import _Tooltip from "@chaoswise/ui/lib/Tooltip";
|
|
6
6
|
import _useLocale2 from "@chaoswise/ui/lib/useLocale";
|
package/lib/Flow/Flow.js
CHANGED
|
@@ -137,7 +137,6 @@ var Flow = function Flow(props) {
|
|
|
137
137
|
// graph.on('edge:click', edgeClick);
|
|
138
138
|
// graph.on('edge:dblclick', edgeDoubleClick);
|
|
139
139
|
};
|
|
140
|
-
|
|
141
140
|
var unbindEvents = function unbindEvents(graph) {
|
|
142
141
|
graph.on('node:click', emitEvent);
|
|
143
142
|
graph.on('node:dblclick', emitEvent);
|
|
@@ -151,7 +150,6 @@ var Flow = function Flow(props) {
|
|
|
151
150
|
// graph.on('edge:click', edgeClick);
|
|
152
151
|
// graph.on('edge:dblclick', edgeDoubleClick);
|
|
153
152
|
};
|
|
154
|
-
|
|
155
153
|
var beforeCommandExecute = function beforeCommandExecute(params) {};
|
|
156
154
|
var afterCommandExecuted = function afterCommandExecuted(params) {};
|
|
157
155
|
var initGlobalEvents = function initGlobalEvents(graph) {
|
|
@@ -66,7 +66,6 @@ export var initToolBarsCommand = {
|
|
|
66
66
|
// graph.moveTo(100, 100);
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
|
|
70
69
|
onNodeClick: {
|
|
71
70
|
name: 'onNodeClick',
|
|
72
71
|
execute: function execute(graph, params) {
|
|
@@ -131,7 +130,6 @@ export var initToolBarsCommand = {
|
|
|
131
130
|
// graph.moveTo(100, 100);
|
|
132
131
|
}
|
|
133
132
|
},
|
|
134
|
-
|
|
135
133
|
onCanvasDoubleClick: {
|
|
136
134
|
name: 'onCanvasDoubleClick',
|
|
137
135
|
execute: function execute(graph, params) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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); }
|
|
2
2
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
-
function _toPropertyKey(
|
|
4
|
-
function _toPrimitive(
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
+
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); }
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
6
|
var PluginWrapper = function PluginWrapper(props, ref) {
|
|
7
7
|
var children = props.children,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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); }
|
|
2
2
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
-
function _toPropertyKey(
|
|
4
|
-
function _toPrimitive(
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
+
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); }
|
|
5
5
|
import { mix } from '@antv/util';
|
|
6
6
|
export default function (G6) {
|
|
7
7
|
G6.registerLayout('callChain', {
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
7
|
import { mix } from '@antv/util';
|
|
8
8
|
var initCommandProperty = {
|
|
9
9
|
name: name,
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
7
|
import { deepMix, each } from '@antv/util';
|
|
8
8
|
var InitSideBarPlugin = /*#__PURE__*/function () {
|
|
9
9
|
function InitSideBarPlugin(cfgs, graph) {
|
|
@@ -2,8 +2,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
7
|
import { deepMix, each } from '@antv/util';
|
|
8
8
|
var InitToolbarPlugin = /*#__PURE__*/function () {
|
|
9
9
|
function InitToolbarPlugin(cfgs) {
|
package/lib/Form/FormItem.js
CHANGED
|
@@ -10,8 +10,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
10
10
|
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; }
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
-
function _toPropertyKey(
|
|
14
|
-
function _toPrimitive(
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
14
|
+
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); }
|
|
15
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16
16
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
17
17
|
import React from 'react';
|