mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 21:18:14 +08:00
fix: remove warning
This commit is contained in:
parent
5533c5a879
commit
5c3d7329e1
@ -63,11 +63,11 @@ export function cloneElement(n, nodeProps = {}, deep) {
|
||||
return null;
|
||||
}
|
||||
const node = cloneVNode(ele, deep);
|
||||
// 函数式组件不支持clone https://github.com/vueComponent/ant-design-vue/pull/1947
|
||||
warning(
|
||||
!(node.fnOptions && node.fnOptions.functional),
|
||||
`can not use cloneElement for functional component (${node.tag})`,
|
||||
);
|
||||
// // 函数式组件不支持clone https://github.com/vueComponent/ant-design-vue/pull/1947
|
||||
// warning(
|
||||
// !(node.fnOptions && node.fnOptions.functional),
|
||||
// `can not use cloneElement for functional component (${node.fnOptions && node.fnOptions.name})`,
|
||||
// );
|
||||
const { props = {}, key, on = {}, children, directives = [] } = nodeProps;
|
||||
const data = node.data || {};
|
||||
let cls = {};
|
||||
|
Loading…
Reference in New Issue
Block a user