mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 13:26:44 +00:00
feat: improve code
This commit is contained in:
parent
4f762cfe2e
commit
a8413f4e7b
@ -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' },
|
||||
|
@ -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'}
|
||||
|
@ -109,5 +109,4 @@
|
||||
|
||||
.nb-add-new-menu-item.menu-mode-inline {
|
||||
margin: 0 14px;
|
||||
width: calc(100% - 28px);
|
||||
}
|
||||
|
@ -1022,6 +1022,7 @@ function generateActionSchema(type) {
|
||||
'x-designable-bar': 'Table.ExportActionDesignableBar',
|
||||
'x-component-props': {
|
||||
fieldNames: [],
|
||||
icon: 'ExportOutlined',
|
||||
useAction: '{{ Table.useTableExportAction }}',
|
||||
},
|
||||
},
|
||||
|
@ -1,3 +1,8 @@
|
||||
.nb-table {
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.nb-table-column {
|
||||
&:hover {
|
||||
> .designable-bar {
|
||||
|
Loading…
Reference in New Issue
Block a user