import type { App } from 'vue';
import { merge } from 'lodash-es';
import config from './config';
import DateTimeRangePicker from './DateTimeRangePicker';
export { ElConfigProvider } from 'element-plus';

// 提供 install 方法，让 app.use
DateTimeRangePicker.install = (app: App, options: any = {}) => {
  // 覆盖默认配置
  merge(config.props, options.props);
  app.component(DateTimeRangePicker.name!, DateTimeRangePicker);
};
export default DateTimeRangePicker;
