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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "typescript.tsdk": "node_modules/typescript/lib"
3
+ }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfel-base-components",
3
- "version": "2.5.4",
3
+ "version": "2.5.6",
4
4
  "description": "cfel-base-components",
5
5
  "main": "/src/index.tsx",
6
6
  "types": "src/index.d.ts",
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ export const context = {};
@@ -1,7 +1,7 @@
1
1
  .page-wraper {
2
2
  height: 100%;
3
3
  overflow-y: auto;
4
- padding: 8px 8px 0;
4
+ padding: 8px 8px;
5
5
  display: flex;
6
6
  flex-direction: column;
7
7
  }
@@ -20,7 +20,6 @@ export default function PageContainer({
20
20
  >
21
21
  {children}
22
22
  </div>
23
- <CopyRight />
24
23
  </div >
25
24
  )
26
25
  }
@@ -476,7 +476,9 @@ export default function AccountInfo({ isShowTab, getAuthTree, getAccountAuthTree
476
476
  columns={TablePolicy}
477
477
  pagination={false}
478
478
  />
479
- <Pagination
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
- <Button
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
  </>