@vtx/modals2 5.0.64 → 5.0.65

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.
@@ -137,7 +137,7 @@ var BarCharts = function BarCharts(_ref) {
137
137
  type: 'bar',
138
138
  data: item.data,
139
139
  yAxisIndex: item.yAxisIndex || 0,
140
- barWidth: 18,
140
+ barMaxWidth: 18,
141
141
  itemStyle: {
142
142
  color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
143
143
  offset: 1,
@@ -1,27 +1,27 @@
1
- .vm-car-statistics {
2
- width: 208px;
3
- height: 84px;
4
- display: flex;
5
- flex-direction: column;
6
- justify-content: space-between;
7
- padding: 20px;
8
- background-size: 100% 100%;
9
- &-label {
10
- color: var(--img-text-color);
11
- }
12
- &-value, &-unit {
13
- color: #1f1f1f;
14
- }
15
- &.vm-car-statistics-dark {
16
- .vm-car-statistics-value,.vm-car-statistics-unit {
17
- background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
18
- background-clip: text;
19
- -webkit-text-fill-color: transparent;
20
- }
21
- }
22
- &-value {
23
- font-size: 20px;
24
- font-weight: bold;
25
- margin-right: 4px;
26
- }
27
- }
1
+ .vm-car-statistics {
2
+ width: 208px;
3
+ height: 84px;
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: space-between;
7
+ padding: 20px;
8
+ background-size: 100% 100%;
9
+ &-label {
10
+ color: var(--img-text-color);
11
+ }
12
+ &-value, &-unit {
13
+ color: #1f1f1f;
14
+ }
15
+ &.vm-car-statistics-dark {
16
+ .vm-car-statistics-value,.vm-car-statistics-unit {
17
+ background: linear-gradient(180deg, #ffffff 0%, #119FFB 100%);
18
+ background-clip: text;
19
+ -webkit-text-fill-color: transparent;
20
+ }
21
+ }
22
+ &-value {
23
+ font-size: 20px;
24
+ font-weight: bold;
25
+ margin-right: 4px;
26
+ }
27
+ }
@@ -1,11 +1,11 @@
1
- .vm-factor-list-wrap {
2
- display: flex;
3
- padding: 12px 16px;
4
- height: 68px;
5
- background: #F3F8FF;
6
- border-radius: 8px;
7
- gap: 26px;
8
- &.dark {
9
- background: rgba(0,136,240,0.15);
10
- }
11
- }
1
+ .vm-factor-list-wrap {
2
+ display: flex;
3
+ padding: 12px 16px;
4
+ height: 68px;
5
+ background: #F3F8FF;
6
+ border-radius: 8px;
7
+ gap: 26px;
8
+ &.dark {
9
+ background: rgba(0,136,240,0.15);
10
+ }
11
+ }
@@ -1,6 +1,6 @@
1
- .vm-car-map-wrap {
2
- flex: 1;
3
- min-height: 0;
4
- width: 100%;
5
- margin-top: 10px;
6
- }
1
+ .vm-car-map-wrap {
2
+ flex: 1;
3
+ min-height: 0;
4
+ width: 100%;
5
+ margin-top: 10px;
6
+ }
@@ -1,6 +1,6 @@
1
- .vtx-car-oil-wrap {
2
- height: 100%;
3
- display: flex;
4
- gap: 16px;
5
- flex-direction: column;
6
- }
1
+ .vtx-car-oil-wrap {
2
+ height: 100%;
3
+ display: flex;
4
+ gap: 16px;
5
+ flex-direction: column;
6
+ }
@@ -1,6 +1,6 @@
1
- .vtx-car-water-wrap {
2
- height: 100%;
3
- display: flex;
4
- gap: 16px;
5
- flex-direction: column;
6
- }
1
+ .vtx-car-water-wrap {
2
+ height: 100%;
3
+ display: flex;
4
+ gap: 16px;
5
+ flex-direction: column;
6
+ }
@@ -1,6 +1,6 @@
1
- .vm-cc-unit-map-wrap {
2
- flex: 1;
3
- min-height: 230px;
4
- width: 100%;
5
- margin-top: 10px;
6
- }
1
+ .vm-cc-unit-map-wrap {
2
+ flex: 1;
3
+ min-height: 230px;
4
+ width: 100%;
5
+ margin-top: 10px;
6
+ }
@@ -1,66 +1,66 @@
1
- .vtx-device-analysis-dot {
2
- width: 6px;
3
- height: 6px;
4
- background: var(--green-color);
5
- border-radius: 50%;
6
- &.error {
7
- background: var(--red-color);
8
- }
9
- }
10
-
11
- .vtx-device-analysis-tabs {
12
- display: flex;
13
- gap: 16px;
14
- color: var(--modal-title-color);
15
- font-size: 14px;
16
- &-item {
17
- cursor: pointer;
18
- &.active {
19
- color: var(--blue-color);
20
- }
21
- }
22
- }
23
-
24
- .vtx-device-alarm-summary {
25
- width: 368px;
26
- height: 104px;
27
- padding: 20px;
28
- margin-bottom: 20px;
29
- color: var(--modal-title-color);
30
- display: flex;
31
- justify-content: space-between;
32
- flex-direction: column;
33
- cursor: pointer;
34
- background-image: url("../../imgs/current.png");
35
- background-size: 100% 100%;
36
- border-radius: 8px;
37
- border: 1px solid transparent;
38
- &-lable {
39
- font-size: 16px;
40
- font-weight: 600;
41
- }
42
- &-value {
43
- font-weight: 600;
44
- font-size: 24px;
45
- color: var(--red-color);
46
- }
47
- &.dark {
48
- background-image: url("../../imgs/current_dark.png");
49
- &:last-child {
50
- background-image: url("../../imgs/history_dark.png");
51
- }
52
- }
53
- &.active {
54
- border:1px solid var(--red-color);
55
- }
56
- &:last-child {
57
- margin-bottom: 0;
58
- background-image: url("../../imgs/history.png");
59
- .vtx-device-alarm-summary-value {
60
- color: var(--yellow-color);
61
- }
62
- &.active {
63
- border:1px solid var(--yellow-color);
64
- }
65
- }
66
- }
1
+ .vtx-device-analysis-dot {
2
+ width: 6px;
3
+ height: 6px;
4
+ background: var(--green-color);
5
+ border-radius: 50%;
6
+ &.error {
7
+ background: var(--red-color);
8
+ }
9
+ }
10
+
11
+ .vtx-device-analysis-tabs {
12
+ display: flex;
13
+ gap: 16px;
14
+ color: var(--modal-title-color);
15
+ font-size: 14px;
16
+ &-item {
17
+ cursor: pointer;
18
+ &.active {
19
+ color: var(--blue-color);
20
+ }
21
+ }
22
+ }
23
+
24
+ .vtx-device-alarm-summary {
25
+ width: 368px;
26
+ height: 104px;
27
+ padding: 20px;
28
+ margin-bottom: 20px;
29
+ color: var(--modal-title-color);
30
+ display: flex;
31
+ justify-content: space-between;
32
+ flex-direction: column;
33
+ cursor: pointer;
34
+ background-image: url("../../imgs/current.png");
35
+ background-size: 100% 100%;
36
+ border-radius: 8px;
37
+ border: 1px solid transparent;
38
+ &-lable {
39
+ font-size: 16px;
40
+ font-weight: 600;
41
+ }
42
+ &-value {
43
+ font-weight: 600;
44
+ font-size: 24px;
45
+ color: var(--red-color);
46
+ }
47
+ &.dark {
48
+ background-image: url("../../imgs/current_dark.png");
49
+ &:last-child {
50
+ background-image: url("../../imgs/history_dark.png");
51
+ }
52
+ }
53
+ &.active {
54
+ border:1px solid var(--red-color);
55
+ }
56
+ &:last-child {
57
+ margin-bottom: 0;
58
+ background-image: url("../../imgs/history.png");
59
+ .vtx-device-alarm-summary-value {
60
+ color: var(--yellow-color);
61
+ }
62
+ &.active {
63
+ border:1px solid var(--yellow-color);
64
+ }
65
+ }
66
+ }
@@ -1,16 +1,16 @@
1
- .vtx-restaurant-rule_item {
2
- border-radius: 8px 8px 8px 8px;
3
- border: 1px solid var(--gray-line-color);
4
- padding: 16px 16px 8px;
5
- margin-top: 12px;
6
- position: relative;
7
- .vtx-restaurant-border {
8
- width: 100%;
9
- position: absolute;
10
- left: 0;
11
- top: -2px;
12
- height: 44px;
13
- border-radius: 8px 8px 0px 0px;
14
- border-top: 2px solid var(--blue-color);
15
- }
16
- }
1
+ .vtx-restaurant-rule_item {
2
+ border-radius: 8px 8px 8px 8px;
3
+ border: 1px solid var(--gray-line-color);
4
+ padding: 16px 16px 8px;
5
+ margin-top: 12px;
6
+ position: relative;
7
+ .vtx-restaurant-border {
8
+ width: 100%;
9
+ position: absolute;
10
+ left: 0;
11
+ top: -2px;
12
+ height: 44px;
13
+ border-radius: 8px 8px 0px 0px;
14
+ border-top: 2px solid var(--blue-color);
15
+ }
16
+ }
@@ -223,8 +223,8 @@ var Work = function Work(props) {
223
223
  var query = buildIframeQuery(location.href.split('?')[1], {
224
224
  carId: record.workCarId,
225
225
  theme: theme === 'blue' ? 'dark' : theme,
226
- startTime: dayjs(date).format('YYYY-MM-DD 00:00:00'),
227
- endTime: dayjs(date).format('YYYY-MM-DD 23:59:59')
226
+ startTime: dayjs(day).format('YYYY-MM-DD 00:00:00'),
227
+ endTime: dayjs(day).format('YYYY-MM-DD 23:59:59')
228
228
  });
229
229
  var src = "".concat(prefix, "/carHistory/#/zyqsLaneHistory?").concat(query);
230
230
  setIframeModalInfo({
@@ -57,6 +57,9 @@ var Calendar = function Calendar(_ref) {
57
57
  }
58
58
  var dateCellRender = function dateCellRender(value) {
59
59
  var date = dayjs(value).format('YYYY-MM-DD');
60
+ if (dayjs().isBefore(dayjs(value))) {
61
+ return null;
62
+ }
60
63
  var info = calendarInfo[date];
61
64
  var _ref2 = info || {},
62
65
  planMileage = _ref2.planMileage,
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "name": "@vtx/modals2",
3
- "version": "5.0.64",
4
- "description": "弹窗组件",
5
- "license": "MIT",
6
- "module": "lib/index.js",
7
- "types": "lib/index.d.ts",
8
- "files": [
9
- "lib"
10
- ],
11
- "scripts": {
12
- "build": "father build",
13
- "build:watch": "father dev",
14
- "dev": "dumi dev",
15
- "docs:build": "dumi build",
16
- "docs:preview": "dumi preview",
17
- "doctor": "father doctor",
18
- "lint": "npm run lint:es && npm run lint:css",
19
- "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
20
- "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
21
- "prepare": "husky install && dumi setup",
22
- "prepublishOnly": "npm run build",
23
- "start": "npm run dev"
24
- },
25
- "dependencies": {
26
- "base-64": "^1.0.0",
27
- "htmr": "^1.0.2",
28
- "number-precision": "^1.6.0",
29
- "proj4": "^2.20.8",
30
- "react-tagcloud": "^2.3.3"
31
- },
32
- "devDependencies": {
33
- "@ant-design/icons": "4.7.0",
34
- "@babel/preset-react": "^7.28.5",
35
- "@babel/runtime": "^7.6.3",
36
- "@commitlint/cli": "^17.1.2",
37
- "@commitlint/config-conventional": "^17.1.0",
38
- "@turf/turf": "^7.3.4",
39
- "@types/lodash": "^4.14.202",
40
- "@types/qs": "^6.9.11",
41
- "@types/react": "^18.0.0",
42
- "@types/react-dom": "^18.0.0",
43
- "@umijs/lint": "^4.0.0",
44
- "@vtx/components": "^3.1.166",
45
- "@vtx/ol-map": "^1.0.170",
46
- "@vtx/player": "latest",
47
- "@vtx/utils": "1.0.29",
48
- "ahooks": "^3.1.5",
49
- "antd": "^4.24.16",
50
- "antd-dayjs-webpack-plugin": "^1.0.6",
51
- "axios": "^0.21.1",
52
- "babel-eslint": "^10.1.0",
53
- "babel-plugin-import": "^1.13.8",
54
- "dayjs": "^1.11.10",
55
- "dumi": "^2.2.13",
56
- "echarts": "^5.3.2",
57
- "echarts-for-react": "3.0.2",
58
- "echarts-liquidfill": "^3.1.0",
59
- "eslint": "^8.23.0",
60
- "father": "^4.1.0",
61
- "husky": "^8.0.1",
62
- "lint-staged": "^13.0.3",
63
- "lodash": "^4.17.21",
64
- "ol": "6.15.1",
65
- "prettier": "^2.7.1",
66
- "prettier-plugin-organize-imports": "^3.0.0",
67
- "prettier-plugin-packagejson": "^2.2.18",
68
- "qs": "^6.0.0",
69
- "react": "^18.0.0",
70
- "react-dom": "^18.0.0",
71
- "stylelint": "^14.9.1"
72
- },
73
- "peerDependencies": {
74
- "react": ">=16.9.0",
75
- "react-dom": ">=16.9.0"
76
- },
77
- "publishConfig": {
78
- "access": "public"
79
- },
80
- "authors": []
81
- }
1
+ {
2
+ "name": "@vtx/modals2",
3
+ "version": "5.0.65",
4
+ "description": "弹窗组件",
5
+ "license": "MIT",
6
+ "module": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "files": [
9
+ "lib"
10
+ ],
11
+ "scripts": {
12
+ "build": "father build",
13
+ "build:watch": "father dev",
14
+ "dev": "dumi dev",
15
+ "docs:build": "dumi build",
16
+ "docs:preview": "dumi preview",
17
+ "doctor": "father doctor",
18
+ "lint": "npm run lint:es && npm run lint:css",
19
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
20
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
21
+ "prepare": "husky install && dumi setup",
22
+ "prepublishOnly": "npm run build",
23
+ "start": "npm run dev"
24
+ },
25
+ "dependencies": {
26
+ "base-64": "^1.0.0",
27
+ "htmr": "^1.0.2",
28
+ "number-precision": "^1.6.0",
29
+ "proj4": "^2.20.8",
30
+ "react-tagcloud": "^2.3.3"
31
+ },
32
+ "devDependencies": {
33
+ "@ant-design/icons": "4.7.0",
34
+ "@babel/preset-react": "^7.28.5",
35
+ "@babel/runtime": "^7.6.3",
36
+ "@commitlint/cli": "^17.1.2",
37
+ "@commitlint/config-conventional": "^17.1.0",
38
+ "@turf/turf": "^7.3.4",
39
+ "@types/lodash": "^4.14.202",
40
+ "@types/qs": "^6.9.11",
41
+ "@types/react": "^18.0.0",
42
+ "@types/react-dom": "^18.0.0",
43
+ "@umijs/lint": "^4.0.0",
44
+ "@vtx/components": "^3.1.166",
45
+ "@vtx/ol-map": "^1.0.170",
46
+ "@vtx/player": "latest",
47
+ "@vtx/utils": "1.0.29",
48
+ "ahooks": "^3.1.5",
49
+ "antd": "^4.24.16",
50
+ "antd-dayjs-webpack-plugin": "^1.0.6",
51
+ "axios": "^0.21.1",
52
+ "babel-eslint": "^10.1.0",
53
+ "babel-plugin-import": "^1.13.8",
54
+ "dayjs": "^1.11.10",
55
+ "dumi": "^2.2.13",
56
+ "echarts": "^5.3.2",
57
+ "echarts-for-react": "3.0.2",
58
+ "echarts-liquidfill": "^3.1.0",
59
+ "eslint": "^8.23.0",
60
+ "father": "^4.1.0",
61
+ "husky": "^8.0.1",
62
+ "lint-staged": "^13.0.3",
63
+ "lodash": "^4.17.21",
64
+ "ol": "6.15.1",
65
+ "prettier": "^2.7.1",
66
+ "prettier-plugin-organize-imports": "^3.0.0",
67
+ "prettier-plugin-packagejson": "^2.2.18",
68
+ "qs": "^6.0.0",
69
+ "react": "^18.0.0",
70
+ "react-dom": "^18.0.0",
71
+ "stylelint": "^14.9.1"
72
+ },
73
+ "peerDependencies": {
74
+ "react": ">=16.9.0",
75
+ "react-dom": ">=16.9.0"
76
+ },
77
+ "publishConfig": {
78
+ "access": "public"
79
+ },
80
+ "authors": []
81
+ }