@vtx/modals2 5.0.53 → 5.0.55

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.
@@ -19,6 +19,7 @@ import VtxRestaurantModal from "../vtx-restaurant-modal";
19
19
  import { AlarmInfo, BaseInfo, Calendar, ExceptionInfo, Restaurant, SyInfo } from "./components";
20
20
  import "./style";
21
21
  import { VmCustom } from "../_components";
22
+ import dayjs from 'dayjs';
22
23
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
23
24
  var TABS_BASE = 'base';
24
25
  var TABS_SY = 'sy';
@@ -14,6 +14,7 @@ import { request } from '@vtx/utils';
14
14
  import { useEffect, useState } from 'react';
15
15
  import VmCustom from "../_components/vm-custom";
16
16
  import VtxBaseModal from "../vtx-base-modal";
17
+ import VtxDefaultModal from "../vtx-default-modal";
17
18
  import { Appraise, Base, Build, File, Score } from "./components";
18
19
  import "./style";
19
20
 
@@ -88,7 +89,7 @@ export default (function (props) {
88
89
  });
89
90
  }
90
91
  return /*#__PURE__*/_jsx(_Fragment, {
91
- children: visible && /*#__PURE__*/_jsx(VtxBaseModal, {
92
+ children: visible && config !== null && config !== void 0 && config.length ? /*#__PURE__*/_jsx(VtxBaseModal, {
92
93
  type: "wr",
93
94
  visible: visible,
94
95
  theme: theme,
@@ -114,6 +115,12 @@ export default (function (props) {
114
115
  }].filter(function (item) {
115
116
  return !!item;
116
117
  })
118
+ }) : /*#__PURE__*/_jsx(VtxDefaultModal, {
119
+ visible: visible,
120
+ theme: theme,
121
+ title: title,
122
+ id: id,
123
+ onCancel: onCancel
117
124
  })
118
125
  });
119
126
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/modals2",
3
- "version": "5.0.53",
3
+ "version": "5.0.55",
4
4
  "description": "弹窗组件",
5
5
  "license": "MIT",
6
6
  "module": "lib/index.js",