Merge branch 'pre-release' of ssh://icode.baidu.com:8235/baidu/amis/editor into pre-release

Change-Id: Ie1fdd8c4ffc5e8e27cfecfc8021541d0db3d8e64
This commit is contained in:
wibetter 2023-01-04 20:54:48 +08:00
commit 4e67c09731
2 changed files with 6 additions and 7 deletions

View File

@ -67,7 +67,7 @@ export default [
maxSize: 10
})
]
}),
})
])
},
{
@ -97,7 +97,8 @@ function transpileDynamicImportForCJS(options) {
return {
left: 'Promise.resolve().then(function() {return new Promise(function(fullfill) {require([',
right: '], function(mod) {fullfill(tslib.__importStar(mod))})})})'
right:
'], function(mod) {fullfill(require("tslib").__importStar(mod))})})})'
};
// return {

View File

@ -1864,11 +1864,9 @@ export class EditorManager {
) {
originHook?.(e, component, scoped, data, broadcasts);
if (component.props.$$id) {
const node = this.store.getNodeById(
component.props.$$id,
component.props.type
);
const id = component.props.$$id || component.props.$$editor?.id;
if (id) {
const node = this.store.getNodeById(id, component.props.type);
node?.info?.plugin?.rendererBeforeDispatchEvent?.(
node,
e,