@vtx/modals2 5.0.20 → 5.0.22

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.
@@ -1 +1,2 @@
1
+ import 'antd/lib/calendar/style';
1
2
  import "./index.less";
@@ -3,7 +3,10 @@
3
3
  .vm-calendar {
4
4
  width: 100%;
5
5
  height: 100%;
6
-
6
+ .ant-picker-date-panel,
7
+ .ant-picker-content {
8
+ width: 100% !important;
9
+ }
7
10
  .ant-picker-calendar,
8
11
  .ant-picker-calendar-full {
9
12
  background-color: var(--vm-calendar-bg-color) !important;
@@ -6,7 +6,9 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { Row, Spin } from 'antd';
8
8
  import ReactEcharts from 'echarts-for-react';
9
+ import { isEmpty } from 'lodash';
9
10
  import useSettings from "../../_hooks/useSettings";
11
+ import VmEmpty from "../vm-empty";
10
12
  import { jsx as _jsx } from "react/jsx-runtime";
11
13
  var LineCharts = function LineCharts(_ref) {
12
14
  var _ref$dataList = _ref.dataList,
@@ -138,6 +140,15 @@ var LineCharts = function LineCharts(_ref) {
138
140
  align: 'middle',
139
141
  justify: 'center',
140
142
  children: /*#__PURE__*/_jsx(Spin, {})
143
+ }) : isEmpty(dataList) ? /*#__PURE__*/_jsx(Row, {
144
+ style: {
145
+ height: height
146
+ },
147
+ align: 'middle',
148
+ justify: 'center',
149
+ children: /*#__PURE__*/_jsx(VmEmpty, {
150
+ type: "NO_CHART"
151
+ })
141
152
  }) : /*#__PURE__*/_jsx(ReactEcharts, {
142
153
  option: option,
143
154
  notMerge: true,
@@ -1,3 +1,4 @@
1
+ @import "~antd/dist/antd.css";
1
2
  .vm-modal-dark {
2
3
  --modal-mask-bg-color: rgba(0, 0, 0, 0.4);
3
4
  --modal-title-color: #fff;
@@ -39,6 +39,9 @@ var StaticInfo = function StaticInfo(_ref) {
39
39
  },
40
40
  children: [/*#__PURE__*/_jsx(Col, {
41
41
  span: 12,
42
+ style: {
43
+ height: '100%'
44
+ },
42
45
  children: /*#__PURE__*/_jsx(VmWrapper, {
43
46
  title: '报警汇总',
44
47
  children: /*#__PURE__*/_jsx(VmPieCharts, {
@@ -58,6 +61,9 @@ var StaticInfo = function StaticInfo(_ref) {
58
61
  })
59
62
  }), /*#__PURE__*/_jsx(Col, {
60
63
  span: 12,
64
+ style: {
65
+ height: '100%'
66
+ },
61
67
  children: /*#__PURE__*/_jsx(VmWrapper, {
62
68
  title: '报警趋势分析',
63
69
  children: /*#__PURE__*/_jsx(VmLineCharts, {
@@ -47,9 +47,9 @@ var VtxCpModal = function VtxCpModal(props) {
47
47
  info = _BaseService$useBaseD.info,
48
48
  baseInfo = _BaseService$useBaseD.baseInfo,
49
49
  rules = _BaseService$useBaseD.rules;
50
- var _facilityService$useG = facilityService.useGetFacConfig((info === null || info === void 0 ? void 0 : info.collectPointTypeCode) || 'cp'),
50
+ var _facilityService$useG = facilityService.useGetFacConfig('cp'),
51
51
  facConfig = _facilityService$useG.facConfig;
52
- var _useGetConfig = useGetConfig((info === null || info === void 0 ? void 0 : info.collectPointTypeCode) || 'cp', tabs),
52
+ var _useGetConfig = useGetConfig('cp', tabs),
53
53
  tabsData = _useGetConfig.tabsData;
54
54
  var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.collectPointTypeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.collectPointTypeCode)),
55
55
  channels = _useGetChannels.channels;
@@ -120,19 +120,9 @@ var ListZymx = function ListZymx(props) {
120
120
  onChange: pageChange
121
121
  })
122
122
  };
123
- return /*#__PURE__*/_jsx(VmTable, _objectSpread(_objectSpread({
123
+ return /*#__PURE__*/_jsx(VmTable, _objectSpread({
124
124
  columns: columns,
125
125
  rowKey: "id"
126
- }, tableProps), {}, {
127
- dataSource: [{
128
- shiftDate: '2312313',
129
- shiftName: 'sdfgdfgd',
130
- completionRate: 20
131
- }, {
132
- shiftDate: '2312313',
133
- shiftName: 'sdfgdfgd',
134
- completionRate: 20
135
- }]
136
- }));
126
+ }, tableProps));
137
127
  };
138
128
  export default ListZymx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/modals2",
3
- "version": "5.0.20",
3
+ "version": "5.0.22",
4
4
  "description": "弹窗组件",
5
5
  "license": "MIT",
6
6
  "module": "lib/index.js",