@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.
Files changed (60) hide show
  1. package/lib/AbreastLayout/index.js +20 -23
  2. package/lib/Antd5/config-provider/index.js +10 -6
  3. package/lib/Antd5/dropdown/dropdown.js +1 -1
  4. package/lib/Antd5/menu/menu.js +1 -1
  5. package/lib/Antd5/splitter/SplitBar.js +20 -10
  6. package/lib/Antd5/splitter/hooks/useItems.js +6 -3
  7. package/lib/Antd5/typography/hooks/useCopyClick.js +2 -2
  8. package/lib/Antd5/upload/Upload.js +1 -1
  9. package/lib/BasicLayout/index.js +29 -29
  10. package/lib/Button/index.js +0 -3
  11. package/lib/CWCascader/index.js +0 -5
  12. package/lib/CWCascader/rc-cascader/OptionList/Column.js +1 -1
  13. package/lib/CWColorPicker/SketchPicker/components/common/Checkboard.js +8 -10
  14. package/lib/CWColorPicker/SketchPicker/components/common/Raised.js +6 -9
  15. package/lib/CWColorPicker/SketchPicker/components/sketch/index.js +7 -9
  16. package/lib/CWColorPicker/index.js +2 -4
  17. package/lib/CWMessage/MessageContent/TabList/index.js +1 -1
  18. package/lib/CWMessage/MessageContent/index.js +1 -1
  19. package/lib/CWMessage/index.js +6 -14
  20. package/lib/CWRadioTabs/index.js +2 -5
  21. package/lib/CWRangePicker/Refresh/index.js +2 -1
  22. package/lib/CWRangePicker/TimeSpan/index.js +2 -1
  23. package/lib/CWRangePicker/index.js +0 -5
  24. package/lib/CWSelect/index.js +2 -4
  25. package/lib/CWTable/CWTable.js +29 -18
  26. package/lib/CWTable/index.js +0 -12
  27. package/lib/CWTree/index.js +188 -149
  28. package/lib/CWTree/index.style.js +4 -2
  29. package/lib/CWTree/utils/index.js +148 -53
  30. package/lib/CardSelect/index.js +8 -12
  31. package/lib/ChangeIcon/index.js +3 -5
  32. package/lib/Collapse/index.js +9 -13
  33. package/lib/CustomScrollBar/index.js +6 -13
  34. package/lib/EchartsBase/index.js +0 -3
  35. package/lib/Empty/index.js +0 -4
  36. package/lib/Flow/Flow.js +0 -3
  37. package/lib/Header/index.js +17 -20
  38. package/lib/LayoutWrapper/Footer.js +3 -8
  39. package/lib/LayoutWrapper/index.js +2 -58
  40. package/lib/Modal/assets/Close.js +0 -8
  41. package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +3 -3
  42. package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +2 -2
  43. package/lib/QuickTransfer/index.js +9 -11
  44. package/lib/QuickTransfer/utils.js +50 -29
  45. package/lib/ScrollLoad/index.js +17 -19
  46. package/lib/SearchBar/index.js +2 -5
  47. package/lib/SiderMenu/index.js +2 -4
  48. package/lib/SimpleCard/index.js +5 -12
  49. package/lib/SimplePagination/index.js +6 -8
  50. package/lib/SingleSpa/index.js +2 -2
  51. package/lib/Tag/CheckableTag.js +8 -10
  52. package/lib/Tag/index.js +0 -1
  53. package/lib/TimeRangeSlider/index.js +0 -3
  54. package/lib/TimeZoneSelect/index.js +2 -2
  55. package/lib/Tooltip/index.js +9 -6
  56. package/lib/TooltipText/index.js +2 -4
  57. package/lib/UniversalLayout/index.js +5 -7
  58. package/lib/WangEditor/index.js +10 -11
  59. package/lib/useChartTheme/index.js +3 -2
  60. package/package.json +3 -2
@@ -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/index";
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 () {} : _ref$pasteTextHandle,
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 (e) {
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
- export default function index() {
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.9",
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",