feat: 文字组件添加链接功能

This commit is contained in:
wuyuting1
2022-09-21 17:27:50 +08:00
parent 31c63130d6
commit b8a1fd904b
3 changed files with 13 additions and 10 deletions
@@ -38,6 +38,7 @@ const props = defineProps({
const { w, h } = toRefs(props.chartConfig.attr)
const {
linkHead,
link,
dataset,
fontColor,
@@ -75,7 +76,7 @@ useChartDataFetch(props.chartConfig, useChartEditStore, (newData: string) => {
//打开链接
const click = () => {
window.open(link.value)
window.open(linkHead.value+link.value)
}
</script>