UNPKG

@alicloud/console-components

Version:

Alibaba Cloud React Components

90 lines (89 loc) 4.92 kB
import React from 'react'; import type { RangeProps } from '@alifd/next/types/range'; declare const _default: React.ForwardRefExoticComponent<RangeProps & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<RangeProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, { _moving: { start: number; end: number; startValue: import("@alifd/next/types/range").RangeValueType; dragging?: "lower" | "upper"; }; dom: HTMLDivElement; isFixedWidth: boolean; lastPosition: number; oldDragging?: "lower" | "upper"; _onMouseMoveListener: { off: () => void; }; _onMouseUpListener: { off: () => void; }; _onContextMenuListener: { off: () => void; }; _onTouchMoveListener: { off: () => void; }; _onTouchEndListener: { off: () => void; }; readonly props: Readonly<import("@alifd/next/types/util").RequiredSome<RangeProps, "prefix" | "pure" | "rtl" | "onChange" | "disabled" | "slider" | "step" | "max" | "min" | "isPreview" | "reverse" | "marks" | "marksPosition" | "onProcess" | "hasTip" | "tipRender" | "fixedWidth" | "tooltipVisible">> & Readonly<Pick<{ prefix: string; slider: string; min: number; max: number; step: number; marks: boolean; disabled: boolean; fixedWidth: boolean; tooltipVisible: boolean; hasTip: boolean; onChange: () => void; onProcess: () => void; tipRender: (value: import("@alifd/next/types/range").RangeValueType) => import("@alifd/next/types/range").RangeValueType; reverse: boolean; pure: boolean; marksPosition: string; rtl: boolean; isPreview: boolean; }, never>>; _marksToScales(marks: number | false | number[] | Record<number, string>): number | false | number[]; _calcScales(): number[]; _calcMarks(): Record<number, string>; _onMouseDown(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void; _onTouchStart(e: React.TouchEvent<HTMLDivElement>): void; onKeyDown(e: React.KeyboardEvent<HTMLDivElement>): void; _onContextMenu(e: React.MouseEvent<HTMLDivElement, MouseEvent>): void; _start(position: number): void; _end(): void; _move(e: React.MouseEvent<Element, MouseEvent> | React.TouchEvent<Element>): void; _onProcess(position: number, start?: boolean): void; _addDocumentMouseEvents(): void; _addDocumentTouchEvents(): void; _removeDocumentEvents(): void; _positionToCurrent(position: number): number; _currentToValue(current: number, preValue: number | [number, number], lastPosition: number, isFixedWidth: boolean): import("@alifd/next/types/range").RangeValueType; handleLowerTooltipVisibleChange(visible: boolean): void; handleUpperTooltipVisibleChange(visible: boolean): void; render(): React.JSX.Element; context: any; setState<K extends keyof import("@alifd/next/types/range/types").RangeState>(state: import("@alifd/next/types/range/types").RangeState | ((prevState: Readonly<import("@alifd/next/types/range/types").RangeState>, props: Readonly<RangeProps>) => import("@alifd/next/types/range/types").RangeState | Pick<import("@alifd/next/types/range/types").RangeState, K>) | Pick<import("@alifd/next/types/range/types").RangeState, K>, callback?: () => void): void; forceUpdate(callback?: () => void): void; state: Readonly<import("@alifd/next/types/range/types").RangeState>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<RangeProps>, nextState: Readonly<import("@alifd/next/types/range/types").RangeState>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<RangeProps>, prevState: Readonly<import("@alifd/next/types/range/types").RangeState>): any; componentDidUpdate?(prevProps: Readonly<RangeProps>, prevState: Readonly<import("@alifd/next/types/range/types").RangeState>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<RangeProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<RangeProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<RangeProps>, nextState: Readonly<import("@alifd/next/types/range/types").RangeState>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<RangeProps>, nextState: Readonly<import("@alifd/next/types/range/types").RangeState>, nextContext: any): void; }, {}>, {}>; export default _default; export type { RangeProps };