parent
6c9b39f5c7
commit
6a7e914a41
@ -0,0 +1,49 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
Card,
|
||||
Collapse,
|
||||
Radio,
|
||||
Grid,
|
||||
Typography,
|
||||
} from '@arco-design/web-react';
|
||||
import { IconInfoCircle, IconDown } from '@arco-design/web-react/icon';
|
||||
|
||||
import type { UploadItem } from '@arco-design/web-react/es/Upload';
|
||||
|
||||
import styles from './style/index.module.less';
|
||||
|
||||
export interface SongUploadItemProps {
|
||||
originNode: React.ReactNode;
|
||||
file: UploadItem;
|
||||
fileList: UploadItem[];
|
||||
}
|
||||
|
||||
const CollapseItem = Collapse.Item;
|
||||
const { Row, Col } = Grid;
|
||||
|
||||
export function SongUploadItem(props: SongUploadItemProps) {
|
||||
const { originNode, file, fileList } = props || {};
|
||||
|
||||
console.log(111, originNode);
|
||||
console.log(222, file);
|
||||
console.log(333, fileList);
|
||||
|
||||
return (
|
||||
<Row align="center" gutter={12} className={styles.songUploadItem}>
|
||||
<Col flex={1}>
|
||||
<Card className={styles.songUploadItemCard} hoverable>
|
||||
<Collapse expandIconPosition="right" expandIcon={<IconDown />}>
|
||||
<CollapseItem
|
||||
header={originNode}
|
||||
name="1"
|
||||
// extra={<IconInfoCircle />}
|
||||
>
|
||||
Beijing Toutiao Technology Co., Ltd.
|
||||
</CollapseItem>
|
||||
</Collapse>
|
||||
</Card>
|
||||
</Col>
|
||||
<Col flex="50px">123</Col>
|
||||
</Row>
|
||||
);
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
.songUploadItem {
|
||||
margin-top: 10px;
|
||||
|
||||
&:first-of-type {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.songUploadItemCard {
|
||||
:global(.arco-card-body) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
:global(.arco-collapse-item-header) {
|
||||
background-color: var(--color-fill-1);
|
||||
}
|
||||
|
||||
:global(.arco-collapse-item-content) {
|
||||
background-color: var(--color-bg-2);
|
||||
}
|
||||
|
||||
:global(.arco-collapse-item
|
||||
.arco-collapse-item-icon-hover-right
|
||||
> .arco-collapse-item-header-icon-down) {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
|
||||
:global(.arco-collapse-item-header-title) {
|
||||
width: 100%;
|
||||
|
||||
:global(.arco-upload-list-item) {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue