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

Commit1a3883c

Browse files
Modal: fix external styling classes on modal/drawer not working
1 parent2f871a5 commit1a3883c

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

‎client/packages/lowcoder/src/comps/generators/uiCompBuilder.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ function UIView(props: {
219219
viewFn:any;
220220
}){
221221
constcomp=props.comp;
222-
223222
constchildrenProps=childrenToProps(comp.children);
224223
constparentDisabled=useContext(DisabledContext);
225224
constdisabled=childrenProps["disabled"];
@@ -236,6 +235,17 @@ function UIView(props: {
236235
}
237236
//END ADD BY FRED
238237

238+
if(comp.children.hasOwnProperty('showMask')&&comp.children.hasOwnProperty('maskClosable')){
239+
return(
240+
<HidableViewhidden={childrenProps.hiddenasboolean}>
241+
{props.viewFn(
242+
childrenProps,
243+
comp.dispatch
244+
)}
245+
</HidableView>
246+
);
247+
}
248+
239249
return(
240250
<div
241251
ref={props.innerRef}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ let TmpDrawerComp = (function () {
167167
zIndex={Layers.drawer}
168168
maskClosable={props.maskClosable}
169169
mask={props.showMask}
170+
className={props.classNameasstring}
171+
data-testid={props.dataTestIdasstring}
170172
>
171173
<ButtonStyle
172174
$closePosition={props.closePosition}

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { trans } from "i18n";
2626
import_from"lodash";
2727
importdayjsfrom"dayjs";
2828
import{ConstructorToComp}from"lowcoder-core";
29-
import{Section,sectionNames}from"lowcoder-design";
29+
import{ScrollBar,Section,sectionNames}from"lowcoder-design";
3030
importReact,{useContext,useEffect,useMemo}from"react";
3131
import{useInterval,useTitle,useWindowSize}from"react-use";
3232
import{useCurrentUser}from"util/currentUser";
@@ -204,7 +204,9 @@ export class HookComp extends HookTmpComp {
204204
return(
205205
<>
206206
<CompNamename={this.children.name.getView()}/>
207-
{this.children.comp.getPropertyView()}
207+
<ScrollBar>
208+
{this.children.comp.getPropertyView()}
209+
</ScrollBar>
208210
</>
209211
);
210212
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ let TmpModalComp = (function () {
155155
zIndex={Layers.modal}
156156
modalRender={(node)=><ModalStyled$style={props.style}>{node}</ModalStyled>}
157157
mask={props.showMask}
158+
className={props.classNameasstring}
159+
data-testid={props.dataTestIdasstring}
158160
>
159161
<InnerGrid
160162
{...otherContainerProps}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp