UNPKG

hongluan-ui

Version:
106 lines (105 loc) 3.6 kB
import type { PropType } from 'vue'; declare const _default: import("vue").DefineComponent<{ /** * @zh 滚动边界值,设置该值为数字后,将会在距离滚动容器 `boundary` 距离时停止滚动。 * @en Scrolling boundary value. After setting the value to a number, it will stop scrolling when the distance is `boundary` from the scrolling container. * @values 'start', 'end', 'center', 'nearest', number */ boundary: { type: PropType<number | "start" | "end" | "center" | "nearest">; default: string; validator: (value: any) => boolean; }; /** * @zh 是否显示左侧轴线 * @en Whether to show the left axis */ sliderLess: { type: BooleanConstructor; default: boolean; }; /** * @zh 滚动容器 * @en Scroll container */ scrollContainer: { type: PropType<string | HTMLElement | Window>; }; /** * @zh 是否改变hash。设置为 `false` 时点击锚点不会改变页面的 hash * @en Whether to change the hash. When set to `false`, clicking on the anchor will not change the hash of the page */ changeHash: { type: BooleanConstructor; default: boolean; }; /** * @zh 是否使用平滑滚动 * @en Whether to use smooth scrolling */ smooth: { type: BooleanConstructor; default: boolean; }; right: BooleanConstructor; }, { cls: import("vue").ComputedRef<(string | { 'slider-less': boolean; right: boolean; })[]>; anchorRef: import("vue").Ref<HTMLElement>; lineSliderRef: import("vue").Ref<HTMLElement>; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "select")[], "change" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ /** * @zh 滚动边界值,设置该值为数字后,将会在距离滚动容器 `boundary` 距离时停止滚动。 * @en Scrolling boundary value. After setting the value to a number, it will stop scrolling when the distance is `boundary` from the scrolling container. * @values 'start', 'end', 'center', 'nearest', number */ boundary: { type: PropType<number | "start" | "end" | "center" | "nearest">; default: string; validator: (value: any) => boolean; }; /** * @zh 是否显示左侧轴线 * @en Whether to show the left axis */ sliderLess: { type: BooleanConstructor; default: boolean; }; /** * @zh 滚动容器 * @en Scroll container */ scrollContainer: { type: PropType<string | HTMLElement | Window>; }; /** * @zh 是否改变hash。设置为 `false` 时点击锚点不会改变页面的 hash * @en Whether to change the hash. When set to `false`, clicking on the anchor will not change the hash of the page */ changeHash: { type: BooleanConstructor; default: boolean; }; /** * @zh 是否使用平滑滚动 * @en Whether to use smooth scrolling */ smooth: { type: BooleanConstructor; default: boolean; }; right: BooleanConstructor; }>> & { onChange?: (...args: any[]) => any; onSelect?: (...args: any[]) => any; }, { right: boolean; boundary: number | "start" | "end" | "center" | "nearest"; sliderLess: boolean; changeHash: boolean; smooth: boolean; }>; export default _default;