cfel-base-components 2.2.0 → 2.2.2

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.
@@ -2,7 +2,7 @@ import React from "react"
2
2
  import { createRoot } from 'react-dom/client';
3
3
  import style from './index.module.less';
4
4
  import { SwapOutlined, } from '@ant-design/icons';
5
-
5
+ import { ConfigProvider } from "antd"
6
6
  import './index.scss';
7
7
  import PageContainer from '../../src/components/base-component/PageContainer';
8
8
  import Layout from '../../src/components/layout';
@@ -12,7 +12,20 @@ import CpcRole from '../../src/components/universal-pages/cpcRole';
12
12
  // import RoleInfo from '../../src/components/universal-pages/roleInfo';
13
13
 
14
14
  const App = () => {
15
- return <div >
15
+ return <ConfigProvider
16
+ theme={{
17
+ token: {
18
+ fontSize: 12
19
+ },
20
+ components: {
21
+ Form: {
22
+ itemMarginBottom: 12,
23
+ },
24
+ Descriptions: {
25
+ /* 这里是你的组件 token */
26
+ },
27
+ },
28
+ }}>
16
29
  <Layout
17
30
  appName="控制台"
18
31
  productList={false}
@@ -48,7 +61,7 @@ const App = () => {
48
61
  >
49
62
  <CpcRole></CpcRole>
50
63
  </Layout>
51
- </div>
64
+ </ConfigProvider>
52
65
  }
53
66
  const container = document.getElementById('root');
54
67
  const root = createRoot(container);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfel-base-components",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "cfel-base-components",
5
5
  "main": "/src/index.tsx",
6
6
  "types": "src/index.d.ts",
@@ -0,0 +1,13 @@
1
+ .copy-right {
2
+ height: 32px;
3
+ text-align: center;
4
+ color: rgba(0, 0, 0, .65);
5
+ font-size: 12px;
6
+ line-height: 20px;
7
+ padding: 4px 0 8px;
8
+ letter-spacing: .8px;
9
+
10
+ .company-name {
11
+ margin-right: 12px;
12
+ }
13
+ }
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import classnames from 'classnames/bind';
3
+ import styles from "./index.module.less"
4
+ const cx = classnames.bind(styles);
5
+
6
+ export default function CopyRight({
7
+ className,
8
+ children,
9
+ ...restFileds
10
+ }: any) {
11
+ return (
12
+ <div className={cx("copy-right")}>
13
+ <span className={cx("company-name")}>
14
+ © {new Date().getFullYear() || ''} 骋风而来
15
+ </span>
16
+ <span className={cx("icp")}>
17
+ <a href="https://beian.miit.gov.cn/" target="_blank">浙ICP备2023015664号-1</a>
18
+ </span>
19
+ </div>
20
+ )
21
+ }
@@ -1,4 +1,4 @@
1
- .wrap {
1
+ .page-wraper {
2
2
  height: 100%;
3
3
  overflow-y: auto;
4
4
  padding: 12px 12px 0;
@@ -10,14 +10,6 @@
10
10
  position: relative;
11
11
  background: white;
12
12
  border-radius: 8px;
13
- flex: 1;
14
13
  padding-bottom: 24px;
15
- }
16
-
17
- .foot-empower {
18
- text-align: center;
19
- color: #ccc;
20
- font-size: 12px;
21
- padding: 4px 0 8px;
22
- letter-spacing: .2px;
14
+ flex: 1;
23
15
  }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import CopyRight from "../CopyRight"
2
3
  import classnames from 'classnames/bind';
3
4
  import styles from "./index.module.less"
4
5
  const cx = classnames.bind(styles);
@@ -9,7 +10,7 @@ export default function PageContainer({
9
10
  ...restFileds
10
11
  }: any) {
11
12
  return (
12
- <div className={cx("wrap")}>
13
+ <div className={cx("page-wraper")}>
13
14
  <div
14
15
  className={cx({
15
16
  "page-container": true,
@@ -19,10 +20,7 @@ export default function PageContainer({
19
20
  >
20
21
  {children}
21
22
  </div>
22
-
23
- <div className={cx("foot-empower")}>
24
- © {new Date().getFullYear() || ''} 骋风而来{' '}
25
- </div>
23
+ <CopyRight />
26
24
  </div >
27
25
  )
28
26
  }