Donny Wang
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
3 deletions
-
packages/@core/composables/src/use-priority-value.ts
|
|
|
@ -26,13 +26,13 @@ export function usePriorityValue< |
|
|
|
// 通过判断原始props是否有值来判断是否传入
|
|
|
|
const rawProps = (instance?.vnode?.props || {}) as T; |
|
|
|
|
|
|
|
const standardRwaProps = {} as T; |
|
|
|
const standardRawProps = {} as T; |
|
|
|
|
|
|
|
for (const [key, value] of Object.entries(rawProps)) { |
|
|
|
standardRwaProps[kebabToCamelCase(key) as K] = value; |
|
|
|
standardRawProps[kebabToCamelCase(key) as K] = value; |
|
|
|
} |
|
|
|
const propsKey = |
|
|
|
standardRwaProps?.[key] === undefined ? undefined : props[key]; |
|
|
|
standardRawProps?.[key] === undefined ? undefined : props[key]; |
|
|
|
|
|
|
|
// slot可以关闭
|
|
|
|
return getFirstNonNullOrUndefined( |
|
|
|
|