新建时不可以选图片
This commit is contained in:
parent
5975de0b3a
commit
db4466625e
|
|
@ -186,30 +186,32 @@ export default function VditorComponent(
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t('essay:attr.images')}>
|
{!isCreation && (
|
||||||
{item && (
|
<Form.Item label={t('essay:attr.images')}>
|
||||||
<Crop
|
{item && (
|
||||||
entity={oakEntity}
|
<Crop
|
||||||
entityId={item.id}
|
entity={oakEntity}
|
||||||
oakPath={`${oakFullpath}.extraFile$entity`}
|
entityId={item.id}
|
||||||
maxNumber={1}
|
oakPath={`${oakFullpath}.extraFile$entity`}
|
||||||
accept='image/*'
|
maxNumber={1}
|
||||||
tag1='cover'
|
accept='image/*'
|
||||||
enableCrop
|
tag1='cover'
|
||||||
showRest
|
enableCrop
|
||||||
showGrid
|
showRest
|
||||||
rotationSlider
|
showGrid
|
||||||
aspectSlider
|
rotationSlider
|
||||||
aspect={16 / 9}
|
aspectSlider
|
||||||
cropQuality={0.8}
|
aspect={16 / 9}
|
||||||
enableCompross
|
cropQuality={0.8}
|
||||||
maxWidth={1920}
|
enableCompross
|
||||||
maxHeight={1080}
|
maxWidth={1920}
|
||||||
minWidth={1280}
|
maxHeight={1080}
|
||||||
minHeight={720}
|
minWidth={1280}
|
||||||
></Crop>
|
minHeight={720}
|
||||||
)}
|
></Crop>
|
||||||
</Form.Item>
|
)}
|
||||||
|
</Form.Item>
|
||||||
|
)}
|
||||||
</Form>
|
</Form>
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue