@vtx/modals2 5.0.42 → 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
|
});
|
|
@@ -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() {
|