AdvanceDialog

AdvanceDialog

作者:王书硕


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { showDialog, requestDialogId, closeDialog } from '@root/common/dialog';
import { AdvanceDialog } from '@components/advance-dialog/AdvanceDialog';

function renderDialog() {
  const dialogId = requestDialogId();

  showDialog(dialogId, (
    <AdvanceDialog 
      isOpen
      title="催办" 
      buttons={[{
        text: '确定',
        onClick: () => {
          closeDialog(dialogId)
        }
      }]}
      onClose={() => {
        closeDialog(dialogId)
      }} 
    >
      
    </AdvanceDialog>
  ))
}

列宽可以通过鼠标拖动

enableColResize={true}
autoContainerWidth={false}