@aloudata/aloudata-design 2.7.6 → 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
|
}
|