|
@@ -1,13 +1,18 @@
|
|
|
|
+import { UnityAction } from '@/utils/utils';
|
|
import { CloseOutlined } from '@ant-design/icons';
|
|
import { CloseOutlined } from '@ant-design/icons';
|
|
import styles from './index.less';
|
|
import styles from './index.less';
|
|
|
|
|
|
export default (props) => {
|
|
export default (props) => {
|
|
const { children, style, closeable = true } = props;
|
|
const { children, style, closeable = true } = props;
|
|
|
|
|
|
|
|
+ const handleClose = () => {
|
|
|
|
+ UnityAction.sendMsg('closePage');
|
|
|
|
+ };
|
|
|
|
+
|
|
return (
|
|
return (
|
|
<div className={styles.page} style={style}>
|
|
<div className={styles.page} style={style}>
|
|
{closeable && (
|
|
{closeable && (
|
|
- <CloseOutlined className={styles.close} />
|
|
|
|
|
|
+ <CloseOutlined onClick={handleClose} className={styles.close} />
|
|
)}
|
|
)}
|
|
|
|
|
|
{children}
|
|
{children}
|