module-menu 0.1.0 → 0.1.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/.umirc.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineConfig } from 'umi';
2
- // const {defineConfig} = require('umi');
1
+ // import { defineConfig } from 'umi';
2
+ const { defineConfig } = require('umi');
3
3
  module.exports = defineConfig({
4
4
  nodeModulesTransform: {
5
5
  type: 'none',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "城市大数据平台菜单",
5
5
  "scripts": {
6
6
  "start": "umi dev",
@@ -14,6 +14,8 @@
14
14
  "pre-commit": "lint-staged"
15
15
  },
16
16
  "lint-staged": {
17
+ "**/*.less": "stylelint --syntax less",
18
+ "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
17
19
  "*.{js,jsx,less,md,json}": [
18
20
  "prettier --write"
19
21
  ],
@@ -23,19 +25,19 @@
23
25
  },
24
26
  "dependencies": {
25
27
  "@ant-design/pro-layout": "^6.5.0",
26
- "antd": "^5.6.1",
27
- "react": "17.x",
28
- "react-dom": "17.x",
29
- "umi": "^3.5.41"
28
+ "antd": "^4.17.0",
29
+ "react": "^17.0.0",
30
+ "react-dom": "^17.0.0",
31
+ "umi": "^3.5.0"
30
32
  },
31
33
  "devDependencies": {
32
34
  "@types/react": "^17.0.0",
33
35
  "@types/react-dom": "^17.0.0",
34
- "@umijs/preset-react": "1.x",
36
+ "@umijs/preset-react": "^1.8.17",
35
37
  "@umijs/test": "^3.5.41",
36
- "lint-staged": "^10.0.7",
37
- "prettier": "^2.2.0",
38
- "typescript": "^4.1.2",
38
+ "lint-staged": "^10.0.0",
39
+ "prettier": "^2.3.2",
40
+ "typescript": "^4.2.2",
39
41
  "yorkie": "^2.0.0"
40
42
  }
41
43
  }
@@ -23,8 +23,7 @@
23
23
  .leftMenu{
24
24
  width: 100px;
25
25
  height: 60px;
26
- padding: 0px 35px;
27
- line-height: 60px;
26
+ line-height: 55px;
28
27
  float: left;
29
28
  color: rgba(0, 0, 0, 0.85);
30
29
  font-size: 16px;
@@ -45,25 +44,34 @@
45
44
  color: #4091F7;
46
45
  }
47
46
  .childMenu{
48
- width: 27%;
47
+ width: 29%;
49
48
  display: inline-block;
50
49
  padding-top: 15px;
51
50
  }
52
51
  .middle{
53
52
  vertical-align: middle;
54
53
  }
54
+ .middle:hover{
55
+ color: #4091F7;
56
+ }
55
57
  .menuIcon{
56
- width: 60px;
57
- height: 50px;
58
58
  text-align: center;
59
59
  display: inline-block;
60
- line-height: 67px;
61
60
  cursor: pointer;
61
+ padding: 10px;
62
62
  background-color: #4091F7;
63
63
  }
64
64
  .ant-popover .ant-popover-inner {
65
65
  border-radius: 0px;
66
66
  }
67
67
  .ant-popover {
68
- left: 69px !important;
68
+ padding-left: 53px !important;
69
+ left: 0px !important;
70
+ }
71
+ .ant-popover-buttons{
72
+ bottom: 0px !important;
73
+ display: none;
74
+ }
75
+ .ant-popover-message{
76
+ padding: 0px !important;
69
77
  }