@fonixtree/magic-design 1.0.135 → 1.0.137
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/common/Video/index.js +1 -1
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +2 -7
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.less +1 -1
- package/es/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +2 -1
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +2 -2
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +1 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +4 -0
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +16 -6
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +13 -9
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
- package/es/core/Renderer/index.js +1 -0
- package/es/decorator/compositeDecorator.js +1 -1
- package/es/meta-comp/components/Button/index.js +8 -3
- package/es/utils/coreUtil.js +3 -4
- package/lib/common/Video/index.js +1 -1
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +2 -7
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.less +1 -1
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/VideoItem/index.js +2 -1
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +2 -2
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +1 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.less +4 -0
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +16 -6
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +13 -9
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.less +71 -0
- package/lib/core/Renderer/index.js +1 -0
- package/lib/decorator/compositeDecorator.js +1 -1
- package/lib/meta-comp/components/Button/index.js +8 -3
- package/lib/utils/coreUtil.js +3 -4
- package/package.json +1 -1
package/es/common/Video/index.js
CHANGED
|
@@ -334,7 +334,7 @@ var createAliVideo = function createAliVideo(domId, opts) {
|
|
|
334
334
|
rePlay: false,
|
|
335
335
|
playsinline: true,
|
|
336
336
|
preload: true,
|
|
337
|
-
controlBarVisibility: 'hover',
|
|
337
|
+
controlBarVisibility: opts.controlBarHide ? 'never' : 'hover',
|
|
338
338
|
useH5Prism: true,
|
|
339
339
|
skinLayout: skinLayout
|
|
340
340
|
}, _defineProperty(_window$Aliplayer, "autoplay", opts.autoplay), _defineProperty(_window$Aliplayer, "rePlay", opts.loop), _defineProperty(_window$Aliplayer, "components", [{
|
|
@@ -128,14 +128,9 @@ function (_super) {
|
|
|
128
128
|
}
|
|
129
129
|
}, tab.groupName.open && (tabIndex === index ? /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
130
130
|
data: tab.hover.groupName,
|
|
131
|
-
|
|
132
|
-
tab.groupName.text = text;
|
|
133
|
-
}
|
|
131
|
+
iconHeight: 46
|
|
134
132
|
}) : /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
135
|
-
data: tab.groupName
|
|
136
|
-
onTextInput: function onTextInput(text) {
|
|
137
|
-
tab.hover.groupName.text = text;
|
|
138
|
-
}
|
|
133
|
+
data: tab.groupName
|
|
139
134
|
})));
|
|
140
135
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
136
|
className: "tab-content"
|
|
@@ -123,7 +123,8 @@ function (_super) {
|
|
|
123
123
|
},
|
|
124
124
|
opts: __assign(__assign({}, data.video), {
|
|
125
125
|
cover: (0, _coreUtil.getVideoCover)(data),
|
|
126
|
-
source: data.video.sourceUrl
|
|
126
|
+
source: data.video.sourceUrl,
|
|
127
|
+
controlBarHide: true
|
|
127
128
|
}),
|
|
128
129
|
play: (_a = this.videoRefMap[data.id]) === null || _a === void 0 ? void 0 : _a.playing,
|
|
129
130
|
videoId: data.id
|
|
@@ -524,9 +524,9 @@ function (_super) {
|
|
|
524
524
|
},
|
|
525
525
|
size: 24,
|
|
526
526
|
type: "icon-ShoppingCartSimple1"
|
|
527
|
-
})), ((_q = (_p = data.content) === null || _p === void 0 ? void 0 : _p.login) === null || _q === void 0 ? void 0 : _q.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
527
|
+
})), ((_q = (_p = data.content) === null || _p === void 0 ? void 0 : _p.login) === null || _q === void 0 ? void 0 : _q.open) && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (0, _commonUtil.isLogin)() ? /*#__PURE__*/_react["default"].createElement("div", null) : /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
528
528
|
data: (_r = data.content) === null || _r === void 0 ? void 0 : _r.login
|
|
529
|
-
}))), /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
529
|
+
})))), /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
530
530
|
key: JSON.stringify(data.groupSource),
|
|
531
531
|
ref: this.carouselRef,
|
|
532
532
|
afterChange: function afterChange(n) {
|
|
@@ -85,6 +85,7 @@ function (_super) {
|
|
|
85
85
|
}, rest), /*#__PURE__*/_react["default"].createElement(_VideoItem["default"], {
|
|
86
86
|
data: data
|
|
87
87
|
}), data.groupName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
88
|
+
className: "img-text",
|
|
88
89
|
data: data.groupName
|
|
89
90
|
})));
|
|
90
91
|
};
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
@@ -53,6 +53,10 @@ function (_super) {
|
|
|
53
53
|
_this.videoRef = /*#__PURE__*/_react["default"].createRef();
|
|
54
54
|
|
|
55
55
|
_this.onMouseEnter = function () {
|
|
56
|
+
var _a;
|
|
57
|
+
|
|
58
|
+
if (!((_a = _this.props.data.video) === null || _a === void 0 ? void 0 : _a.sourceUrl)) return;
|
|
59
|
+
|
|
56
60
|
_this.videoRef.current.play();
|
|
57
61
|
|
|
58
62
|
_this.setState({
|
|
@@ -61,6 +65,10 @@ function (_super) {
|
|
|
61
65
|
};
|
|
62
66
|
|
|
63
67
|
_this.onMouseLeave = function () {
|
|
68
|
+
var _a;
|
|
69
|
+
|
|
70
|
+
if (!((_a = _this.props.data.video) === null || _a === void 0 ? void 0 : _a.sourceUrl)) return;
|
|
71
|
+
|
|
64
72
|
_this.videoRef.current.pause();
|
|
65
73
|
|
|
66
74
|
_this.setState({
|
|
@@ -72,7 +80,7 @@ function (_super) {
|
|
|
72
80
|
}
|
|
73
81
|
|
|
74
82
|
VideoItem.prototype.render = function () {
|
|
75
|
-
var _a, _b, _c, _d, _e;
|
|
83
|
+
var _a, _b, _c, _d, _e, _f;
|
|
76
84
|
|
|
77
85
|
var data = this.props.data;
|
|
78
86
|
var playing = this.state.playing;
|
|
@@ -88,10 +96,12 @@ function (_super) {
|
|
|
88
96
|
}, /*#__PURE__*/_react["default"].createElement("source", {
|
|
89
97
|
src: (_b = data.video) === null || _b === void 0 ? void 0 : _b.sourceUrl,
|
|
90
98
|
type: "video/mp4"
|
|
91
|
-
})), ((_c = data.overilay) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
99
|
+
})), ((_c = data.overilay) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement("img", {
|
|
100
|
+
alt: "",
|
|
101
|
+
className: (0, _classnames["default"])('video-img', {
|
|
102
|
+
cover: (_d = data.video) === null || _d === void 0 ? void 0 : _d.sourceUrl
|
|
103
|
+
}),
|
|
104
|
+
src: (_f = (_e = data.overilay) === null || _e === void 0 ? void 0 : _e.content) === null || _f === void 0 ? void 0 : _f.pcImgSrc,
|
|
95
105
|
style: {
|
|
96
106
|
visibility: playing ? 'hidden' : 'visible'
|
|
97
107
|
}
|
|
@@ -6,15 +6,19 @@
|
|
|
6
6
|
width: 100%;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.video-
|
|
10
|
-
position: absolute;
|
|
11
|
-
top: 0;
|
|
12
|
-
right: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
bottom: 0;
|
|
15
|
-
object-fit: cover;
|
|
9
|
+
.video-img {
|
|
16
10
|
width: 100%;
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
|
|
12
|
+
&.cover {
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
left: 0;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
object-fit: cover;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
z-index: 0;
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.slide_image_second_conf_wrap {
|
|
2
|
+
.input-url {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 40px;
|
|
5
|
+
background: #FFFFFF;
|
|
6
|
+
border: 1px solid #D2D9E5;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
display: flex;
|
|
9
|
+
padding: 9px 14px;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
input {
|
|
14
|
+
border: none;
|
|
15
|
+
outline: none;
|
|
16
|
+
height: 24px;
|
|
17
|
+
flex-grow: 1;
|
|
18
|
+
font-family: 'Open Sans';
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
color: #232F46;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* 使用webkit内核的浏览器 */
|
|
26
|
+
input::-webkit-input-placeholder {
|
|
27
|
+
font-family: 'Open Sans';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
color: #8493AF;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Firefox版本4-18 */
|
|
35
|
+
input:-moz-placeholder {
|
|
36
|
+
font-family: 'Open Sans';
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
color: #8493AF;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Firefox版本19+ */
|
|
44
|
+
input::-moz-placeholder {
|
|
45
|
+
font-family: 'Open Sans';
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
color: #8493AF;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* IE浏览器 */
|
|
53
|
+
input:-ms-input-placeholder {
|
|
54
|
+
font-family: 'Open Sans';
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
color: #8493AF;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.icon-btns {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
|
|
65
|
+
&>span {
|
|
66
|
+
margin-left: 12px;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -46,6 +46,7 @@ var setDesignConfig = function setDesignConfig(props) {
|
|
|
46
46
|
device = props.device,
|
|
47
47
|
isPreview = props.isPreview,
|
|
48
48
|
projectCode = props.projectCode;
|
|
49
|
+
console.log('window.magicDesign', props);
|
|
49
50
|
window.magicDesign = __assign(__assign({
|
|
50
51
|
pageBackground: '#f2f2f2',
|
|
51
52
|
mode: 'renderer',
|
|
@@ -144,7 +144,7 @@ function compositeDecorator(WrappedComponent) {
|
|
|
144
144
|
var zIndex = '0';
|
|
145
145
|
var position = 'relative';
|
|
146
146
|
|
|
147
|
-
if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY') {
|
|
147
|
+
if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY' || nodeData.type === 'SLIDE_IMAGE') {
|
|
148
148
|
zIndex = '1';
|
|
149
149
|
} // 解决pc导航hover上去,类目被下面组件遮罩的问题
|
|
150
150
|
|
|
@@ -104,7 +104,8 @@ function (_super) {
|
|
|
104
104
|
|
|
105
105
|
var _b = this.props,
|
|
106
106
|
data = _b.data,
|
|
107
|
-
className = _b.className
|
|
107
|
+
className = _b.className,
|
|
108
|
+
iconHeight = _b.iconHeight;
|
|
108
109
|
var hover = this.state.hover;
|
|
109
110
|
this.preData = JSON.stringify(data);
|
|
110
111
|
this.preDevice = window.magicDesign.device;
|
|
@@ -163,7 +164,10 @@ function (_super) {
|
|
|
163
164
|
}, (iconLayout === 'right' || iconLayout === 'bottom') && /*#__PURE__*/_react["default"].createElement(_editable["default"], this.props), iconUrl && /*#__PURE__*/_react["default"].createElement("img", {
|
|
164
165
|
alt: "",
|
|
165
166
|
className: "icon",
|
|
166
|
-
src: iconUrl
|
|
167
|
+
src: iconUrl,
|
|
168
|
+
style: {
|
|
169
|
+
height: iconHeight + "px"
|
|
170
|
+
}
|
|
167
171
|
}), (iconLayout === 'left' || iconLayout === 'top') && /*#__PURE__*/_react["default"].createElement(_editable["default"], this.props)));
|
|
168
172
|
};
|
|
169
173
|
|
|
@@ -171,7 +175,8 @@ function (_super) {
|
|
|
171
175
|
data: {},
|
|
172
176
|
className: '',
|
|
173
177
|
readonly: false,
|
|
174
|
-
onTextInput: function onTextInput() {}
|
|
178
|
+
onTextInput: function onTextInput() {},
|
|
179
|
+
iconHeight: 20
|
|
175
180
|
};
|
|
176
181
|
|
|
177
182
|
__decorate([(0, _decorator.shouldUpdate)()], Button.prototype, "shouldComponentUpdate", null);
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -316,13 +316,12 @@ var clickUrl = function clickUrl(url, state) {
|
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
var _b = _typeof(url) === 'object' ? (0, _businessUtil.newParseUrl)(url) : (0, _businessUtil.parseUrl)(url),
|
|
319
|
-
|
|
319
|
+
_link = _b.link,
|
|
320
320
|
data = _b.data;
|
|
321
321
|
|
|
322
|
+
var link = !isPc() ? "/web" + _link : _link;
|
|
322
323
|
var _c = data.params,
|
|
323
|
-
params = _c === void 0 ? {} : _c;
|
|
324
|
-
// console.log({ type: 'jumpBrowser', params: { url: params.link } });
|
|
325
|
-
|
|
324
|
+
params = _c === void 0 ? {} : _c;
|
|
326
325
|
/** 锚点跳转 */
|
|
327
326
|
|
|
328
327
|
if (params.type === 'ANCHOR') {
|
|
@@ -334,7 +334,7 @@ var createAliVideo = function createAliVideo(domId, opts) {
|
|
|
334
334
|
rePlay: false,
|
|
335
335
|
playsinline: true,
|
|
336
336
|
preload: true,
|
|
337
|
-
controlBarVisibility: 'hover',
|
|
337
|
+
controlBarVisibility: opts.controlBarHide ? 'never' : 'hover',
|
|
338
338
|
useH5Prism: true,
|
|
339
339
|
skinLayout: skinLayout
|
|
340
340
|
}, _defineProperty(_window$Aliplayer, "autoplay", opts.autoplay), _defineProperty(_window$Aliplayer, "rePlay", opts.loop), _defineProperty(_window$Aliplayer, "components", [{
|
|
@@ -128,14 +128,9 @@ function (_super) {
|
|
|
128
128
|
}
|
|
129
129
|
}, tab.groupName.open && (tabIndex === index ? /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
130
130
|
data: tab.hover.groupName,
|
|
131
|
-
|
|
132
|
-
tab.groupName.text = text;
|
|
133
|
-
}
|
|
131
|
+
iconHeight: 46
|
|
134
132
|
}) : /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
135
|
-
data: tab.groupName
|
|
136
|
-
onTextInput: function onTextInput(text) {
|
|
137
|
-
tab.hover.groupName.text = text;
|
|
138
|
-
}
|
|
133
|
+
data: tab.groupName
|
|
139
134
|
})));
|
|
140
135
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
136
|
className: "tab-content"
|
|
@@ -123,7 +123,8 @@ function (_super) {
|
|
|
123
123
|
},
|
|
124
124
|
opts: __assign(__assign({}, data.video), {
|
|
125
125
|
cover: (0, _coreUtil.getVideoCover)(data),
|
|
126
|
-
source: data.video.sourceUrl
|
|
126
|
+
source: data.video.sourceUrl,
|
|
127
|
+
controlBarHide: true
|
|
127
128
|
}),
|
|
128
129
|
play: (_a = this.videoRefMap[data.id]) === null || _a === void 0 ? void 0 : _a.playing,
|
|
129
130
|
videoId: data.id
|
|
@@ -524,9 +524,9 @@ function (_super) {
|
|
|
524
524
|
},
|
|
525
525
|
size: 24,
|
|
526
526
|
type: "icon-ShoppingCartSimple1"
|
|
527
|
-
})), ((_q = (_p = data.content) === null || _p === void 0 ? void 0 : _p.login) === null || _q === void 0 ? void 0 : _q.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
527
|
+
})), ((_q = (_p = data.content) === null || _p === void 0 ? void 0 : _p.login) === null || _q === void 0 ? void 0 : _q.open) && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (0, _commonUtil.isLogin)() ? /*#__PURE__*/_react["default"].createElement("div", null) : /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
528
528
|
data: (_r = data.content) === null || _r === void 0 ? void 0 : _r.login
|
|
529
|
-
}))), /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
529
|
+
})))), /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
|
|
530
530
|
key: JSON.stringify(data.groupSource),
|
|
531
531
|
ref: this.carouselRef,
|
|
532
532
|
afterChange: function afterChange(n) {
|
|
@@ -85,6 +85,7 @@ function (_super) {
|
|
|
85
85
|
}, rest), /*#__PURE__*/_react["default"].createElement(_VideoItem["default"], {
|
|
86
86
|
data: data
|
|
87
87
|
}), data.groupName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
88
|
+
className: "img-text",
|
|
88
89
|
data: data.groupName
|
|
89
90
|
})));
|
|
90
91
|
};
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
@@ -53,6 +53,10 @@ function (_super) {
|
|
|
53
53
|
_this.videoRef = /*#__PURE__*/_react["default"].createRef();
|
|
54
54
|
|
|
55
55
|
_this.onMouseEnter = function () {
|
|
56
|
+
var _a;
|
|
57
|
+
|
|
58
|
+
if (!((_a = _this.props.data.video) === null || _a === void 0 ? void 0 : _a.sourceUrl)) return;
|
|
59
|
+
|
|
56
60
|
_this.videoRef.current.play();
|
|
57
61
|
|
|
58
62
|
_this.setState({
|
|
@@ -61,6 +65,10 @@ function (_super) {
|
|
|
61
65
|
};
|
|
62
66
|
|
|
63
67
|
_this.onMouseLeave = function () {
|
|
68
|
+
var _a;
|
|
69
|
+
|
|
70
|
+
if (!((_a = _this.props.data.video) === null || _a === void 0 ? void 0 : _a.sourceUrl)) return;
|
|
71
|
+
|
|
64
72
|
_this.videoRef.current.pause();
|
|
65
73
|
|
|
66
74
|
_this.setState({
|
|
@@ -72,7 +80,7 @@ function (_super) {
|
|
|
72
80
|
}
|
|
73
81
|
|
|
74
82
|
VideoItem.prototype.render = function () {
|
|
75
|
-
var _a, _b, _c, _d, _e;
|
|
83
|
+
var _a, _b, _c, _d, _e, _f;
|
|
76
84
|
|
|
77
85
|
var data = this.props.data;
|
|
78
86
|
var playing = this.state.playing;
|
|
@@ -88,10 +96,12 @@ function (_super) {
|
|
|
88
96
|
}, /*#__PURE__*/_react["default"].createElement("source", {
|
|
89
97
|
src: (_b = data.video) === null || _b === void 0 ? void 0 : _b.sourceUrl,
|
|
90
98
|
type: "video/mp4"
|
|
91
|
-
})), ((_c = data.overilay) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
99
|
+
})), ((_c = data.overilay) === null || _c === void 0 ? void 0 : _c.open) && /*#__PURE__*/_react["default"].createElement("img", {
|
|
100
|
+
alt: "",
|
|
101
|
+
className: (0, _classnames["default"])('video-img', {
|
|
102
|
+
cover: (_d = data.video) === null || _d === void 0 ? void 0 : _d.sourceUrl
|
|
103
|
+
}),
|
|
104
|
+
src: (_f = (_e = data.overilay) === null || _e === void 0 ? void 0 : _e.content) === null || _f === void 0 ? void 0 : _f.pcImgSrc,
|
|
95
105
|
style: {
|
|
96
106
|
visibility: playing ? 'hidden' : 'visible'
|
|
97
107
|
}
|
|
@@ -6,15 +6,19 @@
|
|
|
6
6
|
width: 100%;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.video-
|
|
10
|
-
position: absolute;
|
|
11
|
-
top: 0;
|
|
12
|
-
right: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
bottom: 0;
|
|
15
|
-
object-fit: cover;
|
|
9
|
+
.video-img {
|
|
16
10
|
width: 100%;
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
|
|
12
|
+
&.cover {
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
left: 0;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
object-fit: cover;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
z-index: 0;
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.slide_image_second_conf_wrap {
|
|
2
|
+
.input-url {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 40px;
|
|
5
|
+
background: #FFFFFF;
|
|
6
|
+
border: 1px solid #D2D9E5;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
display: flex;
|
|
9
|
+
padding: 9px 14px;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
input {
|
|
14
|
+
border: none;
|
|
15
|
+
outline: none;
|
|
16
|
+
height: 24px;
|
|
17
|
+
flex-grow: 1;
|
|
18
|
+
font-family: 'Open Sans';
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
color: #232F46;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* 使用webkit内核的浏览器 */
|
|
26
|
+
input::-webkit-input-placeholder {
|
|
27
|
+
font-family: 'Open Sans';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
color: #8493AF;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Firefox版本4-18 */
|
|
35
|
+
input:-moz-placeholder {
|
|
36
|
+
font-family: 'Open Sans';
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
color: #8493AF;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Firefox版本19+ */
|
|
44
|
+
input::-moz-placeholder {
|
|
45
|
+
font-family: 'Open Sans';
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
color: #8493AF;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* IE浏览器 */
|
|
53
|
+
input:-ms-input-placeholder {
|
|
54
|
+
font-family: 'Open Sans';
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
color: #8493AF;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.icon-btns {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
|
|
65
|
+
&>span {
|
|
66
|
+
margin-left: 12px;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -46,6 +46,7 @@ var setDesignConfig = function setDesignConfig(props) {
|
|
|
46
46
|
device = props.device,
|
|
47
47
|
isPreview = props.isPreview,
|
|
48
48
|
projectCode = props.projectCode;
|
|
49
|
+
console.log('window.magicDesign', props);
|
|
49
50
|
window.magicDesign = __assign(__assign({
|
|
50
51
|
pageBackground: '#f2f2f2',
|
|
51
52
|
mode: 'renderer',
|
|
@@ -144,7 +144,7 @@ function compositeDecorator(WrappedComponent) {
|
|
|
144
144
|
var zIndex = '0';
|
|
145
145
|
var position = 'relative';
|
|
146
146
|
|
|
147
|
-
if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY') {
|
|
147
|
+
if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY' || nodeData.type === 'SLIDE_IMAGE') {
|
|
148
148
|
zIndex = '1';
|
|
149
149
|
} // 解决pc导航hover上去,类目被下面组件遮罩的问题
|
|
150
150
|
|
|
@@ -104,7 +104,8 @@ function (_super) {
|
|
|
104
104
|
|
|
105
105
|
var _b = this.props,
|
|
106
106
|
data = _b.data,
|
|
107
|
-
className = _b.className
|
|
107
|
+
className = _b.className,
|
|
108
|
+
iconHeight = _b.iconHeight;
|
|
108
109
|
var hover = this.state.hover;
|
|
109
110
|
this.preData = JSON.stringify(data);
|
|
110
111
|
this.preDevice = window.magicDesign.device;
|
|
@@ -163,7 +164,10 @@ function (_super) {
|
|
|
163
164
|
}, (iconLayout === 'right' || iconLayout === 'bottom') && /*#__PURE__*/_react["default"].createElement(_editable["default"], this.props), iconUrl && /*#__PURE__*/_react["default"].createElement("img", {
|
|
164
165
|
alt: "",
|
|
165
166
|
className: "icon",
|
|
166
|
-
src: iconUrl
|
|
167
|
+
src: iconUrl,
|
|
168
|
+
style: {
|
|
169
|
+
height: iconHeight + "px"
|
|
170
|
+
}
|
|
167
171
|
}), (iconLayout === 'left' || iconLayout === 'top') && /*#__PURE__*/_react["default"].createElement(_editable["default"], this.props)));
|
|
168
172
|
};
|
|
169
173
|
|
|
@@ -171,7 +175,8 @@ function (_super) {
|
|
|
171
175
|
data: {},
|
|
172
176
|
className: '',
|
|
173
177
|
readonly: false,
|
|
174
|
-
onTextInput: function onTextInput() {}
|
|
178
|
+
onTextInput: function onTextInput() {},
|
|
179
|
+
iconHeight: 20
|
|
175
180
|
};
|
|
176
181
|
|
|
177
182
|
__decorate([(0, _decorator.shouldUpdate)()], Button.prototype, "shouldComponentUpdate", null);
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -316,13 +316,12 @@ var clickUrl = function clickUrl(url, state) {
|
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
var _b = _typeof(url) === 'object' ? (0, _businessUtil.newParseUrl)(url) : (0, _businessUtil.parseUrl)(url),
|
|
319
|
-
|
|
319
|
+
_link = _b.link,
|
|
320
320
|
data = _b.data;
|
|
321
321
|
|
|
322
|
+
var link = !isPc() ? "/web" + _link : _link;
|
|
322
323
|
var _c = data.params,
|
|
323
|
-
params = _c === void 0 ? {} : _c;
|
|
324
|
-
// console.log({ type: 'jumpBrowser', params: { url: params.link } });
|
|
325
|
-
|
|
324
|
+
params = _c === void 0 ? {} : _c;
|
|
326
325
|
/** 锚点跳转 */
|
|
327
326
|
|
|
328
327
|
if (params.type === 'ANCHOR') {
|