@cloud-app-dev/vidc 3.0.8 → 3.0.9
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.
|
@@ -6,5 +6,5 @@ import './index.less';
|
|
|
6
6
|
* @param param0
|
|
7
7
|
* @returns
|
|
8
8
|
*/
|
|
9
|
-
declare function RecordPlayer({ list, children, queryRecord, onIndexChange, onClose, onCloseAll }: IRecordPlayerProps): JSX.Element;
|
|
9
|
+
declare function RecordPlayer({ list, children, queryRecord, onIndexChange, onClose, onCloseAll, download }: IRecordPlayerProps): JSX.Element;
|
|
10
10
|
export default RecordPlayer;
|
|
@@ -50,7 +50,8 @@ function RecordPlayer(_ref) {
|
|
|
50
50
|
queryRecord = _ref.queryRecord,
|
|
51
51
|
onIndexChange = _ref.onIndexChange,
|
|
52
52
|
onClose = _ref.onClose,
|
|
53
|
-
onCloseAll = _ref.onCloseAll
|
|
53
|
+
onCloseAll = _ref.onCloseAll,
|
|
54
|
+
download = _ref.download;
|
|
54
55
|
|
|
55
56
|
var _useState = useState({
|
|
56
57
|
screenNum: 4,
|
|
@@ -375,7 +376,8 @@ function RecordPlayer(_ref) {
|
|
|
375
376
|
onTimeChange: onTimeChange,
|
|
376
377
|
onClose: onClose,
|
|
377
378
|
onCloseAll: onCloseAll,
|
|
378
|
-
timeMode: state.timeMode
|
|
379
|
+
timeMode: state.timeMode,
|
|
380
|
+
download: download
|
|
379
381
|
}), /*#__PURE__*/React.createElement(SegmentTimeLine, {
|
|
380
382
|
begin: timeBegin,
|
|
381
383
|
updateState: updateState,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _nextTick from "@cloud-app-dev/utils/es/nextTick";
|
|
2
|
+
|
|
1
3
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2
4
|
|
|
3
5
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -5,7 +7,6 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5
7
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
8
|
|
|
7
9
|
import moment from 'moment';
|
|
8
|
-
import { nextTick } from 'process';
|
|
9
10
|
var hours = [1, 6, 12, 24];
|
|
10
11
|
var currentColor = '#FF000A';
|
|
11
12
|
var normalLineColor = '#ffffff';
|
|
@@ -202,7 +203,7 @@ var TimeSlider = /*#__PURE__*/function () {
|
|
|
202
203
|
_this.hours_per_ruler = _this.zoom;
|
|
203
204
|
}
|
|
204
205
|
|
|
205
|
-
|
|
206
|
+
_nextTick(function () {
|
|
206
207
|
return _this.options.onHoursPerChange && _this.options.onHoursPerChange(_this.hours_per_ruler);
|
|
207
208
|
});
|
|
208
209
|
|
package/package.json
CHANGED