fix: 画布BorderAction埋点数据

This commit is contained in:
wuyue.xht 2020-06-28 11:56:12 +08:00
parent 15c8988a24
commit d813b5090c

View File

@ -126,13 +126,13 @@ function createAction(content: ReactNode | ComponentType<any> | ActionContentObj
action && action(node);
const editor = globalContext.get(Editor);
const npm = node?.componentMeta?.npm;
const target =
const selected =
[npm?.package, npm?.componentName].filter((item) => !!item).join('-') ||
node?.componentMeta?.componentName ||
'';
editor?.emit('designer.border.action', {
name: key,
target,
selected,
});
}}
>