mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +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;
|
return null;
|
||||||
}
|
}
|
||||||
const node = cloneVNode(ele, deep);
|
const node = cloneVNode(ele, deep);
|
||||||
// 函数式组件不支持clone https://github.com/vueComponent/ant-design-vue/pull/1947
|
// // 函数式组件不支持clone https://github.com/vueComponent/ant-design-vue/pull/1947
|
||||||
warning(
|
// warning(
|
||||||
!(node.fnOptions && node.fnOptions.functional),
|
// !(node.fnOptions && node.fnOptions.functional),
|
||||||
`can not use cloneElement for functional component (${node.tag})`,
|
// `can not use cloneElement for functional component (${node.fnOptions && node.fnOptions.name})`,
|
||||||
);
|
// );
|
||||||
const { props = {}, key, on = {}, children, directives = [] } = nodeProps;
|
const { props = {}, key, on = {}, children, directives = [] } = nodeProps;
|
||||||
const data = node.data || {};
|
const data = node.data || {};
|
||||||
let cls = {};
|
let cls = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user