perf: 优化一些样式

This commit is contained in:
kuaifan 2025-07-08 18:46:54 +08:00
parent 05a754f446
commit d75c22114c
5 changed files with 13 additions and 11 deletions

View File

@ -506,7 +506,7 @@ class BaiduMapPicker {
*/
updatePoiList(pois) {
const addressList = document.getElementById('address-list');
addressList.style.display = 'block';
addressList.style.display = 'flex';
const poiList = document.getElementById('poi-list');
poiList.innerHTML = '';

View File

@ -105,23 +105,24 @@ body {
.address-list {
display: none;
flex-direction: column;
min-height: 300px;
overflow-y: auto;
overflow: hidden;
background: #fff;
}
.address-list h3 {
flex-shrink: 0;
font-size: 18px;
font-weight: bold;
padding: 12px 14px 10px;
position: sticky;
top: 0;
z-index: 1;
background-color: #ffffff;
word-break: break-all;
}
#poi-list {
flex: 1;
overflow: auto;
list-style: none;
padding-bottom: 10px;
}

View File

@ -1277,7 +1277,7 @@ export default {
channel,
}
$A.eeuiAppSetVariate(`location::${channel}`, "");
const url = $A.urlAddParams($A.eeuiAppRewriteUrl('../public/tools/map/index.html'), Object.assign(params, objects || {}))
const url = $A.urlAddParams(window.location.origin + '/tools/map/index.html', Object.assign(params, objects || {}))
dispatch('openAppChildPage', {
pageType: 'app',
pageTitle: title,

View File

@ -506,7 +506,7 @@ class BaiduMapPicker {
*/
updatePoiList(pois) {
const addressList = document.getElementById('address-list');
addressList.style.display = 'block';
addressList.style.display = 'flex';
const poiList = document.getElementById('poi-list');
poiList.innerHTML = '';

View File

@ -105,23 +105,24 @@ body {
.address-list {
display: none;
flex-direction: column;
min-height: 300px;
overflow-y: auto;
overflow: hidden;
background: #fff;
}
.address-list h3 {
flex-shrink: 0;
font-size: 18px;
font-weight: bold;
padding: 12px 14px 10px;
position: sticky;
top: 0;
z-index: 1;
background-color: #ffffff;
word-break: break-all;
}
#poi-list {
flex: 1;
overflow: auto;
list-style: none;
padding-bottom: 10px;
}