ant-design-vue/components/_util/cloneElement.js

9 lines
244 B
JavaScript
Raw Normal View History

2017-12-14 04:13:15 +00:00
export default (node, nodeProps) => {
const { props, style, class: cls, attrs, key } = nodeProps
2017-12-12 07:05:45 +00:00
if (node.componentOptions) {
const propsData = node.componentOptions.propsData
2017-12-14 04:13:15 +00:00
Object.assign(propsData, nodeProps)
2017-12-12 07:05:45 +00:00
}
return node
}