提交 4b862db5 作者: ZhangLingKun

优化:样式修复

上级 1685253b
流水线 #8837 已通过 于阶段
in 1 分 4 秒
......@@ -8,17 +8,12 @@
transform: translate(50%,-25%);
}
}
.gambit-choose {
display: flex;
marginLeft: 200px;
width: 800px;
flex-wrap: nowrap;
.Form-item {
width: 300px;
margin-right: 20px;
padding-left: 20px;
.Select {
padding-left: 400px;
}
.gambit-item{
position: relative;
width: 100%;
.button{
position: absolute;
top: 0;
left: 500px;
}
}
import { Button, Cascader, Form, Input, Radio, Select } from 'antd';
import { Uploader } from '~/components/uploader';
import type { RadioChangeEvent } from 'antd';
import { UploadOutlined } from '@ant-design/icons';
import { PlusOutlined, UploadOutlined } from '@ant-design/icons';
import React, { forwardRef, useEffect, useImperativeHandle, useState } from 'react';
import { InterDataType, InterListType } from '~/api/interface';
import { categoryListRespType } from '~/api/interface/categoryManage';
......@@ -287,11 +287,12 @@ const BaseInfo = forwardRef<any, selfProps>((_props, ref) => {
<Radio value={0}>不显示</Radio>
</Radio.Group>
</Form.Item>
<div className='flex-start gambit-choose'>
<div className='flex-start gambit-item'>
<Form.Item
label='关联话题'
name='gambitId'
rules={[{ required: false, message: '请选择话题' }]}
style={{ width: '100%' }}
>
<Select
placeholder='请选择话题'
......@@ -302,6 +303,7 @@ const BaseInfo = forwardRef<any, selfProps>((_props, ref) => {
// @ts-expect-error
option?.children?.toLowerCase().includes(input.toLowerCase())
}
style={{ width: '380px' }}
// value={baseInfoForm.getFieldValue('gambitId')}
// onSelect={(e) => baseInfoForm.setFieldValue('gambitId', e)}
>
......@@ -312,7 +314,12 @@ const BaseInfo = forwardRef<any, selfProps>((_props, ref) => {
))}
</Select>
</Form.Item>
<Button type='primary' onClick={() => addTopicModalShowClick()}>
<Button
type='primary'
onClick={() => addTopicModalShowClick()}
className={'button'}
icon={<PlusOutlined />}
>
新建
</Button>
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论