Skip to content

Commit 5c3d732

Browse files
committed
fix: remove warning
1 parent 5533c5a commit 5c3d732

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/_util/vnode.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ export function cloneElement(n, nodeProps = {}, deep) {
6363
return null;
6464
}
6565
const node = cloneVNode(ele, deep);
66-
// 函数式组件不支持clone https://github.com/vueComponent/ant-design-vue/pull/1947
67-
warning(
68-
!(node.fnOptions && node.fnOptions.functional),
69-
`can not use cloneElement for functional component (${node.tag})`,
70-
);
66+
// // 函数式组件不支持clone https://github.com/vueComponent/ant-design-vue/pull/1947
67+
// warning(
68+
// !(node.fnOptions && node.fnOptions.functional),
69+
// `can not use cloneElement for functional component (${node.fnOptions && node.fnOptions.name})`,
70+
// );
7171
const { props = {}, key, on = {}, children, directives = [] } = nodeProps;
7272
const data = node.data || {};
7373
let cls = {};

0 commit comments

Comments
 (0)