parent
2ca7c99096
commit
72ff7112b6
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 687 B |
@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import AvatarPng from '@/assets/avatar.png';
|
||||
import UploadForm from './UploadForm';
|
||||
|
||||
// 艺人头像
|
||||
const FormArtistAvatar = () => {
|
||||
return (
|
||||
<UploadForm
|
||||
label="艺人头像"
|
||||
field="avatar"
|
||||
rules={[{ required: true, message: '艺人头像是必填项' }]}
|
||||
pic={AvatarPng}
|
||||
tip="上传您的头像,作为"
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default FormArtistAvatar;
|
@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import { Form, Input } from '@arco-design/web-react';
|
||||
import styles from './style/FormArtistName.module.less';
|
||||
|
||||
// 歌手名
|
||||
const FormArtistName = () => {
|
||||
return (
|
||||
<Form.Item
|
||||
field="artistName"
|
||||
rules={[{ required: true, message: '歌手名是必填项' }]}
|
||||
wrapperCol={{ flex: 1 }}
|
||||
>
|
||||
<div className={styles.artistName}>
|
||||
<div className={styles.hi}>Hi</div>
|
||||
<Input
|
||||
className={styles.artistNameInp}
|
||||
placeholder="请输入您的歌手名"
|
||||
/>
|
||||
</div>
|
||||
</Form.Item>
|
||||
);
|
||||
};
|
||||
|
||||
export default FormArtistName;
|
@ -0,0 +1,16 @@
|
||||
import React from 'react';
|
||||
import UploadForm from './UploadForm';
|
||||
|
||||
// 后台截图
|
||||
const FormBackendScreenshot = () => {
|
||||
return (
|
||||
<UploadForm
|
||||
label="后台截图"
|
||||
field="screenshot"
|
||||
rules={[{ required: true, message: '后台截图是必填项' }]}
|
||||
tip="提供一个其它平台音乐人管理后台实时截图"
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default FormBackendScreenshot;
|
@ -0,0 +1,11 @@
|
||||
import FormArtistName from './FormArtistName';
|
||||
import FormArtistAvatar from './FormArtistAvatar';
|
||||
import FormHomepageBackground from './FormHomepageBackground';
|
||||
import FormBackendScreenshot from './FormBackendScreenshot';
|
||||
|
||||
export {
|
||||
FormArtistName,
|
||||
FormArtistAvatar,
|
||||
FormHomepageBackground,
|
||||
FormBackendScreenshot,
|
||||
};
|
@ -0,0 +1,35 @@
|
||||
.artistName {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #ededed;
|
||||
font-family: PingFang SC;
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
line-height: 20px;
|
||||
padding: 17px 22px;
|
||||
box-sizing: border-box;
|
||||
color: #4e5969;
|
||||
|
||||
.hi {
|
||||
margin-right: 24px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.artistNameInp {
|
||||
padding: 0;
|
||||
border: none;
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #4e5969;
|
||||
background-color: transparent;
|
||||
|
||||
&:placeholder-shown {
|
||||
color: #c9cdd4;
|
||||
font-family: PingFang SC;
|
||||
font-size: 20px;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
@import '@/style/variable.less';
|
||||
@import '@/style/common.less';
|
||||
|
||||
.uploadForm {
|
||||
:global(.arco-upload) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.uploadTrigger {
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
color: #1d2129;
|
||||
border: 1px dashed var(--color-fill-4);
|
||||
padding: 18px 24px;
|
||||
box-sizing: border-box;
|
||||
border-radius: 2px;
|
||||
.center();
|
||||
|
||||
.infoWrap {
|
||||
flex: 1;
|
||||
margin-left: 18px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
.tip {
|
||||
font-family: PingFang SC;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
line-height: 22px;
|
||||
text-align: left;
|
||||
color: #1d2129;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.subTip {
|
||||
font-family: PingFang SC;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
color: #86909c;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue