@fonixtree/magic-design 1.0.5 → 2.0.3
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/es/assets/fonts/magic-box-iconfont.css +47 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +47 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/less/slider.less +49 -1
- package/es/common/ImageModal/index.js +35 -2
- package/es/common/ImagePicker/index.js +69 -9
- package/es/common/ImagePicker/index.less +1 -0
- package/es/common/LinkModal/AffiliateProductTable/index.js +348 -0
- package/es/common/LinkModal/CatgTable/index.js +6 -3
- package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/es/common/LinkModal/ProductDetailPage/index.js +1 -1
- package/es/common/LinkModal/index.js +6 -0
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
- package/es/composite-comp/bol/components/Banner/index.js +15 -1
- package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/es/composite-comp/bol/components/Banner/pc/index.js +1 -4
- package/es/composite-comp/bol/components/Button/index.js +3 -4
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/es/composite-comp/bol/components/Carousel/pc/index.js +1 -4
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
- package/es/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/es/composite-comp/bol/components/ImageText/pc/index.js +3 -4
- package/es/composite-comp/bol/components/Newsletter/index.js +1 -4
- package/es/composite-comp/bol/components/Tag/index.js +3 -4
- package/es/composite-comp/bol/components/Text/index.js +3 -4
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
- package/es/composite-comp/bol/components/Video/defaultJSON.js +10 -0
- package/es/composite-comp/bol/components/Video/index.js +23 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
- package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
- package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -4
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
- package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
- package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +10 -1
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/constants/index.js +4 -2
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
- package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
- package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
- package/es/core/Designer/AiImageGenerator/History/index.js +141 -0
- package/es/core/Designer/AiImageGenerator/History/index.less +69 -0
- package/es/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
- package/es/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
- package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
- package/es/core/Designer/AiImageGenerator/index.js +711 -0
- package/es/core/Designer/AiImageGenerator/index.less +144 -0
- package/es/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
- package/es/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
- package/es/core/Designer/ChatRobot/index.js +321 -0
- package/es/core/Designer/ChatRobot/index.less +135 -0
- package/es/core/Designer/ChatRobot/markdown.less +1 -0
- package/es/core/Designer/FonixtreeGpt/index.js +160 -0
- package/es/core/Designer/index.js +27 -8
- package/es/decorator/metaDecorator.js +1 -1
- package/es/locale/en/en.json +5 -0
- package/es/locale/es/es.json +5 -0
- package/es/locale/id/id.json +5 -0
- package/es/meta-comp/config-panels/ImageConfig/index.js +32 -11
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
- package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
- package/es/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
- package/es/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
- package/es/meta-comp/config-panels/TextConfig/index.js +5 -1
- package/es/mobx/Store.js +3 -0
- package/es/utils/androidUtil.js +2 -1
- package/es/utils/businessUtil.js +13 -0
- package/es/utils/commonUtil.js +142 -34
- package/es/utils/coreUtil.js +3 -4
- package/lib/assets/fonts/magic-box-iconfont.css +47 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +47 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/less/slider.less +49 -1
- package/lib/common/ImageModal/index.js +35 -2
- package/lib/common/ImagePicker/index.js +69 -9
- package/lib/common/ImagePicker/index.less +1 -0
- package/lib/common/LinkModal/AffiliateProductTable/index.js +348 -0
- package/lib/common/LinkModal/CatgTable/index.js +6 -3
- package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/lib/common/LinkModal/ProductDetailPage/index.js +1 -1
- package/lib/common/LinkModal/index.js +6 -0
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
- package/lib/composite-comp/bol/components/Banner/index.js +15 -1
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
- package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -4
- package/lib/composite-comp/bol/components/Button/index.js +3 -4
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
- package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +3 -4
- package/lib/composite-comp/bol/components/Newsletter/index.js +1 -4
- package/lib/composite-comp/bol/components/Tag/index.js +3 -4
- package/lib/composite-comp/bol/components/Text/index.js +3 -4
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +10 -0
- package/lib/composite-comp/bol/components/Video/index.js +23 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
- package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
- package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
- package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -4
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
- package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +10 -1
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +76 -80
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/constants/index.js +4 -2
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
- package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
- package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
- package/lib/core/Designer/AiImageGenerator/History/index.js +141 -0
- package/lib/core/Designer/AiImageGenerator/History/index.less +69 -0
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
- package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
- package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
- package/lib/core/Designer/AiImageGenerator/index.js +711 -0
- package/lib/core/Designer/AiImageGenerator/index.less +144 -0
- package/lib/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
- package/lib/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
- package/lib/core/Designer/ChatRobot/index.js +321 -0
- package/lib/core/Designer/ChatRobot/index.less +135 -0
- package/lib/core/Designer/ChatRobot/markdown.less +1 -0
- package/lib/core/Designer/FonixtreeGpt/index.js +160 -0
- package/lib/core/Designer/index.js +27 -8
- package/lib/decorator/metaDecorator.js +1 -1
- package/lib/locale/en/en.json +5 -0
- package/lib/locale/es/es.json +5 -0
- package/lib/locale/id/id.json +5 -0
- package/lib/meta-comp/config-panels/ImageConfig/index.js +32 -11
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
- package/lib/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
- package/lib/meta-comp/config-panels/TextConfig/index.js +5 -1
- package/lib/mobx/Store.js +3 -0
- package/lib/utils/androidUtil.js +2 -1
- package/lib/utils/businessUtil.js +13 -0
- package/lib/utils/commonUtil.js +142 -34
- package/lib/utils/coreUtil.js +3 -4
- package/package.json +2 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -13,14 +13,16 @@ var _components = require("../../../../../../meta-comp/components");
|
|
|
13
13
|
|
|
14
14
|
var _commonUtil = require("../../../../../../utils/commonUtil");
|
|
15
15
|
|
|
16
|
-
var _playCircle = _interopRequireDefault(require("../../imgs/play-circle.png"));
|
|
17
|
-
|
|
18
16
|
var _index = _interopRequireDefault(require("../ShareBtn/index"));
|
|
19
17
|
|
|
20
18
|
require("./index.less");
|
|
21
19
|
|
|
22
20
|
var _AlignSelector = require("../../../../../../common/AlignSelector");
|
|
23
21
|
|
|
22
|
+
var _coreUtil = require("../../../../../../utils/coreUtil");
|
|
23
|
+
|
|
24
|
+
var _PlaySvg = _interopRequireDefault(require("../../../../../../meta-comp/config-panels/PlayIconConfig/PlaySvg"));
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
27
|
|
|
26
28
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -49,6 +51,22 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
49
51
|
};
|
|
50
52
|
}();
|
|
51
53
|
|
|
54
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
55
|
+
__assign = Object.assign || function (t) {
|
|
56
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
57
|
+
s = arguments[i];
|
|
58
|
+
|
|
59
|
+
for (var p in s) {
|
|
60
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return t;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return __assign.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
|
|
52
70
|
var debug = require('debug')('worker:VideoTag');
|
|
53
71
|
|
|
54
72
|
var VideoTag =
|
|
@@ -73,23 +91,43 @@ function (_super) {
|
|
|
73
91
|
padding = _a.padding,
|
|
74
92
|
share = _a.share,
|
|
75
93
|
layout = _a.layout,
|
|
76
|
-
|
|
77
|
-
GAData = _a.GAData
|
|
94
|
+
customize = _a.customize,
|
|
95
|
+
GAData = _a.GAData,
|
|
96
|
+
_c = _a.notVertical,
|
|
97
|
+
notVertical = _c === void 0 ? false : _c;
|
|
98
|
+
var align = customize.align,
|
|
99
|
+
vertical = customize.vertical;
|
|
78
100
|
var showBtn = data.video.playButton == 'Bottom Left' && !['h5-layout3', 'pc-layout4', 'pc-layout5'].includes(layout);
|
|
101
|
+
var distanceObj = {};
|
|
102
|
+
|
|
103
|
+
if (!notVertical) {
|
|
104
|
+
if (vertical === 'top') {
|
|
105
|
+
distanceObj.top = (0, _coreUtil.isPc)() ? 40 : 12;
|
|
106
|
+
distanceObj.bottom = 'unset';
|
|
107
|
+
} else if (vertical === 'center') {
|
|
108
|
+
distanceObj.top = '50%';
|
|
109
|
+
distanceObj.bottom = 'unset';
|
|
110
|
+
distanceObj.transform = 'translateY(-50%)';
|
|
111
|
+
} else {
|
|
112
|
+
// if (vertical === 'bottom')
|
|
113
|
+
distanceObj.bottom = (0, _coreUtil.isPc)() ? 40 : 12;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
79
117
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
118
|
className: "video-tag-container",
|
|
81
|
-
style: (0, _commonUtil.pxToRem)({
|
|
119
|
+
style: (0, _commonUtil.pxToRem)(__assign({
|
|
82
120
|
position: position,
|
|
83
121
|
padding: padding
|
|
84
|
-
})
|
|
122
|
+
}, distanceObj))
|
|
85
123
|
}, showBtn && /*#__PURE__*/_react["default"].createElement("div", {
|
|
86
124
|
className: "left-wrap"
|
|
87
125
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
126
|
className: "play-btn center",
|
|
89
127
|
onClick: onPlayClick
|
|
90
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
91
|
-
|
|
92
|
-
|
|
128
|
+
}, /*#__PURE__*/_react["default"].createElement(_PlaySvg["default"], {
|
|
129
|
+
imgName: data.playIcon.iconType,
|
|
130
|
+
imgWidth: (0, _coreUtil.isPc)() ? data.playIcon.pcSize : data.playIcon.size
|
|
93
131
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
94
132
|
className: "right-wrap"
|
|
95
133
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -136,7 +174,8 @@ function (_super) {
|
|
|
136
174
|
|
|
137
175
|
VideoTag.defaultProps = {
|
|
138
176
|
data: {},
|
|
139
|
-
noShare: false
|
|
177
|
+
noShare: false,
|
|
178
|
+
notVertical: false
|
|
140
179
|
};
|
|
141
180
|
return VideoTag;
|
|
142
181
|
}(_react["default"].Component);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
bottom: 0;
|
|
4
4
|
left: 0;
|
|
5
5
|
right: 0;
|
|
6
|
-
padding-bottom: 10px;
|
|
6
|
+
// padding-bottom: 10px;
|
|
7
7
|
display: flex;
|
|
8
8
|
align-items: center;
|
|
9
9
|
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
top: 50%;
|
|
21
21
|
left: 50%;
|
|
22
22
|
transform: translate(-50%, -50%);
|
|
23
|
-
width: 60px;
|
|
24
|
-
height: 60px;
|
|
23
|
+
// width: 60px;
|
|
24
|
+
// height: 60px;
|
|
25
25
|
z-index: 1;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
transform: translateX(-50%) !important;
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.first-button {
|
|
56
|
-
margin: 5px;
|
|
56
|
+
margin: 0 5px;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.secondary-button {
|
|
60
|
-
margin: 5px;
|
|
60
|
+
margin: 0 5px;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -154,6 +154,16 @@ var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
|
|
|
154
154
|
speed: 1,
|
|
155
155
|
playPosition: 'Play in Box',
|
|
156
156
|
playButton: 'Middle'
|
|
157
|
+
},
|
|
158
|
+
playIcon: {
|
|
159
|
+
open: true,
|
|
160
|
+
parentId: groupId,
|
|
161
|
+
id: (0, _uuid.v4)(),
|
|
162
|
+
type: 'PLAY',
|
|
163
|
+
size: 48,
|
|
164
|
+
pcSize: 60,
|
|
165
|
+
iconType: 'light-playicon-01',
|
|
166
|
+
iconColor: 'Light'
|
|
157
167
|
}
|
|
158
168
|
};
|
|
159
169
|
};
|
|
@@ -66,7 +66,29 @@ function (_super) {
|
|
|
66
66
|
|
|
67
67
|
function Video() {
|
|
68
68
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
-
}
|
|
69
|
+
} // componentWillMount() {
|
|
70
|
+
// console.log('--video WillMount');
|
|
71
|
+
// // 兼容新开发的功能: video新增播放按钮 的设置
|
|
72
|
+
// const { nodeData } = this.props;
|
|
73
|
+
// if (nodeData.groupSource && nodeData.groupSource.length > 0) {
|
|
74
|
+
// nodeData.groupSource.forEach(group => {
|
|
75
|
+
// if (!group.playIcon) {
|
|
76
|
+
// console.log('--video add group.playIcon ');
|
|
77
|
+
// group.playIcon = {
|
|
78
|
+
// open: true,
|
|
79
|
+
// parentId: group.id,
|
|
80
|
+
// id: uuidv4(),
|
|
81
|
+
// type: 'PLAY',
|
|
82
|
+
// size: 48,
|
|
83
|
+
// pcSize: 60,
|
|
84
|
+
// iconType: 'light-playicon-01',
|
|
85
|
+
// iconColor: 'Light',
|
|
86
|
+
// };
|
|
87
|
+
// }
|
|
88
|
+
// });
|
|
89
|
+
// }
|
|
90
|
+
// }
|
|
91
|
+
|
|
70
92
|
|
|
71
93
|
Video.prototype.render = function () {
|
|
72
94
|
var nodeData = this.props.nodeData; // console.log('---Video', nodeData);
|
|
@@ -11,8 +11,6 @@ var _index = _interopRequireDefault(require("../../components/ShareBtn/index"));
|
|
|
11
11
|
|
|
12
12
|
var _common = require("../../../../../../common");
|
|
13
13
|
|
|
14
|
-
var _playCircle = _interopRequireDefault(require("../../imgs/play-circle.png"));
|
|
15
|
-
|
|
16
14
|
var _commonUtil = require("../../../../../../utils/commonUtil");
|
|
17
15
|
|
|
18
16
|
var _VideoTag = _interopRequireDefault(require("../../components/VideoTag"));
|
|
@@ -23,6 +21,8 @@ var _ConfigPanel = require("../../../../../../core/Designer/ConfigPanel");
|
|
|
23
21
|
|
|
24
22
|
require("./index.less");
|
|
25
23
|
|
|
24
|
+
var _PlaySvg = _interopRequireDefault(require("../../../../../../meta-comp/config-panels/PlayIconConfig/PlaySvg"));
|
|
25
|
+
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
27
|
|
|
28
28
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -111,14 +111,11 @@ function (_super) {
|
|
|
111
111
|
var _this = this;
|
|
112
112
|
|
|
113
113
|
var data = this.props.data;
|
|
114
|
-
var GAData =
|
|
115
|
-
moduleId: data.id,
|
|
116
|
-
moduleName: data.moduleIndex + '.' + data.type
|
|
117
|
-
};
|
|
114
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
118
115
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
116
|
className: "video-layout1-wrap"
|
|
120
117
|
}, data.groupSource.map(function (group) {
|
|
121
|
-
var _a, _b;
|
|
118
|
+
var _a, _b, _c;
|
|
122
119
|
/** 当前是否在播放 */
|
|
123
120
|
|
|
124
121
|
|
|
@@ -151,18 +148,18 @@ function (_super) {
|
|
|
151
148
|
}),
|
|
152
149
|
play: (_b = _this.videoRefMap[group.id]) === null || _b === void 0 ? void 0 : _b.playing,
|
|
153
150
|
videoId: group.id
|
|
154
|
-
}), !isPlaying && group.video.playButton == 'Middle' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
|
+
}), !isPlaying && group.video.playButton == 'Middle' && ((_c = group === null || group === void 0 ? void 0 : group.playIcon) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
152
|
className: "play-btn center",
|
|
156
153
|
onClick: function onClick() {
|
|
157
154
|
_this.playOrPause(group);
|
|
158
155
|
}
|
|
159
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
160
|
-
|
|
161
|
-
|
|
156
|
+
}, /*#__PURE__*/_react["default"].createElement(_PlaySvg["default"], {
|
|
157
|
+
imgName: group.playIcon.iconType,
|
|
158
|
+
imgWidth: group === null || group === void 0 ? void 0 : group.playIcon.size
|
|
162
159
|
})), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
163
160
|
data: data
|
|
164
161
|
}), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
165
|
-
|
|
162
|
+
customize: data.customize,
|
|
166
163
|
data: group,
|
|
167
164
|
GAData: __assign(__assign({}, GAData), {
|
|
168
165
|
groupId: group.id,
|
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
.video-layout1-wrap {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 100%;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
4
|
+
}
|
|
5
|
+
.video-layout1-wrap .video-item-wrap {
|
|
6
|
+
height: 4.24rem;
|
|
7
|
+
position: relative;
|
|
8
|
+
margin-bottom: 0.2rem;
|
|
9
|
+
}
|
|
10
|
+
.video-layout1-wrap .video-item-wrap:last-child {
|
|
11
|
+
margin-bottom: 0;
|
|
12
|
+
}
|
|
13
|
+
.video-layout1-wrap .video-item-wrap .play-btn {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 50%;
|
|
16
|
+
left: 50%;
|
|
17
|
+
transform: translate(-50%, -50%);
|
|
18
|
+
z-index: 1;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
.video-layout1-wrap .video-item-wrap .play-btn img {
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
@@ -11,8 +11,6 @@ var _index = _interopRequireDefault(require("../../components/ShareBtn/index"));
|
|
|
11
11
|
|
|
12
12
|
var _common = require("../../../../../../common");
|
|
13
13
|
|
|
14
|
-
var _playCircle = _interopRequireDefault(require("../../imgs/play-circle.png"));
|
|
15
|
-
|
|
16
14
|
var _commonUtil = require("../../../../../../utils/commonUtil");
|
|
17
15
|
|
|
18
16
|
var _coreUtil = require("../../../../../../utils/coreUtil");
|
|
@@ -23,6 +21,8 @@ var _ConfigPanel = require("../../../../../../core/Designer/ConfigPanel");
|
|
|
23
21
|
|
|
24
22
|
require("./index.less");
|
|
25
23
|
|
|
24
|
+
var _PlaySvg = _interopRequireDefault(require("../../../../../../meta-comp/config-panels/PlayIconConfig/PlaySvg"));
|
|
25
|
+
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
27
|
|
|
28
28
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -136,10 +136,7 @@ function (_super) {
|
|
|
136
136
|
|
|
137
137
|
var sliderIndex = this.state.sliderIndex;
|
|
138
138
|
var data = this.props.data;
|
|
139
|
-
var GAData =
|
|
140
|
-
moduleId: data.id,
|
|
141
|
-
moduleName: data.moduleIndex + '.' + data.type
|
|
142
|
-
};
|
|
139
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
143
140
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
141
|
className: "video-layout2-wrap"
|
|
145
142
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -183,16 +180,16 @@ function (_super) {
|
|
|
183
180
|
}),
|
|
184
181
|
play: (_b = _this.videoRefMap[group.id]) === null || _b === void 0 ? void 0 : _b.playing,
|
|
185
182
|
videoId: group.id
|
|
186
|
-
}), !isPlaying && group.video.playButton == 'Middle' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
183
|
+
}), !isPlaying && group.video.playButton == 'Middle' && group.playIcon.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
187
184
|
className: "play-btn center",
|
|
188
185
|
onClick: function onClick() {
|
|
189
186
|
_this.playOrPause(group);
|
|
190
187
|
}
|
|
191
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
192
|
-
|
|
193
|
-
|
|
188
|
+
}, /*#__PURE__*/_react["default"].createElement(_PlaySvg["default"], {
|
|
189
|
+
imgName: group.playIcon.iconType,
|
|
190
|
+
imgWidth: group.playIcon.size
|
|
194
191
|
})), !isPlaying && /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
195
|
-
|
|
192
|
+
customize: data.customize,
|
|
196
193
|
data: group,
|
|
197
194
|
GAData: __assign(__assign({}, GAData), {
|
|
198
195
|
groupId: group.id,
|
|
@@ -2,48 +2,39 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
position: relative;
|
|
5
|
-
padding-bottom:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
img {
|
|
43
|
-
width: 100%;
|
|
44
|
-
height: 100%;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
5
|
+
padding-bottom: 0.72rem;
|
|
6
|
+
}
|
|
7
|
+
.video-layout2-wrap .slider-wrap {
|
|
8
|
+
width: 100%;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
.video-layout2-wrap .slider-wrap .slider-list-wrap {
|
|
12
|
+
display: flex;
|
|
13
|
+
transform: translateX(-100%);
|
|
14
|
+
transition: all 0.3s linear;
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
.video-layout2-wrap .slider-wrap .slider-list-wrap.noAnimation {
|
|
18
|
+
animation: none;
|
|
19
|
+
}
|
|
20
|
+
.video-layout2-wrap .slider-wrap .video-item-wrap {
|
|
21
|
+
height: 4.24rem;
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 100%;
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
}
|
|
26
|
+
.video-layout2-wrap .slider-wrap .video-item-wrap:last-child {
|
|
27
|
+
margin-bottom: 0;
|
|
28
|
+
}
|
|
29
|
+
.video-layout2-wrap .slider-wrap .video-item-wrap .play-btn {
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 50%;
|
|
32
|
+
left: 50%;
|
|
33
|
+
transform: translate(-50%, -50%);
|
|
34
|
+
z-index: 1;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
.video-layout2-wrap .slider-wrap .video-item-wrap .play-btn img {
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
}
|
|
@@ -11,8 +11,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _common = require("../../../../../../common");
|
|
13
13
|
|
|
14
|
-
var _playCircle = _interopRequireDefault(require("../../imgs/play-circle.png"));
|
|
15
|
-
|
|
16
14
|
var _commonUtil = require("../../../../../../utils/commonUtil");
|
|
17
15
|
|
|
18
16
|
var _coreUtil = require("../../../../../../utils/coreUtil");
|
|
@@ -25,6 +23,8 @@ var _ConfigPanel = require("../../../../../../core/Designer/ConfigPanel");
|
|
|
25
23
|
|
|
26
24
|
require("./index.less");
|
|
27
25
|
|
|
26
|
+
var _PlaySvg = _interopRequireDefault(require("../../../../../../meta-comp/config-panels/PlayIconConfig/PlaySvg"));
|
|
27
|
+
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
29
|
|
|
30
30
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -111,10 +111,7 @@ function (_super) {
|
|
|
111
111
|
var _this = this;
|
|
112
112
|
|
|
113
113
|
var data = this.props.data;
|
|
114
|
-
var GAData =
|
|
115
|
-
moduleId: data.id,
|
|
116
|
-
moduleName: data.moduleIndex + '.' + data.type
|
|
117
|
-
};
|
|
114
|
+
var GAData = (0, _commonUtil.getGAData)(data);
|
|
118
115
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
116
|
className: "video-layout3-wrap"
|
|
120
117
|
}, data.groupSource.map(function (group) {
|
|
@@ -153,7 +150,7 @@ function (_super) {
|
|
|
153
150
|
}),
|
|
154
151
|
play: (_b = _this.videoRefMap[group.id]) === null || _b === void 0 ? void 0 : _b.playing,
|
|
155
152
|
videoId: group.id
|
|
156
|
-
}), !isPlaying && /*#__PURE__*/_react["default"].createElement("div", {
|
|
153
|
+
}), !isPlaying && group.playIcon.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
157
154
|
className: (0, _classnames["default"])('play-btn', {
|
|
158
155
|
middle: group.video.playButton == 'Middle',
|
|
159
156
|
bottomLeft: group.video.playButton == 'Bottom Left'
|
|
@@ -161,13 +158,13 @@ function (_super) {
|
|
|
161
158
|
onClick: function onClick() {
|
|
162
159
|
_this.playOrPause(group);
|
|
163
160
|
}
|
|
164
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
165
|
-
|
|
166
|
-
|
|
161
|
+
}, /*#__PURE__*/_react["default"].createElement(_PlaySvg["default"], {
|
|
162
|
+
imgName: group.playIcon.iconType,
|
|
163
|
+
imgWidth: group.playIcon.size
|
|
167
164
|
})), data.share.open && !isPlaying && /*#__PURE__*/_react["default"].createElement(_ShareBtn["default"], {
|
|
168
165
|
data: data.share
|
|
169
166
|
})), /*#__PURE__*/_react["default"].createElement(_VideoTag["default"], {
|
|
170
|
-
|
|
167
|
+
customize: data.customize,
|
|
171
168
|
data: group,
|
|
172
169
|
GAData: __assign(__assign({}, GAData), {
|
|
173
170
|
groupId: group.id,
|
|
@@ -175,6 +172,7 @@ function (_super) {
|
|
|
175
172
|
}),
|
|
176
173
|
layout: 'h5-' + data.customize.layout.h5Layout,
|
|
177
174
|
noShare: true,
|
|
175
|
+
notVertical: true,
|
|
178
176
|
onPlayClick: function onPlayClick() {
|
|
179
177
|
return _this.playOrPause(group);
|
|
180
178
|
},
|
|
@@ -1,53 +1,46 @@
|
|
|
1
1
|
.video-layout3-wrap {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
.video-share-btn {
|
|
48
|
-
position: absolute;
|
|
49
|
-
right: 12px;
|
|
50
|
-
bottom: 12px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
4
|
+
}
|
|
5
|
+
.video-layout3-wrap .video-tag-container {
|
|
6
|
+
padding-top: 0.4rem;
|
|
7
|
+
padding-bottom: 0.76rem;
|
|
8
|
+
}
|
|
9
|
+
.video-layout3-wrap .video-layout3-item-con {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
margin-bottom: 0.2rem;
|
|
13
|
+
}
|
|
14
|
+
.video-layout3-wrap .video-layout3-item-con:last-child {
|
|
15
|
+
margin-bottom: 0;
|
|
16
|
+
}
|
|
17
|
+
.video-layout3-wrap .video-item-wrap {
|
|
18
|
+
height: 4.24rem;
|
|
19
|
+
position: relative;
|
|
20
|
+
}
|
|
21
|
+
.video-layout3-wrap .video-item-wrap:last-child {
|
|
22
|
+
margin-bottom: 0;
|
|
23
|
+
}
|
|
24
|
+
.video-layout3-wrap .video-item-wrap .play-btn {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 50%;
|
|
27
|
+
left: 50%;
|
|
28
|
+
transform: translate(-50%, -50%);
|
|
29
|
+
z-index: 1;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
.video-layout3-wrap .video-item-wrap .play-btn img {
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
}
|
|
36
|
+
.video-layout3-wrap .video-item-wrap .play-btn.bottomLeft {
|
|
37
|
+
left: 0.24rem;
|
|
38
|
+
bottom: 0.2rem;
|
|
39
|
+
transform: unset;
|
|
40
|
+
top: unset;
|
|
41
|
+
}
|
|
42
|
+
.video-layout3-wrap .video-item-wrap .video-share-btn {
|
|
43
|
+
position: absolute;
|
|
44
|
+
right: 0.24rem;
|
|
45
|
+
bottom: 0.24rem;
|
|
46
|
+
}
|
|
@@ -43,60 +43,19 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
43
43
|
};
|
|
44
44
|
}();
|
|
45
45
|
|
|
46
|
-
var
|
|
47
|
-
__assign = Object.assign || function (t) {
|
|
48
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
49
|
-
s = arguments[i];
|
|
50
|
-
|
|
51
|
-
for (var p in s) {
|
|
52
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return t;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
return __assign.apply(this, arguments);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
var BannerMobile =
|
|
46
|
+
var VideoMobile =
|
|
63
47
|
/** @class */
|
|
64
48
|
function (_super) {
|
|
65
|
-
__extends(
|
|
49
|
+
__extends(VideoMobile, _super);
|
|
66
50
|
|
|
67
|
-
function
|
|
51
|
+
function VideoMobile() {
|
|
68
52
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
69
53
|
|
|
70
|
-
_this.state = {};
|
|
71
|
-
|
|
72
|
-
_this.getBackgroundStyle = function (item) {
|
|
73
|
-
// const { data: { spacing } } = this.props;
|
|
74
|
-
// const { spacing, background } = data;
|
|
75
|
-
// const { device } = window.magicDesign;
|
|
76
|
-
var wrapStyle = {}; // 边距
|
|
77
|
-
// if (spacing && spacing[device]) {
|
|
78
|
-
// wrapStyle = { ...wrapStyle, ...spacing[device] };
|
|
79
|
-
// }
|
|
80
|
-
// 背景
|
|
81
|
-
|
|
82
|
-
if (item.background) {
|
|
83
|
-
if (item.background.bgType === 'color') {
|
|
84
|
-
wrapStyle.backgroundColor = item.background.color;
|
|
85
|
-
wrapStyle.opacity = item.background.opacity ? item.background.opacity : 1;
|
|
86
|
-
} else {
|
|
87
|
-
wrapStyle.backgroundImage = "url(" + item.background.image + ")";
|
|
88
|
-
wrapStyle.backgroundPosition = 'center';
|
|
89
|
-
wrapStyle.backgroundSize = 'cover';
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return __assign({}, wrapStyle);
|
|
94
|
-
};
|
|
95
|
-
|
|
54
|
+
_this.state = {};
|
|
96
55
|
return _this;
|
|
97
56
|
}
|
|
98
57
|
|
|
99
|
-
|
|
58
|
+
VideoMobile.prototype.render = function () {
|
|
100
59
|
var data = this.props.data;
|
|
101
60
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
61
|
className: "m-video-mobile"
|
|
@@ -112,9 +71,9 @@ function (_super) {
|
|
|
112
71
|
}));
|
|
113
72
|
};
|
|
114
73
|
|
|
115
|
-
|
|
116
|
-
return
|
|
74
|
+
VideoMobile.defaultProps = {};
|
|
75
|
+
return VideoMobile;
|
|
117
76
|
}(_react["default"].Component);
|
|
118
77
|
|
|
119
|
-
var _default =
|
|
78
|
+
var _default = VideoMobile;
|
|
120
79
|
exports["default"] = _default;
|