forked from github/dataease
fix: Typos报错
This commit is contained in:
parent
d49bcdcaed
commit
42c19ccc09
@ -60,7 +60,7 @@ const setDefaultMapValue = arr => {
|
||||
return []
|
||||
}
|
||||
let defaultMapValue = {}
|
||||
let defaulValue = []
|
||||
let defaultValue = []
|
||||
arr.forEach(ele => {
|
||||
defaultMapValue[ele] = []
|
||||
})
|
||||
@ -70,9 +70,9 @@ const setDefaultMapValue = arr => {
|
||||
}
|
||||
})
|
||||
Object.values(defaultMapValue).forEach(ele => {
|
||||
defaulValue = [...defaulValue, ...(ele as unknown as string[])]
|
||||
defaultValue = [...defaultValue, ...(ele as unknown as string[])]
|
||||
})
|
||||
return defaulValue
|
||||
return defaultValue
|
||||
}
|
||||
|
||||
const handleValueChange = () => {
|
||||
|
@ -1306,9 +1306,9 @@ const setActiveCtrl = (ele, type = 'dimension') => {
|
||||
|
||||
const setActiveShift = (ele, type = 'dimension') => {
|
||||
const activeChild = type === 'dimension' ? activeDimension : activeQuota
|
||||
const deactiveChild = type === 'quota' ? activeDimension : activeQuota
|
||||
const deactivateChild = type === 'quota' ? activeDimension : activeQuota
|
||||
const dataArr = type === 'dimension' ? dimensionData : quotaData
|
||||
deactiveChild.value = []
|
||||
deactivateChild.value = []
|
||||
const dimensionDataId = dataArr.value.map(ele => ele.id)
|
||||
const dimensionDataActiveChild = activeChild.value.filter(ele => dimensionDataId.includes(ele.id))
|
||||
if (!dimensionDataActiveChild.length) {
|
||||
@ -1344,8 +1344,8 @@ const dragStartD = (e: DragEvent) => {
|
||||
|
||||
const singleDragStartD = (e: DragEvent, ele, type) => {
|
||||
const activeChild = type === 'dimension' ? activeDimension : activeQuota
|
||||
const deactiveChild = type === 'quota' ? activeDimension : activeQuota
|
||||
deactiveChild.value = []
|
||||
const deactivateChild = type === 'quota' ? activeDimension : activeQuota
|
||||
deactivateChild.value = []
|
||||
if (!activeChild.value.length) {
|
||||
activeChild.value = [unref(ele)]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user