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