@titaui/pc 1.10.5 → 1.10.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.
- package/lib/components/change-okr-modal/index.js +3 -0
- package/lib/components/communication/CommunicationRecord.js +18 -12
- package/lib/components/communication/index.css +48 -9
- package/lib/components/communication/index.js +67 -28
- package/lib/components/communication/style.js +7 -5
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/dynamic/components/obj-status/index.css +3 -19
- package/lib/components/dynamic/components/obj-status/index.js +7 -8
- package/lib/components/dynamic/components/obj-status/utils.js +37 -0
- package/lib/components/dynamic/components/percent/index.css +1 -1
- package/lib/components/dynamic/components/title/index.css +21 -22
- package/lib/components/dynamic/components/title/index.js +20 -8
- package/lib/components/dynamic/dynamic-item/components/header/index.css +6 -6
- package/lib/components/dynamic/dynamic-item/components/header/index.js +12 -6
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +35 -24
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +35 -29
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +6 -34
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +59 -19
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +27 -19
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +49 -38
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +49 -44
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +41 -29
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +23 -29
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +33 -16
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +11 -24
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +26 -41
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +26 -41
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +15 -57
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +31 -80
- package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +10 -23
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +45 -26
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +41 -33
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +19 -6
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +11 -17
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +21 -23
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +31 -27
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +8 -18
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -21
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +6 -36
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +10 -18
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +9 -25
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +34 -30
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -24
- package/lib/components/dynamic/dynamic-item/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/index.js +38 -8
- package/lib/components/dynamic/util.js +41 -81
- package/lib/components/file-list/components/single-file/index.css +9 -8
- package/lib/components/float-fixed-video-modal/img/close.png +0 -0
- package/lib/components/float-fixed-video-modal/img/full.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/muted.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/pause.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/play.svg +22 -0
- package/lib/components/float-fixed-video-modal/img/small.svg +22 -0
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +21 -0
- package/lib/components/float-fixed-video-modal/index.css +243 -0
- package/lib/components/float-fixed-video-modal/index.js +334 -0
- package/lib/components/float-fixed-video-modal/utils.js +25 -0
- package/lib/components/mblog/context.js +3 -1
- package/lib/components/mblog/index.css +7 -0
- package/lib/components/mblog/index.js +31 -4
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- package/lib/components/progress/circle-progress/index.css +1 -0
- package/lib/components/progress/circle-progress/index.js +7 -2
- package/lib/components/search-key-handle/index.js +7 -2
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/muted.svg +16 -0
- package/lib/components/video-modal/img/not-muted.svg +16 -0
- package/lib/components/video-modal/img/pause.svg +17 -0
- package/lib/components/video-modal/img/play.png +0 -0
- package/lib/components/video-modal/img/play.svg +16 -0
- package/lib/components/video-modal/img/small.svg +22 -0
- package/lib/components/video-modal/index.css +213 -0
- package/lib/components/video-modal/index.js +322 -0
- package/lib/components/video-modal/utils.js +25 -0
- package/lib/index.js +16 -0
- package/lib/utils/tools.js +11 -2
- package/package.json +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
|
@@ -0,0 +1,334 @@
|
|
|
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 _utils = _interopRequireDefault(require("./utils"));
|
|
15
|
+
|
|
16
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
17
|
+
|
|
18
|
+
var _videoModal = _interopRequireDefault(require("../video-modal"));
|
|
19
|
+
|
|
20
|
+
var _close = _interopRequireDefault(require("./img/close.png"));
|
|
21
|
+
|
|
22
|
+
var _pause = _interopRequireDefault(require("./img/pause.svg"));
|
|
23
|
+
|
|
24
|
+
var _play = _interopRequireDefault(require("./img/play.svg"));
|
|
25
|
+
|
|
26
|
+
var _volume = _interopRequireDefault(require("./img/volume.svg"));
|
|
27
|
+
|
|
28
|
+
var _full = _interopRequireDefault(require("./img/full.svg"));
|
|
29
|
+
|
|
30
|
+
var _muted = _interopRequireDefault(require("./img/muted.svg"));
|
|
31
|
+
|
|
32
|
+
var _smallFaQi = _interopRequireDefault(require("./img/smallFaQi.png"));
|
|
33
|
+
|
|
34
|
+
require("./index.css");
|
|
35
|
+
|
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
45
|
+
|
|
46
|
+
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."); }
|
|
47
|
+
|
|
48
|
+
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); }
|
|
49
|
+
|
|
50
|
+
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; }
|
|
51
|
+
|
|
52
|
+
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; }
|
|
53
|
+
|
|
54
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
55
|
+
|
|
56
|
+
var preCls = "titaui-pc-float-fixed-video";
|
|
57
|
+
|
|
58
|
+
var FloatVideo = function FloatVideo(props) {
|
|
59
|
+
var _props$visible = props.visible,
|
|
60
|
+
visible = _props$visible === void 0 ? true : _props$visible,
|
|
61
|
+
_props$title = props.title,
|
|
62
|
+
title = _props$title === void 0 ? "如何发起考核" : _props$title,
|
|
63
|
+
_props$videoSrc = props.videoSrc,
|
|
64
|
+
videoSrc = _props$videoSrc === void 0 ? "https://club.tita.com/wp-content/uploads/2022/03/1646114589-20220301140309117.mp4" : _props$videoSrc;
|
|
65
|
+
|
|
66
|
+
var _useState = (0, _react.useState)(false),
|
|
67
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
68
|
+
isHover = _useState2[0],
|
|
69
|
+
setIsHover = _useState2[1];
|
|
70
|
+
|
|
71
|
+
var _useState3 = (0, _react.useState)(false),
|
|
72
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
73
|
+
videoModalVisible = _useState4[0],
|
|
74
|
+
setVideoModalVisible = _useState4[1];
|
|
75
|
+
|
|
76
|
+
var _useState5 = (0, _react.useState)(true),
|
|
77
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
78
|
+
isPlay = _useState6[0],
|
|
79
|
+
setIsPlay = _useState6[1];
|
|
80
|
+
|
|
81
|
+
var _useState7 = (0, _react.useState)(true),
|
|
82
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
83
|
+
isMuted = _useState8[0],
|
|
84
|
+
setIsMuted = _useState8[1];
|
|
85
|
+
|
|
86
|
+
var _useState9 = (0, _react.useState)("00:00"),
|
|
87
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
88
|
+
totalTime = _useState10[0],
|
|
89
|
+
setTotalTime = _useState10[1];
|
|
90
|
+
|
|
91
|
+
var _useState11 = (0, _react.useState)("00:00"),
|
|
92
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
93
|
+
currentTime = _useState12[0],
|
|
94
|
+
setCurrentTime = _useState12[1];
|
|
95
|
+
|
|
96
|
+
var _useState13 = (0, _react.useState)(false),
|
|
97
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
98
|
+
showDot = _useState14[0],
|
|
99
|
+
setShowDot = _useState14[1];
|
|
100
|
+
|
|
101
|
+
var _useState15 = (0, _react.useState)(false),
|
|
102
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
103
|
+
isMouseDown = _useState16[0],
|
|
104
|
+
setIsMouseDown = _useState16[1];
|
|
105
|
+
|
|
106
|
+
var videoRef = (0, _react.useRef)(document.createElement("video"));
|
|
107
|
+
var volumeRef = (0, _react.useRef)(document.createElement("div"));
|
|
108
|
+
var totalProgressRef = (0, _react.useRef)(document.createElement("div"));
|
|
109
|
+
var progressRef = (0, _react.useRef)(document.createElement("div"));
|
|
110
|
+
var boxRef = (0, _react.useRef)(document.createElement("div"));
|
|
111
|
+
|
|
112
|
+
var handlePlayVideo = function handlePlayVideo() {
|
|
113
|
+
setIsPlay(!isPlay);
|
|
114
|
+
|
|
115
|
+
if (isPlay) {
|
|
116
|
+
videoRef.current.pause();
|
|
117
|
+
} else {
|
|
118
|
+
videoRef.current.play();
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
var handleChangeVolumeMuted = function handleChangeVolumeMuted() {
|
|
123
|
+
setIsMuted(!isMuted);
|
|
124
|
+
videoRef.current.muted = !videoRef.current.muted;
|
|
125
|
+
}; // 鼠标移入移出进度条区域
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
var handleMouseEnterProgress = function handleMouseEnterProgress() {
|
|
129
|
+
setShowDot(true);
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
var handleMouseLeaveProgress = function handleMouseLeaveProgress() {
|
|
133
|
+
setShowDot(false);
|
|
134
|
+
}; // 点击音量 音量进度条宽度
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
var getCurrentVolumeWidth = function getCurrentVolumeWidth(e) {
|
|
138
|
+
var currentWidth = e.clientX - (document.documentElement.offsetWidth - 178);
|
|
139
|
+
|
|
140
|
+
if (currentWidth <= 0) {
|
|
141
|
+
setIsMuted(true);
|
|
142
|
+
videoRef.current.muted = true;
|
|
143
|
+
} else if (currentWidth >= 34) {
|
|
144
|
+
volumeRef.current.style.width = "34px";
|
|
145
|
+
videoRef.current.volume = 1;
|
|
146
|
+
} else {
|
|
147
|
+
volumeRef.current.style.width = "".concat(currentWidth, "px");
|
|
148
|
+
videoRef.current.volume = currentWidth / 34;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
var handleMouseClickVolume = function handleMouseClickVolume(e) {
|
|
153
|
+
getCurrentVolumeWidth(e);
|
|
154
|
+
}; // 获得点击进度条 进度条的宽度
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
var getCurrentProgressWidth = function getCurrentProgressWidth(e) {
|
|
158
|
+
var currentWidth = e.clientX - (document.documentElement.offsetWidth - 432);
|
|
159
|
+
progressRef.current.style.width = "".concat(currentWidth, "px");
|
|
160
|
+
videoRef.current.currentTime = videoRef.current.duration * currentWidth / 360;
|
|
161
|
+
}; // 点击进度条
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
var handleClickTotalProgress = function handleClickTotalProgress(e) {
|
|
165
|
+
getCurrentProgressWidth(e);
|
|
166
|
+
}; // 拖动进度条
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
var handleMouseDownProgress = function handleMouseDownProgress() {
|
|
170
|
+
setIsMouseDown(true);
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
var handleMouseMoveProgress = function handleMouseMoveProgress(e) {
|
|
174
|
+
if (isMouseDown) {
|
|
175
|
+
getCurrentProgressWidth(e);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
var handleMouseUpProgress = function handleMouseUpProgress() {
|
|
180
|
+
setIsMouseDown(false);
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
var handleCloseFloatVideo = function handleCloseFloatVideo() {
|
|
184
|
+
localStorage.setItem("hide_performance_small_video_".concat((0, _bsGlobal.getUserInfo)().Id), "true");
|
|
185
|
+
boxRef.current.style.display = "none";
|
|
186
|
+
videoRef.current.pause();
|
|
187
|
+
videoRef.current.currentTime = 0;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
var handleShowBigVideo = function handleShowBigVideo() {
|
|
191
|
+
handleCloseFloatVideo();
|
|
192
|
+
setVideoModalVisible(true);
|
|
193
|
+
videoRef.current.pause();
|
|
194
|
+
setIsPlay(false);
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
var handleCloseBigVideo = function handleCloseBigVideo() {
|
|
198
|
+
setVideoModalVisible(false);
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
var showSmallVideo = function showSmallVideo() {
|
|
202
|
+
videoRef.current.play();
|
|
203
|
+
setIsPlay(true);
|
|
204
|
+
videoRef.current.muted = true;
|
|
205
|
+
setIsMuted(true);
|
|
206
|
+
boxRef.current.style.display = "block";
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
var handleMouseOverVideo = function handleMouseOverVideo() {
|
|
210
|
+
setIsHover(true);
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
var handleMouseLeaveVideo = function handleMouseLeaveVideo() {
|
|
214
|
+
setIsHover(false);
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
(0, _react.useEffect)(function () {
|
|
218
|
+
videoRef.current.onloadedmetadata = function () {
|
|
219
|
+
setTotalTime(videoRef.current.duration.toString());
|
|
220
|
+
};
|
|
221
|
+
}, [videoRef.current.onloadedmetadata]);
|
|
222
|
+
(0, _react.useEffect)(function () {
|
|
223
|
+
videoRef.current.ontimeupdate = function () {
|
|
224
|
+
setCurrentTime(videoRef.current.currentTime.toString());
|
|
225
|
+
progressRef.current.style.width = "".concat(360 * videoRef.current.currentTime / videoRef.current.duration, "px");
|
|
226
|
+
};
|
|
227
|
+
}, [videoRef.current.ontimeupdate]);
|
|
228
|
+
(0, _react.useEffect)(function () {
|
|
229
|
+
volumeRef.current.style.width = "".concat(34 * videoRef.current.volume, "px");
|
|
230
|
+
}, [videoRef.current.onloadedmetadata]);
|
|
231
|
+
(0, _react.useEffect)(function () {
|
|
232
|
+
if (visible) {
|
|
233
|
+
videoRef.current.play();
|
|
234
|
+
setIsPlay(true);
|
|
235
|
+
videoRef.current.muted = true;
|
|
236
|
+
setIsMuted(true);
|
|
237
|
+
boxRef.current.style.display = "block";
|
|
238
|
+
} else {
|
|
239
|
+
videoRef.current.pause();
|
|
240
|
+
setIsPlay(false);
|
|
241
|
+
videoRef.current.muted = true;
|
|
242
|
+
setIsMuted(true);
|
|
243
|
+
boxRef.current.style.display = "none";
|
|
244
|
+
}
|
|
245
|
+
}, [visible]);
|
|
246
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
247
|
+
className: preCls,
|
|
248
|
+
ref: boxRef,
|
|
249
|
+
onMouseOver: handleMouseOverVideo,
|
|
250
|
+
onMouseLeave: handleMouseLeaveVideo,
|
|
251
|
+
onFocus: handleMouseOverVideo
|
|
252
|
+
}, /*#__PURE__*/_react["default"].createElement("video", {
|
|
253
|
+
ref: videoRef,
|
|
254
|
+
src: videoSrc,
|
|
255
|
+
loop: true,
|
|
256
|
+
autoPlay: true,
|
|
257
|
+
muted: true,
|
|
258
|
+
poster: _smallFaQi["default"],
|
|
259
|
+
className: "".concat(preCls, "__video")
|
|
260
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
261
|
+
className: (0, _classnames["default"])("".concat(preCls, "__progress"), _defineProperty({}, "".concat(preCls, "__progress--show"), isHover)),
|
|
262
|
+
onMouseEnter: handleMouseEnterProgress,
|
|
263
|
+
onMouseLeave: handleMouseLeaveProgress,
|
|
264
|
+
ref: totalProgressRef,
|
|
265
|
+
onClick: handleClickTotalProgress,
|
|
266
|
+
onMouseDown: handleMouseDownProgress,
|
|
267
|
+
onMouseMove: handleMouseMoveProgress,
|
|
268
|
+
onMouseUp: handleMouseUpProgress
|
|
269
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
270
|
+
className: "".concat(preCls, "__progress-current"),
|
|
271
|
+
ref: progressRef
|
|
272
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
273
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__progress-current-dot"), showDot))
|
|
274
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
275
|
+
className: (0, _classnames["default"])("".concat(preCls, "__controls"), _defineProperty({}, "".concat(preCls, "__controls--show"), isHover))
|
|
276
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
277
|
+
className: "".concat(preCls, "__controls-left")
|
|
278
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
279
|
+
onClick: handlePlayVideo,
|
|
280
|
+
className: (0, _classnames["default"])("".concat(preCls, "__controls-play"), "".concat(preCls, "__controls-button"))
|
|
281
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
282
|
+
src: isPlay ? _play["default"] : _pause["default"],
|
|
283
|
+
alt: "play"
|
|
284
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
285
|
+
className: "".concat(preCls, "__controls-time")
|
|
286
|
+
}, (0, _utils["default"])(currentTime)), /*#__PURE__*/_react["default"].createElement("span", {
|
|
287
|
+
className: "".concat(preCls, "__controls-time")
|
|
288
|
+
}, " / ".concat((0, _utils["default"])(totalTime)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
289
|
+
className: "".concat(preCls, "__controls-right")
|
|
290
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
291
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-button"), isMuted), _defineProperty({}, "".concat(preCls, "__controls-volume"), !isMuted))
|
|
292
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
293
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-volume-progress--hidden"), isMuted), "".concat(preCls, "__controls-volume-progress")),
|
|
294
|
+
onClick: handleMouseClickVolume
|
|
295
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
296
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-volume-current--hidden"), isMuted), "".concat(preCls, "__controls-volume-current")),
|
|
297
|
+
ref: volumeRef
|
|
298
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
299
|
+
onClick: handleChangeVolumeMuted
|
|
300
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
301
|
+
src: isMuted ? _muted["default"] : _volume["default"],
|
|
302
|
+
className: "".concat(preCls, "__controls-play"),
|
|
303
|
+
alt: "\u97F3\u91CF"
|
|
304
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
305
|
+
className: "".concat(preCls, "__controls-full"),
|
|
306
|
+
onClick: handleShowBigVideo
|
|
307
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
308
|
+
src: _full["default"],
|
|
309
|
+
alt: "full"
|
|
310
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
311
|
+
className: (0, _classnames["default"])("".concat(preCls, "__mask1"), _defineProperty({}, "".concat(preCls, "__mask1--show"), isHover))
|
|
312
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
313
|
+
className: "".concat(preCls, "__mask1-title")
|
|
314
|
+
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
315
|
+
onClick: handleCloseFloatVideo
|
|
316
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
317
|
+
src: _close["default"],
|
|
318
|
+
alt: "\u5173\u95ED",
|
|
319
|
+
className: "".concat(preCls, "__mask1-close")
|
|
320
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
321
|
+
className: (0, _classnames["default"])("".concat(preCls, "__mask2"), _defineProperty({}, "".concat(preCls, "__mask2--show"), isHover))
|
|
322
|
+
}), /*#__PURE__*/_react["default"].createElement(_videoModal["default"], {
|
|
323
|
+
title: title,
|
|
324
|
+
videoSrc: videoSrc,
|
|
325
|
+
visible: videoModalVisible,
|
|
326
|
+
onClose: handleCloseBigVideo,
|
|
327
|
+
onCancel: handleCloseBigVideo,
|
|
328
|
+
canMini: true,
|
|
329
|
+
showSmallVideo: showSmallVideo
|
|
330
|
+
}));
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
var _default = FloatVideo;
|
|
334
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
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;
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
|
|
12
|
-
var _default = /*#__PURE__*/_react["default"].createContext({
|
|
12
|
+
var _default = /*#__PURE__*/_react["default"].createContext({
|
|
13
|
+
popContainer: document.body
|
|
14
|
+
});
|
|
13
15
|
|
|
14
16
|
exports["default"] = _default;
|
|
@@ -15,6 +15,8 @@ var _MblogContent = _interopRequireDefault(require("./components/MblogContent"))
|
|
|
15
15
|
|
|
16
16
|
var _MblogAction = _interopRequireDefault(require("./components/MblogAction"));
|
|
17
17
|
|
|
18
|
+
var _avatar = _interopRequireDefault(require("../avatar"));
|
|
19
|
+
|
|
18
20
|
var _bsGlobal = require("../../utils/bs-global");
|
|
19
21
|
|
|
20
22
|
var _index = require("./common/index");
|
|
@@ -25,6 +27,8 @@ var _platform = require("../../utils/platform");
|
|
|
25
27
|
|
|
26
28
|
var _getLocale = require("../../utils/getLocale");
|
|
27
29
|
|
|
30
|
+
require("./index.css");
|
|
31
|
+
|
|
28
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
33
|
|
|
30
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); }
|
|
@@ -51,6 +55,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
51
55
|
|
|
52
56
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
53
57
|
|
|
58
|
+
var prefix = 'titaui-mblog';
|
|
59
|
+
|
|
54
60
|
var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
55
61
|
_inherits(MBlog, _PureComponent);
|
|
56
62
|
|
|
@@ -235,6 +241,11 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
235
241
|
// 取消
|
|
236
242
|
_this.props.onMblogSubmit(submitType);
|
|
237
243
|
}
|
|
244
|
+
|
|
245
|
+
_this.setState({
|
|
246
|
+
textareaValue: '',
|
|
247
|
+
uploadSuccessFilesPath: []
|
|
248
|
+
});
|
|
238
249
|
};
|
|
239
250
|
|
|
240
251
|
_this._dropHandler = function (event) {
|
|
@@ -398,7 +409,8 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
398
409
|
_this$props3$submitTe = _this$props3.submitText,
|
|
399
410
|
submitText = _this$props3$submitTe === void 0 ? (0, _getLocale.getLocale)("Mod_Publish") : _this$props3$submitTe,
|
|
400
411
|
setTextareaRef = _this$props3.setTextareaRef,
|
|
401
|
-
disableRangeSelect = _this$props3.disableRangeSelect
|
|
412
|
+
disableRangeSelect = _this$props3.disableRangeSelect,
|
|
413
|
+
showUser = _this$props3.showUser;
|
|
402
414
|
var _this$state2 = this.state,
|
|
403
415
|
localStroageKey = _this$state2.localStroageKey,
|
|
404
416
|
visibility = _this$state2.visibility,
|
|
@@ -411,7 +423,21 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
411
423
|
isAtAll = _this$state2.isAtAll;
|
|
412
424
|
var fSize = (0, _bsGlobal.getUploadMaxSize)();
|
|
413
425
|
var fTip = attachmentTipText || (0, _getLocale.getLocale)("OKR_MyO_KRP_Draganddropu").replace("50MB", "".concat(fSize, "MB"));
|
|
414
|
-
|
|
426
|
+
var user = (0, _bsGlobal.getUserInfo)();
|
|
427
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
428
|
+
className: prefix
|
|
429
|
+
}, showUser && /*#__PURE__*/_react["default"].createElement("div", {
|
|
430
|
+
className: "".concat(prefix, "__avatar")
|
|
431
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
432
|
+
size: {
|
|
433
|
+
width: 28,
|
|
434
|
+
textNum: 1,
|
|
435
|
+
fontSize: 14
|
|
436
|
+
},
|
|
437
|
+
name: user.Name,
|
|
438
|
+
color: user.UserAvatar.Color,
|
|
439
|
+
src: user.UserAvatar.Medium
|
|
440
|
+
})), /*#__PURE__*/_react["default"].createElement(_style.MBlogBox, {
|
|
415
441
|
className: className,
|
|
416
442
|
ref: "mblogbox",
|
|
417
443
|
onDrop: this._dropHandler,
|
|
@@ -490,7 +516,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
490
516
|
id: this.previewid
|
|
491
517
|
}), !(0, _platform.isPlatform)("wx") && isShowDragMask && /*#__PURE__*/_react["default"].createElement(_style.DragEffect, {
|
|
492
518
|
className: "tu-icon-inbox-upload"
|
|
493
|
-
}));
|
|
519
|
+
})));
|
|
494
520
|
}
|
|
495
521
|
}]);
|
|
496
522
|
|
|
@@ -531,5 +557,6 @@ MBlog.defaultProps = {
|
|
|
531
557
|
// 1公开,2私密 3部门
|
|
532
558
|
isShowRangeDropDown: true,
|
|
533
559
|
isShowBtnCancel: true,
|
|
534
|
-
submitStatus: 0
|
|
560
|
+
submitStatus: 0,
|
|
561
|
+
showUser: false
|
|
535
562
|
};
|
|
@@ -13,12 +13,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n .uploadFile__preview__list {\n padding-bottom: 10px;\n background: #ffffff;\n display: flex;\n flex-wrap: wrap;\n max-height: 300px;\n overflow-y: auto;\n\n .preview__content {\n margin-top: 10px;\n margin-right: 10px;\n border-radius: 8px;\n }\n }\n"]))); // MblogContent
|
|
16
|
+
var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n flex: 1;\n\n .uploadFile__preview__list {\n padding-bottom: 10px;\n background: #ffffff;\n display: flex;\n flex-wrap: wrap;\n max-height: 300px;\n overflow-y: auto;\n\n .preview__content {\n margin-top: 10px;\n margin-right: 10px;\n border-radius: 8px;\n }\n }\n"]))); // MblogContent
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
exports.MBlogBox = MBlogBox;
|
|
20
20
|
|
|
21
|
-
var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #DFE3EA;\n border-radius:
|
|
21
|
+
var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #DFE3EA;\n border-radius: 12px;\n background-color: #fff;\n position: relative;\n transition: all .2s ease-in-out;\n height: 120px;\n box-sizing: border-box;\n\n &.input_default-active {\n box-shadow: inset 0px 0px 4px 0px rgba(40, 121, 255, 0.3);\n border-color: #2879ff;\n }\n"])));
|
|
22
22
|
|
|
23
23
|
exports.DivMblogContent = DivMblogContent;
|
|
24
24
|
|
|
@@ -47,7 +47,7 @@ var Tips = _styledComponents["default"].div(_templateObject7 || (_templateObject
|
|
|
47
47
|
|
|
48
48
|
exports.Tips = Tips;
|
|
49
49
|
|
|
50
|
-
var MblogActionWrapper = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 30px;\n padding:
|
|
50
|
+
var MblogActionWrapper = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 30px;\n padding: 16px 0 2px 0;\n font-size: 13px;\n line-height: 20px;\n color: #565E66;\n background-color: #ffffff;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))); // 左侧按钮
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
exports.MblogActionWrapper = MblogActionWrapper;
|
|
@@ -66,7 +66,7 @@ var IconSpan = _styledComponents["default"].span(_templateObject11 || (_template
|
|
|
66
66
|
|
|
67
67
|
exports.IconSpan = IconSpan;
|
|
68
68
|
|
|
69
|
-
var RightBtnGroupWrapper = _styledComponents["default"].div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n align-items: center;\n\n button {\n min-width:
|
|
69
|
+
var RightBtnGroupWrapper = _styledComponents["default"].div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n align-items: center;\n\n button {\n min-width: 80px;\n height: 32px;\n box-sizing: border-box;\n border-radius: 18px;\n border: none;\n }\n"])));
|
|
70
70
|
|
|
71
71
|
exports.RightBtnGroupWrapper = RightBtnGroupWrapper;
|
|
72
72
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -17,10 +17,13 @@ require("./index.css");
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
20
|
-
function
|
|
20
|
+
var EEmpty = function EEmpty(props) {
|
|
21
21
|
var index = props.index;
|
|
22
22
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
23
23
|
key: index,
|
|
24
24
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-empty-node"))
|
|
25
|
-
}, (0, _getLocale.getLocale)("OKR_MyO_E_SupportedtaskProject")
|
|
26
|
-
}
|
|
25
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_E_SupportedtaskProject"));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var _default = EEmpty;
|
|
29
|
+
exports["default"] = _default;
|
|
@@ -345,11 +345,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
345
345
|
avatar: SuperiorUser.UserAvatar
|
|
346
346
|
});
|
|
347
347
|
} else {
|
|
348
|
-
setToUser({
|
|
349
|
-
name: Name,
|
|
350
|
-
userId: Id,
|
|
351
|
-
avatar: UserAvatar
|
|
352
|
-
});
|
|
348
|
+
setToUser({});
|
|
353
349
|
}
|
|
354
350
|
|
|
355
351
|
parenOkrtRef.current && parenOkrtRef.current.show(document.body, 0);
|
|
@@ -35,7 +35,9 @@ function CircleProgress(props) {
|
|
|
35
35
|
_props$showTextConten = props.showTextContent,
|
|
36
36
|
showTextContent = _props$showTextConten === void 0 ? true : _props$showTextConten,
|
|
37
37
|
_props$textcolor = props.textcolor,
|
|
38
|
-
textcolor = _props$textcolor === void 0 ? "#89919F" : _props$textcolor
|
|
38
|
+
textcolor = _props$textcolor === void 0 ? "#89919F" : _props$textcolor,
|
|
39
|
+
_props$textClass = props.textClass,
|
|
40
|
+
textClass = _props$textClass === void 0 ? "" : _props$textClass;
|
|
39
41
|
var p = percent > 100 ? 100 : percent;
|
|
40
42
|
var c = Math.round((size - width * 2) * Math.PI);
|
|
41
43
|
var remainC = Math.round(c * (100 - p) / 100);
|
|
@@ -83,7 +85,7 @@ function CircleProgress(props) {
|
|
|
83
85
|
text: "".concat(percent, "%"),
|
|
84
86
|
maxWidth: 50
|
|
85
87
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
86
|
-
className: "text-content",
|
|
88
|
+
className: "".concat(textClass, " text-content"),
|
|
87
89
|
style: {
|
|
88
90
|
marginLeft: 2,
|
|
89
91
|
color: textcolor
|
|
@@ -91,5 +93,8 @@ function CircleProgress(props) {
|
|
|
91
93
|
}, "".concat(percent, "%"))));
|
|
92
94
|
}
|
|
93
95
|
|
|
96
|
+
CircleProgress.defaultProps = {
|
|
97
|
+
textClass: ""
|
|
98
|
+
};
|
|
94
99
|
var _default = CircleProgress;
|
|
95
100
|
exports["default"] = _default;
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
|
|
12
|
-
function SearchKeyHandle(_ref) {
|
|
12
|
+
var SearchKeyHandle = function SearchKeyHandle(_ref) {
|
|
13
13
|
var _ref$str = _ref.str,
|
|
14
14
|
str = _ref$str === void 0 ? "" : _ref$str,
|
|
15
15
|
_ref$keyWord = _ref.keyWord,
|
|
@@ -29,7 +29,12 @@ function SearchKeyHandle(_ref) {
|
|
|
29
29
|
|
|
30
30
|
return item;
|
|
31
31
|
}));
|
|
32
|
-
}
|
|
32
|
+
};
|
|
33
33
|
|
|
34
|
+
SearchKeyHandle.defaultProps = {
|
|
35
|
+
str: "",
|
|
36
|
+
keyWord: "",
|
|
37
|
+
color: ""
|
|
38
|
+
};
|
|
34
39
|
var _default = SearchKeyHandle;
|
|
35
40
|
exports["default"] = _default;
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="180px" height="186px" viewBox="0 0 180 186" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>静音</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<filter color-interpolation-filters="auto" id="filter-1">
|
|
6
|
+
<feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 1.000000 0"></feColorMatrix>
|
|
7
|
+
</filter>
|
|
8
|
+
</defs>
|
|
9
|
+
<g id="线性" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10
|
+
<g id="静音" transform="translate(-30.000000, -27.000000)" filter="url(#filter-1)">
|
|
11
|
+
<g>
|
|
12
|
+
<path d="M49.3149643,69.1132143 L63.8847897,83.6834846 C55.7759466,87.6753931 50.1590828,95.9740232 50.0033233,105.6033 L50,106.014476 L50,133.986771 C50,147.581602 60.885103,158.62813 74.3959856,158.847701 L74.8062016,158.851032 L84.7965877,158.851032 C91.1425837,158.851032 97.2237483,161.364066 101.715798,165.829264 L102.033938,166.151519 L124.488994,189.329779 C127.287246,191.700034 130.832503,193.000457 134.496124,193.000457 C142.952968,193.000457 149.828362,186.21362 149.996836,177.777414 L150,177.460293 L150,169.799 L168.362354,188.160381 C163.827612,202.55479 150.386556,213.000457 134.496124,213.000457 C126.279823,213.000457 118.325168,210.148157 111.982629,204.941373 L111.562196,204.590772 L110.810236,203.953825 L87.6694795,180.06778 C86.9698379,179.345605 86.026075,178.915478 85.0278322,178.857715 L84.7965877,178.851032 L74.8062016,178.851032 C50.2975021,178.851032 30.4014694,159.154093 30.0059996,134.728376 L30,133.986771 L30,106.014476 C30,90.7240078 37.6417711,77.2136491 49.3149643,69.1132143 Z M49.2893219,35.1471863 L204.852814,190.710678 C208.758057,194.615921 208.758057,200.947571 204.852814,204.852814 C200.947571,208.758057 194.615921,208.758057 190.710678,204.852814 L35.1471863,49.2893219 C31.2419433,45.384079 31.2419433,39.0524292 35.1471863,35.1471863 C39.0524292,31.2419433 45.384079,31.2419433 49.2893219,35.1471863 Z M194.419014,65.9446193 C204.539925,81.8473491 210,100.317687 210,119.570241 C210,139.000016 204.438707,157.631418 194.142344,173.628138 C194.048842,173.773404 193.952211,173.915439 193.852595,174.054212 L179.325399,159.525666 C186.275802,147.498397 190,133.820674 190,119.570241 C190,104.150087 185.639603,89.3997416 177.546261,76.6828777 C174.580973,72.0235955 175.954226,65.84266 180.613508,62.8773718 C185.272791,59.9120836 191.453726,61.2853371 194.419014,65.9446193 Z M161.628643,39.6188159 C166.917857,45.8923685 169.86995,53.7996281 169.995802,61.994236 L170,62.5409541 L170,150.201 L150,130.201 L150,62.5409541 C150,58.8687585 148.702614,55.3152038 146.337894,52.5104022 C140.88787,46.0461122 131.299927,45.1557225 124.763352,50.4443266 L124.488994,50.6714677 L102.033938,73.8497282 C100.63289,75.2959 99.0686828,76.5468821 97.3836195,77.5847583 L80.949,61.15 L84.7965877,61.1502149 C85.8020899,61.1502149 86.7677,60.7716711 87.5037765,60.094902 L87.6694795,59.9334671 L110.810236,36.0474218 L111.562196,35.4104754 C126.545716,22.7187097 148.971552,24.6062026 161.628643,39.6188159 Z" id="形状结合" fill="#444444" fill-rule="nonzero"></path>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="180px" height="187px" viewBox="0 0 180 187" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>声音</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<filter color-interpolation-filters="auto" id="filter-1">
|
|
6
|
+
<feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 1.000000 0"></feColorMatrix>
|
|
7
|
+
</filter>
|
|
8
|
+
</defs>
|
|
9
|
+
<g id="线性" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10
|
+
<g id="声音" transform="translate(-30.000000, -27.000000)" filter="url(#filter-1)">
|
|
11
|
+
<g>
|
|
12
|
+
<path d="M111.562196,35.8402339 C126.545716,23.1484682 148.971552,25.0359612 161.628643,40.0485744 C167.035395,46.4615394 170,54.5816271 170,62.9707127 L170,62.9707127 L170,177.890052 C170,197.507889 154.114854,213.430215 134.496124,213.430215 C126.097238,213.430215 117.971757,210.449738 111.562196,205.02053 L111.562196,205.02053 L110.810236,204.383584 L87.6694795,180.497539 C86.9160193,179.719812 85.8794362,179.280791 84.7965877,179.280791 L84.7965877,179.280791 L74.8062016,179.280791 C50.0499395,179.280791 30,159.183924 30,134.416529 L30,134.416529 L30,106.444235 C30,81.6768407 50.0499395,61.5799734 74.8062016,61.5799734 L74.8062016,61.5799734 L84.7965877,61.5799734 C85.8794362,61.5799734 86.9160193,61.1409523 87.6694795,60.3632257 L87.6694795,60.3632257 L110.810236,36.4771804 Z M146.337894,52.9401607 C140.811109,46.3848244 131.029023,45.5615054 124.488994,51.1012262 L124.488994,51.1012262 L102.033938,74.2794868 C97.5131775,78.9458467 91.2936789,81.5799734 84.7965877,81.5799734 L84.7965877,81.5799734 L74.8062016,81.5799734 C61.1061147,81.5799734 50,92.7120825 50,106.444235 L50,106.444235 L50,134.416529 C50,148.148682 61.1061147,159.280791 74.8062016,159.280791 L74.8062016,159.280791 L84.7965877,159.280791 C91.2936789,159.280791 97.5131775,161.914918 102.033938,166.581278 L102.033938,166.581278 L124.488994,189.759538 C127.287246,192.129793 130.832503,193.430215 134.496124,193.430215 C143.058678,193.430215 150,186.472647 150,177.890052 L150,177.890052 L150,62.9707127 C150,59.2985171 148.702614,55.7449624 146.337894,52.9401607 Z M194.419014,66.3743778 C204.539925,82.2771076 210,100.747446 210,120 C210,139.429774 204.438707,158.061176 194.142344,174.057897 C191.153202,178.701912 184.965306,180.043452 180.321291,177.05431 C175.677276,174.065168 174.335736,167.877272 177.324877,163.233257 C185.558784,150.440827 190,135.561899 190,120 C190,104.579846 185.639603,89.8295002 177.546261,77.1126363 C174.580973,72.4533541 175.954226,66.2724186 180.613508,63.3071304 C185.272791,60.3418422 191.453726,61.7150957 194.419014,66.3743778 Z" id="形状结合" fill="#444444" fill-rule="nonzero"></path>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|