UNPKG

@alifd/next

Version:

A configurable component library for web built on React.

12 lines (11 loc) 584 B
import { __assign } from "tslib"; import React from 'react'; import { assignSubComponent } from '../util/component'; import ConfigProvider from '../config-provider'; import TimePicker from './time-picker'; var ConfigTimePicker = ConfigProvider.config(TimePicker); var TimePickerWithSub = assignSubComponent(ConfigTimePicker, { RangePicker: React.forwardRef(function (props, ref) { return (React.createElement(ConfigTimePicker, __assign({ ref: ref }, props, { type: "range" }))); }), }); TimePickerWithSub.RangePicker.displayName = 'RangePicker'; export default TimePickerWithSub;