import React from 'react'; import MultiPicker from '../picker-view/components/multi-picker'; import PickerCell from '../picker-view/components/picker-cell'; import Cascader from '../picker-view/components/cascader'; import { PickerViewProps, ValueType, PickerData, PickerCellMovingStatus } from './type'; export * from './type'; export { MultiPicker, PickerCell, Cascader }; export interface PickerViewRef { /** * 最外层元素 DOM * @en The outermost element DOM */ dom: HTMLDivElement | null; /** * 每一列的滑动状态 * @en Sliding state of each column */ getCellMovingStatus: () => PickerCellMovingStatus[]; /** * 获取所有列的值 * @en Get all column values */ getAllColumnValues: () => ValueType[]; /** * 获取第 n 列的值 * @en Get the value of the nth column */ getColumnValue: (index: number) => ValueType | undefined; /** * 手动更新元素布局 * @en Manually update the element layout */ updateLayout: () => void; /** * 重置选择器的值为传入的`value`值 * @en Reset the selector's value to the input value `value` */ resetValue: () => void; /** * 直接跳到当前最近一行(调用时将中断滚动) * @en Jump directly to the current most recent line (will break scrolling when called) */ scrollToCurrentIndex: () => void; /** * 获取所有列的 data * @en Get all column data */ getAllColumnData: () => PickerData[]; } declare const _default: React.ForwardRefExoticComponent> & { displayName?: string | undefined; }; /** * 选择器视图组件,不含弹窗,方便使用方灵活定制选择器。 * @en The picker view component, not has contain popup, which is convenient for the user to flexibly customize the picker. * @type 数据录入 * @type_en Data Entry * @name 选择器视图 * @name_en PickerView * @displayName PickerView */ export default _default;