mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 20:12:48 +00:00
perf: 优化一些样式
This commit is contained in:
parent
05a754f446
commit
d75c22114c
2
public/tools/map/main.js
vendored
2
public/tools/map/main.js
vendored
@ -506,7 +506,7 @@ class BaiduMapPicker {
|
|||||||
*/
|
*/
|
||||||
updatePoiList(pois) {
|
updatePoiList(pois) {
|
||||||
const addressList = document.getElementById('address-list');
|
const addressList = document.getElementById('address-list');
|
||||||
addressList.style.display = 'block';
|
addressList.style.display = 'flex';
|
||||||
|
|
||||||
const poiList = document.getElementById('poi-list');
|
const poiList = document.getElementById('poi-list');
|
||||||
poiList.innerHTML = '';
|
poiList.innerHTML = '';
|
||||||
|
|||||||
9
public/tools/map/style.css
vendored
9
public/tools/map/style.css
vendored
@ -105,23 +105,24 @@ body {
|
|||||||
|
|
||||||
.address-list {
|
.address-list {
|
||||||
display: none;
|
display: none;
|
||||||
|
flex-direction: column;
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
overflow-y: auto;
|
overflow: hidden;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.address-list h3 {
|
.address-list h3 {
|
||||||
|
flex-shrink: 0;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 12px 14px 10px;
|
padding: 12px 14px 10px;
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
z-index: 1;
|
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
#poi-list {
|
#poi-list {
|
||||||
|
flex: 1;
|
||||||
|
overflow: auto;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
2
resources/assets/js/store/actions.js
vendored
2
resources/assets/js/store/actions.js
vendored
@ -1277,7 +1277,7 @@ export default {
|
|||||||
channel,
|
channel,
|
||||||
}
|
}
|
||||||
$A.eeuiAppSetVariate(`location::${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', {
|
dispatch('openAppChildPage', {
|
||||||
pageType: 'app',
|
pageType: 'app',
|
||||||
pageTitle: title,
|
pageTitle: title,
|
||||||
|
|||||||
@ -506,7 +506,7 @@ class BaiduMapPicker {
|
|||||||
*/
|
*/
|
||||||
updatePoiList(pois) {
|
updatePoiList(pois) {
|
||||||
const addressList = document.getElementById('address-list');
|
const addressList = document.getElementById('address-list');
|
||||||
addressList.style.display = 'block';
|
addressList.style.display = 'flex';
|
||||||
|
|
||||||
const poiList = document.getElementById('poi-list');
|
const poiList = document.getElementById('poi-list');
|
||||||
poiList.innerHTML = '';
|
poiList.innerHTML = '';
|
||||||
|
|||||||
@ -105,23 +105,24 @@ body {
|
|||||||
|
|
||||||
.address-list {
|
.address-list {
|
||||||
display: none;
|
display: none;
|
||||||
|
flex-direction: column;
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
overflow-y: auto;
|
overflow: hidden;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.address-list h3 {
|
.address-list h3 {
|
||||||
|
flex-shrink: 0;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 12px 14px 10px;
|
padding: 12px 14px 10px;
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
z-index: 1;
|
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
#poi-list {
|
#poi-list {
|
||||||
|
flex: 1;
|
||||||
|
overflow: auto;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user