flat: 暂存
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
ProFormSelect,
|
||||
ProFormText,
|
||||
} from '@ant-design/pro-components';
|
||||
import { Form,Input } from 'antd';
|
||||
import { Form, Input } from 'antd';
|
||||
import { DictValueEnumObj } from '@/components/DictTag';
|
||||
|
||||
export type ListFormProps = {
|
||||
@@ -51,12 +51,18 @@ const listEdit: React.FC<ListFormProps> = (props) => {
|
||||
};
|
||||
|
||||
const handleFinish = async (values: Record<string, any>) => {
|
||||
// console.log(colorHex, values.backgroudColor);
|
||||
console.log(colorHex, values);
|
||||
if (typeof colorHex === 'string') {
|
||||
values.backgroudColor = colorHex;
|
||||
} else {
|
||||
values.backgroudColor = values.backgroudColor.toHexString();
|
||||
}
|
||||
if (!values.companyNature) {
|
||||
values['companyNature'] = '';
|
||||
}
|
||||
if (!values.targ) {
|
||||
values['targ'] = '';
|
||||
}
|
||||
props.onSubmit(values as API.ApplicationProducts.Product);
|
||||
};
|
||||
return (
|
||||
@@ -121,10 +127,7 @@ const listEdit: React.FC<ListFormProps> = (props) => {
|
||||
width="md"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
<ProForm.Item
|
||||
name="description"
|
||||
label="精选描述"
|
||||
>
|
||||
<ProForm.Item name="description" label="精选描述">
|
||||
<Input.TextArea
|
||||
placeholder="请输入卡片精选描述(最多200字)"
|
||||
maxLength={200}
|
||||
|
||||
Reference in New Issue
Block a user