Browse Source

完善表单

main
dark 1 month ago
parent
commit
aec56e2abc
  1. 2076
      src/pages/db/movie/components/Edit.tsx
  2. 9
      src/pages/db/movie/components/style.ts
  3. 4
      src/pages/db/movie/index.tsx

2076
src/pages/db/movie/components/Edit.tsx
File diff suppressed because it is too large
View File

9
src/pages/db/movie/components/style.ts

@ -6,7 +6,7 @@ export const useStyle = createStyles(({ token, css, cx, prefixCls }, props: any)
const { scrollbarBackground } = useScrollStyle() const { scrollbarBackground } = useScrollStyle()
const container = css` const container = css`
--heaer-height: 57px;
--heaer-height: 65px;
--footer-height: 50px; --footer-height: 50px;
position: relative!important; position: relative!important;
@ -30,7 +30,7 @@ export const useStyle = createStyles(({ token, css, cx, prefixCls }, props: any)
} }
.ant-drawer-content{ .ant-drawer-content{
--heaer-height: 57px;
--heaer-height: 65px;
--footer-height: 50px; --footer-height: 50px;
} }
@ -51,6 +51,7 @@ export const useStyle = createStyles(({ token, css, cx, prefixCls }, props: any)
border-inline-end: 1px solid rgba(5, 5, 5, 0.06); border-inline-end: 1px solid rgba(5, 5, 5, 0.06);
height: calc(100% - var(--heaer-height, 0) - var(--footer-height, 0)); height: calc(100% - var(--heaer-height, 0) - var(--footer-height, 0));
z-index: 10;
${scrollbarBackground} ${scrollbarBackground}
} }
@ -58,8 +59,10 @@ export const useStyle = createStyles(({ token, css, cx, prefixCls }, props: any)
` `
const body = css` const body = css`
padding: 30px;
//padding: 30px;
overflow-x: hidden;
flex: 1; flex: 1;
gap: 1px;
` `
return { return {

4
src/pages/db/movie/index.tsx

@ -46,7 +46,7 @@ const SwitchLanguage = () => {
] ]
return ( return (
<Select style={{ width: 150 }} placeholder={'切换语言'} options={options}>
<Select defaultValue={'zh'} style={{ width: 150 }} placeholder={'切换语言'} options={options}>
</Select> </Select>
) )
@ -236,7 +236,7 @@ const Movie = () => {
width={'90%'} width={'90%'}
typeProps={{ typeProps={{
maskClosable: false, maskClosable: false,
extra: <SwitchLanguage/>,
extra: <SwitchLanguage />,
}} }}
> >
<Edit record={currentMovie} form={form}/> <Edit record={currentMovie} form={form}/>

Loading…
Cancel
Save