Skip to content

Commit b174385

Browse files
bulk action value
1 parent 02c1ab3 commit b174385

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

client/packages/lowcoder/src/pages/editor/LeftLayersContent.tsx

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,6 @@ export const LeftLayersContent = (props: LeftLayersContentProps) => {
279279
const getCheckedKeys = () => {
280280
return checkedKeys;
281281
}
282-
283-
useEffect(() => {
284-
console.log('onChange', actionValue);
285-
}, [actionValue])
286282

287283
const getActionValue = () => {
288284
return actionValue;
@@ -350,14 +346,16 @@ export const LeftLayersContent = (props: LeftLayersContentProps) => {
350346
<div style={{marginBottom:"10px"}}>
351347
{trans("leftPanel.activatelayers")}
352348
<Switch
353-
style={{margin : "0px 10px"}}
354-
size="small"
355-
checked={editorState.collisionStatus == "true"}
356-
disabled={false}
357-
onChange={(value: any) => {
358-
toggleCollisionStatus(value == true ? "true" : "false");
359-
editorState.setCollisionStatus(value == true ? "true" : "false");
360-
} } /></div>
349+
style={{margin : "0px 10px"}}
350+
size="small"
351+
checked={editorState.collisionStatus == "true"}
352+
disabled={false}
353+
onChange={(value: any) => {
354+
toggleCollisionStatus(value == true ? "true" : "false");
355+
editorState.setCollisionStatus(value == true ? "true" : "false");
356+
}}
357+
/>
358+
</div>
361359

362360
<DirectoryTreeStyle
363361
checkable={true}
@@ -376,7 +374,8 @@ export const LeftLayersContent = (props: LeftLayersContentProps) => {
376374
switcherIcon={(props: any) => props.expanded ? <FoldedIcon /> : <UnfoldIcon />}
377375
expandedKeys={expandedKeys}
378376
onExpand={(keys) => setExpandedKeys(keys)}
379-
titleRender={(nodeData) => getTreeNode(nodeData as NodeItem, uiCompInfos)} />
377+
titleRender={(nodeData) => getTreeNode(nodeData as NodeItem, uiCompInfos)}
378+
/>
380379

381380
<div style={{margin:"10px 0px"}}>
382381
<Flex gap="small" vertical>
@@ -400,7 +399,6 @@ export const LeftLayersContent = (props: LeftLayersContentProps) => {
400399
</CustomDropdown>
401400
</Flex>
402401
</div>
403-
404402
</div>
405403

406404
<Divider />
@@ -413,7 +411,7 @@ export const LeftLayersContent = (props: LeftLayersContentProps) => {
413411
return;
414412
}
415413
return getTreeUI();
416-
}, [editorState, uiCollapseClick, expandedKeys, componentTreeData]);
414+
}, [editorState, uiCollapseClick, expandedKeys, componentTreeData, actionValue]);
417415

418416
const layerControlContent = (
419417
<ScrollBar>

0 commit comments

Comments
 (0)