UNPKG

465 BJavaScriptView Raw
1import { __rest } from "tslib";
2import React, { forwardRef } from 'react';
3import Picker from '../picker';
4import { useColumnsFn } from './cascade-picker-utils';
5export const CascadePicker = forwardRef((props, ref) => {
6 const {
7 options
8 } = props,
9 pickerProps = __rest(props, ["options"]);
10 const columnsFn = useColumnsFn(options);
11 return React.createElement(Picker, Object.assign({}, pickerProps, {
12 ref: ref,
13 columns: columnsFn
14 }));
15});
\No newline at end of file