Skip to content

Commit

Permalink
add disabled support
Browse files Browse the repository at this point in the history
  • Loading branch information
warmhug committed Aug 29, 2016
1 parent a505c38 commit bee6bbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DatePicker.web.tsx
Expand Up @@ -21,7 +21,7 @@ const DatePickerWeb = React.createClass<DatePickerProps, DatePickerState> ({
return {
prefixCls: 'rmc-date-picker',
pickerPrefixCls: 'rmc-picker',
};
};
},

render() {
Expand All @@ -35,7 +35,8 @@ const DatePickerWeb = React.createClass<DatePickerProps, DatePickerState> ({
prefixCls={pickerPrefixCls}
pure={false}
selectedValue={value[i]}
onValueChange={(v) => {this.onValueChange(i, v);}}
onValueChange={(v) => { this.onValueChange(i, v); }}
disabled={props.disabled || false}
>
{items}
</Picker>
Expand Down
1 change: 1 addition & 0 deletions src/DatePickerTypes.tsx
Expand Up @@ -6,6 +6,7 @@ export interface DatePickerProps {
mode?: string;
locale?: any;
onDateChange?: (date: any) => void;
disabled?:boolean;
/** web only */
prefixCls?:string;
/** web only */
Expand Down

0 comments on commit bee6bbe

Please sign in to comment.