Match-id-30c3c11db166222cef6d0b38a690afdd4a0fbc80
This commit is contained in:
parent
a68c3b9897
commit
b9a2d4067d
|
@ -43,7 +43,6 @@ import {
|
||||||
findDomParent, getSiblingDom,
|
findDomParent, getSiblingDom,
|
||||||
} from '../vnode/VNodeUtils';
|
} from '../vnode/VNodeUtils';
|
||||||
import { shouldAutoFocus } from '../../dom/utils/Common';
|
import { shouldAutoFocus } from '../../dom/utils/Common';
|
||||||
import { internalKeys } from '../../dom/DOMInternalKeys';
|
|
||||||
|
|
||||||
function callComponentWillUnmount(vNode: VNode, instance: any) {
|
function callComponentWillUnmount(vNode: VNode, instance: any) {
|
||||||
try {
|
try {
|
||||||
|
@ -311,8 +310,12 @@ function unmountDomComponents(vNode: VNode): void {
|
||||||
function submitClear(vNode: VNode): void {
|
function submitClear(vNode: VNode): void {
|
||||||
const realNode = vNode.realNode;
|
const realNode = vNode.realNode;
|
||||||
const cloneDom = realNode.cloneNode(false); // 复制节点后horizon的两个属性消失
|
const cloneDom = realNode.cloneNode(false); // 复制节点后horizon的两个属性消失
|
||||||
cloneDom[internalKeys.VNode] = realNode[internalKeys.VNode];
|
const customizeKeys = Object.keys;
|
||||||
cloneDom[internalKeys.props] = realNode[internalKeys.props];
|
const keyLength = customizeKeys.length;
|
||||||
|
for(let i = 0; i < keyLength; i++) {
|
||||||
|
const key = customizeKeys[i];
|
||||||
|
cloneDom[key] = realNode(key);
|
||||||
|
}
|
||||||
|
|
||||||
const parentObj = findDomParent(vNode);
|
const parentObj = findDomParent(vNode);
|
||||||
const currentParent = parentObj.parentDom;
|
const currentParent = parentObj.parentDom;
|
||||||
|
|
Loading…
Reference in New Issue