ucservice 1.4.4 → 1.4.5
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/dist/ucservice.common.js +14 -14
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +14 -14
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +1 -1
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/scooper.video.js +14 -14
package/dist/ucservice.umd.js
CHANGED
|
@@ -13973,19 +13973,19 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13973
13973
|
$(video).attr('class', 'video-box');
|
|
13974
13974
|
video.style.position = 'absolute';
|
|
13975
13975
|
video.style.transform = 'rotate(270deg)';
|
|
13976
|
-
$(video).css('max-height', '');
|
|
13977
|
-
$(video).css('max-width', '');
|
|
13976
|
+
$(video).css('max-height', 'none');
|
|
13977
|
+
$(video).css('max-width', 'none');
|
|
13978
13978
|
|
|
13979
|
-
if (
|
|
13979
|
+
if (videoHeight * liHeight / videoWidth < liWidth) {
|
|
13980
13980
|
//视频横向留白
|
|
13981
|
-
$(video).css('width',
|
|
13982
|
-
$(video).css('height',
|
|
13981
|
+
$(video).css('width', liHeight);
|
|
13982
|
+
$(video).css('height', 'auto');
|
|
13983
13983
|
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
13984
13984
|
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
13985
13985
|
} else {
|
|
13986
13986
|
//视频纵向留白
|
|
13987
|
-
$(video).css('width',
|
|
13988
|
-
$(video).css('height',
|
|
13987
|
+
$(video).css('width', 'auto');
|
|
13988
|
+
$(video).css('height', liWidth);
|
|
13989
13989
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
13990
13990
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
13991
13991
|
}
|
|
@@ -14005,19 +14005,19 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14005
14005
|
$(video).attr('class', 'video-box');
|
|
14006
14006
|
video.style.position = 'absolute';
|
|
14007
14007
|
video.style.transform = 'rotate(90deg)';
|
|
14008
|
-
$(video).css('max-height', '');
|
|
14009
|
-
$(video).css('max-width', '');
|
|
14008
|
+
$(video).css('max-height', 'none');
|
|
14009
|
+
$(video).css('max-width', 'none');
|
|
14010
14010
|
|
|
14011
|
-
if (
|
|
14011
|
+
if (videoHeight * liHeight / videoWidth < liWidth) {
|
|
14012
14012
|
//视频横向留白
|
|
14013
|
-
$(video).css('width',
|
|
14014
|
-
$(video).css('height',
|
|
14013
|
+
$(video).css('width', liHeight);
|
|
14014
|
+
$(video).css('height', 'auto');
|
|
14015
14015
|
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14016
14016
|
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
14017
14017
|
} else {
|
|
14018
14018
|
//视频纵向留白
|
|
14019
|
-
$(video).css('width',
|
|
14020
|
-
$(video).css('height',
|
|
14019
|
+
$(video).css('width', 'auto');
|
|
14020
|
+
$(video).css('height', liWidth);
|
|
14021
14021
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
14022
14022
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
14023
14023
|
}
|
package/dist/ucservice.umd.js.gz
CHANGED
|
Binary file
|