@vtx/modals2 6.0.0-beta.6 → 6.0.0-beta.8

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.
@@ -64,7 +64,9 @@ var LineCharts = function LineCharts(_ref) {
64
64
  }],
65
65
  legend: _objectSpread({
66
66
  show: showLegend,
67
- right: dataList.length === 1 ? '5%' : 'center',
67
+ left: '10%',
68
+ top: 0,
69
+ height: 24,
68
70
  type: 'scroll',
69
71
  itemGap: 8,
70
72
  itemHeight: 2,
@@ -84,6 +86,7 @@ var LineCharts = function LineCharts(_ref) {
84
86
  grid: _objectSpread({
85
87
  left: 50,
86
88
  right: 50,
89
+ top: showLegend ? 40 : 20,
87
90
  bottom: showDataZoom ? 50 : 20
88
91
  }, gridOption),
89
92
  xAxis: _objectSpread({
@@ -1,15 +1,61 @@
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; }
1
7
  import { HistoryPlayer } from '@vtx/player';
2
- import { forwardRef, useRef } from 'react';
8
+ import { forwardRef, useEffect, useRef, useState } from 'react';
3
9
  import VmEmpty from "../vm-empty";
4
10
  import "./index.less";
5
11
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
6
12
  var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
7
- var _channel$list;
8
13
  var channel = props.channel,
9
14
  onClose = props.onClose;
15
+ var _useState = useState(''),
16
+ _useState2 = _slicedToArray(_useState, 2),
17
+ url = _useState2[0],
18
+ setUrl = _useState2[1];
19
+ var _useState3 = useState(''),
20
+ _useState4 = _slicedToArray(_useState3, 2),
21
+ startTime = _useState4[0],
22
+ setStartTime = _useState4[1];
23
+ var _useState5 = useState(''),
24
+ _useState6 = _slicedToArray(_useState5, 2),
25
+ endTime = _useState6[0],
26
+ setEndTime = _useState6[1];
10
27
  var name = "".concat(channel === null || channel === void 0 ? void 0 : channel.deviceName, "-").concat(channel === null || channel === void 0 ? void 0 : channel.channelName);
11
- var url = (channel === null || channel === void 0 ? void 0 : channel.totalTimeUrl) || (channel === null || channel === void 0 || (_channel$list = channel.list) === null || _channel$list === void 0 || (_channel$list = _channel$list[0]) === null || _channel$list === void 0 ? void 0 : _channel$list.playbackUrl);
12
28
  var gridItemRef = useRef(null);
29
+ useEffect(function () {
30
+ var _channel$list;
31
+ var src = (channel === null || channel === void 0 ? void 0 : channel.totalTimeUrl) || (channel === null || channel === void 0 || (_channel$list = channel.list) === null || _channel$list === void 0 || (_channel$list = _channel$list[0]) === null || _channel$list === void 0 ? void 0 : _channel$list.playbackUrl);
32
+ if (channel.enableAgent) {
33
+ if (src.indexOf('http') === -1) {
34
+ setUrl("".concat(window.location.origin).concat(src));
35
+ }
36
+ } else {
37
+ setUrl(src);
38
+ }
39
+ if (channel !== null && channel !== void 0 && channel.totalTimeUrl) {
40
+ setStartTime(props === null || props === void 0 ? void 0 : props.startTime);
41
+ setEndTime(props === null || props === void 0 ? void 0 : props.endTime);
42
+ } else {
43
+ var _channel$list2, _channel$list3;
44
+ setStartTime(channel === null || channel === void 0 || (_channel$list2 = channel.list) === null || _channel$list2 === void 0 || (_channel$list2 = _channel$list2[0]) === null || _channel$list2 === void 0 ? void 0 : _channel$list2.beginTime);
45
+ setEndTime(channel === null || channel === void 0 || (_channel$list3 = channel.list) === null || _channel$list3 === void 0 || (_channel$list3 = _channel$list3[0]) === null || _channel$list3 === void 0 ? void 0 : _channel$list3.endTime);
46
+ }
47
+ }, [channel.enableAgent, props.startTime, JSON.stringify(channel)]);
48
+ useEffect(function () {
49
+ var _channel$list4;
50
+ var src = (channel === null || channel === void 0 ? void 0 : channel.totalTimeUrl) || (channel === null || channel === void 0 || (_channel$list4 = channel.list) === null || _channel$list4 === void 0 || (_channel$list4 = _channel$list4[0]) === null || _channel$list4 === void 0 ? void 0 : _channel$list4.playbackUrl);
51
+ if (channel.enableAgent) {
52
+ if (src.indexOf('http') === -1) {
53
+ setUrl("".concat(window.location.origin).concat(src));
54
+ }
55
+ } else {
56
+ setUrl(src);
57
+ }
58
+ }, [JSON.stringify(channel)]);
13
59
  return /*#__PURE__*/_jsx("div", {
14
60
  className: "vm-video-content-container",
15
61
  ref: gridItemRef,
@@ -34,6 +80,8 @@ var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
34
80
  beenHasAudio: channel.beenHasAudio // 音频
35
81
  ,
36
82
  url: url,
83
+ startTime: startTime,
84
+ endTime: endTime,
37
85
  type: channel === null || channel === void 0 ? void 0 : channel.player,
38
86
  deviceIp: channel.deviceIp,
39
87
  devicePort: channel.devicePort,
@@ -1,17 +1,36 @@
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; }
1
7
  import { LivePlayer } from '@vtx/player';
2
- import { forwardRef, useRef } from 'react';
8
+ import { forwardRef, useEffect, useRef, useState } from 'react';
3
9
  import VmEmpty from "../vm-empty";
4
10
  import "./index.less";
5
11
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
6
12
  var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
7
13
  var channel = props.channel,
8
14
  onClose = props.onClose;
15
+ var _useState = useState(''),
16
+ _useState2 = _slicedToArray(_useState, 2),
17
+ url = _useState2[0],
18
+ setUrl = _useState2[1];
9
19
  var name = "".concat(channel === null || channel === void 0 ? void 0 : channel.deviceName, "-").concat(channel === null || channel === void 0 ? void 0 : channel.channelName);
10
20
  var gridItemRef = useRef(null);
21
+ useEffect(function () {
22
+ if (channel.enableAgent) {
23
+ if ((channel === null || channel === void 0 ? void 0 : channel.url.indexOf('http')) === -1) {
24
+ setUrl("".concat(window.location.origin).concat(channel.url));
25
+ }
26
+ } else {
27
+ setUrl(channel.url);
28
+ }
29
+ }, [channel.enableAgent, channel === null || channel === void 0 ? void 0 : channel.url]);
11
30
  return /*#__PURE__*/_jsx("div", {
12
31
  className: "vm-video-content-container",
13
32
  ref: gridItemRef,
14
- children: channel !== null && channel !== void 0 && channel.url ? /*#__PURE__*/_jsxs(_Fragment, {
33
+ children: url ? /*#__PURE__*/_jsxs(_Fragment, {
15
34
  children: [/*#__PURE__*/_jsxs("div", {
16
35
  className: "vm-video-content-container-header",
17
36
  children: [/*#__PURE__*/_jsx("span", {
@@ -31,7 +50,7 @@ var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
31
50
  ,
32
51
  beenHasAudio: channel.beenHasAudio // 音频
33
52
  ,
34
- url: channel.url,
53
+ url: url,
35
54
  type: channel === null || channel === void 0 ? void 0 : channel.player,
36
55
  deviceIp: channel.deviceIp,
37
56
  devicePort: channel.devicePort,
@@ -117,22 +117,25 @@ var VmVideo = function VmVideo(_ref) {
117
117
  }, [dateType]);
118
118
  useEffect(function () {
119
119
  if (channels !== null && channels !== void 0 && channels.length && tabKey === '1') {
120
- var _channels$filter;
121
- Promise.all(channels === null || channels === void 0 || (_channels$filter = channels.filter(function (ele, index) {
122
- return index < 4;
123
- })) === null || _channels$filter === void 0 ? void 0 : _channels$filter.map(function (ele) {
120
+ var defaultCheckedChannels = channels.map(function (channel, index) {
121
+ return _objectSpread(_objectSpread({}, channel), {}, {
122
+ checked: index < 4
123
+ });
124
+ });
125
+ Promise.all(channels.slice(0, 4).map(function (ele) {
124
126
  return getPreviewUrl({
125
127
  channelNum: ele.channelNum,
126
128
  deviceId: ele.videoDeviceId
127
129
  });
128
130
  })).then(function (res) {
129
- setCheckedChannels(res === null || res === void 0 ? void 0 : res.map(function (ele, index) {
130
- return _objectSpread(_objectSpread({}, ele === null || ele === void 0 ? void 0 : ele.data), {}, {
131
+ setCheckedChannels(defaultCheckedChannels.map(function (channel, index) {
132
+ var _res$index;
133
+ return _objectSpread(_objectSpread(_objectSpread({}, channel), index < 4 ? (_res$index = res[index]) === null || _res$index === void 0 ? void 0 : _res$index.data : {}), {}, {
131
134
  checked: index < 4
132
135
  });
133
136
  }));
134
137
  });
135
- } else {}
138
+ }
136
139
  if (tabKey === '2') {
137
140
  var _channels$;
138
141
  form.setFieldsValue({
@@ -185,13 +188,27 @@ var VmVideo = function VmVideo(_ref) {
185
188
  onChange: function onChange(e) {
186
189
  var list = cloneDeep(checkedChannels);
187
190
  if (e.target.checked) {
191
+ var selectedCount = list.filter(function (channel) {
192
+ return channel.checked;
193
+ }).length + 1;
194
+ if (selectedCount > 9) {
195
+ message.warning('同时播放通道不能超过9路');
196
+ return;
197
+ }
198
+ if (selectedCount > Number(mode)) {
199
+ setMode(selectedCount <= 4 ? '4' : '9');
200
+ }
188
201
  getPreviewUrl({
189
202
  channelNum: ele.channelNum,
190
- deviceId: ele.deviceId
203
+ deviceId: ele.videoDeviceId || ele.deviceId
191
204
  }).then(function (res) {
192
- list[index] = _objectSpread({
205
+ var _res$data, _res$data2;
206
+ var currentChannel = list[index];
207
+ list[index] = _objectSpread(_objectSpread(_objectSpread({}, currentChannel), res.data), {}, {
208
+ channelName: currentChannel.channelName || ((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.channelName),
209
+ deviceName: currentChannel.deviceName || ((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.deviceName),
193
210
  checked: true
194
- }, res.data);
211
+ });
195
212
  setCheckedChannels(list);
196
213
  });
197
214
  } else {
@@ -380,15 +397,23 @@ var VmVideo = function VmVideo(_ref) {
380
397
  key: '9'
381
398
  }],
382
399
  onChange: function onChange(key) {
383
- setMode(key);
400
+ var selectedCount = checkedChannels.filter(function (channel) {
401
+ return channel.checked;
402
+ }).length;
403
+ setMode(selectedCount > Number(key) ? selectedCount <= 4 ? '4' : '9' : key);
384
404
  }
385
405
  }) : /*#__PURE__*/_jsx(_Fragment, {})
386
406
  }), /*#__PURE__*/_jsx("div", {
387
407
  className: "vm-video-content _".concat(mode),
388
- children: tabKey === '1' ? getGridItems(mode, checkedChannels === null || checkedChannels === void 0 ? void 0 : checkedChannels.filter(function (ele) {
389
- return ele.checked;
390
- }), setCheckedChannels) : /*#__PURE__*/_jsx(HistoryGrid, {
391
- channel: history
408
+ children: tabKey === '1' ? getGridItems(mode, checkedChannels, setCheckedChannels) : /*#__PURE__*/_jsx(HistoryGrid, {
409
+ channel: history,
410
+ startTime: startTime,
411
+ endTime: endTime,
412
+ onClose: function onClose() {
413
+ setState({
414
+ history: {}
415
+ });
416
+ }
392
417
  })
393
418
  })]
394
419
  })]
@@ -396,18 +421,28 @@ var VmVideo = function VmVideo(_ref) {
396
421
  };
397
422
  export default VmVideo;
398
423
  var getGridItems = function getGridItems(latestGrid, channels, setCheckedChannels) {
424
+ var selectedChannels = channels.filter(function (channel) {
425
+ return channel.checked;
426
+ });
399
427
  var items = [];
400
428
  var _loop = function _loop(i) {
401
429
  var element = /*#__PURE__*/_jsx(RealtimeGrid, {
402
- channel: channels[i] || {
430
+ channel: selectedChannels[i] || {
403
431
  channelNum: '',
404
432
  channelId: ''
405
433
  },
406
434
  onClose: function onClose() {
407
435
  var list = cloneDeep(channels);
408
- list[i].checked = false;
409
- list[i].url = '';
410
- list[i].player = '';
436
+ var channelIndex = list.findIndex(function (channel) {
437
+ var _selectedChannels$i;
438
+ return channel.channelNum === ((_selectedChannels$i = selectedChannels[i]) === null || _selectedChannels$i === void 0 ? void 0 : _selectedChannels$i.channelNum);
439
+ });
440
+ if (channelIndex === -1) {
441
+ return;
442
+ }
443
+ list[channelIndex].checked = false;
444
+ list[channelIndex].url = '';
445
+ list[channelIndex].player = '';
411
446
  setCheckedChannels(list);
412
447
  },
413
448
  scale: 1
@@ -59,13 +59,13 @@
59
59
  padding-top: 12px;
60
60
  overflow-y: auto;
61
61
 
62
- .channels--item {
63
- svg {
64
- transform: translateY(7px);
65
- margin-right: 2px;
66
- }
67
- .ant-checkbox {
68
- transform: translateY(-2px);
62
+ .channels--item {
63
+ svg {
64
+ display: block;
65
+ margin-right: 2px;
66
+ }
67
+ .ant-checkbox {
68
+ top: 0;
69
69
  }
70
70
  .ant-checkbox-checked .ant-checkbox-inner {
71
71
  background-color: var(--check-bg);
@@ -78,13 +78,17 @@
78
78
  width: 15px;
79
79
  height: 15px;
80
80
  }
81
- .ant-checkbox-wrapper {
82
- font-size: 15px;
83
- // color: var(--modal-title-color);
84
- }
85
- .ant-checkbox + span {
86
- padding: 0 4px;
87
- }
81
+ .ant-checkbox-wrapper {
82
+ display: inline-flex;
83
+ align-items: center;
84
+ font-size: 15px;
85
+ // color: var(--modal-title-color);
86
+ }
87
+ .ant-checkbox + span {
88
+ display: inline-flex;
89
+ align-items: center;
90
+ padding: 0 4px;
91
+ }
88
92
  }
89
93
  }
90
94
  }
@@ -59,7 +59,8 @@ var Detail = function Detail(_ref) {
59
59
  dataIndex: 'collectPointName',
60
60
  key: 'collectPointName',
61
61
  fixed: 'left',
62
- width: 160
62
+ width: 160,
63
+ ellipsis: true
63
64
  }, {
64
65
  title: translateLocaleText("t('vtxcarmodal.hours10')"),
65
66
  dataIndex: 'actualCollectTime',
@@ -94,13 +94,10 @@ export default function CarWork(props) {
94
94
  }
95
95
  var tableProps = {
96
96
  scroll: {
97
- y: 194,
97
+ y: 245,
98
98
  x: '100%'
99
99
  },
100
- pagination: {
101
- current: 1,
102
- pageSize: 10
103
- },
100
+ pagination: false,
104
101
  indexWidth: '8%',
105
102
  dataSource: (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) > 0 ? dataSource.map(function (ele, index) {
106
103
  var _ele$bidSectionName;
@@ -53,6 +53,12 @@ export default function TodayWork(props) {
53
53
  };
54
54
  var getValue = function getValue(name, id) {
55
55
  var strokeColor = '#1890FF';
56
+ if (!name) {
57
+ return {
58
+ strokeColor: strokeColor,
59
+ src: isDark ? allRateDark : allRate
60
+ };
61
+ }
56
62
  var src = name === '全部' ? isDark ? allRateDark : allRate : getIcon(id);
57
63
  if (isDark) {
58
64
  if (name.indexOf('全部') > -1) {
@@ -101,7 +107,7 @@ export default function TodayWork(props) {
101
107
  className: "twork--item-progress",
102
108
  children: [/*#__PURE__*/_jsxs("div", {
103
109
  className: "twork--item-progress-row",
104
- children: ["".concat(item === null || item === void 0 ? void 0 : item.productTypeName).concat(translateLocaleText("t('vtxcpmodal.completionRateColon')")), "".concat(item.rate || 0, "%")]
110
+ children: ["".concat((item === null || item === void 0 ? void 0 : item.productTypeName) || '-').concat(translateLocaleText("t('vtxcpmodal.completionRateColon')")), "".concat(item.rate || 0, "%")]
105
111
  }), /*#__PURE__*/_jsx(Progress, {
106
112
  strokeLinecap: "butt",
107
113
  percent: item.rate,
@@ -94,19 +94,23 @@ export default function AlarmRecord(props) {
94
94
  title: translateLocaleText("t('vtxzgmodal.hours')"),
95
95
  dataIndex: 'submitDate',
96
96
  key: 'submitDate',
97
- sorter: true
97
+ sorter: true,
98
+ width: 150
98
99
  }, {
99
100
  title: translateLocaleText("t('vtxcccpmodal.type3')"),
100
101
  dataIndex: 'abnormalTypeStr',
101
- key: 'abnormalTypeStr'
102
+ key: 'abnormalTypeStr',
103
+ width: 120
102
104
  }, {
103
105
  title: translateLocaleText("t('vtxcpmodal.reportVehicle')"),
104
106
  dataIndex: 'carCode',
105
- key: 'carCode'
107
+ key: 'carCode',
108
+ width: 120
106
109
  }, {
107
110
  title: translateLocaleText("t('vtxcccpmodal.status')"),
108
111
  dataIndex: 'dealStatusStr',
109
112
  key: 'dealStatusStr',
113
+ width: 120,
110
114
  render: function render(text, record) {
111
115
  return /*#__PURE__*/_jsxs("span", {
112
116
  style: {
@@ -149,7 +153,7 @@ export default function AlarmRecord(props) {
149
153
  };
150
154
  var handleTableChange = function handleTableChange(sorter) {
151
155
  setState({
152
- sort: "collectDay,".concat(sorter.order === 'ascend' ? 'ASC' : 'DESC')
156
+ sort: "submitDate,".concat(sorter.order === 'ascend' ? 'ASC' : 'DESC')
153
157
  });
154
158
  };
155
159
  var tableProps = {
@@ -43,8 +43,8 @@ var BaseService = {
43
43
  value: info === null || info === void 0 ? void 0 : info.divisionName
44
44
  }, {
45
45
  label: translateLocaleText("t('vtxshxqmodal.type2')"),
46
- key: 'classTypeName',
47
- value: info === null || info === void 0 ? void 0 : info.classTypeName
46
+ key: 'facilityClassName',
47
+ value: info === null || info === void 0 ? void 0 : info.facilityClassName
48
48
  }, {
49
49
  label: translateLocaleText("t('vtxshxqmodal.pointQuantityItems')"),
50
50
  key: 'throwPointNum',
@@ -2,6 +2,7 @@ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
2
2
  import { VmEmpty, VmLineCharts, VmPieCharts } from "../../../_components";
3
3
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  var Charts = function Charts(_ref) {
5
+ var _chartData$filter;
5
6
  var chartData = _ref.chartData,
6
7
  lineData = _ref.lineData;
7
8
  var legends = lineData.legends,
@@ -17,7 +18,9 @@ var Charts = function Charts(_ref) {
17
18
  });
18
19
  });
19
20
  }
20
- var total = chartData === null || chartData === void 0 ? void 0 : chartData.reduce(function (acc, cur) {
21
+ var total = chartData === null || chartData === void 0 || (_chartData$filter = chartData.filter(function (item) {
22
+ return item.alarmTypeCode;
23
+ })) === null || _chartData$filter === void 0 ? void 0 : _chartData$filter.reduce(function (acc, cur) {
21
24
  return acc + cur.value;
22
25
  }, 0);
23
26
  return /*#__PURE__*/_jsxs("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/modals2",
3
- "version": "6.0.0-beta.6",
3
+ "version": "6.0.0-beta.8",
4
4
  "description": "弹窗组件",
5
5
  "license": "MIT",
6
6
  "module": "lib/index.js",
@@ -51,10 +51,10 @@
51
51
  "@types/react-dom": "^18.0.0",
52
52
  "@umijs/lint": "^4.0.0",
53
53
  "@vtx/components": "^4.0.0-beta.58",
54
+ "@vtx/map-icon": "^2.0.62",
54
55
  "@vtx/ol-map": "^2.0.0-beta.16",
55
- "@vtx/player": "latest",
56
+ "@vtx/player": "^1.12.7",
56
57
  "@vtx/utils": "^1.0.20",
57
- "ol": "6.15.1",
58
58
  "antd": "6.0.0",
59
59
  "antd-dayjs-webpack-plugin": "^1.0.6",
60
60
  "babel-eslint": "^10.1.0",
@@ -65,22 +65,22 @@
65
65
  "father": "^4.1.0",
66
66
  "husky": "^8.0.1",
67
67
  "lint-staged": "^13.0.3",
68
+ "ol": "6.15.1",
68
69
  "prettier": "^2.7.1",
69
70
  "prettier-plugin-organize-imports": "^3.0.0",
70
71
  "prettier-plugin-packagejson": "^2.2.18",
71
72
  "react": "18.0.0",
72
73
  "react-dom": "18.0.0",
73
- "stylelint": "^14.9.1",
74
- "@vtx/map-icon": "^2.0.62"
74
+ "stylelint": "^14.9.1"
75
75
  },
76
76
  "peerDependencies": {
77
- "antd": ">=6",
78
77
  "@ant-design/icons": ">=6",
79
78
  "@vtx/components": ">=4.0.0-beta.0",
80
79
  "@vtx/map-icon": ">=2.0.0",
81
80
  "@vtx/ol-map": ">=2.0.0-beta.0",
82
81
  "@vtx/player": ">=1.0.0",
83
82
  "@vtx/utils": ">=1.0.20",
83
+ "antd": ">=6",
84
84
  "ol": ">=6.15.1",
85
85
  "react": ">=18",
86
86
  "react-dom": ">=18"