feat: improve code

This commit is contained in:
chenos 2021-09-03 00:06:05 +08:00
parent 4f762cfe2e
commit a8413f4e7b
5 changed files with 11 additions and 4 deletions

View File

@ -69,6 +69,7 @@ export const UserInfo = () => {
style={{ minWidth: 100 }}
size={'small'}
defaultValue={'admin'}
disabled
options={[
{ label: '超级管理员', value: 'admin' },
{ label: '数据管理员', value: 'editor' },
@ -84,6 +85,7 @@ export const UserInfo = () => {
className={'roles-select'}
bordered={false}
size={'small'}
disabled
defaultValue={'zh-CN'}
options={[
{ label: '简体中文', value: 'zh-CN' },

View File

@ -107,7 +107,7 @@ const SideMenu = (props: any) => {
<RecursionField schema={child} onlyRenderProperties />
<Menu.AddNew key={uid()} path={[...path, selectedKey]}>
<Button
block
// block
type={'dashed'}
icon={<PlusOutlined />}
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(
`编辑${formConfig.title}`,
`编辑菜单项`,
() => {
return (
<FormLayout layout={'vertical'}>
@ -759,7 +759,7 @@ Menu.DesignableBar = (props) => {
await updateSchema(schema);
}}
>
<EditOutlined /> {formConfig.title}
<EditOutlined />
</AntdMenu.Item>
<AntdMenu.Item
key={'move'}

View File

@ -109,5 +109,4 @@
.nb-add-new-menu-item.menu-mode-inline {
margin: 0 14px;
width: calc(100% - 28px);
}

View File

@ -1022,6 +1022,7 @@ function generateActionSchema(type) {
'x-designable-bar': 'Table.ExportActionDesignableBar',
'x-component-props': {
fieldNames: [],
icon: 'ExportOutlined',
useAction: '{{ Table.useTableExportAction }}',
},
},

View File

@ -1,3 +1,8 @@
.nb-table {
overflow-x: auto;
overflow-y: hidden;
}
.nb-table-column {
&:hover {
> .designable-bar {