index.md
718 Bytes
选择应用
import { request } from '@qx/common';
import React, { useState } from 'react';
import { QxAppSelector } from './index';
export default () => {
const [visible, setVisible] = useState(false);
const props = {
flag: 'join',
item: {
flag: 'SINGLE',
currentId: '',
appId: 'n7S2Gz9GJ4knP9w2AOb',
},
onchange: () => {},
modalProps: {
width: 550,
destroyOnClose: true,
visible: visible,
onOk: () => setVisible(false),
onCancel: () => setVisible(false),
},
};
return (
<>
<a onClick={() => setVisible(true)}>点我一下</a>
<QxAppSelector {...props} request={request} />
</>
);
};