Skip to content

Commit

Permalink
feat(range): 新增 range type
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczj committed Nov 20, 2018
1 parent 86aa3ed commit d1355d5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions @types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export { default as AtSlider } from "./slider"
export { AtMessage, message } from "./message"
export { default as AtImagePicker } from "./image-picker"
export { default as AtIndexes } from "./indexes"
export { default as AtRange } from "./range"

export declare const AtModalHeader: ComponentClass
export declare const AtModalAction: ComponentClass
Expand Down
27 changes: 27 additions & 0 deletions @types/range.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { ComponentClass } from 'react'

import AtComponent from './base'

interface AtRangeProps extends AtComponent{
sliderStyle?: string | Object

railStyle?: string | Object

trackStyle?: string | Object

value?: []

min?: number

max?: number

disabled?: boolean

onChange?: (value: []) => void

onAfterChange?: (value:[]) => void
}

declare const AtRange: ComponentClass<AtRangeProps>

export default AtRange

0 comments on commit d1355d5

Please sign in to comment.