@vtx/modals2 5.0.55 → 5.0.56
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.
|
@@ -11,15 +11,15 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11
11
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { useMemoizedFn } from 'ahooks';
|
|
14
|
+
import dayjs from 'dayjs';
|
|
14
15
|
import React, { useMemo, useState } from 'react';
|
|
16
|
+
import { VmCustom } from "../_components";
|
|
15
17
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
16
18
|
import VtxBaseModal from "../vtx-base-modal";
|
|
17
19
|
import VtxCarModal from "../vtx-car-modal";
|
|
18
20
|
import VtxRestaurantModal from "../vtx-restaurant-modal";
|
|
19
21
|
import { AlarmInfo, BaseInfo, Calendar, ExceptionInfo, Restaurant, SyInfo } from "./components";
|
|
20
22
|
import "./style";
|
|
21
|
-
import { VmCustom } from "../_components";
|
|
22
|
-
import dayjs from 'dayjs';
|
|
23
23
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
var TABS_BASE = 'base';
|
|
25
25
|
var TABS_SY = 'sy';
|
|
@@ -97,6 +97,7 @@ var VtxCcCpModal = function VtxCcCpModal(props) {
|
|
|
97
97
|
date: date
|
|
98
98
|
};
|
|
99
99
|
}, [id, date]);
|
|
100
|
+
var tabContents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {})), TABS_RESTAURANT, /*#__PURE__*/_jsx(Restaurant, {})), TABS_SY, /*#__PURE__*/_jsx(SyInfo, {})), TABS_WARNNING, /*#__PURE__*/_jsx(AlarmInfo, {})), TABS_EXECEPTION, /*#__PURE__*/_jsx(ExceptionInfo, {})), TABS_CALENDAR, /*#__PURE__*/_jsx(Calendar, {}));
|
|
100
101
|
// 自定义页签可配置多个,包含custom即可
|
|
101
102
|
if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
|
|
102
103
|
tabsData.forEach(function (ele) {
|
|
@@ -119,7 +120,7 @@ var VtxCcCpModal = function VtxCcCpModal(props) {
|
|
|
119
120
|
tabs: tabsData,
|
|
120
121
|
tabChose: tabChose,
|
|
121
122
|
date: date,
|
|
122
|
-
contents:
|
|
123
|
+
contents: tabContents
|
|
123
124
|
})
|
|
124
125
|
}), carModal.visible && /*#__PURE__*/_jsx(VtxCarModal, _objectSpread(_objectSpread({}, carModal), {}, {
|
|
125
126
|
theme: theme,
|