Browse Source

docs: fix TextArea showCount demo (#38849)

* docs: fix TextArea showCount demo

* chore: update snapshot
pull/38854/head
afc163 2 years ago
committed by GitHub
parent
commit
0cca743a9e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/input/__tests__/__snapshots__/demo-extend.test.ts.snap
  2. 2
      components/input/__tests__/__snapshots__/demo.test.ts.snap
  3. 2
      components/input/demo/textarea-show-count.tsx

2
components/input/__tests__/__snapshots__/demo-extend.test.ts.snap

@ -10005,7 +10005,7 @@ Array [
<div
class="ant-input-textarea ant-input-textarea-show-count"
data-count="0 / 100"
style="height:120px"
style="height:120px;margin-bottom:24px"
>
<textarea
class="ant-input"

2
components/input/__tests__/__snapshots__/demo.test.ts.snap

@ -3753,7 +3753,7 @@ Array [
<div
class="ant-input-textarea ant-input-textarea-show-count"
data-count="0 / 100"
style="height:120px"
style="height:120px;margin-bottom:24px"
>
<textarea
class="ant-input"

2
components/input/demo/textarea-show-count.tsx

@ -12,7 +12,7 @@ const App: React.FC = () => (
<TextArea
showCount
maxLength={100}
style={{ height: 120 }}
style={{ height: 120, marginBottom: 24 }}
onChange={onChange}
placeholder="can resize"
/>

Loading…
Cancel
Save