mirror of https://github.com/fantasticit/think.git
tiptap: default show toc
This commit is contained in:
parent
ef7c23232d
commit
9f3e766810
|
@ -4,9 +4,9 @@ import { Collapsible, Button } from '@douyinfe/semi-ui';
|
||||||
import styles from './index.module.scss';
|
import styles from './index.module.scss';
|
||||||
import { useToggle } from 'hooks/use-toggle';
|
import { useToggle } from 'hooks/use-toggle';
|
||||||
|
|
||||||
export const TableOfContentsWrapper = ({ editor, node, updateAttributes }) => {
|
export const TableOfContentsWrapper = ({ editor }) => {
|
||||||
const [items, setItems] = useState([]);
|
const [items, setItems] = useState([]);
|
||||||
const [visible, toggleVisible] = useToggle(false);
|
const [visible, toggleVisible] = useToggle(true);
|
||||||
|
|
||||||
const maskStyle = useMemo(
|
const maskStyle = useMemo(
|
||||||
() =>
|
() =>
|
||||||
|
|
Loading…
Reference in New Issue