Movatterモバイル変換


[0]ホーム

URL:


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

Commita334a5a

Browse files
committed
added toggle btn in drawer
1 parent9ec5282 commita334a5a

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
constisTopBom=["top","bottom"].includes(props.placement);
@@ -155,6 +156,7 @@ let TmpDrawerComp = (function () {
155156
className={props.classNameasstring}
156157
data-testid={props.dataTestIdasstring}
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
<Sectionname={sectionNames.interaction}>{children.onEvent.getPropertyView()}</Section>
211217
<Sectionname={sectionNames.style}>{children.style.getPropertyView()}</Section>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp