fix style

This commit is contained in:
Qiuxia Fan 2022-03-30 21:03:49 +08:00
parent 31bbed581b
commit 6fb9f80383

View File

@ -13,12 +13,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->
<template>
<div
v-if="available"
ref="chartRef"
:style="`height:${height};width:${width};`"
></div>
<div v-else class="no-data">No Data</div>
<div ref="chartRef" :style="`height:${height};width:${width};`">
<div v-if="!available" class="no-data">No Data</div>
</div>
</template>
<script lang="ts" setup>
import {
@ -93,5 +90,6 @@ onBeforeUnmount(() => {
-webkit-box-orient: horizontal;
-webkit-box-pack: center;
-webkit-box-align: center;
color: #666;
}
</style>