mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-04 09:15:16 +00:00
fix: 去除乐高vision兼容影响
This commit is contained in:
parent
394db8db1b
commit
9e4756107f
@ -102,8 +102,8 @@ context.use(HOOKS.VE_SETTING_FIELD_VARIABLE_SETTER, VariableSetter);
|
|||||||
const externals = ['react', 'react-dom', 'prop-types', 'react-router', 'react-router-dom', '@ali/recore'];
|
const externals = ['react', 'react-dom', 'prop-types', 'react-router', 'react-router-dom', '@ali/recore'];
|
||||||
|
|
||||||
async function loadAssets() {
|
async function loadAssets() {
|
||||||
const legaoAssets = await editor.utils.get('./raxAssets.json');
|
// const legaoAssets = await editor.utils.get('./raxAssets.json');
|
||||||
// const legaoAssets = await editor.utils.get('./legao-assets.json');
|
const legaoAssets = await editor.utils.get('./legao-assets.json');
|
||||||
|
|
||||||
const assets = upgradeAssetsBundle(legaoAssets);
|
const assets = upgradeAssetsBundle(legaoAssets);
|
||||||
|
|
||||||
@ -145,11 +145,11 @@ async function loadAssets() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function loadSchema() {
|
async function loadSchema() {
|
||||||
const schema = await editor.utils.get('./rax.json');
|
// const schema = await editor.utils.get('./rax.json');
|
||||||
// const schema = await editor.utils.get('./schema.json');
|
const schema = await editor.utils.get('./schema.json');
|
||||||
editor.set('schema', schema);
|
editor.set('schema', schema);
|
||||||
editor.set('renderEnv', 'rax');
|
// editor.set('renderEnv', 'rax');
|
||||||
editor.set('clientTypes', ['mobile']);
|
// editor.set('clientTypes', ['mobile']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -183,19 +183,19 @@ function compatiableReducer(props: any) {
|
|||||||
if (!props || !isPlainObject(props)) {
|
if (!props || !isPlainObject(props)) {
|
||||||
return props;
|
return props;
|
||||||
}
|
}
|
||||||
if (isJSSlot(props)) {
|
// if (isJSSlot(props)) {
|
||||||
return {
|
// return {
|
||||||
type: 'JSBlock',
|
// type: 'JSBlock',
|
||||||
value: {
|
// value: {
|
||||||
componentName: 'Slot',
|
// componentName: 'Slot',
|
||||||
children: props.value,
|
// children: props.value,
|
||||||
props: {
|
// props: {
|
||||||
slotTitle: props.title,
|
// slotTitle: props.title,
|
||||||
slotName: props.name,
|
// slotName: props.name,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
};
|
// };
|
||||||
}
|
// }
|
||||||
// 为了能降级到老版本,建议在后期版本去掉以下代码
|
// 为了能降级到老版本,建议在后期版本去掉以下代码
|
||||||
// if (isJSExpression(props) && !props.events) {
|
// if (isJSExpression(props) && !props.events) {
|
||||||
// return {
|
// return {
|
||||||
|
|||||||
@ -53,5 +53,5 @@
|
|||||||
"ts-node/register"
|
"ts-node/register"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@0.8.57/build/index.html"
|
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@0.8.59/build/index.html"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user