表单默认宽度修改
							parent
							
								
									ef3cb6a2ad
								
							
						
					
					
						commit
						7b0c76d1b1
					
				| 
						 | 
				
			
			@ -28,7 +28,7 @@
 | 
			
		|||
  const isUpdate = ref(true);
 | 
			
		||||
  //表单配置
 | 
			
		||||
  const [registerForm, { getFieldsValue, resetFields, validateFields, setFieldsValue, validate }] = useForm({
 | 
			
		||||
    labelWidth: 150,
 | 
			
		||||
    // labelWidth: 150,
 | 
			
		||||
    schemas: formSchema,
 | 
			
		||||
    showActionButtonGroup: false,
 | 
			
		||||
  });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,7 +15,7 @@
 | 
			
		|||
  const isUpdate = ref(true);
 | 
			
		||||
  //表单配置
 | 
			
		||||
  const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
 | 
			
		||||
    labelWidth: 150,
 | 
			
		||||
    // labelWidth: 150,
 | 
			
		||||
    schemas: formSchema,
 | 
			
		||||
    showActionButtonGroup: false,
 | 
			
		||||
  });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,7 +14,7 @@
 | 
			
		|||
  const isUpdate = ref(true);
 | 
			
		||||
  //表单配置
 | 
			
		||||
  const [registerForm, { resetFields, setFieldsValue, validate, updateSchema }] = useForm({
 | 
			
		||||
    labelWidth: 150,
 | 
			
		||||
    // labelWidth: 150,
 | 
			
		||||
    schemas: formSchema,
 | 
			
		||||
    showActionButtonGroup: false,
 | 
			
		||||
  });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue