cfel-base-components 1.0.1 → 1.0.3
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/demo/src/index.jsx +7 -3
- package/demo/src/index.scss +3 -2
- package/package.json +2 -1
- package/src/components/base-component/PageContainer/index.module.less +14 -6
- package/src/components/base-component/PageContainer/index.tsx +9 -9
- package/src/components/layout/index.scss +1 -5
- package/src/index.d.ts +1 -1
package/demo/src/index.jsx
CHANGED
|
@@ -11,9 +11,13 @@ import PageContainer from '../../src/components/base-component/PageContainer';
|
|
|
11
11
|
// import RoleInfo from '../../src/components/universal-pages/roleInfo';
|
|
12
12
|
|
|
13
13
|
const App = () => {
|
|
14
|
-
return <
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
return <div className={"a"}>
|
|
15
|
+
<PageContainer >
|
|
16
|
+
123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123
|
|
17
|
+
</PageContainer>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
|
|
17
21
|
}
|
|
18
22
|
const container = document.getElementById('root');
|
|
19
23
|
const root = createRoot(container);
|
package/demo/src/index.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cfel-base-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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,21 @@
|
|
|
1
|
+
.wrap {
|
|
2
|
+
height: 100%;
|
|
3
|
+
overflow-y: auto;
|
|
4
|
+
padding: 12px 12px 0;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
.page-container {
|
|
2
10
|
position: relative;
|
|
3
11
|
background: white;
|
|
4
12
|
border-radius: 8px;
|
|
5
13
|
flex: 1;
|
|
14
|
+
}
|
|
6
15
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
16
|
+
.foot-empower {
|
|
17
|
+
text-align: center;
|
|
18
|
+
color: #ccc;
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
padding: 4px;
|
|
13
21
|
}
|
|
@@ -9,20 +9,20 @@ export default function PageContainer({
|
|
|
9
9
|
...restFileds
|
|
10
10
|
}: any) {
|
|
11
11
|
return (
|
|
12
|
-
<div
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
}
|
|
@@ -159,12 +159,9 @@ body {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
.lios-content {
|
|
162
|
+
flex: 1;
|
|
162
163
|
width: 100%;
|
|
163
164
|
height: calc(100vh - 48px);
|
|
164
|
-
overflow-y: auto;
|
|
165
|
-
padding: 16px 16px 0;
|
|
166
|
-
display: flex;
|
|
167
|
-
flex-direction: column;
|
|
168
165
|
}
|
|
169
166
|
|
|
170
167
|
//用户卡片
|
|
@@ -174,7 +171,6 @@ body {
|
|
|
174
171
|
|
|
175
172
|
.user-info {
|
|
176
173
|
display: flex;
|
|
177
|
-
// justify-content: flex-start;
|
|
178
174
|
margin-bottom: 12px;
|
|
179
175
|
|
|
180
176
|
.author {
|
package/src/index.d.ts
CHANGED