cfel-base-components 2.5.4 → 2.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +3 -0
- package/demo/src/index.jsx +5 -0
- package/package.json +1 -1
- package/src/.umi/core/helmet.ts +10 -0
- package/src/.umi/core/helmetContext.ts +4 -0
- package/src/components/base-component/PageContainer/index.module.less +1 -1
- package/src/components/base-component/PageContainer/index.tsx +0 -1
- package/src/components/universal-pages/cpcAccountInfo/index.tsx +4 -1
- package/src/components/universal-pages/cpcRole/index.tsx +17 -1
- package/src/components/universal-pages/cpcRoleInfo/index.tsx +15 -13
package/.vscode/settings.json
CHANGED
package/demo/src/index.jsx
CHANGED
|
@@ -13,6 +13,11 @@ import ProTable from "../../src/components/base-component/ProTable";
|
|
|
13
13
|
import PageContainer from "../../src/components/base-component/PageContainer";
|
|
14
14
|
|
|
15
15
|
const menuList = [
|
|
16
|
+
{
|
|
17
|
+
label: "目录0",
|
|
18
|
+
key: "a",
|
|
19
|
+
icon: <QqOutlined />,
|
|
20
|
+
},
|
|
16
21
|
{
|
|
17
22
|
label: "目录1",
|
|
18
23
|
key: "a",
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// This file is generated by Umi automatically
|
|
3
|
+
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { HelmetProvider } from '/Users/wujingang/Desktop/workspace/base-components/node_modules/@umijs/renderer-react';
|
|
6
|
+
import { context } from './helmetContext';
|
|
7
|
+
|
|
8
|
+
export const innerProvider = (container) => {
|
|
9
|
+
return React.createElement(HelmetProvider, { context }, container);
|
|
10
|
+
}
|
|
@@ -476,7 +476,9 @@ export default function AccountInfo({ isShowTab, getAuthTree, getAccountAuthTree
|
|
|
476
476
|
columns={TablePolicy}
|
|
477
477
|
pagination={false}
|
|
478
478
|
/>
|
|
479
|
-
<
|
|
479
|
+
<div className='paginBox'>
|
|
480
|
+
<span></span>
|
|
481
|
+
<Pagination
|
|
480
482
|
{...policy?.pagination}
|
|
481
483
|
onChange={(innerPageNo: number, innerPageSize: number) => {
|
|
482
484
|
policy?.execute({
|
|
@@ -486,6 +488,7 @@ export default function AccountInfo({ isShowTab, getAuthTree, getAccountAuthTree
|
|
|
486
488
|
})
|
|
487
489
|
}}
|
|
488
490
|
/>
|
|
491
|
+
</div>
|
|
489
492
|
</>
|
|
490
493
|
)}
|
|
491
494
|
{tabCheck === 'tableData' && (
|
|
@@ -6,7 +6,7 @@ import QueryFilter from '../../base-component/QueryFilter';
|
|
|
6
6
|
import ProTable from '../../base-component/ProTable';
|
|
7
7
|
import Pagination from '../../base-component/Pagination';
|
|
8
8
|
import { get } from 'lodash';
|
|
9
|
-
import { Space, Button,message,Modal } from 'antd';
|
|
9
|
+
import { Space, Button,message,Modal,Popover } from 'antd';
|
|
10
10
|
import { pageRequest,
|
|
11
11
|
create,
|
|
12
12
|
remove,
|
|
@@ -79,6 +79,22 @@ export default function Role({
|
|
|
79
79
|
title: '角色描述',
|
|
80
80
|
dataIndex: 'description',
|
|
81
81
|
key: 'description',
|
|
82
|
+
render: (text: any) => {
|
|
83
|
+
if (text?.length > 30) {
|
|
84
|
+
let sliceText = text.slice(0, 30)
|
|
85
|
+
return (
|
|
86
|
+
<Popover
|
|
87
|
+
content={<div style={{ width: '300px', wordWrap: 'break-word' }}>{text}</div>}
|
|
88
|
+
trigger='hover'
|
|
89
|
+
>
|
|
90
|
+
{sliceText}
|
|
91
|
+
<a>更多</a>
|
|
92
|
+
</Popover>
|
|
93
|
+
)
|
|
94
|
+
} else {
|
|
95
|
+
return text
|
|
96
|
+
}
|
|
97
|
+
}
|
|
82
98
|
},
|
|
83
99
|
{
|
|
84
100
|
title: '创建时间',
|
|
@@ -643,6 +643,20 @@ export default function RoleInfo({
|
|
|
643
643
|
style={{ margin: '20px 0' }}
|
|
644
644
|
toolBarRender={() => {
|
|
645
645
|
return [
|
|
646
|
+
<Button
|
|
647
|
+
key="del"
|
|
648
|
+
disabled={rowKeys.length > 0 ? false : true}
|
|
649
|
+
onClick={() => {
|
|
650
|
+
Modal.confirm({
|
|
651
|
+
title: `确认批量解绑吗?`,
|
|
652
|
+
onOk: () => {
|
|
653
|
+
DeleteFunc(rowKeys)
|
|
654
|
+
}
|
|
655
|
+
})
|
|
656
|
+
}}
|
|
657
|
+
>
|
|
658
|
+
批量解绑
|
|
659
|
+
</Button>,
|
|
646
660
|
<Button
|
|
647
661
|
key='add'
|
|
648
662
|
size='middle'
|
|
@@ -678,19 +692,7 @@ export default function RoleInfo({
|
|
|
678
692
|
}}
|
|
679
693
|
/>
|
|
680
694
|
<div className='paginBox'>
|
|
681
|
-
<
|
|
682
|
-
disabled={rowKeys.length > 0 ? false : true}
|
|
683
|
-
onClick={() => {
|
|
684
|
-
Modal.confirm({
|
|
685
|
-
title: `确认批量解绑吗?`,
|
|
686
|
-
onOk: () => {
|
|
687
|
-
DeleteFunc(rowKeys)
|
|
688
|
-
}
|
|
689
|
-
})
|
|
690
|
-
}}
|
|
691
|
-
>
|
|
692
|
-
批量解绑
|
|
693
|
-
</Button>
|
|
695
|
+
<span></span>
|
|
694
696
|
<Pagination {...policy?.pagination} />
|
|
695
697
|
</div>
|
|
696
698
|
</>
|