Skip to content

Commit 3d9e6c6

Browse files
committed
fix(types): fix type error
1 parent 226e737 commit 3d9e6c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/base.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ const BaseChart = defineComponent<
6565
},
6666
},
6767
mounted() {
68-
const chartRef = this.$attrs.chartRef as Ref<BasePlot<any> | null>
68+
const chartRef = this.$attrs
69+
.chartRef as unknown as Ref<BasePlot<any> | null>
6970
const { chart: Chart, onReady } = this.attrConfig
7071
const plot = new Chart(this.$el as HTMLElement, {
7172
data: this.chartData,

0 commit comments

Comments
 (0)