Skip to content

Commit

Permalink
fix(textarea): 组件 props 修改
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczj committed Oct 24, 2018
1 parent 200fec4 commit 3574aed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions @types/textarea.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AtComponent from './base'
export interface AtTextareaProps extends AtComponent{
style?: string

value?: string
value: string

maxlength?: string

Expand Down Expand Up @@ -34,7 +34,7 @@ export interface AtTextareaProps extends AtComponent{

cursorSpacing?: number

onChange?: BaseEventFunction
onChange: BaseEventFunction

onFocus?: BaseEventFunction

Expand Down
4 changes: 2 additions & 2 deletions src/components/textarea/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class AtTextarea extends AtComponent {
PropTypes.array,
PropTypes.string
]),
value: PropTypes.string,
value: PropTypes.string.isRequired,
cursorSpacing: PropTypes.number,
maxlength: PropTypes.oneOfType([
PropTypes.string,
Expand All @@ -63,7 +63,7 @@ export default class AtTextarea extends AtComponent {
fixed: PropTypes.bool,
height: PropTypes.string,
onLinechange: PropTypes.func,
onChange: PropTypes.func,
onChange: PropTypes.func.isRequired,
onFocus: PropTypes.func,
onBlur: PropTypes.func,
onConfirm: PropTypes.func
Expand Down

0 comments on commit 3574aed

Please sign in to comment.