Skip to content

Commit 2f288b3

Browse files
【fix】 修复去掉es6 箭头后this绑定问题 review by songym
1 parent 53d63ec commit 2f288b3

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

examples/component/components_border_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
display: flex;
3535
justify-content: space-between;
3636
flex-wrap: wrap-reverse;
37-
align-content: flex-start;
37+
align-content: flex-start;
3838
}
3939
.common-border {
4040
margin-bottom: 10px;

examples/component/components_labeltheme_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
layerLoaded(themeLayer) {
317317
themeLayer.on('mousemove', function(e) {
318318
this.handleMouseOver(themeLayer, e);
319-
});
319+
}.bind(this));
320320
},
321321
handleMouseOver(themeLayer, e) {
322322
if (e.target && e.target.refDataID) {

examples/component/components_ranksymboltheme_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
layerLoaded(themeLayer) {
127127
themeLayer.on('mousemove', function(e) {
128128
return this.showInfoWin(themeLayer, e);
129-
});
129+
}.bind(this));
130130
},
131131
showInfoWin(themeLayer, e) {
132132
// e.target 是图形对象,即数据的可视化对象。

examples/component/components_tianditu_home_vue.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
<!-- 导航 -->
7070
<div class="nav-header">
7171
<a href="https://www.tianditu.gov.cn/" class="logo"
72-
><image class="logo-image" src="../img/tianditu/tianditu.png"></image
73-
></a>
72+
><img class="logo-image" src="../img/tianditu/tianditu.png" /></a>
7473
<ul class="imagesLink">
7574
<li><a href="https://www.tianditu.gov.cn/" target="_blank">首页</a></li>
7675
<li><a href="https://zhfw.tianditu.gov.cn/" target="_blank">专题图层</a></li>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy