Skip to content

Commit

Permalink
Merge pull request #301 from palmcivet/feat/textarea/demo
Browse files Browse the repository at this point in the history
feat(textarea): update demo for textarea
  • Loading branch information
anlyyao authored Oct 27, 2022
2 parents 80ae43d + 2dab770 commit cf26b3d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/textarea/_example/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Base from './base';
import Label from './label';
import Autosize from './autosize';
import Events from './events';
import Type from './type';
import Status from './status';
import Maxlength from './maxlength';
import Maxcharacter from './maxcharacter';

Expand All @@ -23,7 +23,7 @@ export default function () {
<Autosize />
</TDemoBlock>
<TDemoBlock title="02 状态" summary="禁用多行文本框">
<Type />
<Status />
</TDemoBlock>
<TDemoBlock title="03 字符限制" summary="设置最大字符个数">
<Maxlength />
Expand Down
2 changes: 1 addition & 1 deletion src/textarea/_example/maxcharacter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import React from 'react';
import { Textarea } from 'tdesign-mobile-react';

export default function Maxcharacter() {
return <Textarea placeholder="请输入内容" maxcharacter={10} label="标签文字" />;
return <Textarea placeholder="请输入内容" maxcharacter={100} label="标签文字" />;
}
2 changes: 1 addition & 1 deletion src/textarea/_example/maxlength.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import React from 'react';
import { Textarea } from 'tdesign-mobile-react';

export default function Maxlength() {
return <Textarea placeholder="请输入文字" maxlength={20} label="标签文字" />;
return <Textarea placeholder="请输入文字" maxlength={100} label="标签文字" />;
}
File renamed without changes.

0 comments on commit cf26b3d

Please sign in to comment.