提交 90ef0a99 authored 作者: 钟是志's avatar 钟是志

编辑器修改

上级 3c3a0aef
...@@ -3,6 +3,8 @@ import React, { useEffect, useState, useRef } from 'react'; ...@@ -3,6 +3,8 @@ import React, { useEffect, useState, useRef } from 'react';
import { connect } from 'dva'; import { connect } from 'dva';
import ButtonDiy from '@/baseComponent/ButtonDiy'; import ButtonDiy from '@/baseComponent/ButtonDiy';
import moment from 'moment'; import moment from 'moment';
import styles from './styles.less';
import { getUserInfo } from '@/webPublic/one_stop_public/utils/token';
const { TextArea } = Input; const { TextArea } = Input;
...@@ -130,15 +132,15 @@ function EditDrawer(props) { ...@@ -130,15 +132,15 @@ function EditDrawer(props) {
} }
</Drawer> </Drawer>
<div <div
data-edit-point={'EditDrawer'}
className={styles.editPoint}
style={{ style={{
height: '10px', display: getUserInfo().stuNo === 'admin' ? 'block' : 'none',
width: '10px',
cursor: 'pointer',
}} }}
onClick={() => { onClick={() => {
setShowEdit(!showEdit); setShowEdit(!showEdit);
}} }}
/> >.</div>
</> </>
); );
} }
......
.editPoint{
position: absolute;
z-index: 10;
right: 0;
top: 64px;
cursor: pointer;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论