feat: improve code
This commit is contained in:
		
							parent
							
								
									4f762cfe2e
								
							
						
					
					
						commit
						a8413f4e7b
					
				| @ -69,6 +69,7 @@ export const UserInfo = () => { | |||||||
|                 style={{ minWidth: 100 }} |                 style={{ minWidth: 100 }} | ||||||
|                 size={'small'} |                 size={'small'} | ||||||
|                 defaultValue={'admin'} |                 defaultValue={'admin'} | ||||||
|  |                 disabled | ||||||
|                 options={[ |                 options={[ | ||||||
|                   { label: '超级管理员', value: 'admin' }, |                   { label: '超级管理员', value: 'admin' }, | ||||||
|                   { label: '数据管理员', value: 'editor' }, |                   { label: '数据管理员', value: 'editor' }, | ||||||
| @ -84,6 +85,7 @@ export const UserInfo = () => { | |||||||
|                 className={'roles-select'} |                 className={'roles-select'} | ||||||
|                 bordered={false} |                 bordered={false} | ||||||
|                 size={'small'} |                 size={'small'} | ||||||
|  |                 disabled | ||||||
|                 defaultValue={'zh-CN'} |                 defaultValue={'zh-CN'} | ||||||
|                 options={[ |                 options={[ | ||||||
|                   { label: '简体中文', value: 'zh-CN' }, |                   { label: '简体中文', value: 'zh-CN' }, | ||||||
|  | |||||||
| @ -107,7 +107,7 @@ const SideMenu = (props: any) => { | |||||||
|         <RecursionField schema={child} onlyRenderProperties /> |         <RecursionField schema={child} onlyRenderProperties /> | ||||||
|         <Menu.AddNew key={uid()} path={[...path, selectedKey]}> |         <Menu.AddNew key={uid()} path={[...path, selectedKey]}> | ||||||
|           <Button |           <Button | ||||||
|             block |             // block
 | ||||||
|             type={'dashed'} |             type={'dashed'} | ||||||
|             icon={<PlusOutlined />} |             icon={<PlusOutlined />} | ||||||
|             className={`nb-add-new-menu-item menu-mode-inline designable-btn designable-btn-dash`} |             className={`nb-add-new-menu-item menu-mode-inline designable-btn designable-btn-dash`} | ||||||
| @ -735,7 +735,7 @@ Menu.DesignableBar = (props) => { | |||||||
|                       }, |                       }, | ||||||
|                     ); |                     ); | ||||||
|                     const values = await FormDialog( |                     const values = await FormDialog( | ||||||
|                       `编辑${formConfig.title}`, |                       `编辑菜单项`, | ||||||
|                       () => { |                       () => { | ||||||
|                         return ( |                         return ( | ||||||
|                           <FormLayout layout={'vertical'}> |                           <FormLayout layout={'vertical'}> | ||||||
| @ -759,7 +759,7 @@ Menu.DesignableBar = (props) => { | |||||||
|                     await updateSchema(schema); |                     await updateSchema(schema); | ||||||
|                   }} |                   }} | ||||||
|                 > |                 > | ||||||
|                   <EditOutlined /> 编辑{formConfig.title} |                   <EditOutlined /> 编辑菜单项 | ||||||
|                 </AntdMenu.Item> |                 </AntdMenu.Item> | ||||||
|                 <AntdMenu.Item |                 <AntdMenu.Item | ||||||
|                   key={'move'} |                   key={'move'} | ||||||
|  | |||||||
| @ -109,5 +109,4 @@ | |||||||
| 
 | 
 | ||||||
| .nb-add-new-menu-item.menu-mode-inline { | .nb-add-new-menu-item.menu-mode-inline { | ||||||
|   margin: 0 14px; |   margin: 0 14px; | ||||||
|   width: calc(100% - 28px); |  | ||||||
| } | } | ||||||
|  | |||||||
| @ -1022,6 +1022,7 @@ function generateActionSchema(type) { | |||||||
|       'x-designable-bar': 'Table.ExportActionDesignableBar', |       'x-designable-bar': 'Table.ExportActionDesignableBar', | ||||||
|       'x-component-props': { |       'x-component-props': { | ||||||
|         fieldNames: [], |         fieldNames: [], | ||||||
|  |         icon: 'ExportOutlined', | ||||||
|         useAction: '{{ Table.useTableExportAction }}', |         useAction: '{{ Table.useTableExportAction }}', | ||||||
|       }, |       }, | ||||||
|     }, |     }, | ||||||
|  | |||||||
| @ -1,3 +1,8 @@ | |||||||
|  | .nb-table { | ||||||
|  |   overflow-x: auto; | ||||||
|  |   overflow-y: hidden; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .nb-table-column { | .nb-table-column { | ||||||
|   &:hover { |   &:hover { | ||||||
|     > .designable-bar { |     > .designable-bar { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user