((props, ref) => {
onPaste={onInternalPaste}
variant="borderless"
readOnly={readOnly}
+ maxLength={maxLength}
/>
+ {showCount && typeof maxLength === 'number' && (
+
+ {innerValue.length}/{maxLength}
+
+ )}
{/* Action List */}
{actionNode && (
= (token) => {
boxSizing: 'border-box',
alignItems: 'flex-end',
},
+ // ============================ Count =============================
+ [`${componentCls}-count`]: {
+ flex: 'none',
+ fontSize: token.fontSizeSM,
+ color: token.colorTextDescription,
+ lineHeight: token.lineHeight,
+ paddingInlineStart: 0,
+ paddingInlineEnd: token.paddingSM,
+ alignSelf: 'flex-end',
+ userSelect: 'none',
+ pointerEvents: 'none',
+ },
// ============================ Prefix =============================
[`${componentCls}-prefix`]: {
flex: 'none',
diff --git a/package.json b/package.json
index 6c90535be..575cd4995 100644
--- a/package.json
+++ b/package.json
@@ -271,4 +271,4 @@
"limit": "350 KiB"
}
]
-}
+}
\ No newline at end of file
diff --git a/scripts/visual-regression/report-template.html b/scripts/visual-regression/report-template.html
index 22619e1f0..422f5d268 100644
--- a/scripts/visual-regression/report-template.html
+++ b/scripts/visual-regression/report-template.html
@@ -1,113 +1,115 @@
-
-
-
-
Ant Design Visual Diff Report
-
-
+
+
+
+ {{reportContent}}
+
+
+
- if (e.target.tagName === 'IMG' && e.target.src) {
- window.open(e.target.src, '_blank');
- }
- });
-
-
-