acud 1.4.63 → 1.4.64

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/es/input/Input.js CHANGED
@@ -300,12 +300,14 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
300
300
  })), renderSuffix(), renderAddonAffer());
301
301
  };
302
302
  if (!hidden) {
303
- return warningPopover && warningText ? /*#__PURE__*/React.createElement(Popover, {
303
+ return /*#__PURE__*/React.createElement(Popover, _extends({
304
304
  content: /*#__PURE__*/React.createElement("span", {
305
305
  className: "".concat(prefixCls, "-warning-popover-text")
306
306
  }, warningText),
307
307
  placement: "bottomLeft"
308
- }, renderInner()) : /*#__PURE__*/React.createElement(Fragment, null, renderInner(), (!disabled || !readOnly) && warningText && /*#__PURE__*/React.createElement("div", {
308
+ }, warningPopover && !!warningText ? {} : {
309
+ visible: false
310
+ }), renderInner(), (!disabled || !readOnly) && !warningPopover && warningText && /*#__PURE__*/React.createElement("div", {
309
311
  className: "".concat(prefixCls, "-warning-text")
310
312
  }, warningText), (!disabled || !readOnly) && !warningText && tips && /*#__PURE__*/React.createElement("div", {
311
313
  className: "".concat(prefixCls, "-tips")
@@ -176,11 +176,14 @@ var TextArea = /*#__PURE__*/React.forwardRef(function (props, ref) {
176
176
  }, /*#__PURE__*/React.createElement("span", {
177
177
  className: classNames(limitClassName, 'limit')
178
178
  }, currentLength, "/", limitLength)));
179
- return warningPopover && warningText ? /*#__PURE__*/React.createElement(Popover, {
179
+ return /*#__PURE__*/React.createElement(Popover, _extends({
180
180
  content: /*#__PURE__*/React.createElement("span", {
181
181
  className: "".concat(prefixCls, "-warning-popover-text")
182
- }, warningText),
182
+ }, warningText)
183
+ }, warningPopover && !!warningText ? {} : {
184
+ visible: false
185
+ }, {
183
186
  placement: "bottomLeft"
184
- }, textAreaContent) : textAreaContent;
187
+ }), textAreaContent);
185
188
  });
186
189
  export default TextArea;
@@ -311,12 +311,14 @@ var Input = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
311
311
  })), renderSuffix(), renderAddonAffer());
312
312
  };
313
313
  if (!hidden) {
314
- return warningPopover && warningText ? /*#__PURE__*/_react["default"].createElement(_popover["default"], {
314
+ return /*#__PURE__*/_react["default"].createElement(_popover["default"], (0, _extends2["default"])({
315
315
  content: /*#__PURE__*/_react["default"].createElement("span", {
316
316
  className: "".concat(prefixCls, "-warning-popover-text")
317
317
  }, warningText),
318
318
  placement: "bottomLeft"
319
- }, renderInner()) : /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, renderInner(), (!disabled || !readOnly) && warningText && /*#__PURE__*/_react["default"].createElement("div", {
319
+ }, warningPopover && !!warningText ? {} : {
320
+ visible: false
321
+ }), renderInner(), (!disabled || !readOnly) && !warningPopover && warningText && /*#__PURE__*/_react["default"].createElement("div", {
320
322
  className: "".concat(prefixCls, "-warning-text")
321
323
  }, warningText), (!disabled || !readOnly) && !warningText && tips && /*#__PURE__*/_react["default"].createElement("div", {
322
324
  className: "".concat(prefixCls, "-tips")
@@ -186,11 +186,14 @@ var TextArea = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
186
186
  }, /*#__PURE__*/_react["default"].createElement("span", {
187
187
  className: (0, _classnames["default"])(limitClassName, 'limit')
188
188
  }, currentLength, "/", limitLength)));
189
- return warningPopover && warningText ? /*#__PURE__*/_react["default"].createElement(_popover["default"], {
189
+ return /*#__PURE__*/_react["default"].createElement(_popover["default"], (0, _extends2["default"])({
190
190
  content: /*#__PURE__*/_react["default"].createElement("span", {
191
191
  className: "".concat(prefixCls, "-warning-popover-text")
192
- }, warningText),
192
+ }, warningText)
193
+ }, warningPopover && !!warningText ? {} : {
194
+ visible: false
195
+ }, {
193
196
  placement: "bottomLeft"
194
- }, textAreaContent) : textAreaContent;
197
+ }), textAreaContent);
195
198
  });
196
199
  var _default = exports["default"] = TextArea;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acud",
3
- "version": "1.4.63",
3
+ "version": "1.4.64",
4
4
  "description": "acg react 组件库",
5
5
  "license": "ISC",
6
6
  "author": "acg",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@rc-component/trigger": "^1.13.4",
47
- "acud-icon": "1.0.8",
47
+ "acud-icon": "1.0.11",
48
48
  "ahooks": "^3.7.8",
49
49
  "aiflow": "^2.0.4",
50
50
  "array-tree-filter": "^2.1.0",