fix: lock component

This commit is contained in:
hufeixiong
2021-07-27 16:35:09 +08:00
parent 0619bdfc81
commit b2a02f0ebb
9 changed files with 103 additions and 11 deletions

View File

@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-07-07 14:51:17
* @LastEditors: yehuozhili
* @LastEditTime: 2021-07-13 19:55:15
* @LastEditTime: 2021-07-27 16:24:29
* @FilePath: \dooringx\packages\dooringx-example\src\layouts\index.tsx
*/
import { Button } from 'antd';
@@ -47,6 +47,24 @@ const ContextMenu = () => {
>
<Button></Button>
</div>
<div
style={{ width: '100%' }}
onClick={() => {
commander.exec('lock');
handleclick();
}}
>
<Button style={{ width: '100%' }}></Button>
</div>
<div
style={{ width: '100%' }}
onClick={() => {
commander.exec('unlock');
handleclick();
}}
>
<Button style={{ width: '100%' }}></Button>
</div>
</div>
);
};