@vtx/modals2 5.0.9 → 5.0.11

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.
Files changed (121) hide show
  1. package/lib/index.js +2 -1
  2. package/lib/vtx-base-modal/index.js +16 -2
  3. package/lib/vtx-housing-estate-modal/components/Alarm/index.js +0 -1
  4. package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +139 -0
  5. package/lib/vtx-housing-estate-modal/components/Sbzj/index.less +73 -0
  6. package/lib/vtx-housing-estate-modal/components/index.js +1 -0
  7. package/lib/vtx-housing-estate-modal/imgs/aibox.png +0 -0
  8. package/lib/vtx-housing-estate-modal/imgs/aibox_light.png +0 -0
  9. package/lib/vtx-housing-estate-modal/imgs/android.png +0 -0
  10. package/lib/vtx-housing-estate-modal/imgs/android_light.png +0 -0
  11. package/lib/vtx-housing-estate-modal/imgs/sbzj_tfd.png +0 -0
  12. package/lib/vtx-housing-estate-modal/imgs/sbzj_tfd_light.png +0 -0
  13. package/lib/vtx-housing-estate-modal/imgs/sbzj_video.png +0 -0
  14. package/lib/vtx-housing-estate-modal/imgs/sbzj_video_light.png +0 -0
  15. package/lib/vtx-sdyd-tfd-modal/api.js +575 -0
  16. package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +61 -0
  17. package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +132 -0
  18. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL.js +44 -0
  19. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +104 -0
  20. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +67 -0
  21. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +65 -0
  22. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +79 -0
  23. package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +111 -0
  24. package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +162 -0
  25. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX.js +43 -0
  26. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +183 -0
  27. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +97 -0
  28. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +65 -0
  29. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +103 -0
  30. package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +104 -0
  31. package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.less +116 -0
  32. package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +179 -0
  33. package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +123 -0
  34. package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +172 -0
  35. package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +177 -0
  36. package/lib/vtx-sdyd-tfd-modal/components/OverView/index.js +56 -0
  37. package/lib/vtx-sdyd-tfd-modal/components/OverView/index.less +242 -0
  38. package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +137 -0
  39. package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.less +78 -0
  40. package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +133 -0
  41. package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.less +12 -0
  42. package/lib/vtx-sdyd-tfd-modal/components/WGGS/Content.js +63 -0
  43. package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +61 -0
  44. package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.less +49 -0
  45. package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +117 -0
  46. package/lib/vtx-sdyd-tfd-modal/components/WGXW/index.js +52 -0
  47. package/lib/vtx-sdyd-tfd-modal/components/WGXW/index.less +97 -0
  48. package/lib/vtx-sdyd-tfd-modal/components/index.js +6 -0
  49. package/lib/vtx-sdyd-tfd-modal/config.js +63 -0
  50. package/lib/vtx-sdyd-tfd-modal/imgs/BOTTLE.png +0 -0
  51. package/lib/vtx-sdyd-tfd-modal/imgs/CAN.png +0 -0
  52. package/lib/vtx-sdyd-tfd-modal/imgs/KRAFT_PAPER_BOX.png +0 -0
  53. package/lib/vtx-sdyd-tfd-modal/imgs/NAPKIN.png +0 -0
  54. package/lib/vtx-sdyd-tfd-modal/imgs/NAPKIN_light.png +0 -0
  55. package/lib/vtx-sdyd-tfd-modal/imgs/PLASTIC_BAG.png +0 -0
  56. package/lib/vtx-sdyd-tfd-modal/imgs/aibox.png +0 -0
  57. package/lib/vtx-sdyd-tfd-modal/imgs/aibox_light.png +0 -0
  58. package/lib/vtx-sdyd-tfd-modal/imgs/android.png +0 -0
  59. package/lib/vtx-sdyd-tfd-modal/imgs/android_light.png +0 -0
  60. package/lib/vtx-sdyd-tfd-modal/imgs/avatar.png +0 -0
  61. package/lib/vtx-sdyd-tfd-modal/imgs/avatar_light.png +0 -0
  62. package/lib/vtx-sdyd-tfd-modal/imgs/ddypz.png +0 -0
  63. package/lib/vtx-sdyd-tfd-modal/imgs/ddypz_light.png +0 -0
  64. package/lib/vtx-sdyd-tfd-modal/imgs/garbage_default.png +0 -0
  65. package/lib/vtx-sdyd-tfd-modal/imgs/gzxjcx.png +0 -0
  66. package/lib/vtx-sdyd-tfd-modal/imgs/hjglcx.png +0 -0
  67. package/lib/vtx-sdyd-tfd-modal/imgs/hmd.png +0 -0
  68. package/lib/vtx-sdyd-tfd-modal/imgs/hmd_light.png +0 -0
  69. package/lib/vtx-sdyd-tfd-modal/imgs/manage_bg.png +0 -0
  70. package/lib/vtx-sdyd-tfd-modal/imgs/manage_bg_light.png +0 -0
  71. package/lib/vtx-sdyd-tfd-modal/imgs/rank.png +0 -0
  72. package/lib/vtx-sdyd-tfd-modal/imgs/rank_light.png +0 -0
  73. package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_tfd.png +0 -0
  74. package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_tfd_light.png +0 -0
  75. package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_video.png +0 -0
  76. package/lib/vtx-sdyd-tfd-modal/imgs/sbzj_video_light.png +0 -0
  77. package/lib/vtx-sdyd-tfd-modal/imgs/tfcs.png +0 -0
  78. package/lib/vtx-sdyd-tfd-modal/imgs/tfcs_light.png +0 -0
  79. package/lib/vtx-sdyd-tfd-modal/imgs/tfd.png +0 -0
  80. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_ht.png +0 -0
  81. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_ht_light.png +0 -0
  82. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_light.png +0 -0
  83. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_manyi.png +0 -0
  84. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_manyi_light.png +0 -0
  85. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_twtf.png +0 -0
  86. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_twtf_light.png +0 -0
  87. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wpd.png +0 -0
  88. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wpd_light.png +0 -0
  89. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wstf.png +0 -0
  90. package/lib/vtx-sdyd-tfd-modal/imgs/tfd_wstf_light.png +0 -0
  91. package/lib/vtx-sdyd-tfd-modal/imgs/tfhs.png +0 -0
  92. package/lib/vtx-sdyd-tfd-modal/imgs/tfhs_light.png +0 -0
  93. package/lib/vtx-sdyd-tfd-modal/imgs/wgmsr.png +0 -0
  94. package/lib/vtx-sdyd-tfd-modal/imgs/wgmsr_light.png +0 -0
  95. package/lib/vtx-sdyd-tfd-modal/imgs/yyxj.png +0 -0
  96. package/lib/vtx-sdyd-tfd-modal/imgs/yyxj_light.png +0 -0
  97. package/lib/vtx-sdyd-tfd-modal/index.js +113 -0
  98. package/lib/vtx-sdyd-tfd-modal/style/index.js +4 -0
  99. package/lib/vtx-sdyd-tfd-modal/style/index.less +1 -0
  100. package/lib/vtx-shxq-modal/index.js +1 -2
  101. package/lib/vtx-wr-modal/components/Appraise/index.js +123 -36
  102. package/lib/vtx-wr-modal/components/Appraise/index.less +40 -43
  103. package/lib/vtx-wr-modal/components/Base/Jbxx.js +151 -227
  104. package/lib/vtx-wr-modal/components/Base/Ptss.js +215 -0
  105. package/lib/vtx-wr-modal/components/Base/Sjjg.js +163 -76
  106. package/lib/vtx-wr-modal/components/Base/assets/blue/dswsj.png +0 -0
  107. package/lib/vtx-wr-modal/components/Base/assets/blue/tywsj.png +0 -0
  108. package/lib/vtx-wr-modal/components/Base/assets/light/dswsj.png +0 -0
  109. package/lib/vtx-wr-modal/components/Base/assets/light/tywsj.png +0 -0
  110. package/lib/vtx-wr-modal/components/Base/index.js +319 -32
  111. package/lib/vtx-wr-modal/components/Base/index.less +237 -227
  112. package/lib/vtx-wr-modal/components/Build/index.js +169 -0
  113. package/lib/vtx-wr-modal/components/Build/index.less +104 -0
  114. package/lib/vtx-wr-modal/components/File/index.js +107 -0
  115. package/lib/vtx-wr-modal/components/File/index.less +41 -0
  116. package/lib/vtx-wr-modal/components/Score/index.js +122 -28
  117. package/lib/vtx-wr-modal/components/Score/index.less +36 -36
  118. package/lib/vtx-wr-modal/components/index.js +3 -1
  119. package/lib/vtx-wr-modal/index.js +79 -15
  120. package/lib/vtx-wr-modal/style/index.js +2 -0
  121. package/package.json +12 -11
package/lib/index.js CHANGED
@@ -15,4 +15,5 @@ export { default as VtxCcUnitModal } from "./vtx-cc-unit-modal";
15
15
  export { default as VtxRestaurantModal } from "./vtx-restaurant-modal";
16
16
  export { default as VtxCcCpModal } from "./vtx-cc-cp-modal";
17
17
  export { default as VtxKhModal } from "./vtx-kh-modal";
18
- export { default as VtxZgModal } from "./vtx-zg-modal";
18
+ export { default as VtxZgModal } from "./vtx-zg-modal";
19
+ export { default as VtxSdydTfdModal } from "./vtx-sdyd-tfd-modal";
@@ -45,7 +45,9 @@ var VmBaseModal = function VmBaseModal(props) {
45
45
  modalHeight = props.modalHeight,
46
46
  width = props.width,
47
47
  _props$iframeUrl = props.iframeUrl,
48
- iframeUrl = _props$iframeUrl === void 0 ? '' : _props$iframeUrl;
48
+ iframeUrl = _props$iframeUrl === void 0 ? '' : _props$iframeUrl,
49
+ _props$modalShow = props.modalShow,
50
+ modalShow = _props$modalShow === void 0 ? true : _props$modalShow;
49
51
  var _useState = useState(''),
50
52
  _useState2 = _slicedToArray(_useState, 2),
51
53
  currentTabKey = _useState2[0],
@@ -152,7 +154,7 @@ var VmBaseModal = function VmBaseModal(props) {
152
154
  });
153
155
  });
154
156
  return /*#__PURE__*/_jsxs(_Fragment, {
155
- children: [/*#__PURE__*/_jsxs("div", {
157
+ children: [modalShow ? /*#__PURE__*/_jsxs("div", {
156
158
  className: theme === 'light' ? 'vm-modal-light' : 'vm-modal-dark',
157
159
  children: [mask && /*#__PURE__*/_jsx("div", {
158
160
  className: 'vm-base-modal-mask'
@@ -195,6 +197,18 @@ var VmBaseModal = function VmBaseModal(props) {
195
197
  })]
196
198
  })]
197
199
  })]
200
+ }) : /*#__PURE__*/_jsx("div", {
201
+ className: "vm-modal-light",
202
+ children: /*#__PURE__*/_jsx(VtxThemeProvider, {
203
+ value: value,
204
+ children: /*#__PURE__*/_jsx("div", {
205
+ className: 'vm-base-modal-content-wrap',
206
+ children: /*#__PURE__*/_jsx("div", {
207
+ className: 'vm-base-modal-content',
208
+ children: contents[currentTabKey]
209
+ })
210
+ })
211
+ })
198
212
  }), /*#__PURE__*/_jsx(VmIframeModal, _objectSpread(_objectSpread({}, iframeModalInfo), {}, {
199
213
  theme: theme,
200
214
  onCancel: function onCancel() {
@@ -43,7 +43,6 @@ var WGXW = function WGXW(_ref) {
43
43
  businessPackage: tab,
44
44
  areaDimension: 'COMMUNITY'
45
45
  });
46
- console.log(tab);
47
46
  return /*#__PURE__*/_jsx("div", {
48
47
  className: prefix,
49
48
  children: /*#__PURE__*/_jsxs(VmWrapper, {
@@ -0,0 +1,139 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ 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; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import { Col, Row } from 'antd';
8
+ import { useState } from 'react';
9
+ import { VmInfoCollection, VmWrapper } from "../../../_components";
10
+ import useSettings from "../../../_hooks/useSettings";
11
+ import "./index.less";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ var Sbzj = function Sbzj(_ref) {
14
+ var _ref$classPrefix = _ref.classPrefix,
15
+ classPrefix = _ref$classPrefix === void 0 ? '' : _ref$classPrefix,
16
+ id = _ref.id;
17
+ var _useSettings = useSettings(),
18
+ isDark = _useSettings.isDark;
19
+ var prefix = "".concat(classPrefix, "-sbzj");
20
+ var _useState = useState('all'),
21
+ _useState2 = _slicedToArray(_useState, 2),
22
+ tab = _useState2[0],
23
+ setTab = _useState2[1];
24
+ var data = [{
25
+ name: 'AI BOX',
26
+ img: 'aibox'
27
+ }, {
28
+ name: '安卓屏',
29
+ img: 'android'
30
+ }, {
31
+ name: '屋外摄像头',
32
+ img: 'sbzj_video'
33
+ }, {
34
+ name: '屋内摄像头',
35
+ img: 'sbzj_video'
36
+ }, {
37
+ name: '屋顶摄像头',
38
+ img: 'sbzj_video'
39
+ }, {
40
+ name: '摄像头',
41
+ img: 'sbzj_video'
42
+ }];
43
+ return /*#__PURE__*/_jsxs("div", {
44
+ className: "".concat(prefix),
45
+ children: [/*#__PURE__*/_jsx(VmWrapper, {
46
+ title: "\u8BBE\u5907\u603B\u89C8",
47
+ style: {
48
+ marginBottom: 16
49
+ },
50
+ children: /*#__PURE__*/_jsxs("div", {
51
+ className: "".concat(prefix, "-overview"),
52
+ children: [/*#__PURE__*/_jsxs("div", {
53
+ className: "".concat(prefix, "-overview-top"),
54
+ children: [/*#__PURE__*/_jsx("img", {
55
+ src: require("../../imgs/sbzj_tfd".concat(isDark ? '' : '_light', ".png"))
56
+ }), /*#__PURE__*/_jsx("div", {
57
+ children: "\u82B1\u56ED\u5C0F\u533A\u6295\u653E\u70B9"
58
+ }), /*#__PURE__*/_jsx("div", {
59
+ className: "".concat(prefix, "-overview-top-dashed")
60
+ })]
61
+ }), /*#__PURE__*/_jsx("div", {
62
+ className: "".concat(prefix, "-overview-dashedBox")
63
+ }), /*#__PURE__*/_jsx("div", {
64
+ className: "".concat(prefix, "-overview-devices"),
65
+ children: data.map(function (ele, index) {
66
+ return /*#__PURE__*/_jsxs("div", {
67
+ className: "".concat(prefix, "-overview-devices-item"),
68
+ children: [/*#__PURE__*/_jsx("img", {
69
+ src: require("../../imgs/".concat(ele.img).concat(isDark ? '' : '_light', ".png"))
70
+ }), /*#__PURE__*/_jsx("div", {
71
+ children: ele.name
72
+ }), index !== 0 && index !== data.length - 1 && /*#__PURE__*/_jsx("div", {
73
+ className: "".concat(prefix, "-overview-devices-item-dashed")
74
+ })]
75
+ }, ele.img);
76
+ })
77
+ })]
78
+ })
79
+ }), /*#__PURE__*/_jsx(VmWrapper, {
80
+ title: "\u8BBE\u5907\u4FE1\u606F",
81
+ children: /*#__PURE__*/_jsxs(Row, {
82
+ gutter: [32, 20],
83
+ children: [/*#__PURE__*/_jsx(Col, {
84
+ span: 12,
85
+ children: /*#__PURE__*/_jsx(VmWrapper, {
86
+ title: "AI BOX 888888",
87
+ children: /*#__PURE__*/_jsx(VmInfoCollection, {
88
+ width: "50%",
89
+ horizontal: true,
90
+ data: [{
91
+ label: '累计工作时长',
92
+ value: '100天20小时',
93
+ key: '1'
94
+ }, {
95
+ label: '可用率',
96
+ value: '58.6%',
97
+ key: '2'
98
+ }, {
99
+ label: '最后心跳时间',
100
+ value: '2025-10-01 00:00:00',
101
+ key: '3'
102
+ }, {
103
+ label: '在线状态',
104
+ value: '在线',
105
+ key: '4',
106
+ color: '#00B85C'
107
+ }, {
108
+ label: '最后上传数据时间',
109
+ value: '2025-10-01 00:00:00',
110
+ key: '5'
111
+ }, {
112
+ label: '无数据时长',
113
+ value: '20天20小时50分',
114
+ key: '6',
115
+ color: '#FF9500'
116
+ }]
117
+ })
118
+ })
119
+ }), /*#__PURE__*/_jsx(Col, {
120
+ span: 12,
121
+ children: /*#__PURE__*/_jsx(VmWrapper, {
122
+ title: "AI BOX 888888"
123
+ })
124
+ }), /*#__PURE__*/_jsx(Col, {
125
+ span: 12,
126
+ children: /*#__PURE__*/_jsx(VmWrapper, {
127
+ title: "AI BOX 888888"
128
+ })
129
+ }), /*#__PURE__*/_jsx(Col, {
130
+ span: 12,
131
+ children: /*#__PURE__*/_jsx(VmWrapper, {
132
+ title: "AI BOX 888888"
133
+ })
134
+ })]
135
+ })
136
+ })]
137
+ });
138
+ };
139
+ export default Sbzj;
@@ -0,0 +1,73 @@
1
+ @import '../../style/index';
2
+
3
+ .@{prefix-cls}-sbzj {
4
+ &-overview {
5
+ width: 760px;
6
+ height: 200px;
7
+ margin: 0 auto;
8
+ position: relative;
9
+ padding: 20px 0;
10
+
11
+ &-top {
12
+ height: 64px;
13
+ display: flex;
14
+ justify-content: center;
15
+ text-align: center;
16
+ align-items: center;
17
+ gap: 15px;
18
+ position: relative;
19
+ color: var(--modal-title-color);
20
+
21
+ img {
22
+ width: 44px;
23
+ height: 44px;
24
+ }
25
+
26
+ &-dashed {
27
+ width: 1px;
28
+ height: 20px;
29
+ position: absolute;
30
+ left: 50%;
31
+ bottom: -20px;
32
+ border-radius: 8px;
33
+ border: 1px dashed #0fb964;
34
+ }
35
+ }
36
+ &-dashedBox {
37
+ width: 100%;
38
+ height: 20px;
39
+ margin-top: 20px;
40
+ border-top-left-radius: 8px;
41
+ border-top-right-radius: 8px;
42
+ border: 1px dashed #21ea85;
43
+ border-bottom: 0px;
44
+ }
45
+ &-devices {
46
+ width: calc(100% + 44px);
47
+ display: flex;
48
+ justify-content: space-between;
49
+ align-items: flex-end; /* 底部对齐 */
50
+ transform: translateX(-22px);
51
+
52
+ &-item {
53
+ text-align: center;
54
+ color: var(--modal-title-color);
55
+ position: relative;
56
+
57
+ img {
58
+ width: 44px;
59
+ height: 44px;
60
+ }
61
+
62
+ &-dashed {
63
+ width: 1px;
64
+ height: 20px;
65
+ position: absolute;
66
+ left: 50%;
67
+ top: -20px;
68
+ border: 0.1px dashed #21ea85;
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
@@ -1,5 +1,6 @@
1
1
  export { default as Alarm } from "./Alarm";
2
2
  export { default as OverView } from "./OverView";
3
+ export { default as Sbzj } from "./Sbzj";
3
4
  export { default as TFRD } from "./TFRD";
4
5
  export { default as WGGS } from "./WGGS";
5
6
  export { default as WGXW } from "./WGXW";