ps:忽略箭头
<template>
<div :id="id" :style="{ width: width, height: height }" />
</template>
<script lang="ts" setup>
import "echarts-wordcloud/dist/echarts-wordcloud";
import "echarts-wordcloud/dist/echarts-wordcloud.min";
interface dataInter{
name: string,
value: number,
}
interface Props{
id?:string,
cloudData?:dataInter[],
width?:string,
height?:string,
color?:string[],
textStyleColor?:string
}
const props = withDefaults(defineProps<Props>(),{
id: "wordCloud",
cloudData: () =&