Commit fa199e9c authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改注册信息可编辑有值的元素

parent a2c906b5
......@@ -19,7 +19,13 @@ export type GroupItem = {
elements: ElementType[],
};
export const schema = (groups: GroupItem[]): ISchema => {
/**
*
* @param groups
* @param editable 有值的元素是否可编辑
* @returns
*/
export const schema = (groups: GroupItem[], editable: boolean = false): ISchema => {
const tabSchema: ISchema = {
properties: {},
};
......@@ -41,7 +47,7 @@ export const schema = (groups: GroupItem[]): ISchema => {
wrapperCol: 8,
labelAlign: 'left',
},
properties: createMemberSchema(item.elements, false),
properties: createMemberSchema(item.elements, editable),
},
},
};
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-06-04 15:37:19
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-10 16:03:09
* @LastEditTime: 2021-08-10 17:57:27
* @Description: 修改会员注册信息
*/
import React, { useState, useEffect } from 'react';
......@@ -115,7 +115,7 @@ const MemberUpdate: React.FC<any> = props => {
}
});
}}
schema={schema(memberItems)}
schema={schema(memberItems, true)}
/>
</Card>
</PageHeaderWrapper>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment