feat: add tour for list pages (#2243)

This commit is contained in:
Baihhh
2023-08-27 16:28:37 +08:00
committed by Yang Luo
parent 98722fd681
commit ec8bd6f01d
10 changed files with 467 additions and 49 deletions

View File

@ -110,11 +110,12 @@ class PermissionListPage extends BaseListPage {
return (
<Upload {...props}>
<Button type="primary" size="small">
<Button id="upload-button" type="primary" size="small">
<UploadOutlined /> {i18next.t("user:Upload (.xlsx)")}
</Button></Upload>
);
}
renderTable(permissions) {
const columns = [
// https://github.com/ant-design/ant-design/issues/22184
@ -361,7 +362,7 @@ class PermissionListPage extends BaseListPage {
title={() => (
<div>
{i18next.t("general:Permissions")}&nbsp;&nbsp;&nbsp;&nbsp;
<Button style={{marginRight: "5px"}} type="primary" size="small" onClick={this.addPermission.bind(this)}>{i18next.t("general:Add")}</Button>
<Button id="add-button" style={{marginRight: "5px"}} type="primary" size="small" onClick={this.addPermission.bind(this)}>{i18next.t("general:Add")}</Button>
{
this.renderPermissionUpload()
}