Browse Source

调整img显示

main
dark 7 months ago
parent
commit
690beb0706
  1. 4
      src/pages/cms/video/index.tsx

4
src/pages/cms/video/index.tsx

@ -1,5 +1,5 @@
import { useTranslation } from '@/i18n.ts' import { useTranslation } from '@/i18n.ts'
import { Button, Form, Popconfirm } from 'antd'
import { Button, Form, Image, Popconfirm } from 'antd'
import { useAtom, useAtomValue } from 'jotai' import { useAtom, useAtomValue } from 'jotai'
import { import {
deleteVideoAtom, deleteVideoAtom,
@ -138,7 +138,7 @@ const Video = () => {
'title': t(`${i18nPrefix}.columns.pic`, 'Pic'), 'title': t(`${i18nPrefix}.columns.pic`, 'Pic'),
'dataIndex': 'pic', 'dataIndex': 'pic',
render: (_dom, record) => { render: (_dom, record) => {
return <img src={record.pic} alt="" style={{ width: 100 }}/>
return <Image src={record.pic} height={40}/>
}, },
}, },
{ {

Loading…
Cancel
Save