dev-v2
Joe 5 months ago
parent 391033b601
commit 93c2423b90

@ -42,7 +42,7 @@ export default ((props) => {
props.onChange?.(info.fileList) props.onChange?.(info.fileList)
}} }}
> >
{!props.value && ( {(!props.value || props.value.length <= 0) && (
<div> <div>
{<PlusOutlined />} {<PlusOutlined />}
<div style={{ marginTop: 8 }}></div> <div style={{ marginTop: 8 }}></div>

@ -510,7 +510,6 @@ const Detail: React.FC<any> = () => {
border: '1px solid #f0f0f0', border: '1px solid #f0f0f0',
borderRadius: 4, borderRadius: 4,
backgroundColor: '#fafafa', backgroundColor: '#fafafa',
width: 'calc(33.33% - 16px)',
minWidth: 300 minWidth: 300
}} }}
> >
@ -519,21 +518,23 @@ const Detail: React.FC<any> = () => {
</div> </div>
)} )}
> >
<div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}> <div style={{ display: 'flex', gap: 8 }}>
<ProFormText <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
width="sm" <ProFormText
name={['name']} width="sm"
placeholder="请输入颜色名" noStyle
rules={[ name={['name']}
{ required: true, message: '请输入颜色名' } placeholder="请输入颜色名"
]} rules={[
fieldProps={{ { required: true, message: '请输入颜色名' }
style: { width: '100%' } ]}
}} fieldProps={{
/> style: { width: '100%' }
<div style={{ display: 'flex', gap: 8 }}> }}
/>
<ProFormText <ProFormText
width="sm" width="sm"
noStyle
name="pbcSkuPrice" name="pbcSkuPrice"
placeholder="请输入价格" placeholder="请输入价格"
fieldProps={{ fieldProps={{
@ -543,6 +544,7 @@ const Detail: React.FC<any> = () => {
/> />
<ProFormDigit <ProFormDigit
width="sm" width="sm"
noStyle
name="pbcSkuStock" name="pbcSkuStock"
placeholder="请输入库存" placeholder="请输入库存"
min={0} min={0}

Loading…
Cancel
Save