Skip to content

Commit d0c9de4

Browse files
committed
【fix】基础微件,主题切换背景优化, review by songym
1 parent fe3b62f commit d0c9de4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/mapboxgl/widgets_basic_vue.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
top: 10px;
3333
left: 10px;
3434
z-index: 1000;
35+
overflow: hidden;
3536
}
3637
.sm-progress-wrap {
3738
height: 100px;
@@ -50,7 +51,7 @@
5051
<sm-web-map :web-map-options="webOptions" map-id="1649097980" ref="map"></sm-web-map>
5152
<el-card class="box-card">
5253
<!-- 图标微件 -->
53-
<sm-icon class-name="location" size="18px" text-color='rgb(63, 177, 227)'>
54+
<sm-icon class-name="location" size="18px" text-color='rgb(63, 177, 227)' :style="{float: 'left'}">
5455
</sm-icon>
5556
<!-- 文本微件 -->
5657
<sm-text title="点击图上点切换显示机场数据" :font-style='{ fontSize: "14px"}' text-color="#333">

examples/mapboxgl/widgets_theme_vue.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
top: 10px;
4242
right: 10px;
4343
z-index: 1000;
44+
overflow: hidden;
4445
}
4546

4647
.radio-group {
@@ -73,7 +74,7 @@
7374
</el-radio-group>
7475
<div class="box-card">
7576
<!-- 图标微件 -->
76-
<sm-icon class-name="location" size="18px">
77+
<sm-icon class-name="location" background="unset" size="18px" :style="{float: 'left'}">
7778
</sm-icon>
7879
<!-- 文本微件 -->
7980
<sm-text title="点击图上点切换显示机场数据" :font-style='{ fontSize: "14px"}' text-color="#333"></sm-text>
@@ -89,7 +90,7 @@
8990
<sm-indicator title="2017货邮吞吐量" unit="" :num="goodsNumber" style="width: 100%"></sm-indicator>
9091
<sm-text title="同比增速" :font-style='{ fontSize: "12px",fontWeight: "bolder"}' text-color="rgb(51,51,51)"></sm-text>
9192

92-
<div :style="divStyle">
93+
<div :style="divStyle">
9394
<!-- 水球微件 -->
9495
<sm-liquid-fill :value="speedIncreaseValue" :wave-count="3" :wave-animation="true">
9596
</sm-liquid-fill>

0 commit comments

Comments
 (0)