mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
fix: 处理ts类型错误
This commit is contained in:
parent
e380ead651
commit
5fba293245
@ -1,11 +1,11 @@
|
||||
import { computed, Ref } from 'vue'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { CreateComponentType, CreateComponentGroupType } from '@/packages/index.d'
|
||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||
|
||||
// 获取当前对象数据
|
||||
export const useTargetData = () => {
|
||||
const chartEditStore = useChartEditStore()
|
||||
const targetData: Ref<CreateComponentType> = computed(() => {
|
||||
const targetData: Ref<CreateComponentType | CreateComponentGroupType> = computed(() => {
|
||||
const list = chartEditStore.getComponentList
|
||||
const targetIndex = chartEditStore.fetchTargetIndex()
|
||||
return list[targetIndex]
|
||||
|
Loading…
x
Reference in New Issue
Block a user