数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
625 B

2 years ago
function updateProps(oldVnode, vnode) {
let key;
let cur;
let old;
const elm = vnode.elm;
let oldProps = oldVnode.data.props;
let props = vnode.data.props;
if (!oldProps && !props)
return;
if (oldProps === props)
return;
oldProps = oldProps || {};
props = props || {};
for (key in props) {
cur = props[key];
old = oldProps[key];
if (old !== cur && (key !== "value" || elm[key] !== cur)) {
elm[key] = cur;
}
}
}
export const propsModule = { create: updateProps, update: updateProps };
//# sourceMappingURL=props.js.map