mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
fix(utils): add type remove the ts error (#3406)
* fix(utils): add type remove the ts error * fix: optional chaining operator replace non-nullish assertion * chore: try again test
This commit is contained in:
parent
a3f01b0f23
commit
9d142ae129
@ -22,7 +22,7 @@ export default function (): number {
|
||||
outer.appendChild(inner)
|
||||
|
||||
const widthWithScroll = inner.offsetWidth
|
||||
outer.parentNode.removeChild(outer)
|
||||
outer.parentNode?.removeChild(outer)
|
||||
scrollBarWidth = widthNoScroll - widthWithScroll
|
||||
|
||||
return scrollBarWidth
|
||||
|
@ -111,9 +111,10 @@ export const getNormalizedProps = (node: VNode) => {
|
||||
debugWarn(SCOPE, 'value must be a VNode')
|
||||
return
|
||||
}
|
||||
|
||||
const raw = node.props || {}
|
||||
const type = (node.type as any).props || {}
|
||||
const props = {}
|
||||
const props = {} as any
|
||||
|
||||
Object.keys(type).forEach((key) => {
|
||||
if (hasOwn(type[key], 'default')) {
|
||||
|
Loading…
Reference in New Issue
Block a user