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/dist/acud.css +29387 -0
- package/dist/acud.css.map +1 -0
- package/dist/acud.js +3954 -1147
- package/dist/acud.js.map +1 -1
- package/dist/acud.min.css +2 -0
- package/dist/acud.min.css.map +1 -0
- package/dist/acud.min.js +69 -0
- package/dist/acud.min.js.map +1 -0
- package/es/input/Input.js +4 -2
- package/es/input/TextArea.js +6 -3
- package/lib/input/Input.js +4 -2
- package/lib/input/TextArea.js +6 -3
- package/package.json +2 -2
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
|
|
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
|
-
},
|
|
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")
|
package/es/input/TextArea.js
CHANGED
|
@@ -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
|
|
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)
|
|
187
|
+
}), textAreaContent);
|
|
185
188
|
});
|
|
186
189
|
export default TextArea;
|
package/lib/input/Input.js
CHANGED
|
@@ -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
|
|
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
|
-
},
|
|
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")
|
package/lib/input/TextArea.js
CHANGED
|
@@ -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
|
|
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)
|
|
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.
|
|
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.
|
|
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",
|