Skip to content

Commit

Permalink
增加测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Feb 23, 2024
1 parent b67b70e commit 3614db7
Show file tree
Hide file tree
Showing 5 changed files with 966 additions and 233 deletions.
34 changes: 1 addition & 33 deletions .dumi/app.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1 @@
import { Alert } from 'antd';

// @ts-ignore
export function rootContainer(container) {
return (
<div>
<div
style={{
padding: '8px 12px',
}}
>
<Alert
showIcon
type="info"
closeIcon
message={
<div
style={{ cursor: 'pointer' }}
onClick={() => {
window.open(
'https://forms.office.com/Pages/ResponsePage.aspx?id=DQSIkWdsW0yxEjajBLZtrQAAAAAAAAAAAAa__eHKeOtUOUM1QVkxMUczQjhUOENSWFJNMkMzRFY2SS4u',
);
}}
>
我们正在收集信息,以便为明年的计划做出更好的准备。您的反馈对我们非常重要,将帮助我们了解您的需求和期望,从而提供更好的服务,点击此处参与调查。
</div>
}
/>
</div>
{container}
</div>
);
}

1 change: 1 addition & 0 deletions packages/layout/src/ProLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ const renderSiderMenu = (
}
// 这里走了可以少一次循环
const clearMenuData = clearMenuItem(menuData || []);

if (
clearMenuData &&
clearMenuData?.length < 1 &&
Expand Down
8 changes: 4 additions & 4 deletions packages/layout/src/demos/_defaultProps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
export default {
route: {
path: '/',
routes: [
children: [
{
path: '/welcome',
name: '欢迎',
Expand All @@ -21,7 +21,7 @@ export default {
icon: <CrownFilled />,
access: 'canAdmin',
component: './Admin',
routes: [
children: [
{
path: '/admin/sub-page1',
name: '一级页面',
Expand All @@ -47,12 +47,12 @@ export default {
icon: <TabletFilled />,
path: '/list',
component: './ListTableList',
routes: [
children: [
{
path: '/list/sub-page',
name: '列表页面',
icon: <CrownFilled />,
routes: [
children: [
{
path: 'sub-sub-page1',
name: '一一级列表页面',
Expand Down
Loading

0 comments on commit 3614db7

Please sign in to comment.