Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

修改position属性 #323

Merged
merged 2 commits into from Sep 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/wxc-loading/index.vue
Expand Up @@ -3,7 +3,7 @@
<!--A loading indicator. Custom text supported. -->

<template>
<div :class="[showLoading && needMask && 'loading-need-mask']"
<div :class="['loading-container',showLoading && needMask && 'loading-need-mask']"
@click="maskClicked"
:style="maskStyle">
<div class="wxc-loading" :style="{ top: topPosition +'px'}" v-if="showLoading">
Expand All @@ -20,7 +20,10 @@
</template>

<style scoped>

.loading-container{
position: relative;
}

.loading-need-mask {
position: absolute;
top: 0;
Expand All @@ -31,7 +34,7 @@
}

.wxc-loading {
position: fixed;
position: absolute;
left: 287px;
top: 500px;
z-index: 9999;
Expand Down