mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
fix: modify docId
This commit is contained in:
parent
29ea5f77d6
commit
dc950336b5
@ -1,4 +1,4 @@
|
||||
{
|
||||
{"componentsTree": [{
|
||||
"componentName": "Page",
|
||||
"fileName": "home",
|
||||
"props": {},
|
||||
@ -17,4 +17,5 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}]
|
||||
}
|
||||
@ -150,7 +150,6 @@ async function loadSchema() {
|
||||
editor.set('schema', schema);
|
||||
editor.set('renderEnv', 'rax');
|
||||
editor.set('clientTypes', ['mobile']);
|
||||
|
||||
}
|
||||
|
||||
// demo
|
||||
|
||||
@ -85,7 +85,6 @@ export class ListSetter extends Component<ArraySetterProps, ArraySetterState> {
|
||||
private scrollToLast = false;
|
||||
onAdd() {
|
||||
const { items, itemsMap } = this.state;
|
||||
debugger;
|
||||
const { itemSetter } = this.props;
|
||||
const initialValue = typeof itemSetter === 'object' ? (itemSetter as any).initialValue : null;
|
||||
const item = this.props.field.createField({
|
||||
|
||||
@ -371,9 +371,9 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
||||
let instance = Instance.get(dom);
|
||||
while (instance && instance[INTERNAL]) {
|
||||
if (isValidDesignModeRaxComponentInstance(instance)) {
|
||||
const docId = (instance.props as any).schema.docId;
|
||||
// const docId = (instance.props as any).schema.docId;
|
||||
return {
|
||||
docId,
|
||||
docId: instance.props._leaf.document.id,
|
||||
nodeId: instance.props._leaf.getId(),
|
||||
instance: instance,
|
||||
node: instance.props._leaf,
|
||||
|
||||
@ -53,5 +53,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "http://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@0.8.13/build/index.html"
|
||||
"homepage": "https:/unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@0.8.18/build/index.html"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user