@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,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="130px" height="190px" viewBox="0 0 130 190" 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(-55.000000, -25.000000)" filter="url(#filter-1)">
|
|
11
|
+
<g>
|
|
12
|
+
<rect id="矩形" fill="#444444" x="55" y="25" width="40" height="190" rx="20"></rect>
|
|
13
|
+
<rect id="矩形备份" fill="#444444" x="145" y="25" width="40" height="190" rx="20"></rect>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="155px" height="182px" viewBox="0 0 155 182" 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(-42.000000, -29.000000)" filter="url(#filter-1)">
|
|
11
|
+
<g>
|
|
12
|
+
<path d="M150.351959,64.5631349 L217.050016,171.280025 C224.075064,182.520102 220.658108,197.326911 209.418031,204.351959 C205.603673,206.735933 201.19613,208 196.698057,208 L63.3019434,208 C50.0471094,208 39.3019434,197.254834 39.3019434,184 C39.3019434,179.501927 40.5660101,175.094384 42.9499841,171.280025 L109.648041,64.5631349 C116.673089,53.3230581 131.479898,49.9061022 142.719975,56.9311501 C145.810434,58.8626871 148.420422,61.4726757 150.351959,64.5631349 Z" id="三角形" fill="#444444" transform="translate(130.000000, 120.000000) rotate(90.000000) translate(-130.000000, -120.000000) "></path>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="16px" height="16px" viewBox="0 0 16 16" 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="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10
|
+
<g id="点击查看视频" transform="translate(-504.000000, -87.000000)">
|
|
11
|
+
<g id="缩小屏幕" transform="translate(504.000000, 87.000000)">
|
|
12
|
+
<rect id="矩形备份-8" x="0" y="0" width="16" height="16"></rect>
|
|
13
|
+
<g id="缩小屏幕" filter="url(#filter-1)">
|
|
14
|
+
<g>
|
|
15
|
+
<path d="M2.66666667,8.84191565 C3.02861599,8.84191565 3.32319545,9.13036037 3.33307721,9.489922 L3.33333333,11.8095238 C3.33333333,12.2760501 3.70604651,12.6555245 4.16995152,12.6664257 L6.47311169,12.6666667 C6.84130152,12.6666667 7.13977836,12.9651435 7.13977836,13.3333333 C7.13977836,13.6952827 6.85133364,13.9898621 6.49177201,13.9997439 L4.19047619,14 C2.99280726,14 2.0196371,13.0388065 2.00029346,11.8457473 L2,9.50858232 C2,9.14039249 2.29847683,8.84191565 2.66666667,8.84191565 Z M13.3333333,8.8699914 C13.7015232,8.8699914 14,9.16846824 14,9.53665807 C14,9.8986074 13.7115553,10.1931869 13.3519937,10.2030686 L11.0486616,10.2033247 C10.5821354,10.2033247 10.202661,10.5760379 10.1917597,11.0399429 L10.1915188,13.3333333 C10.1915188,13.7015232 9.89304196,14 9.52485212,14 C9.1629028,14 8.86832334,13.7115553 8.85844158,13.3519937 L8.85818546,11.0604676 C8.85818546,9.86279866 9.81937893,8.8896285 11.0124381,8.87028486 L11.0486616,8.8699914 L13.3333333,8.8699914 Z M6.47638719,2 C6.83833652,2 7.13291597,2.28844472 7.14279774,2.64800634 L7.14305386,2.66666667 L7.14305386,4.95231104 C7.14305386,6.14997997 6.18186038,7.12315013 4.9888012,7.14249377 L2.66666667,7.14278723 C2.29847683,7.14278723 2,6.8443104 2,6.47612057 C2,6.11417124 2.28844472,5.81959178 2.64800634,5.80971002 L4.95257767,5.8094539 C5.41910392,5.8094539 5.79857834,5.43674073 5.80947961,4.97283571 L5.80972053,2.66666667 C5.80972053,2.29847683 6.10819736,2 6.47638719,2 Z M11.8095238,2 C13.0071927,2 13.9803629,2.96119347 13.9997065,4.15425266 L14,6.46713633 C14,6.83532616 13.7015232,7.13380299 13.3333333,7.13380299 C12.971384,7.13380299 12.6768046,6.84535827 12.6669228,6.48579665 L12.6666667,4.19047619 C12.6666667,3.72394994 12.2939535,3.34447552 11.8300485,3.33357425 L9.56078908,3.33333333 C9.19259925,3.33333333 8.89412242,3.0348565 8.89412242,2.66666667 C8.89412242,2.30471734 9.18256714,2.01013789 9.54212876,2.00025612 L11.8095238,2 Z" id="形状结合" fill="#444444" fill-rule="nonzero"></path>
|
|
16
|
+
<path d="M11.265279,10.3224699 L13.8108634,12.8680544 C14.0712129,13.1284039 14.0712129,13.5505139 13.8108634,13.8108634 C13.5505139,14.0712129 13.1284039,14.0712129 12.8680544,13.8108634 L10.3224699,11.265279 C10.0621204,11.0049295 10.0621204,10.5828195 10.3224699,10.3224699 C10.5828195,10.0621204 11.0049295,10.0621204 11.265279,10.3224699 Z M3.13194565,2.18913661 L5.67753006,4.73472102 C5.93787959,4.99507055 5.93787959,5.41718053 5.67753006,5.67753006 C5.41718053,5.93787959 4.99507055,5.93787959 4.73472102,5.67753006 L2.18913661,3.13194565 C1.92878708,2.87159612 1.92878708,2.44948613 2.18913661,2.18913661 C2.44948613,1.92878708 2.87159612,1.92878708 3.13194565,2.18913661 Z" id="形状" fill="#444444"></path>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</svg>
|
|
@@ -0,0 +1,213 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,322 @@
|
|
|
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;
|
|
@@ -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;
|
package/lib/index.js
CHANGED
|
@@ -141,6 +141,12 @@ Object.defineProperty(exports, "FileList", {
|
|
|
141
141
|
return _fileList["default"];
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
|
+
Object.defineProperty(exports, "FloatFixedVideoModal", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function get() {
|
|
147
|
+
return _floatFixedVideoModal["default"];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
144
150
|
Object.defineProperty(exports, "FollowerVisitor", {
|
|
145
151
|
enumerable: true,
|
|
146
152
|
get: function get() {
|
|
@@ -501,6 +507,12 @@ Object.defineProperty(exports, "VersionChangeModal", {
|
|
|
501
507
|
return _versionChangeModal["default"];
|
|
502
508
|
}
|
|
503
509
|
});
|
|
510
|
+
Object.defineProperty(exports, "VideoModal", {
|
|
511
|
+
enumerable: true,
|
|
512
|
+
get: function get() {
|
|
513
|
+
return _videoModal["default"];
|
|
514
|
+
}
|
|
515
|
+
});
|
|
504
516
|
Object.defineProperty(exports, "WeeklyReport", {
|
|
505
517
|
enumerable: true,
|
|
506
518
|
get: function get() {
|
|
@@ -726,4 +738,8 @@ var _uploadPhotoModal = _interopRequireDefault(require("./components/upload-phot
|
|
|
726
738
|
|
|
727
739
|
var _bookDemo = _interopRequireDefault(require("./components/book-demo"));
|
|
728
740
|
|
|
741
|
+
var _videoModal = _interopRequireDefault(require("./components/video-modal"));
|
|
742
|
+
|
|
743
|
+
var _floatFixedVideoModal = _interopRequireDefault(require("./components/float-fixed-video-modal"));
|
|
744
|
+
|
|
729
745
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/lib/utils/tools.js
CHANGED
|
@@ -10,7 +10,7 @@ exports.htmlDecodeByHtmlRegExp = htmlDecodeByHtmlRegExp;
|
|
|
10
10
|
exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
|
|
11
11
|
exports.htmlEncodeByRegExp = htmlEncodeByRegExp;
|
|
12
12
|
exports.htmlEncodeToHtmlByRegExp = htmlEncodeToHtmlByRegExp;
|
|
13
|
-
exports.unHighLight = exports.openPage = void 0;
|
|
13
|
+
exports.unHighLight = exports.openPage = exports.htmlToText = void 0;
|
|
14
14
|
|
|
15
15
|
var _platform = require("./platform");
|
|
16
16
|
|
|
@@ -274,4 +274,13 @@ function htmlDecodeByHtmlRegExp(str) {
|
|
|
274
274
|
temp = temp.replace(/"/g, "\"");
|
|
275
275
|
temp = temp.replace(/<br\/>/g, "\n");
|
|
276
276
|
return temp;
|
|
277
|
-
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
var htmlToText = function htmlToText(text) {
|
|
280
|
+
var div = document.createElement("div");
|
|
281
|
+
div.innerHTML = text;
|
|
282
|
+
var newtext = div.innerText || div.textContent;
|
|
283
|
+
return newtext;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
exports.htmlToText = htmlToText;
|