@vtx/modals2 5.0.41 → 5.0.43
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.
|
@@ -29,7 +29,8 @@ export default (function (code, tabs) {
|
|
|
29
29
|
ready: !!code,
|
|
30
30
|
refreshDeps: [code]
|
|
31
31
|
}),
|
|
32
|
-
data = _useRequest.data
|
|
32
|
+
data = _useRequest.data,
|
|
33
|
+
loading = _useRequest.loading;
|
|
33
34
|
var tabConfig = (data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 || (_data$data = _data$data.popupConfigJson) === null || _data$data === void 0 ? void 0 : _data$data.filter(function (ele) {
|
|
34
35
|
return ele.display;
|
|
35
36
|
}).map(function (ele) {
|
|
@@ -47,6 +48,7 @@ export default (function (code, tabs) {
|
|
|
47
48
|
setTabsData(tabsC);
|
|
48
49
|
}, [JSON.stringify(tabConfig), visited, JSON.stringify(tabs)]);
|
|
49
50
|
return {
|
|
50
|
-
tabsData: tabsData
|
|
51
|
+
tabsData: tabsData,
|
|
52
|
+
loading: loading
|
|
51
53
|
};
|
|
52
54
|
});
|
|
@@ -225,6 +225,9 @@ var WorkRecord = function WorkRecord() {
|
|
|
225
225
|
});
|
|
226
226
|
},
|
|
227
227
|
dateValue: [state.startDate, state.endDate],
|
|
228
|
+
disabledDate: function disabledDate(current) {
|
|
229
|
+
return current && current > dayjs().endOf('day');
|
|
230
|
+
},
|
|
228
231
|
children: /*#__PURE__*/_jsxs(Row, {
|
|
229
232
|
children: [/*#__PURE__*/_jsx(Col, {
|
|
230
233
|
span: 12,
|
|
@@ -245,7 +245,8 @@ var VtxCarModal = function VtxCarModal(props) {
|
|
|
245
245
|
channels: channels
|
|
246
246
|
})), TABS_OIL, /*#__PURE__*/_jsx(Common.OilConsumption, {})), TABS_WATER, /*#__PURE__*/_jsx(Common.WaterConsumption, {})), TABS_MAINTENANCE, /*#__PURE__*/_jsx(Common.Maintenance, {})), TABS_DETAIL, /*#__PURE__*/_jsx(Common.DetailInfo, {})), TABS_DEVICE, /*#__PURE__*/_jsx(Common.DeviceInfo, {})), TABS_JXH_BASE, /*#__PURE__*/_jsx(JXH.BaseInfo, {})), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_contents, TABS_JXH_STATIC, /*#__PURE__*/_jsx(JXH.StaticInfo, {})), TABS_JXH_WORK, /*#__PURE__*/_jsx(JXH.WorkRecord, {})), TABS_JXH_ALARM, /*#__PURE__*/_jsx(JXH.AlarmInfo, {})), TABS_LJSY_BASE, /*#__PURE__*/_jsx(Ljsy.BaseInfo, {})), TABS_LJSY_STATIC, /*#__PURE__*/_jsx(Ljsy.StaticInfo, {})), TABS_LJSY_WORK, /*#__PURE__*/_jsx(Ljsy.WorkRecord, {})), TABS_LJSY_ALARM, /*#__PURE__*/_jsx(Ljsy.AlarmInfo, {})), TABS_CC_BASE, /*#__PURE__*/_jsx(Cc.BaseInfo, {})), TABS_CC_ORDER, /*#__PURE__*/_jsx(Cc.OrderInfo, {})), TABS_CC_STATIC, /*#__PURE__*/_jsx(Cc.StaticInfo, {})), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_contents, TABS_CC_WORK, /*#__PURE__*/_jsx(Cc.WorkRecord, {})), TABS_CC_ALARM, /*#__PURE__*/_jsx(Cc.AlarmInfo, {})), TABS_LJZY_BASE, /*#__PURE__*/_jsx(Ljzy.BaseInfo, {})), TABS_LJZY_STATIC, /*#__PURE__*/_jsx(Ljzy.StaticInfo, {})), TABS_LJZY_WORK, /*#__PURE__*/_jsx(Ljzy.WorkRecord, {})), TABS_JZLJ_CAR_BASE, /*#__PURE__*/_jsx(Jzlj.BaseInfo, {})), TABS_JZLJ_CAR_DISPOSE, /*#__PURE__*/_jsx(Jzlj.Dispose, {})), TABS_JZLJ_CAR_COLLECTION, /*#__PURE__*/_jsx(Jzlj.Collection, {})), TABS_JZLJ_CAR_ALARM, /*#__PURE__*/_jsx(Jzlj.Alarm, {})), TABS_JZLJ_CAR_RUNNING_CALENDAR, /*#__PURE__*/_jsx(Jzlj.RunCalendar, {})));
|
|
247
247
|
var _useGetConfig = useGetConfig(code, tabs),
|
|
248
|
-
tabsData = _useGetConfig.tabsData
|
|
248
|
+
tabsData = _useGetConfig.tabsData,
|
|
249
|
+
loading = _useGetConfig.loading;
|
|
249
250
|
var tabsList = useMemo(function () {
|
|
250
251
|
var tabsList = tabsData;
|
|
251
252
|
if (tabsList.findIndex(function (ele) {
|
|
@@ -322,7 +323,7 @@ var VtxCarModal = function VtxCarModal(props) {
|
|
|
322
323
|
color: info.carStatus === 'OFFLINE' ? 'red' : 'green',
|
|
323
324
|
value: info.carStatusStr
|
|
324
325
|
}],
|
|
325
|
-
contents: contents
|
|
326
|
+
contents: loading ? {} : contents
|
|
326
327
|
}), /*#__PURE__*/_jsx(VmIframeModal, _objectSpread(_objectSpread({}, iframeModalInfo), {}, {
|
|
327
328
|
theme: theme,
|
|
328
329
|
onCancel: function onCancel() {
|
package/package.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vtx/modals2",
|
|
3
|
-
"version": "5.0.
|
|
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
|
-
"react-tagcloud": "^2.3.3"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@ant-design/icons": "4.7.0",
|
|
33
|
-
"@babel/preset-react": "^7.28.5",
|
|
34
|
-
"@babel/runtime": "^7.6.3",
|
|
35
|
-
"@commitlint/cli": "^17.1.2",
|
|
36
|
-
"@commitlint/config-conventional": "^17.1.0",
|
|
37
|
-
"@types/lodash": "^4.14.202",
|
|
38
|
-
"@types/qs": "^6.9.11",
|
|
39
|
-
"@types/react": "^18.0.0",
|
|
40
|
-
"@types/react-dom": "^18.0.0",
|
|
41
|
-
"@umijs/lint": "^4.0.0",
|
|
42
|
-
"@vtx/components": "^3.1.166",
|
|
43
|
-
"@vtx/ol-map": "^1.0.151",
|
|
44
|
-
"@vtx/player": "latest",
|
|
45
|
-
"@vtx/utils": "^1.0.20",
|
|
46
|
-
"ahooks": "^3.1.5",
|
|
47
|
-
"antd": "^4.24.16",
|
|
48
|
-
"antd-dayjs-webpack-plugin": "^1.0.6",
|
|
49
|
-
"axios": "^0.21.1",
|
|
50
|
-
"babel-eslint": "^10.1.0",
|
|
51
|
-
"babel-plugin-import": "^1.13.8",
|
|
52
|
-
"dayjs": "^1.11.10",
|
|
53
|
-
"dumi": "^2.2.13",
|
|
54
|
-
"echarts": "^5.3.2",
|
|
55
|
-
"echarts-for-react": "3.0.2",
|
|
56
|
-
"echarts-liquidfill": "^3.1.0",
|
|
57
|
-
"eslint": "^8.23.0",
|
|
58
|
-
"father": "^4.1.0",
|
|
59
|
-
"husky": "^8.0.1",
|
|
60
|
-
"lint-staged": "^13.0.3",
|
|
61
|
-
"lodash": "^4.17.21",
|
|
62
|
-
"prettier": "^2.7.1",
|
|
63
|
-
"prettier-plugin-organize-imports": "^3.0.0",
|
|
64
|
-
"prettier-plugin-packagejson": "^2.2.18",
|
|
65
|
-
"qs": "^6.0.0",
|
|
66
|
-
"react": "^18.0.0",
|
|
67
|
-
"react-dom": "^18.0.0",
|
|
68
|
-
"stylelint": "^14.9.1"
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"react": ">=16.9.0",
|
|
72
|
-
"react-dom": ">=16.9.0"
|
|
73
|
-
},
|
|
74
|
-
"publishConfig": {
|
|
75
|
-
"access": "public"
|
|
76
|
-
},
|
|
77
|
-
"authors": []
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@vtx/modals2",
|
|
3
|
+
"version": "5.0.43",
|
|
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
|
+
"react-tagcloud": "^2.3.3"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@ant-design/icons": "4.7.0",
|
|
33
|
+
"@babel/preset-react": "^7.28.5",
|
|
34
|
+
"@babel/runtime": "^7.6.3",
|
|
35
|
+
"@commitlint/cli": "^17.1.2",
|
|
36
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
37
|
+
"@types/lodash": "^4.14.202",
|
|
38
|
+
"@types/qs": "^6.9.11",
|
|
39
|
+
"@types/react": "^18.0.0",
|
|
40
|
+
"@types/react-dom": "^18.0.0",
|
|
41
|
+
"@umijs/lint": "^4.0.0",
|
|
42
|
+
"@vtx/components": "^3.1.166",
|
|
43
|
+
"@vtx/ol-map": "^1.0.151",
|
|
44
|
+
"@vtx/player": "latest",
|
|
45
|
+
"@vtx/utils": "^1.0.20",
|
|
46
|
+
"ahooks": "^3.1.5",
|
|
47
|
+
"antd": "^4.24.16",
|
|
48
|
+
"antd-dayjs-webpack-plugin": "^1.0.6",
|
|
49
|
+
"axios": "^0.21.1",
|
|
50
|
+
"babel-eslint": "^10.1.0",
|
|
51
|
+
"babel-plugin-import": "^1.13.8",
|
|
52
|
+
"dayjs": "^1.11.10",
|
|
53
|
+
"dumi": "^2.2.13",
|
|
54
|
+
"echarts": "^5.3.2",
|
|
55
|
+
"echarts-for-react": "3.0.2",
|
|
56
|
+
"echarts-liquidfill": "^3.1.0",
|
|
57
|
+
"eslint": "^8.23.0",
|
|
58
|
+
"father": "^4.1.0",
|
|
59
|
+
"husky": "^8.0.1",
|
|
60
|
+
"lint-staged": "^13.0.3",
|
|
61
|
+
"lodash": "^4.17.21",
|
|
62
|
+
"prettier": "^2.7.1",
|
|
63
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
|
64
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
|
65
|
+
"qs": "^6.0.0",
|
|
66
|
+
"react": "^18.0.0",
|
|
67
|
+
"react-dom": "^18.0.0",
|
|
68
|
+
"stylelint": "^14.9.1"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"react": ">=16.9.0",
|
|
72
|
+
"react-dom": ">=16.9.0"
|
|
73
|
+
},
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public"
|
|
76
|
+
},
|
|
77
|
+
"authors": []
|
|
78
|
+
}
|