cfel-base-components 1.0.1 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfel-base-components",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "cfel-base-components",
5
5
  "main": "/src/index.tsx",
6
6
  "types": "src/index.d.ts",
@@ -22,6 +22,7 @@
22
22
  "@babel/preset-react": "^7.22.5",
23
23
  "@babel/preset-typescript": "^7.22.5",
24
24
  "@types/lodash": "^4.14.195",
25
+ "@types/node": "^20.5.3",
25
26
  "@types/react": "^18.2.14",
26
27
  "@types/react-dom": "^18.2.6",
27
28
  "axios": "^1.4.0",
@@ -1,13 +1,22 @@
1
+ .wrap {
2
+ width: 100%;
3
+ height: 100%;
4
+ overflow-y: auto;
5
+ padding: 12px 12px 0;
6
+ display: flex;
7
+ flex-direction: column;
8
+ }
9
+
1
10
  .page-container {
2
11
  position: relative;
3
12
  background: white;
4
13
  border-radius: 8px;
5
- flex: 1;
14
+ height: 100%;
15
+ }
6
16
 
7
- .foot-empower {
8
- text-align: center;
9
- color: #ccc;
10
- font-size: 12px;
11
- padding: 4px;
12
- }
17
+ .foot-empower {
18
+ text-align: center;
19
+ color: #ccc;
20
+ font-size: 12px;
21
+ padding: 4px;
13
22
  }
@@ -9,20 +9,20 @@ export default function PageContainer({
9
9
  ...restFileds
10
10
  }: any) {
11
11
  return (
12
- <div
13
- className={cx({
14
- "page-container": true,
15
- [className]: true,
16
- })}
17
- {...restFileds}
18
- >
19
- <div>
12
+ <div className={cx("wrap")}>
13
+ <div
14
+ className={cx({
15
+ "page-container": true,
16
+ [className]: true,
17
+ })}
18
+ {...restFileds}
19
+ >
20
20
  {children}
21
21
  </div>
22
22
 
23
23
  <div className={cx("foot-empower")}>
24
24
  ©{new Date().getFullYear() || ''} 橙蜂而来{' '}
25
25
  </div>
26
- </div>
26
+ </div >
27
27
  )
28
28
  }
@@ -161,10 +161,6 @@ body {
161
161
  .lios-content {
162
162
  width: 100%;
163
163
  height: calc(100vh - 48px);
164
- overflow-y: auto;
165
- padding: 16px 16px 0;
166
- display: flex;
167
- flex-direction: column;
168
164
  }
169
165
 
170
166
  //用户卡片
@@ -174,7 +170,6 @@ body {
174
170
 
175
171
  .user-info {
176
172
  display: flex;
177
- // justify-content: flex-start;
178
173
  margin-bottom: 12px;
179
174
 
180
175
  .author {
package/src/index.d.ts CHANGED
@@ -10,4 +10,4 @@ declare module '*.module.less' {
10
10
 
11
11
  declare module '*.less'
12
12
 
13
- // export * from './index';
13
+ export * from './index';