Skip to content

Commit 3614db7

Browse files
committed
增加测试用例
1 parent b67b70e commit 3614db7

File tree

5 files changed

+966
-233
lines changed

5 files changed

+966
-233
lines changed

.dumi/app.tsx

+1-33
Original file line numberDiff line numberDiff line change
@@ -1,33 +1 @@
1-
import { Alert } from 'antd';
2-
3-
// @ts-ignore
4-
export function rootContainer(container) {
5-
return (
6-
<div>
7-
<div
8-
style={{
9-
padding: '8px 12px',
10-
}}
11-
>
12-
<Alert
13-
showIcon
14-
type="info"
15-
closeIcon
16-
message={
17-
<div
18-
style={{ cursor: 'pointer' }}
19-
onClick={() => {
20-
window.open(
21-
'https://forms.office.com/Pages/ResponsePage.aspx?id=DQSIkWdsW0yxEjajBLZtrQAAAAAAAAAAAAa__eHKeOtUOUM1QVkxMUczQjhUOENSWFJNMkMzRFY2SS4u',
22-
);
23-
}}
24-
>
25-
我们正在收集信息,以便为明年的计划做出更好的准备。您的反馈对我们非常重要,将帮助我们了解您的需求和期望,从而提供更好的服务,点击此处参与调查。
26-
</div>
27-
}
28-
/>
29-
</div>
30-
{container}
31-
</div>
32-
);
33-
}
1+


packages/layout/src/ProLayout.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ const renderSiderMenu = (
326326
}
327327
// 这里走了可以少一次循环
328328
const clearMenuData = clearMenuItem(menuData || []);
329+
329330
if (
330331
clearMenuData &&
331332
clearMenuData?.length < 1 &&

packages/layout/src/demos/_defaultProps.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
export default {
99
route: {
1010
path: '/',
11-
routes: [
11+
children: [
1212
{
1313
path: '/welcome',
1414
name: '欢迎',
@@ -21,7 +21,7 @@ export default {
2121
icon: <CrownFilled />,
2222
access: 'canAdmin',
2323
component: './Admin',
24-
routes: [
24+
children: [
2525
{
2626
path: '/admin/sub-page1',
2727
name: '一级页面',
@@ -47,12 +47,12 @@ export default {
4747
icon: <TabletFilled />,
4848
path: '/list',
4949
component: './ListTableList',
50-
routes: [
50+
children: [
5151
{
5252
path: '/list/sub-page',
5353
name: '列表页面',
5454
icon: <CrownFilled />,
55-
routes: [
55+
children: [
5656
{
5757
path: 'sub-sub-page1',
5858
name: '一一级列表页面',

0 commit comments

Comments
 (0)