1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/open-hand-choerodon-ui

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
Dragger.tsx 660
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
huihuawk Отправлено 3 лет назад f09c138
import React, { FunctionComponent, ReactNode } from 'react';
import omit from 'lodash/omit';
import Attachment, { AttachmentProps } from './Attachment';
export type DraggerProps = AttachmentProps & { height?: number, children?: ReactNode[], attachmentChildren?: ReactNode };
const Dragger: FunctionComponent<DraggerProps> = props => {
const { style, height, children, attachmentChildren } = props;
const dragBoxRender = children;
const omitProps = omit(props, ['children']);
return <Attachment {...omitProps} dragUpload dragBoxRender={dragBoxRender} style={{ ...style, height }}>
{attachmentChildren}
</Attachment>;
};
export default Dragger;

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://gitlife.ru/oschina-mirror/open-hand-choerodon-ui.git
git@gitlife.ru:oschina-mirror/open-hand-choerodon-ui.git
oschina-mirror
open-hand-choerodon-ui
open-hand-choerodon-ui
master