@gm-pc/frame 1.13.1 → 1.13.3-alpha.1
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 +3 -3
- package/src/component/framework.tsx +14 -12
- package/src/index.less +10 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gm-pc/frame",
|
|
3
|
-
"version": "1.13.1",
|
|
3
|
+
"version": "1.13.3-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "liyatang <liyatang@qq.com>",
|
|
6
6
|
"homepage": "https://github.com/gmfe/gm-pc#readme",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@gm-common/tool": "^2.10.0",
|
|
26
|
-
"@gm-pc/react": "^1.13.1",
|
|
26
|
+
"@gm-pc/react": "^1.13.3-alpha.1",
|
|
27
27
|
"classnames": "^2.2.5",
|
|
28
28
|
"lodash": "^4.17.19"
|
|
29
29
|
},
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"react": "^16.14.0",
|
|
32
32
|
"react-dom": "^16.14.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "4605da606ef3651da81968ad6802fae8806a10d6"
|
|
35
35
|
}
|
|
@@ -76,19 +76,21 @@ const Framework: FC<FrameworkProps> & FrameworkStatic = ({
|
|
|
76
76
|
)}
|
|
77
77
|
>
|
|
78
78
|
<div className='gm-framework-inner'>
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
79
|
+
<div className='gm-framework-full-height'>
|
|
80
|
+
<Flex className='gm-framework-container'>
|
|
81
|
+
{menu && <div className='gm-framework-left'>{menu}</div>}
|
|
82
|
+
<Flex flex column className='gm-framework-right'>
|
|
83
|
+
{rightTop && <div className='gm-framework-right-top'>{rightTop}</div>}
|
|
84
|
+
<div
|
|
85
|
+
className={classNames('gm-framework-content', {
|
|
86
|
+
'gm-framework-content-fullscreen': isFullScreen,
|
|
87
|
+
})}
|
|
88
|
+
>
|
|
89
|
+
{children}
|
|
90
|
+
</div>
|
|
89
91
|
</Flex>
|
|
90
|
-
</
|
|
91
|
-
|
|
92
|
+
</Flex>
|
|
93
|
+
</div>
|
|
92
94
|
</div>
|
|
93
95
|
</div>
|
|
94
96
|
)
|
package/src/index.less
CHANGED
|
@@ -123,6 +123,15 @@
|
|
|
123
123
|
height: calc(100vh - var(--gm-framework-size-top-right-height));
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
.gm-framework-content-fullscreen {
|
|
127
|
+
position: fixed;
|
|
128
|
+
left: 0;
|
|
129
|
+
top: 0;
|
|
130
|
+
width: 100vw;
|
|
131
|
+
height: 100vh;
|
|
132
|
+
z-index: 999;
|
|
133
|
+
}
|
|
134
|
+
|
|
126
135
|
.gm-framework-full-tabs {
|
|
127
136
|
min-height: calc(100% - var(--gm-framework-size-top-right-height));
|
|
128
137
|
|
|
@@ -133,7 +142,7 @@
|
|
|
133
142
|
.gm-framework-full-tabs-head {
|
|
134
143
|
position: fixed;
|
|
135
144
|
right: 0;
|
|
136
|
-
top:
|
|
145
|
+
top: var(--gm-framework-size-top-right-height);
|
|
137
146
|
left: var(--gm-framework-size-left-width);
|
|
138
147
|
z-index: 10;
|
|
139
148
|
height: 40px;
|