duoyun-ui
Version:
A lightweight desktop UI component library, implemented using Gem
23 lines (22 loc) • 1.04 kB
TypeScript
import { HTMLAttributes, RefAttributes } from 'react';
import { ForwardRefExoticComponent } from 'react';
import { DuoyunDatePanelElement } from '../elements/date-panel';
export * from '../elements/date-panel';
export type DyDatePanelProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDatePanelElement> & {
time?: DuoyunDatePanelElement['time'];
'onchange'?: (event: CustomEvent<Parameters<DuoyunDatePanelElement['change']>[0]>) => void;
'ondatehover'?: (event: CustomEvent<Parameters<DuoyunDatePanelElement['datehover']>[0]>) => void;
value?: DuoyunDatePanelElement['value'];
highlights?: DuoyunDatePanelElement['highlights'];
initValue?: DuoyunDatePanelElement['initValue'];
};
export type DyDatePanelExpose = {};
declare global {
namespace JSX {
interface IntrinsicElements {
'dy-date-panel': DyDatePanelProps;
}
}
}
export declare const DyDatePanel: ForwardRefExoticComponent<Omit<DyDatePanelProps, "ref"> & RefAttributes<DyDatePanelExpose>>;
export default DyDatePanel;