mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 12:17:37 +08:00
refactor(utils): use built-in throwError function (#3916)
This commit is contained in:
parent
06fc7f4215
commit
fdfe38deb0
@ -14,7 +14,7 @@ import {
|
|||||||
} from '@vue/shared'
|
} from '@vue/shared'
|
||||||
import isEqualWith from 'lodash/isEqualWith'
|
import isEqualWith from 'lodash/isEqualWith'
|
||||||
import isServer from './isServer'
|
import isServer from './isServer'
|
||||||
import { debugWarn } from './error'
|
import { debugWarn, throwError } from './error'
|
||||||
|
|
||||||
import type { ComponentPublicInstance, CSSProperties, Ref } from 'vue'
|
import type { ComponentPublicInstance, CSSProperties, Ref } from 'vue'
|
||||||
import type { TimeoutHandle, Nullable } from './types'
|
import type { TimeoutHandle, Nullable } from './types'
|
||||||
@ -68,7 +68,7 @@ export function getPropByPath(
|
|||||||
tempObj = tempObj[key]
|
tempObj = tempObj[key]
|
||||||
} else {
|
} else {
|
||||||
if (strict) {
|
if (strict) {
|
||||||
throw new Error('Please transfer a valid prop path to form item!')
|
throwError(SCOPE, 'Please transfer a valid prop path to form item!')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user