1 | import { __rest } from "tslib";
|
2 | import React, { forwardRef } from 'react';
|
3 | import Picker from '../picker';
|
4 | import { useColumnsFn } from './cascade-picker-utils';
|
5 | export 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 |