@titaui/pc 1.10.8 → 1.10.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 (46) hide show
  1. package/lib/components/change-okr-modal/index.js +3 -2
  2. package/lib/components/communication/CommunicationRecord.js +9 -9
  3. package/lib/components/communication/index.css +2 -1
  4. package/lib/components/communication/style.js +3 -3
  5. package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
  6. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +7 -9
  7. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +16 -4
  8. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +4 -4
  9. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +6 -1
  10. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +1 -1
  11. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +7 -9
  12. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +16 -4
  13. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +2 -13
  14. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +1 -1
  15. package/lib/components/dynamic/dynamic-item/index.css +2 -2
  16. package/lib/components/dynamic/dynamic-item/index.js +1 -1
  17. package/lib/components/dynamic/img/dynamic-point.svg +13 -0
  18. package/lib/components/file-list/components/single-file/index.js +1 -1
  19. package/lib/components/follower-visitor/index.js +6 -4
  20. package/lib/components/grid-layout/okr-progress/index.js +20 -30
  21. package/lib/components/okr-progress-modal/helper.js +20 -27
  22. package/lib/components/progress/circle-progress/index.js +1 -1
  23. package/lib/index.js +0 -16
  24. package/lib/utils/bs-global.js +8 -8
  25. package/package.json +1 -1
  26. package/lib/components/float-fixed-video-modal/img/close.png +0 -0
  27. package/lib/components/float-fixed-video-modal/img/full.svg +0 -21
  28. package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
  29. package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
  30. package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
  31. package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
  32. package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
  33. package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
  34. package/lib/components/float-fixed-video-modal/index.css +0 -243
  35. package/lib/components/float-fixed-video-modal/index.js +0 -334
  36. package/lib/components/float-fixed-video-modal/utils.js +0 -25
  37. package/lib/components/video-modal/img/bigFaqi.png +0 -0
  38. package/lib/components/video-modal/img/muted.svg +0 -16
  39. package/lib/components/video-modal/img/not-muted.svg +0 -16
  40. package/lib/components/video-modal/img/pause.svg +0 -17
  41. package/lib/components/video-modal/img/play.png +0 -0
  42. package/lib/components/video-modal/img/play.svg +0 -16
  43. package/lib/components/video-modal/img/small.svg +0 -22
  44. package/lib/components/video-modal/index.css +0 -213
  45. package/lib/components/video-modal/index.js +0 -322
  46. package/lib/components/video-modal/utils.js +0 -25
@@ -1,213 +0,0 @@
1
- .titaui-pc-video-modal__box {
2
- position: relative;
3
- height: 471px;
4
- border-bottom-left-radius: 24px;
5
- border-bottom-right-radius: 24px;
6
- overflow: hidden;
7
- cursor: pointer;
8
- }
9
-
10
- .titaui-pc-video-modal__mask1 {
11
- opacity: 0;
12
- transition: 0.5s;
13
- position: absolute;
14
- top: 0;
15
- width: 840px;
16
- height: 62px;
17
- background: linear-gradient(0deg, rgba(20, 28, 40, 0) 0%, #5a6068 100%);
18
- }
19
-
20
- .titaui-pc-video-modal__mask1--show {
21
- opacity: 1;
22
- transition: 0.5s;
23
- }
24
-
25
- .titaui-pc-video-modal__mask2 {
26
- opacity: 0;
27
- transition: 0.5s;
28
- position: absolute;
29
- bottom: 0;
30
- width: 840px;
31
- height: 62px;
32
- background: linear-gradient(180deg, rgba(20, 28, 40, 0) 0%, #5a6068 100%);
33
- }
34
-
35
- .titaui-pc-video-modal__mask2--show {
36
- opacity: 1;
37
- transition: 0.5s;
38
- }
39
-
40
- .titaui-pc-video-modal__video {
41
- width: 840px;
42
- height: 471px;
43
- }
44
-
45
- .titaui-pc-video-modal__controls {
46
- opacity: 0;
47
- transition: 0.5s;
48
- width: 100%;
49
- display: flex;
50
- align-items: center;
51
- justify-content: space-between;
52
- padding: 16px 32px 16px 32px;
53
- box-sizing: border-box;
54
- position: absolute;
55
- bottom: 0;
56
- z-index: 2;
57
- }
58
-
59
- .titaui-pc-video-modal__controls--show {
60
- opacity: 1;
61
- transition: 0.5s;
62
- }
63
-
64
- .titaui-pc-video-modal__controls-left {
65
- display: inline-flex;
66
- align-items: center;
67
- justify-content: center;
68
- }
69
-
70
- .titaui-pc-video-modal__controls-button {
71
- width: 24px;
72
- height: 24px;
73
- border-radius: 12px;
74
- display: inline-flex;
75
- align-items: center;
76
- justify-content: center;
77
- }
78
-
79
- .titaui-pc-video-modal__controls-button:hover {
80
- background: rgba(20, 28, 40, 0.6);
81
- }
82
-
83
- .titaui-pc-video-modal__controls-play {
84
- width: 16px;
85
- height: 16px;
86
- cursor: pointer;
87
- }
88
-
89
- .titaui-pc-video-modal__controls-time {
90
- font-size: 12px;
91
- color: #ffffff;
92
- line-height: 18px;
93
- }
94
-
95
- .titaui-pc-video-modal__controls-time:nth-of-type(1) {
96
- margin-left: 6px;
97
- }
98
-
99
- .titaui-pc-video-modal__controls-muted {
100
- width: 16px;
101
- height: 16px;
102
- }
103
-
104
- .titaui-pc-video-modal__controls-volume {
105
- display: inline-flex;
106
- align-items: center;
107
- justify-content: space-between;
108
- padding: 0 8px;
109
- box-sizing: border-box;
110
- width: 72px;
111
- height: 22px;
112
- background: rgba(20, 28, 40, 0.6);
113
- border-radius: 12px;
114
- }
115
-
116
- .titaui-pc-video-modal__controls-volume-progress {
117
- position: relative;
118
- width: 34px;
119
- height: 2px;
120
- background: rgba(255, 255, 255, 0.4);
121
- border-radius: 1px;
122
- }
123
-
124
- .titaui-pc-video-modal__controls-volume-progress--hidden {
125
- display: none;
126
- }
127
-
128
- .titaui-pc-video-modal__controls-volume-current {
129
- position: absolute;
130
- bottom: 0;
131
- left: 0;
132
- height: 2px;
133
- background: rgba(255, 255, 255, 0.6);
134
- border-radius: 1px;
135
- }
136
-
137
- .titaui-pc-video-modal__controls-volume-current::after {
138
- content: '';
139
- position: absolute;
140
- right: 0;
141
- bottom: -1px;
142
- width: 4px;
143
- height: 4px;
144
- border-radius: 50%;
145
- background: #ffffff;
146
- }
147
-
148
- .titaui-pc-video-modal__controls-volume-current--hidden {
149
- display: none;
150
- }
151
-
152
- .titaui-pc-video-modal__controls-right {
153
- display: inline-flex;
154
- align-items: center;
155
- }
156
-
157
- .titaui-pc-video-modal__controls-right-shrink {
158
- margin-left: 6px;
159
- width: 24px;
160
- height: 24px;
161
- border-radius: 12px;
162
- display: inline-flex;
163
- align-items: center;
164
- justify-content: center;
165
- }
166
-
167
- .titaui-pc-video-modal__controls-right-shrink:hover {
168
- background: rgba(20, 28, 40, 0.6);
169
- }
170
-
171
- .titaui-pc-video-modal__controls-right-shrink > img {
172
- width: 16px;
173
- height: 16px;
174
- }
175
-
176
- .titaui-pc-video-modal__progress {
177
- opacity: 0;
178
- transition: 0.5s;
179
- position: absolute;
180
- bottom: 56px;
181
- width: 100%;
182
- height: 2px;
183
- background: #ffffff;
184
- z-index: 2;
185
- }
186
-
187
- .titaui-pc-video-modal__progress:hover {
188
- height: 4px;
189
- }
190
-
191
- .titaui-pc-video-modal__progress--show {
192
- opacity: 1;
193
- transition: 0.5s;
194
- }
195
-
196
- .titaui-pc-video-modal__progress-current {
197
- position: absolute;
198
- left: 0;
199
- bottom: 0;
200
- background: #77be16;
201
- height: 100%;
202
- z-index: 3;
203
- }
204
-
205
- .titaui-pc-video-modal__progress-current-dot {
206
- position: absolute;
207
- right: 0;
208
- bottom: -2px;
209
- width: 8px;
210
- height: 8px;
211
- border-radius: 50%;
212
- background: #77be16;
213
- }
@@ -1,322 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _classnames = _interopRequireDefault(require("classnames"));
13
-
14
- var _dialog = _interopRequireDefault(require("../dialog"));
15
-
16
- var _utils = _interopRequireDefault(require("./utils"));
17
-
18
- var _play = _interopRequireDefault(require("./img/play.svg"));
19
-
20
- var _pause = _interopRequireDefault(require("./img/pause.svg"));
21
-
22
- var _muted = _interopRequireDefault(require("./img/muted.svg"));
23
-
24
- var _notMuted = _interopRequireDefault(require("./img/not-muted.svg"));
25
-
26
- var _small = _interopRequireDefault(require("./img/small.svg"));
27
-
28
- var _bigFaqi = _interopRequireDefault(require("./img/bigFaqi.png"));
29
-
30
- require("./index.css");
31
-
32
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
33
-
34
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
35
-
36
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
37
-
38
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39
-
40
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
41
-
42
- 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."); }
43
-
44
- 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); }
45
-
46
- 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; }
47
-
48
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
49
-
50
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
51
-
52
- var preCls = "titaui-pc-video-modal";
53
-
54
- var VideoModal = function VideoModal(props) {
55
- var visible = props.visible,
56
- _onClose = props.onClose,
57
- title = props.title,
58
- videoSrc = props.videoSrc,
59
- _props$canMini = props.canMini,
60
- canMini = _props$canMini === void 0 ? false : _props$canMini,
61
- _props$showSmallVideo = props.showSmallVideo,
62
- showSmallVideo = _props$showSmallVideo === void 0 ? function () {} : _props$showSmallVideo,
63
- _props$onCancel = props.onCancel,
64
- onCancel = _props$onCancel === void 0 ? function () {} : _props$onCancel;
65
-
66
- var _useState = (0, _react.useState)(false),
67
- _useState2 = _slicedToArray(_useState, 2),
68
- isOverModal = _useState2[0],
69
- setIsOverModal = _useState2[1];
70
-
71
- var _useState3 = (0, _react.useState)(true),
72
- _useState4 = _slicedToArray(_useState3, 2),
73
- isPlay = _useState4[0],
74
- setIsPlay = _useState4[1];
75
-
76
- var _useState5 = (0, _react.useState)(true),
77
- _useState6 = _slicedToArray(_useState5, 2),
78
- isMuted = _useState6[0],
79
- setIsMuted = _useState6[1];
80
-
81
- var _useState7 = (0, _react.useState)(false),
82
- _useState8 = _slicedToArray(_useState7, 2),
83
- isMouseDown = _useState8[0],
84
- setIsMouseDown = _useState8[1];
85
-
86
- var _useState9 = (0, _react.useState)(false),
87
- _useState10 = _slicedToArray(_useState9, 2),
88
- showDot = _useState10[0],
89
- setShowDot = _useState10[1];
90
-
91
- var _useState11 = (0, _react.useState)("00:00"),
92
- _useState12 = _slicedToArray(_useState11, 2),
93
- totalTime = _useState12[0],
94
- setTotalTime = _useState12[1];
95
-
96
- var _useState13 = (0, _react.useState)("00:00"),
97
- _useState14 = _slicedToArray(_useState13, 2),
98
- currentTime = _useState14[0],
99
- setCurrentTime = _useState14[1];
100
-
101
- var videoRef = (0, _react.useRef)(document.createElement("video"));
102
- var totalProgressRef = (0, _react.useRef)(document.createElement("div"));
103
- var progressRef = (0, _react.useRef)(document.createElement("div"));
104
- var boxRef = (0, _react.useRef)(document.createElement("div"));
105
- var volumeRef = (0, _react.useRef)(document.createElement("div")); // 播放/暂停
106
-
107
- var handlePlayVideo = function handlePlayVideo() {
108
- setIsPlay(!isPlay);
109
-
110
- if (isPlay) {
111
- videoRef.current.pause();
112
- } else {
113
- videoRef.current.play();
114
- }
115
- }; // 音量
116
-
117
-
118
- var handleChangeVolumeMuted = function handleChangeVolumeMuted() {
119
- setIsMuted(!isMuted);
120
- videoRef.current.muted = !videoRef.current.muted;
121
- }; // 鼠标移入移出进度条区域
122
-
123
-
124
- var handleMouseEnterProgress = function handleMouseEnterProgress() {
125
- setShowDot(true);
126
- };
127
-
128
- var handleMouseLeaveProgress = function handleMouseLeaveProgress() {
129
- setShowDot(false);
130
- }; // 获得点击进度条 进度条的宽度
131
-
132
-
133
- var getCurrentProgressWidth = function getCurrentProgressWidth(e) {
134
- var currentWidth = e.clientX - (document.documentElement.offsetWidth - 840) / 2;
135
- progressRef.current.style.width = "".concat(currentWidth, "px");
136
- videoRef.current.currentTime = videoRef.current.duration * currentWidth / 840;
137
- }; // 点击音量 音量进度条宽度
138
-
139
-
140
- var getCurrentVolumeWidth = function getCurrentVolumeWidth(e) {
141
- var currentWidth;
142
-
143
- if (canMini) {
144
- currentWidth = e.clientX - (document.documentElement.offsetWidth - 840) / 2 - 712;
145
- } else {
146
- currentWidth = e.clientX - (document.documentElement.offsetWidth - 840) / 2 - 742;
147
- }
148
-
149
- if (currentWidth <= 0) {
150
- setIsMuted(true);
151
- videoRef.current.muted = true;
152
- } else if (currentWidth >= 34) {
153
- volumeRef.current.style.width = "34px";
154
- videoRef.current.volume = 1;
155
- } else {
156
- volumeRef.current.style.width = "".concat(currentWidth, "px");
157
- videoRef.current.volume = currentWidth / 34;
158
- }
159
- }; // 点击进度条
160
-
161
-
162
- var handleClickTotalProgress = function handleClickTotalProgress(e) {
163
- getCurrentProgressWidth(e);
164
- }; // 拖动进度条
165
-
166
-
167
- var handleMouseDownProgress = function handleMouseDownProgress() {
168
- setIsMouseDown(true);
169
- };
170
-
171
- var handleMouseMoveProgress = function handleMouseMoveProgress(e) {
172
- if (isMouseDown) {
173
- getCurrentProgressWidth(e);
174
- }
175
- };
176
-
177
- var handleMouseUpProgress = function handleMouseUpProgress() {
178
- setIsMouseDown(false);
179
- }; // 点击音量进度条
180
-
181
-
182
- var handleMouseClickVolume = function handleMouseClickVolume(e) {
183
- getCurrentVolumeWidth(e);
184
- }; // 鼠标移入移出视频区域
185
-
186
-
187
- var handleMouseOverVideoModal = function handleMouseOverVideoModal() {
188
- setIsOverModal(true);
189
- };
190
-
191
- var handleMouseLeaveVideoModal = function handleMouseLeaveVideoModal() {
192
- setIsOverModal(false);
193
- };
194
-
195
- var handleCloseAndOpenSmallVideo = function handleCloseAndOpenSmallVideo() {
196
- onCancel();
197
- videoRef.current.pause();
198
- showSmallVideo();
199
- }; // 初始获得总时间
200
-
201
-
202
- (0, _react.useEffect)(function () {
203
- videoRef.current.onloadedmetadata = function () {
204
- setTotalTime(videoRef.current.duration.toString());
205
- };
206
- }, [videoRef.current.onloadedmetadata]); // 实时播放时间
207
-
208
- (0, _react.useEffect)(function () {
209
- videoRef.current.ontimeupdate = function () {
210
- setCurrentTime(videoRef.current.currentTime.toString());
211
- progressRef.current.style.width = "".concat(840 * videoRef.current.currentTime / videoRef.current.duration, "px");
212
- };
213
- }, [videoRef.current.ontimeupdate]); // 初始获得音量宽度
214
-
215
- (0, _react.useEffect)(function () {
216
- volumeRef.current.style.width = "".concat(34 * videoRef.current.volume, "px");
217
- }, [videoRef.current.onloadedmetadata]);
218
- (0, _react.useEffect)(function () {
219
- if (visible) {
220
- videoRef.current.play();
221
- videoRef.current.muted = true;
222
- setIsMuted(true);
223
- setIsPlay(true);
224
- } else {
225
- videoRef.current.pause();
226
- videoRef.current.muted = true;
227
- setIsMuted(true);
228
- setIsPlay(false);
229
- }
230
- }, [visible]);
231
- return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
232
- visible: visible,
233
- title: title,
234
- onClose: function onClose() {
235
- _onClose();
236
-
237
- videoRef.current.pause();
238
- videoRef.current.muted = true;
239
- setIsMuted(true);
240
- setIsPlay(false);
241
- },
242
- style: {
243
- width: "840px",
244
- borderRadius: "24px"
245
- },
246
- noHeadLine: true,
247
- noFooterLine: true,
248
- noFooter: true,
249
- ref: boxRef
250
- }, /*#__PURE__*/_react["default"].createElement("div", {
251
- className: "".concat(preCls, "__box"),
252
- onMouseOver: handleMouseOverVideoModal,
253
- onMouseLeave: handleMouseLeaveVideoModal,
254
- onFocus: handleMouseOverVideoModal
255
- }, /*#__PURE__*/_react["default"].createElement("video", {
256
- ref: videoRef,
257
- src: videoSrc,
258
- loop: true,
259
- autoPlay: true,
260
- muted: true,
261
- poster: _bigFaqi["default"],
262
- className: "".concat(preCls, "__video")
263
- }), /*#__PURE__*/_react["default"].createElement("div", {
264
- className: (0, _classnames["default"])("".concat(preCls, "__progress"), _defineProperty({}, "".concat(preCls, "__progress--show"), isOverModal)),
265
- onMouseEnter: handleMouseEnterProgress,
266
- onMouseLeave: handleMouseLeaveProgress,
267
- ref: totalProgressRef,
268
- onClick: handleClickTotalProgress,
269
- onMouseDown: handleMouseDownProgress,
270
- onMouseMove: handleMouseMoveProgress,
271
- onMouseUp: handleMouseUpProgress
272
- }, /*#__PURE__*/_react["default"].createElement("div", {
273
- className: "".concat(preCls, "__progress-current"),
274
- ref: progressRef
275
- }, /*#__PURE__*/_react["default"].createElement("div", {
276
- className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__progress-current-dot"), showDot))
277
- }))), /*#__PURE__*/_react["default"].createElement("div", {
278
- className: (0, _classnames["default"])("".concat(preCls, "__controls"), _defineProperty({}, "".concat(preCls, "__controls--show"), isOverModal))
279
- }, /*#__PURE__*/_react["default"].createElement("div", {
280
- className: "".concat(preCls, "__controls-left")
281
- }, /*#__PURE__*/_react["default"].createElement("div", {
282
- className: "".concat(preCls, "__controls-button"),
283
- onClick: handlePlayVideo
284
- }, /*#__PURE__*/_react["default"].createElement("img", {
285
- src: isPlay ? _pause["default"] : _play["default"],
286
- className: "".concat(preCls, "__controls-play"),
287
- alt: "\u64AD\u653E/\u6682\u505C"
288
- })), /*#__PURE__*/_react["default"].createElement("span", {
289
- className: "".concat(preCls, "__controls-time")
290
- }, (0, _utils["default"])(currentTime)), /*#__PURE__*/_react["default"].createElement("span", {
291
- className: "".concat(preCls, "__controls-time")
292
- }, " / ".concat((0, _utils["default"])(totalTime)))), /*#__PURE__*/_react["default"].createElement("div", {
293
- className: "".concat(preCls, "__controls-right")
294
- }, /*#__PURE__*/_react["default"].createElement("div", {
295
- className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-button"), isMuted), _defineProperty({}, "".concat(preCls, "__controls-volume"), !isMuted))
296
- }, /*#__PURE__*/_react["default"].createElement("div", {
297
- className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-volume-progress--hidden"), isMuted), "".concat(preCls, "__controls-volume-progress")),
298
- onClick: handleMouseClickVolume
299
- }, /*#__PURE__*/_react["default"].createElement("div", {
300
- className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-volume-current--hidden"), isMuted), "".concat(preCls, "__controls-volume-current")),
301
- ref: volumeRef
302
- })), /*#__PURE__*/_react["default"].createElement("div", {
303
- onClick: handleChangeVolumeMuted
304
- }, /*#__PURE__*/_react["default"].createElement("img", {
305
- src: isMuted ? _muted["default"] : _notMuted["default"],
306
- className: "".concat(preCls, "__controls-play"),
307
- alt: "\u97F3\u91CF"
308
- }))), canMini && /*#__PURE__*/_react["default"].createElement("div", {
309
- className: "".concat(preCls, "__controls-right-shrink"),
310
- onClick: handleCloseAndOpenSmallVideo
311
- }, /*#__PURE__*/_react["default"].createElement("img", {
312
- src: _small["default"],
313
- alt: "small"
314
- })))), /*#__PURE__*/_react["default"].createElement("div", {
315
- className: (0, _classnames["default"])("".concat(preCls, "__mask1"), _defineProperty({}, "".concat(preCls, "__mask1--show"), isOverModal))
316
- }), /*#__PURE__*/_react["default"].createElement("div", {
317
- className: (0, _classnames["default"])("".concat(preCls, "__mask2"), _defineProperty({}, "".concat(preCls, "__mask2--show"), isOverModal))
318
- }))));
319
- };
320
-
321
- var _default = VideoModal;
322
- exports["default"] = _default;
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var formatSecToDate = function formatSecToDate(value) {
9
- var result = parseInt(value, 10);
10
- var m = Math.floor(result / 60 % 60) < 10 ? "0".concat(Math.floor(result / 60 % 60)) : Math.floor(result / 60 % 60);
11
- var s = Math.floor(result % 60) < 10 ? "0".concat(Math.floor(result % 60)) : Math.floor(result % 60);
12
- var res = "";
13
-
14
- if (m !== "00") {
15
- res += "".concat(m, ":");
16
- } else {
17
- res += "00:";
18
- }
19
-
20
- res += "".concat(s);
21
- return res;
22
- };
23
-
24
- var _default = formatSecToDate;
25
- exports["default"] = _default;