mirror of https://github.com/fantasticit/think.git
fix:add user dropdown click event && css
This commit is contained in:
parent
20659d377c
commit
e2c09a0c21
|
@ -0,0 +1,7 @@
|
||||||
|
.userTable {
|
||||||
|
:global {
|
||||||
|
[class$='-pagination-outer'] {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -26,6 +26,8 @@ import { IsOnMobile } from 'hooks/use-on-mobile';
|
||||||
import { useToggle } from 'hooks/use-toggle';
|
import { useToggle } from 'hooks/use-toggle';
|
||||||
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||||
|
|
||||||
|
import styles from './index.module.scss';
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
wikiId: string;
|
wikiId: string;
|
||||||
documentId: string;
|
documentId: string;
|
||||||
|
@ -101,7 +103,12 @@ export const DocumentCollaboration: React.FC<IProps> = ({ wikiId, documentId, di
|
||||||
error={error}
|
error={error}
|
||||||
loadingContent={<Spin />}
|
loadingContent={<Spin />}
|
||||||
normalContent={() => (
|
normalContent={() => (
|
||||||
<Table dataSource={users} size="small" pagination>
|
<Table
|
||||||
|
dataSource={users}
|
||||||
|
className={styles.userTable}
|
||||||
|
size="small"
|
||||||
|
pagination={{ popoverPosition: 'topLeft', popoverZIndex: 1061 }}
|
||||||
|
>
|
||||||
<Column title="用户名" dataIndex="user.name" key="name" />
|
<Column title="用户名" dataIndex="user.name" key="name" />
|
||||||
<Column
|
<Column
|
||||||
title="是否可读"
|
title="是否可读"
|
||||||
|
@ -211,6 +218,7 @@ export const DocumentCollaboration: React.FC<IProps> = ({ wikiId, documentId, di
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Dropdown
|
<Dropdown
|
||||||
|
stopPropagation={true}
|
||||||
visible={visible}
|
visible={visible}
|
||||||
onVisibleChange={toggleVisible}
|
onVisibleChange={toggleVisible}
|
||||||
trigger="click"
|
trigger="click"
|
||||||
|
|
503
pnpm-lock.yaml
503
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue