瀏覽代碼

fix(user): change user form layout

Lind 3 年之前
父節點
當前提交
478bc9ede6
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/pages/system/User/Save/index.tsx

+ 3 - 2
src/pages/system/User/Save/index.tsx

@@ -1,4 +1,4 @@
-import { message, Modal } from 'antd';
+import { message, Modal, TreeSelect as ATreeSelect } from 'antd';
 import { useIntl } from 'umi';
 import type { Field } from '@formily/core';
 import { createForm } from '@formily/core';
@@ -266,6 +266,7 @@ const Save = (props: Props) => {
         'x-component-props': {
           multiple: true,
           showArrow: true,
+          showCheckedStrategy: ATreeSelect.SHOW_ALL,
           filterOption: (input: string, option: any) =>
             option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0,
           fieldNames: {
@@ -329,7 +330,7 @@ const Save = (props: Props) => {
       onOk={save}
       width="35vw"
     >
-      <Form form={form} labelCol={4} wrapperCol={18}>
+      <Form form={form} layout="vertical">
         <SchemaField schema={schema} scope={{ useAsyncDataSource, getRole, getOrg }} />
       </Form>
     </Modal>