表单默认宽度修改

pull/237/head
zhangdaiscott 2022-11-07 17:33:46 +08:00
parent ef3cb6a2ad
commit 7b0c76d1b1
4 changed files with 9 additions and 9 deletions

View File

@ -28,7 +28,7 @@
const isUpdate = ref(true);
//
const [registerForm, { getFieldsValue, resetFields, validateFields, setFieldsValue, validate }] = useForm({
labelWidth: 150,
// labelWidth: 150,
schemas: formSchema,
showActionButtonGroup: false,
});

View File

@ -15,7 +15,7 @@
const isUpdate = ref(true);
//
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 150,
// labelWidth: 150,
schemas: formSchema,
showActionButtonGroup: false,
});

View File

@ -14,7 +14,7 @@
const isUpdate = ref(true);
//
const [registerForm, { resetFields, setFieldsValue, validate, updateSchema }] = useForm({
labelWidth: 150,
// labelWidth: 150,
schemas: formSchema,
showActionButtonGroup: false,
});

View File

@ -91,6 +91,12 @@ export const searchFormSchema: FormSchema[] = [
component: 'JInput',
colProps: { span: 6 },
},
{
label: '名字',
field: 'realname',
component: 'JInput',
colProps: { span: 6 },
},
{
label: '性别',
field: 'sex',
@ -102,12 +108,6 @@ export const searchFormSchema: FormSchema[] = [
},
colProps: { span: 6 },
},
{
label: '真实名称',
field: 'realname',
component: 'Input',
colProps: { span: 6 },
},
{
label: '手机号码',
field: 'phone',