mirror of https://github.com/fantasticit/think.git
Merge pull request #167 from fantasticit/fix/ui
This commit is contained in:
commit
a20e588453
|
@ -79,7 +79,7 @@ export const DocumentActions: React.FC<IProps> = ({
|
|||
visible={popoverVisible}
|
||||
onVisibleChange={wrapOnVisibleChange}
|
||||
content={
|
||||
<Dropdown.Menu style={{ width: 112 }}>
|
||||
<Dropdown.Menu style={{ minWidth: 112 }}>
|
||||
{showCreateDocument && (
|
||||
<Dropdown.Item onClick={create}>
|
||||
<Text>
|
||||
|
|
|
@ -19,6 +19,7 @@ export const EditUser: React.FC<IProps> = ({ userWithAuth, updateUser, children
|
|||
return (
|
||||
<Popconfirm
|
||||
showArrow
|
||||
position="bottomRight"
|
||||
zIndex={1070}
|
||||
title={`修改用户${userWithAuth && userWithAuth.user.name}权限`}
|
||||
content={
|
||||
|
|
|
@ -94,6 +94,7 @@ export const Members: React.FC<IProps> = ({ id, hook, descriptions }) => {
|
|||
</EditUser>
|
||||
<Popconfirm
|
||||
showArrow
|
||||
position="bottomRight"
|
||||
zIndex={1070}
|
||||
title="确认删除该成员?"
|
||||
onConfirm={() => deleteUser({ userName: data.user.name, userAuth: data.auth.auth })}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import { TabPane, Tabs } from '@douyinfe/semi-ui';
|
||||
import { IOrganization, IWiki } from '@think/domains';
|
||||
import { IOrganization } from '@think/domains';
|
||||
import { Seo } from 'components/seo';
|
||||
import { WikiTocsManager } from 'components/wiki/tocs/manager';
|
||||
import { useWikiDetail } from 'data/wiki';
|
||||
import React from 'react';
|
||||
|
||||
import { Base } from './base';
|
||||
|
@ -22,8 +20,6 @@ const TitleMap = {
|
|||
};
|
||||
|
||||
export const OrganizationSetting: React.FC<IProps> = ({ organizationId, tab, onNavigate }) => {
|
||||
// const { data, update } = useWikiDetail(wikiId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Seo title={TitleMap[tab]} />
|
||||
|
|
|
@ -73,7 +73,12 @@ export const TemplateEditor: React.FC<IProps> = ({ templateId }) => {
|
|||
<Tooltip position="bottom" content={isPublic ? '公开模板' : '个人模板'}>
|
||||
<Switch checked={isPublic} onChange={(v) => updateTemplate({ isPublic: v })}></Switch>
|
||||
</Tooltip>
|
||||
<Popconfirm title="删除模板" content="模板删除后不可恢复,谨慎操作!" onConfirm={handleDelte}>
|
||||
<Popconfirm
|
||||
style={{ width: 320 }}
|
||||
title="删除模板"
|
||||
content="模板删除后不可恢复,谨慎操作!"
|
||||
onConfirm={handleDelte}
|
||||
>
|
||||
<Button type="danger">删除</Button>
|
||||
</Popconfirm>
|
||||
<Theme />
|
||||
|
|
|
@ -25,7 +25,7 @@ export const Theme = () => {
|
|||
trigger="click"
|
||||
showTick
|
||||
render={
|
||||
<Dropdown.Menu>
|
||||
<Dropdown.Menu style={{ width: 100 }}>
|
||||
<Dropdown.Item active={userPrefer === ThemeEnum.light} onClick={setLight}>
|
||||
<IconSun />
|
||||
亮色
|
||||
|
|
|
@ -33,7 +33,7 @@ const Page: NextPage = () => {
|
|||
|
||||
return (
|
||||
<SingleColumnLayout>
|
||||
<Seo title="模板" />
|
||||
<Seo key={tab} title="模板" />
|
||||
<div className="container">
|
||||
<div className={styles.titleWrap}>
|
||||
<Title heading={3} style={{ margin: '8px 0' }}>
|
||||
|
|
Loading…
Reference in New Issue