Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
map-demo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-09-02 15:33:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
049fa33ed789fe2c8f9bca661a4d49b76cd8ef95
049fa33e
1 parent
0a89fc6f
fix 导航文字长度问题修复
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/index.vue
src/views/index.vue
View file @
049fa33
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-02 1
4:56:47
* @LastEditTime: 2024-09-02 1
5:32:36
* @FilePath: /map-demo/src/views/index.vue
* @Description: 公众地图主体页面
-->
...
...
@@ -52,12 +52,12 @@
<div v-if="item.status" class="item" @click="handleSafeRoute(true, item)">
<van-icon name="https://cdn.ipadbiz.cn/xys/map/%E7%BA%BF%E8%B7%AF01.png" size="1.5rem"
style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" />
<span style="position: absolute;
right: -110%
;">{{ item.name }}</span>
<span style="position: absolute;
left: 40px; display: inline-block; width: 10rem; text-align: left
;">{{ item.name }}</span>
</div>
<div v-else class="item" @click="handleSafeRoute(false, item)">
<van-icon name="https://cdn.ipadbiz.cn/xys/map/%E7%BA%BF%E8%B7%AF02.png" size="1.5rem"
style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" />
<span style="position: absolute;
right: -110%
;">{{ item.name }}</span>
<span style="position: absolute;
left: 40px; display: inline-block; width: 10rem; text-align: left
;">{{ item.name }}</span>
</div>
</div>
</div>
...
...
Please
register
or
login
to post a comment