mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 05:48:17 +00:00
chore: 调整命名
This commit is contained in:
parent
a2dd868f90
commit
4513f03ac1
@ -44,7 +44,7 @@ function registerPrototypeViewWrapper(name: string, prototypeViewWrapper: Functi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function wrapperPrototypeView(view: ComponentClass) {
|
function wrapPrototypeView(view: ComponentClass) {
|
||||||
const newView = prototypeViewWrapperList.reduce((acc, { prototypeViewWrapper }) => {
|
const newView = prototypeViewWrapperList.reduce((acc, { prototypeViewWrapper }) => {
|
||||||
return prototypeViewWrapper(acc.displayName, acc) || acc;
|
return prototypeViewWrapper(acc.displayName, acc) || acc;
|
||||||
}, view);
|
}, view);
|
||||||
@ -200,7 +200,7 @@ export default class Bundle {
|
|||||||
viewDetail.displayName = getCamelName(viewName || item.name);
|
viewDetail.displayName = getCamelName(viewName || item.name);
|
||||||
}
|
}
|
||||||
(viewDetail as any)._packageName_ = viewName || item.name;
|
(viewDetail as any)._packageName_ = viewName || item.name;
|
||||||
this.viewsMap[viewDetail.displayName] = wrapperPrototypeView(viewDetail);
|
this.viewsMap[viewDetail.displayName] = wrapPrototypeView(viewDetail);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,24 +0,0 @@
|
|||||||
// const { Bundle } = window.VisualEngine;
|
|
||||||
// Bundle.registerPrototypeConfigPreprocessor('aaa', (componentName, config) => {
|
|
||||||
// if (componentName === 'Text') {
|
|
||||||
// config.configure[0].initialValue.zh_CN = 'XXXXXXXXXX';
|
|
||||||
// return {
|
|
||||||
// ...config,
|
|
||||||
// };
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
|
|
||||||
// Bundle.registerPrototypeViewWrapper('aaa', function (componentName, View) {
|
|
||||||
// return componentName === 'Text'
|
|
||||||
// ? class Wrapper extends window.React.Component {
|
|
||||||
// render() {
|
|
||||||
// return (
|
|
||||||
// <div>
|
|
||||||
// <View {...this.props}/>
|
|
||||||
// <div>AAAAAA</div>
|
|
||||||
// </div>
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// : null;
|
|
||||||
// });
|
|
||||||
Loading…
x
Reference in New Issue
Block a user