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.common.js
CHANGED
|
@@ -13964,19 +13964,19 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13964
13964
|
$(video).attr('class', 'video-box');
|
|
13965
13965
|
video.style.position = 'absolute';
|
|
13966
13966
|
video.style.transform = 'rotate(270deg)';
|
|
13967
|
-
$(video).css('max-height', '');
|
|
13968
|
-
$(video).css('max-width', '');
|
|
13967
|
+
$(video).css('max-height', 'none');
|
|
13968
|
+
$(video).css('max-width', 'none');
|
|
13969
13969
|
|
|
13970
|
-
if (
|
|
13970
|
+
if (videoHeight * liHeight / videoWidth < liWidth) {
|
|
13971
13971
|
//视频横向留白
|
|
13972
|
-
$(video).css('width',
|
|
13973
|
-
$(video).css('height',
|
|
13972
|
+
$(video).css('width', liHeight);
|
|
13973
|
+
$(video).css('height', 'auto');
|
|
13974
13974
|
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
13975
13975
|
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
13976
13976
|
} else {
|
|
13977
13977
|
//视频纵向留白
|
|
13978
|
-
$(video).css('width',
|
|
13979
|
-
$(video).css('height',
|
|
13978
|
+
$(video).css('width', 'auto');
|
|
13979
|
+
$(video).css('height', liWidth);
|
|
13980
13980
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
13981
13981
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
13982
13982
|
}
|
|
@@ -13996,19 +13996,19 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13996
13996
|
$(video).attr('class', 'video-box');
|
|
13997
13997
|
video.style.position = 'absolute';
|
|
13998
13998
|
video.style.transform = 'rotate(90deg)';
|
|
13999
|
-
$(video).css('max-height', '');
|
|
14000
|
-
$(video).css('max-width', '');
|
|
13999
|
+
$(video).css('max-height', 'none');
|
|
14000
|
+
$(video).css('max-width', 'none');
|
|
14001
14001
|
|
|
14002
|
-
if (
|
|
14002
|
+
if (videoHeight * liHeight / videoWidth < liWidth) {
|
|
14003
14003
|
//视频横向留白
|
|
14004
|
-
$(video).css('width',
|
|
14005
|
-
$(video).css('height',
|
|
14004
|
+
$(video).css('width', liHeight);
|
|
14005
|
+
$(video).css('height', 'auto');
|
|
14006
14006
|
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14007
14007
|
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
14008
14008
|
} else {
|
|
14009
14009
|
//视频纵向留白
|
|
14010
|
-
$(video).css('width',
|
|
14011
|
-
$(video).css('height',
|
|
14010
|
+
$(video).css('width', 'auto');
|
|
14011
|
+
$(video).css('height', liWidth);
|
|
14012
14012
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
14013
14013
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
14014
14014
|
}
|
|
Binary file
|