Files
yunzhupaas-app-vue3/pages/portal/components/HCustomeCharts/index.vue
wangmingwei 35101db700 初始代码
2026-04-21 16:55:00 +08:00

33 lines
499 B
Vue

<template>
<view class="charts" v-if="show">
<charts :config="config" :key="key" ref="charts"></charts>
</view>
</template>
<script>
import charts from './charts.vue'
import chartsJs from '../chartsJs.js'
export default {
mixins: [chartsJs],
components: {
charts
},
props: {
config: {
type: Object,
default: () => {}
}
},
data() {
return {
key: +new Date(),
}
},
methods: {}
}
</script>
<style lang="scss">
.charts {
padding: 20rpx;
}
</style>