jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/less/Slider/props.d.ts

79 lines
1.4 KiB
TypeScript
Raw Normal View History

2024-11-10 07:01:22 +00:00
import { IBaseProps } from '../_base';
/**
* @description
*/
export type SliderValue = number | [number, number];
type CustomizedNode = string;
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;
/**
* @description
*/
onChange?: (value: SliderValue, event) => void;
/**
* @description touchend
*/
onAfterChange: (value: SliderValue, event) => void;
}
export declare const sliderDefaultProps: Partial<ISliderProps>;