module-menu 0.2.16 → 0.2.17

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": "module-menu",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
@@ -186,13 +186,30 @@ const ModuleMenu = ({ sysName, stash }) => {
186
186
  <div
187
187
  key={item.name}
188
188
  className="cardLine"
189
- style={{ height: item.children.length > 3 ? '90px' : '' }}
189
+ style={{
190
+ height:
191
+ item.children.length > 6
192
+ ? '140px'
193
+ : item.children.length > 3
194
+ ? '90px'
195
+ : '',
196
+ }}
190
197
  >
191
198
  <div
192
199
  className="leftMenu"
193
200
  style={{
194
- height: item.children.length > 3 ? '96px' : '70px',
195
- lineHeight: item.children.length > 3 ? '45px' : '70px',
201
+ height:
202
+ item.children.length > 6
203
+ ? '140px'
204
+ : item.children.length > 3
205
+ ? '96px'
206
+ : '70px',
207
+ lineHeight:
208
+ item.children.length > 6
209
+ ? '140px'
210
+ : item.children.length > 3
211
+ ? '45px'
212
+ : '70px',
196
213
  }}
197
214
  >
198
215
  <img src={item.url} className="middle" />
@@ -208,8 +225,18 @@ const ModuleMenu = ({ sysName, stash }) => {
208
225
  <div
209
226
  className="rightMenu"
210
227
  style={{
211
- height: item.children.length > 3 ? '96px' : '70px',
212
- lineHeight: item.children.length > 3 ? '45px' : '70px',
228
+ height:
229
+ item.children.length > 6
230
+ ? '140px'
231
+ : item.children.length > 3
232
+ ? '96px'
233
+ : '70px',
234
+ lineHeight:
235
+ item.children.length > 6
236
+ ? '140px'
237
+ : item.children.length > 3
238
+ ? '45px'
239
+ : '70px',
213
240
  borderBottom:
214
241
  index === menuList.length - 1 ? '0px' : '1px solid #E9E9E9',
215
242
  }}