Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a334a5a

Browse files
added toggle btn in drawer
1 parent 9ec5282 commit a334a5a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎client/packages/lowcoder/src/comps/hooks/drawerComp.tsx‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ let TmpDrawerComp = (function () {
9696
closePosition: withDefault(LeftRightControl, "left"),
9797
maskClosable: withDefault(BoolControl, true),
9898
showMask: withDefault(BoolControl, true),
99+
toggleClose:withDefault(BoolControl,true)
99100
},
100101
(props, dispatch) => {
101102
const isTopBom = ["top", "bottom"].includes(props.placement);
@@ -155,6 +156,7 @@ let TmpDrawerComp = (function () {
155156
className={props.className as string}
156157
data-testid={props.dataTestId as string}
157158
>
159+
{props.toggleClose && (
158160
<ButtonStyle
159161
$closePosition={props.closePosition}
160162
onClick={() => {
@@ -163,6 +165,7 @@ let TmpDrawerComp = (function () {
163165
>
164166
<CloseOutlined />
165167
</ButtonStyle>
168+
)}
166169
<InnerGrid
167170
{...otherContainerProps}
168171
items={gridItemCompToGridItems(items)}
@@ -206,6 +209,9 @@ let TmpDrawerComp = (function () {
206209
{children.showMask.propertyView({
207210
label: trans("prop.showMask"),
208211
})}
212+
{children.toggleClose.propertyView({
213+
label: trans("prop.toggleClose"),
214+
})}
209215
</Section>
210216
<Section name={sectionNames.interaction}>{children.onEvent.getPropertyView()}</Section>
211217
<Section name={sectionNames.style}>{children.style.getPropertyView()}</Section>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /