Browse Source

完善表单

main
dark 4 months ago
parent
commit
a7512297e5
  1. 9
      src/pages/db/movie/components/Edit.tsx

9
src/pages/db/movie/components/Edit.tsx

@ -3870,6 +3870,9 @@ const Edit = <T = Record<string, any>>(props: IEditProps<T>) => {
{
dataIndex: 'descriptors',
title: t(`${i18nPrefix}.column.descriptors`, '描述符'),
render(_, record){
return record.descriptors?.join(',')
}
},
{
dataIndex: 'type',
@ -3974,10 +3977,16 @@ const Edit = <T = Record<string, any>>(props: IEditProps<T>) => {
</Button>
</>}
style={{ width: '100%' }}
rowKey={'id'}
columns={[
{
dataIndex: 'name',
title: t(`${i18nPrefix}.column.name`, '名称'),
render: (text, record) => {
//根据site生成href
const href=`https://www.youtube.com/watch?v=${record.key}`
return <a target={'_blank'} href={href}>{text}</a>
}
},
{
dataIndex: 'type',

Loading…
Cancel
Save