Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Vue3,微信小程序中使用页面空白 #7

Open
toplyb opened this issue Jun 27, 2023 · 1 comment
Open

Vue3,微信小程序中使用页面空白 #7

toplyb opened this issue Jun 27, 2023 · 1 comment

Comments

@toplyb
Copy link

toplyb commented Jun 27, 2023

代码如下:

<template>
  <view class="content">
    <uni-chart :option="option" />
  </view>
</template>

<script setup lang='ts'>
const option = {
  xAxis: {
    type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      data: [120, 200, 150, 80, 70, 110, 130],
      type: 'bar',
      showBackground: true,
      backgroundStyle: {
        color: 'rgba(180, 180, 180, 0.2)'
      }
    }
  ]
}

</script>

<style scoped lang='scss'>
.content {
  width: 375px;
  height: 375px;
}
</style>
@zhgweb
Copy link

zhgweb commented Sep 8, 2023

解决了吗 我这也是!!!不知道咋回事

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants