mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 14:10:47 +08:00
refactor(vue): use deep copy to handle devtools attribues
This commit is contained in:
@@ -31,6 +31,7 @@ import {
|
||||
getApp,
|
||||
trace,
|
||||
warn,
|
||||
deepCopy,
|
||||
isFunction,
|
||||
capitalizeFirstLetter,
|
||||
convertImageLocalPath,
|
||||
@@ -298,7 +299,7 @@ function parseViewComponent(targetNode, nativeNode, style) {
|
||||
*/
|
||||
function getTargetNodeAttributes(targetNode) {
|
||||
try {
|
||||
const targetNodeAttributes = JSON.parse(JSON.stringify(targetNode.attributes));
|
||||
const targetNodeAttributes = deepCopy(targetNode.attributes);
|
||||
const classInfo = Array.from(targetNode.classList || []).join(' ');
|
||||
const attributes = {
|
||||
id: targetNode.id,
|
||||
|
||||
Reference in New Issue
Block a user