@aloudata/aloudata-design 2.7.5 → 2.7.7

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.
@@ -51,8 +51,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
51
51
  })
52
52
  } : undefined,
53
53
  spellCheck: false,
54
- className: classnames('ald-input', "ald-input-".concat(getSizeType(size)), (_classnames = {}, _defineProperty(_classnames, "ald-input-".concat(status), status), _defineProperty(_classnames, "ald-input-disabled", disabled), _classnames), className, compactItemClassnames),
55
- suffix: null
54
+ className: classnames('ald-input', "ald-input-".concat(getSizeType(size)), (_classnames = {}, _defineProperty(_classnames, "ald-input-".concat(status), status), _defineProperty(_classnames, "ald-input-disabled", disabled), _classnames), className, compactItemClassnames)
56
55
  }));
57
56
  });
58
57
  export default Input;
@@ -68,6 +68,10 @@
68
68
  cursor: default;
69
69
  .input-color(@input-disabled-border-color,@input-disabled-text-color,@input-disabled-bg-color,@input-disabled-placeholder-color);
70
70
  }
71
+
72
+ &.ald-input-error {
73
+ border-color: #dc2626 !important;
74
+ }
71
75
  }
72
76
  // 带有其他内容的输入框,比如带 allowClear图标、prefix、suffix、密码图标等。
73
77
  &.ant-input-affix-wrapper {
@@ -101,5 +105,9 @@
101
105
  color: var(--alias-colors-icon-subtle, #6b7280);
102
106
  }
103
107
  }
108
+
109
+ &.ald-input-error {
110
+ border-color: #dc2626 !important;
111
+ }
104
112
  }
105
113
  }
@@ -56,28 +56,20 @@ export default function useRowSelection(props) {
56
56
  changeSelectedRowKeys([]);
57
57
  }, [changeSelectedRowKeys]);
58
58
  var onClickAllCheckbox = useCallback(function () {
59
- if (rowSelection !== null && rowSelection !== void 0 && rowSelection.selectedRowKeys) {
60
- // 受控情况
61
- return;
62
- }
63
59
  if (checkboxAllStatus === 'all') {
64
60
  unSelectAll();
65
61
  } else {
66
62
  selectAll();
67
63
  }
68
- }, [checkboxAllStatus, unSelectAll, selectAll, rowSelection]);
64
+ }, [checkboxAllStatus, unSelectAll, selectAll]);
69
65
  var onClickCheckbox = useCallback(function (key, isChecked) {
70
66
  return function () {
71
- if (rowSelection !== null && rowSelection !== void 0 && rowSelection.selectedRowKeys) {
72
- // 受控情况
73
- return;
74
- }
75
67
  var newKeys = isChecked ? selectedRowKeys.filter(function (keyItem) {
76
68
  return keyItem !== key;
77
69
  }) : [].concat(_toConsumableArray(selectedRowKeys), [key]);
78
70
  changeSelectedRowKeys(newKeys);
79
71
  };
80
- }, [selectedRowKeys, rowSelection, changeSelectedRowKeys]);
72
+ }, [selectedRowKeys, changeSelectedRowKeys]);
81
73
 
82
74
  // 全选按钮
83
75
  var getCheckboxAllNode = function getCheckboxAllNode(children) {
@@ -36,6 +36,7 @@
36
36
  }
37
37
 
38
38
  .ald-user-text {
39
+ width: calc(100% - 20px - 6px);
39
40
  white-space: nowrap;
40
41
  min-width: 0;
41
42
  text-overflow: ellipsis;