jiaqingjiayi-xiaochengxu/甲情_甲意/node_modules/antd-mini/less/Slider/props.d.ts
2024-11-15 11:51:28 +08:00

79 lines
1.9 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { IBaseProps } from '../_util/base';
/**
* @description 滑块
*/
export type SliderValue = number | [number, number];
export interface ISliderProps extends IBaseProps {
/**
* @description 当前值
*/
value: SliderValue;
defaultValue: SliderValue;
/**
* @description 是否禁用
* @default false
*/
disabled?: boolean;
/**
* @description 最大值
* @default 100
*/
max: number;
/**
* @description 最小值
* @default 0
*/
min: number;
/**
* @description 是否是双滑块
* @default false
*/
range: boolean;
/**
* @description 是否展示刻度上的数据
* @default false
*/
showNumber: boolean;
/**
* @description 步距,取值必须大于 0并且可被 (max - min) 整除。当 marks 不为空对象时step 的配置失效
* @default 1
*/
step: number;
/**
* @description 是否显示刻度
* @default false
*/
showTicks: boolean;
/**
* @description 是否在拖动时显示悬浮提示
* @default false
*/
showTooltip: boolean;
/**
* @deprecated 选中线条的样式
*/
activeLineStyle?: string;
/**
* @description 选中线条的样式
*/
activeDotStyle?: string;
/**
* @description 选中线条的样式
* @default '''
*/
activeLineClassName?: string;
/**
* @description 选中小圆点的类名
*/
activeDotClassName?: string;
/**
* @description 输入变化的时候触发, 参数为滑动组件的当前值
*/
onChange: (value: SliderValue, event: any) => void;
/**
* @description 与 touchend 触发时机一致,把当前值作为参数传入
*/
onAfterChange: (value: SliderValue, event: any) => void;
}
export declare const sliderDefaultProps: Partial<ISliderProps>;