@chaoswise/ui 2.3.9 → 2.3.10

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.
@@ -66,7 +66,12 @@ var NotDragList = function NotDragList(_ref) {
66
66
  title: localeObj["dragAndDrop"]
67
67
  }, /*#__PURE__*/React.createElement(DragSvg, {
68
68
  className: "cw-transfer-right-content-drag"
69
- })), /*#__PURE__*/React.createElement("div", null, type === "table" ? renderTable(labelValue) : render(value)), /*#__PURE__*/React.createElement(_Icon, {
69
+ })), /*#__PURE__*/React.createElement("div", {
70
+ style: {
71
+ flex: 1,
72
+ width: 0
73
+ }
74
+ }, type === "table" ? renderTable(labelValue) : render(value)), /*#__PURE__*/React.createElement(_Icon, {
70
75
  type: "close",
71
76
  className: "cw-transfer-right-content-del",
72
77
  onClick: function onClick() {
@@ -5,11 +5,11 @@ import "@chaoswise/ui/lib/CWTree/index.less";
5
5
  import _CWTree from "@chaoswise/ui/lib/CWTree";
6
6
  import "@chaoswise/ui/lib/CWTable/index.less";
7
7
  import _CWTable from "@chaoswise/ui/lib/CWTable";
8
- import "@chaoswise/ui/lib/TooltipText/index.less";
9
- import _TooltipText from "@chaoswise/ui/lib/TooltipText";
10
8
  import "@chaoswise/ui/lib/Checkbox/index.less";
11
9
  import _Checkbox from "@chaoswise/ui/lib/Checkbox";
12
10
  import _ConfigProvider from "@chaoswise/ui/lib/ConfigProvider";
11
+ import "@chaoswise/ui/lib/TooltipText/index.less";
12
+ import _TooltipText from "@chaoswise/ui/lib/TooltipText";
13
13
  import "@chaoswise/ui/lib/Input/index.less";
14
14
  import _Input from "@chaoswise/ui/lib/Input";
15
15
  var _excluded = ["onChange", "showLeftSearch", "value"],
@@ -72,7 +72,7 @@ var QuickTransfer = /*#__PURE__*/forwardRef(function (props, ref) {
72
72
  rightContentRender = props.rightContentRender,
73
73
  _props$render = props.render,
74
74
  render = _props$render === void 0 ? function (text) {
75
- return /*#__PURE__*/React.createElement("span", null, text);
75
+ return /*#__PURE__*/React.createElement(_TooltipText, null, /*#__PURE__*/React.createElement("span", null, text));
76
76
  } : _props$render,
77
77
  _props$handlePreviewL = props.handlePreviewList,
78
78
  _handlePreviewList = _props$handlePreviewL === void 0 ? function () {} : _props$handlePreviewL,
@@ -433,10 +433,16 @@ var QuickTransfer = /*#__PURE__*/forwardRef(function (props, ref) {
433
433
  var clearAll = function clearAll() {
434
434
  var newCheckedValue = [];
435
435
  var newCheckedKey = [];
436
+ var disabledKeys = searchCheckedValue.filter(function (item) {
437
+ return item.disabled;
438
+ }).map(function (item) {
439
+ return item.key;
440
+ });
436
441
  newCheckedValue = checkValue.filter(function (i) {
437
- return !Boolean(searchCheckedValue.find(function (item) {
438
- return item.key == i.key && !item.disabled;
439
- }));
442
+ if (disabledKeys.includes(i.key)) {
443
+ return true;
444
+ }
445
+ return false;
440
446
  });
441
447
  newCheckedKey = newCheckedValue.map(function (item) {
442
448
  return item.key;
@@ -191,6 +191,7 @@
191
191
 
192
192
  .cw-transfer-right-content-item-text-wrapper {
193
193
  flex: 1;
194
+ width: 0;
194
195
  }
195
196
  }
196
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaoswise/ui",
3
- "version": "2.3.9",
3
+ "version": "2.3.10",
4
4
  "description": "公共UI库",
5
5
  "keywords": [
6
6
  "ui",
@@ -140,5 +140,5 @@
140
140
  "access": "public"
141
141
  },
142
142
  "license": "MIT",
143
- "gitHead": "c591ca92a71137b79ee7cc6fca301705dac1b3a5"
143
+ "gitHead": "08c3f2cabbbf26304f03b36797f1dccd60fc8647"
144
144
  }