@chaoswise/ui 3.0.20 → 3.0.21

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.
@@ -179,11 +179,13 @@ var genSelectionStyle = function genSelectionStyle(token, suffix) {
179
179
  function genSizeStyle(token, suffix) {
180
180
  var componentCls = token.componentCls;
181
181
  var suffixCls = suffix ? "".concat(componentCls, "-").concat(suffix) : '';
182
- var rawStyle = _defineProperty({}, "".concat(componentCls, "-multiple").concat(suffixCls), _defineProperty(_defineProperty({
182
+ var rawStyle = _defineProperty({}, "".concat(componentCls, "-multiple").concat(suffixCls), _defineProperty(_defineProperty(_defineProperty({
183
183
  fontSize: token.fontSize
184
184
  }, "".concat(componentCls, "-selector"), _defineProperty({}, "".concat(componentCls, "-show-search&"), {
185
185
  cursor: 'text'
186
- })), "\n &".concat(componentCls, "-show-arrow ").concat(componentCls, "-selector,\n &").concat(componentCls, "-allow-clear ").concat(componentCls, "-selector\n "), {
186
+ })), "\n &".concat(componentCls, "-show-arrow ").concat(componentCls, "-selection-placeholder\n "), {
187
+ paddingInlineEnd: token.showArrowPaddingInlineEnd
188
+ }), "\n &".concat(componentCls, "-show-arrow ").concat(componentCls, "-selector,\n &").concat(componentCls, "-allow-clear ").concat(componentCls, "-selector\n "), {
187
189
  paddingInlineEnd: token.calc(token.fontSizeIcon).add(token.controlPaddingHorizontal).equal()
188
190
  }));
189
191
  return [genSelectionStyle(token, suffix), rawStyle];
@@ -178,7 +178,7 @@ function CWTree(_ref) {
178
178
  className: "cw-tree-treenode-title"
179
179
  }, useTooltipText ? /*#__PURE__*/React.createElement(_TooltipText, {
180
180
  placement: tooltipPlacement ? tooltipPlacement : "bottomLeft"
181
- }, title) : title), draggable && _showExtend === key && /*#__PURE__*/React.createElement("span", {
181
+ }, title) : title), /*#__PURE__*/React.createElement("span", {
182
182
  className: "cw-tree-treenode-drag-icon"
183
183
  }, /*#__PURE__*/React.createElement(_Tooltip, {
184
184
  title: intl.get("5fe60774-0f08-450f-a9d9-998996485fec").d("拖拽移动")
@@ -23,7 +23,7 @@ var genCustomCWTreeStyle = function genCustomCWTreeStyle(token) {
23
23
  overflowY: "auto",
24
24
  ".cw-tree": _defineProperty({
25
25
  width: "100%",
26
- ".cw-tree-treenode": _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
26
+ ".cw-tree-treenode": _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
27
27
  lineHeight: "32px",
28
28
  padding: "0 16px",
29
29
  whiteSpace: "nowrap",
@@ -66,7 +66,8 @@ var genCustomCWTreeStyle = function genCustomCWTreeStyle(token) {
66
66
  ".cw-tree-treenode-drag-icon": {
67
67
  position: "absolute",
68
68
  left: "8px",
69
- transform: "translateY(1.2px)"
69
+ transform: "translateY(1.2px)",
70
+ visibility: "hidden"
70
71
  }
71
72
  },
72
73
  ".cw-tree-treenode-extend": {
@@ -109,7 +110,13 @@ var genCustomCWTreeStyle = function genCustomCWTreeStyle(token) {
109
110
  height: "32px",
110
111
  lineHeight: "32px",
111
112
  marginTop: 0
112
- })
113
+ }), "&:hover", _defineProperty({}, "".concat(treeNodePrefix, "-content-wrapper"), _defineProperty({}, "".concat(treePrefix, "-title"), {
114
+ ".cw-tree-treenode-content": {
115
+ ".cw-tree-treenode-drag-icon": {
116
+ visibility: "visible"
117
+ }
118
+ }
119
+ })))
113
120
  }, "&".concat(treePrefix, "-directory"), _defineProperty({}, "".concat(treePrefix, "-child-tree"), {
114
121
  height: "100% !important"
115
122
  }))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chaoswise/ui",
3
3
  "packageName": "chaoswiseUI",
4
- "version": "3.0.20",
4
+ "version": "3.0.21",
5
5
  "description": "公共UI库",
6
6
  "keywords": [
7
7
  "ui",