Skip to content

Commit

Permalink
feat: page use antd@5
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Dec 1, 2023
1 parent afe6873 commit 1e1eb5e
Show file tree
Hide file tree
Showing 27 changed files with 9,341 additions and 3,589 deletions.
3 changes: 1 addition & 2 deletions .script/genBlockConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ const getFolderTreeData = (filePath) => {
url: 'https://github.com/ant-design/pro-blocks/tree/master/EmptyPage',
path: 'NewPage',
features: ['antd'],
img:
'https://raw.githubusercontent.com/ant-design/pro-blocks/master/EmptyPage/snapshot.png?raw=true',
img: 'https://raw.githubusercontent.com/ant-design/pro-blocks/master/EmptyPage/snapshot.png?raw=true',
tags: ['空白页'],
previewUrl: 'https://preview.pro.ant.design',
});
Expand Down
65 changes: 0 additions & 65 deletions AccountSettings/src/components/BaseView.less

This file was deleted.

93 changes: 0 additions & 93 deletions AccountSettings/src/style.less

This file was deleted.

2 changes: 1 addition & 1 deletion ListTableList/src/components/CreateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const CreateForm: React.FC<CreateFormProps> = (props) => {
<Modal
destroyOnClose
title="新建规则"
visible={modalVisible}
open={modalVisible}
onCancel={() => onCancel()}
footer={null}
>
Expand Down
8 changes: 5 additions & 3 deletions ListTableList/src/components/UpdateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
return (
<Modal
width={640}
bodyStyle={{
padding: '32px 40px 48px',
styles={{
body: {
padding: '32px 40px 48px',
},
}}
destroyOnClose
title="规则配置"
visible={props.updateModalVisible}
open={props.updateModalVisible}
footer={submitter}
onCancel={() => {
props.onCancel();
Expand Down
4 changes: 2 additions & 2 deletions ListTableList/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ const TableList: React.FC = () => {
<ModalForm
title="新建规则"
width="400px"
visible={createModalVisible}
open={createModalVisible}
onVisibleChange={handleModalVisible}
onFinish={async (value) => {
const success = await handleAdd(value as TableListItem);
Expand Down Expand Up @@ -296,7 +296,7 @@ const TableList: React.FC = () => {

<Drawer
width={600}
visible={showDetail}
open={showDetail}
onClose={() => {
setCurrentRow(undefined);
setShowDetail(false);
Expand Down
Loading

0 comments on commit 1e1eb5e

Please sign in to comment.