@chaoswise/ui 3.1.9 → 3.1.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/AbreastLayout/index.js +20 -23
- package/lib/Antd5/config-provider/index.js +10 -6
- package/lib/Antd5/dropdown/dropdown.js +1 -1
- package/lib/Antd5/menu/menu.js +1 -1
- package/lib/Antd5/splitter/SplitBar.js +20 -10
- package/lib/Antd5/splitter/hooks/useItems.js +6 -3
- package/lib/Antd5/typography/hooks/useCopyClick.js +2 -2
- package/lib/Antd5/upload/Upload.js +1 -1
- package/lib/BasicLayout/index.js +29 -29
- package/lib/Button/index.js +0 -3
- package/lib/CWCascader/index.js +0 -5
- package/lib/CWCascader/rc-cascader/OptionList/Column.js +1 -1
- package/lib/CWColorPicker/SketchPicker/components/common/Checkboard.js +8 -10
- package/lib/CWColorPicker/SketchPicker/components/common/Raised.js +6 -9
- package/lib/CWColorPicker/SketchPicker/components/sketch/index.js +7 -9
- package/lib/CWColorPicker/index.js +2 -4
- package/lib/CWMessage/MessageContent/TabList/index.js +1 -1
- package/lib/CWMessage/MessageContent/index.js +1 -1
- package/lib/CWMessage/index.js +6 -14
- package/lib/CWRadioTabs/index.js +2 -5
- package/lib/CWRangePicker/Refresh/index.js +2 -1
- package/lib/CWRangePicker/TimeSpan/index.js +2 -1
- package/lib/CWRangePicker/index.js +0 -5
- package/lib/CWSelect/index.js +2 -4
- package/lib/CWTable/CWTable.js +29 -18
- package/lib/CWTable/index.js +0 -12
- package/lib/CWTree/index.js +188 -149
- package/lib/CWTree/index.style.js +4 -2
- package/lib/CWTree/utils/index.js +148 -53
- package/lib/CardSelect/index.js +8 -12
- package/lib/ChangeIcon/index.js +3 -5
- package/lib/Collapse/index.js +9 -13
- package/lib/CustomScrollBar/index.js +6 -13
- package/lib/EchartsBase/index.js +0 -3
- package/lib/Empty/index.js +0 -4
- package/lib/Flow/Flow.js +0 -3
- package/lib/Header/index.js +17 -20
- package/lib/LayoutWrapper/Footer.js +3 -8
- package/lib/LayoutWrapper/index.js +2 -58
- package/lib/Modal/assets/Close.js +0 -8
- package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +3 -3
- package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +2 -2
- package/lib/QuickTransfer/index.js +9 -11
- package/lib/QuickTransfer/utils.js +50 -29
- package/lib/ScrollLoad/index.js +17 -19
- package/lib/SearchBar/index.js +2 -5
- package/lib/SiderMenu/index.js +2 -4
- package/lib/SimpleCard/index.js +5 -12
- package/lib/SimplePagination/index.js +6 -8
- package/lib/SingleSpa/index.js +2 -2
- package/lib/Tag/CheckableTag.js +8 -10
- package/lib/Tag/index.js +0 -1
- package/lib/TimeRangeSlider/index.js +0 -3
- package/lib/TimeZoneSelect/index.js +2 -2
- package/lib/Tooltip/index.js +9 -6
- package/lib/TooltipText/index.js +2 -4
- package/lib/UniversalLayout/index.js +5 -7
- package/lib/WangEditor/index.js +10 -11
- package/lib/useChartTheme/index.js +3 -2
- package/package.json +3 -2
package/lib/WangEditor/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["isSeparation", "htmlContent", "value", "disabled", "onChange", "onFocus", "onBlur", "pasteTextHandle", "autoFocus", "isUsePreview", "dropListPosition"];
|
|
1
|
+
var _excluded = ["isSeparation", "htmlContent", "value", "disabled", "onChange", "onFocus", "onBlur", "pasteTextHandle", "autoFocus", "isUsePreview", "uploadImgShowBase64", "dropListPosition"];
|
|
2
2
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
3
3
|
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."); }
|
|
4
4
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -10,7 +10,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
10
10
|
import React, { useEffect, Fragment, useRef, forwardRef } from "react";
|
|
11
11
|
import E from "./wangEditor";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
|
-
import { localeObj, localObjTW } from "./locale
|
|
13
|
+
import { localeObj, localObjTW } from "./locale";
|
|
14
14
|
import { useIntl } from "../locales";
|
|
15
15
|
import usePreview from "./usePreview";
|
|
16
16
|
import resizeable from "./resizeable";
|
|
@@ -45,11 +45,15 @@ var WangEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
45
45
|
_ref$onBlur = _ref.onBlur,
|
|
46
46
|
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
47
47
|
_ref$pasteTextHandle = _ref.pasteTextHandle,
|
|
48
|
-
pasteTextHandle = _ref$pasteTextHandle === void 0 ? function () {
|
|
48
|
+
pasteTextHandle = _ref$pasteTextHandle === void 0 ? function (content) {
|
|
49
|
+
return content;
|
|
50
|
+
} : _ref$pasteTextHandle,
|
|
49
51
|
_ref$autoFocus = _ref.autoFocus,
|
|
50
52
|
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
|
|
51
53
|
_ref$isUsePreview = _ref.isUsePreview,
|
|
52
54
|
isUsePreview = _ref$isUsePreview === void 0 ? true : _ref$isUsePreview,
|
|
55
|
+
_ref$uploadImgShowBas = _ref.uploadImgShowBase64,
|
|
56
|
+
uploadImgShowBase64 = _ref$uploadImgShowBas === void 0 ? true : _ref$uploadImgShowBas,
|
|
53
57
|
_ref$dropListPosition = _ref.dropListPosition,
|
|
54
58
|
dropListPosition = _ref$dropListPosition === void 0 ? "right" : _ref$dropListPosition,
|
|
55
59
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -112,7 +116,7 @@ var WangEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
112
116
|
alt: ""
|
|
113
117
|
});
|
|
114
118
|
if (isUsePreview) {
|
|
115
|
-
img.ondblclick = function (
|
|
119
|
+
img.ondblclick = function () {
|
|
116
120
|
dispatchSetImgList(imgList, index);
|
|
117
121
|
};
|
|
118
122
|
}
|
|
@@ -146,6 +150,8 @@ var WangEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
146
150
|
editor.customConfig.autoFocus = autoFocus;
|
|
147
151
|
// dropList弹出位置
|
|
148
152
|
editor.customConfig.dropListPosition = dropListPosition;
|
|
153
|
+
// 上传图片显示base64
|
|
154
|
+
editor.customConfig.uploadImgShowBase64 = uploadImgShowBase64;
|
|
149
155
|
// 重写方法名称为驼峰
|
|
150
156
|
editor.customConfig.onchange = onChange;
|
|
151
157
|
editor.customConfig.onblur = onBlur;
|
|
@@ -246,13 +252,6 @@ var WangEditor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
246
252
|
ref: separaBotRef
|
|
247
253
|
})), modalDom));
|
|
248
254
|
});
|
|
249
|
-
WangEditor.defaultProps = {
|
|
250
|
-
uploadImgShowBase64: true,
|
|
251
|
-
dropListPosition: "right",
|
|
252
|
-
pasteTextHandle: function pasteTextHandle(content) {
|
|
253
|
-
return content;
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
255
|
WangEditor.propTypes = {
|
|
257
256
|
/**
|
|
258
257
|
* 是否禁用编辑器
|
|
@@ -4,7 +4,7 @@ import darkTheme from "../../config/theme/chart.dark";
|
|
|
4
4
|
import lightTheme from "../../config/theme/chart.light";
|
|
5
5
|
import * as echarts from "echarts";
|
|
6
6
|
// todo: 后面需要处理切换主题的问题,目前默认设置为light
|
|
7
|
-
|
|
7
|
+
var useChartTheme = function useChartTheme() {
|
|
8
8
|
var targetTheme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "light";
|
|
9
9
|
// const { currentTheme } = ThemeProvider.useThemeSwitcher();
|
|
10
10
|
|
|
@@ -33,4 +33,5 @@ export default function index() {
|
|
|
33
33
|
// currentTheme,
|
|
34
34
|
targetTheme]);
|
|
35
35
|
return theme;
|
|
36
|
-
}
|
|
36
|
+
};
|
|
37
|
+
export default useChartTheme;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chaoswise/ui",
|
|
3
3
|
"packageName": "chaoswiseUI",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.11",
|
|
5
5
|
"description": "公共UI库",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ui",
|
|
@@ -104,7 +104,8 @@
|
|
|
104
104
|
"socket.io-client": "2.5.0",
|
|
105
105
|
"styled-components": "^5.3.11",
|
|
106
106
|
"throttle-debounce": "^5.0.2",
|
|
107
|
-
"use-merge-value": "^1.2.0"
|
|
107
|
+
"use-merge-value": "^1.2.0",
|
|
108
|
+
"react-draggable": "4.4.6"
|
|
108
109
|
},
|
|
109
110
|
"devDependencies": {
|
|
110
111
|
"@ant-design/moment-webpack-plugin": "^1.0.0",
|