1. ホーム

削除ポップアップボックス

2022-02-27 14:01:20
<パス
if (selectedRowsState && selectedRowsState.length > 0) {
      confirm({
        width: 300,
        style: { top: '30%' },
        mask: true,
        content: "OK to delete the currently selected " + selectedRowsState.length + "bar data? ",
        cancelText: "cancel",
        okText: "confirm",
        onOk() {
          codeConfigDelete(selectedRowsState);
          setSelectedRows([]);
          actionRef.current?.reloadAndRest();
        },
        onCancel() { },
      })
    } else {
      message.warn("Please select an encoding");
      return;
    }