mirror of https://github.com/fantasticit/think.git
close #242
parent
c840aa140b
commit
ee98b6f858
|
@ -5,7 +5,6 @@ import cls from 'classnames';
|
||||||
import { ImageUploader } from 'components/image-uploader';
|
import { ImageUploader } from 'components/image-uploader';
|
||||||
import { useCallback, useEffect, useRef } from 'react';
|
import { useCallback, useEffect, useRef } from 'react';
|
||||||
import { createPortal } from 'react-dom';
|
import { createPortal } from 'react-dom';
|
||||||
import { LazyLoadImage } from 'react-lazy-load-image-component';
|
|
||||||
|
|
||||||
import styles from './index.module.scss';
|
import styles from './index.module.scss';
|
||||||
|
|
||||||
|
@ -83,7 +82,7 @@ export const TitleWrapper = ({ editor, node }) => {
|
||||||
<NodeViewWrapper className={cls(styles.wrap, 'title')}>
|
<NodeViewWrapper className={cls(styles.wrap, 'title')}>
|
||||||
{cover ? (
|
{cover ? (
|
||||||
<div className={styles.coverWrap} contentEditable={false}>
|
<div className={styles.coverWrap} contentEditable={false}>
|
||||||
<LazyLoadImage src={cover} alt="请选择或移除封面" />
|
<img src={cover} alt="请选择或移除封面" />
|
||||||
{isEditable ? (
|
{isEditable ? (
|
||||||
<div className={styles.toolbar}>
|
<div className={styles.toolbar}>
|
||||||
<ImageUploader images={images} selectImage={setCover}>
|
<ImageUploader images={images} selectImage={setCover}>
|
||||||
|
|
Loading…
Reference in New Issue