From d1355d52bded477bf14d8fd87aad9ef1ce141b05 Mon Sep 17 00:00:00 2001 From: jimczj Date: Tue, 20 Nov 2018 15:44:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(range):=20=E6=96=B0=E5=A2=9E=20range=20typ?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- @types/index.d.ts | 1 + @types/range.d.ts | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 @types/range.d.ts diff --git a/@types/index.d.ts b/@types/index.d.ts index 3e847b233..9e8a33794 100644 --- a/@types/index.d.ts +++ b/@types/index.d.ts @@ -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 diff --git a/@types/range.d.ts b/@types/range.d.ts new file mode 100644 index 000000000..6694fe820 --- /dev/null +++ b/@types/range.d.ts @@ -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 + +export default AtRange