Kaynağa Gözat

完善加载蒙层

tags/1.16.0
Caven Chen 4 yıl önce
ebeveyn
işleme
b3eddedc76

+ 1
- 1
src/core/widget/LoadingMask.js Dosyayı Görüntüle

@@ -10,7 +10,7 @@ import Widget from './Widget'
class LoadingMask extends Widget {
constructor() {
super()
this._wrapper = DomUtil.create('div', 'dc-loading-container')
this._wrapper = DomUtil.create('div', 'dc-loading-mask')
this.type = Widget.getWidgetType('loading_mask')
this._state = State.INITIALIZED
}

+ 4
- 0
src/core/widget/LocationBar.js Dosyayı Görüntüle

@@ -86,6 +86,10 @@ class LocationBar extends Widget {
<span>海拔:${alt.toFixed(2)} 米</span>`
}

/**
*
* @private
*/
_cameraHandler() {
let now = Cesium.getTimestamp()
if (now < this._lastUpdate + 300) {

+ 3
- 4
src/themes/loading-mask.scss Dosyayı Görüntüle

@@ -1,10 +1,9 @@
.dc-loading-container {
width: 100%;
height: 100%;
.dc-loading-mask {
position: absolute;
z-index: 2;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;

Loading…
İptal
Kaydet