@gm-pc/frame 1.7.5-alpha.0 → 1.8.0-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gm-pc/frame",
3
- "version": "1.7.5-alpha.0",
3
+ "version": "1.8.0-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.7.4-alpha.0",
26
+ "@gm-pc/react": "^1.8.0-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": "237e2df9914ca8c0320b5575738debcbd829fa0c"
34
+ "gitHead": "9bce7f92e1098221071c39a89a77d6080e5909b0"
35
35
  }
@@ -10,6 +10,7 @@ interface FrameworkProps {
10
10
  showMobileMenu?: boolean
11
11
  isFullScreen?: boolean
12
12
  children: ReactNode
13
+ className?: string
13
14
  }
14
15
 
15
16
  interface FrameworkStatic {
@@ -35,6 +36,7 @@ const Framework: FC<FrameworkProps> & FrameworkStatic = ({
35
36
  menu,
36
37
  rightTop,
37
38
  children,
39
+ className,
38
40
  }) => {
39
41
  const addOverflowClass = () => {
40
42
  let flag: any = window.document.body.dataset.overflowFlag || 0
@@ -65,9 +67,13 @@ const Framework: FC<FrameworkProps> & FrameworkStatic = ({
65
67
 
66
68
  return (
67
69
  <div
68
- className={classNames('gm-framework', {
69
- 'gm-framework-mobile-menu': showMobileMenu,
70
- })}
70
+ className={classNames(
71
+ 'gm-framework',
72
+ {
73
+ 'gm-framework-mobile-menu': showMobileMenu,
74
+ },
75
+ className
76
+ )}
71
77
  >
72
78
  <div className='gm-framework-inner'>
73
79
  {isFullScreen ? (
package/src/index.less CHANGED
@@ -1,8 +1,8 @@
1
1
  @import '~@gm-pc/react/src/var.less';
2
2
 
3
3
  :root {
4
- --gm-framework-size-left-width: 92px;
5
- --gm-framework-size-top-right-height: 50px;
4
+ --gm-framework-size-left-width: 136px;
5
+ --gm-framework-size-top-right-height: 64px;
6
6
  --gm-framework-z-index-tabs-head: 101;
7
7
  }
8
8