File tree Expand file tree Collapse file tree 6 files changed +35
-19
lines changed
lowcoder/src/comps/comps/tableComp
lowcoder-design/src/components Expand file tree Collapse file tree 6 files changed +35
-19
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,9 @@ export const ControlPropertyViewWrapper = (
159
159
< ToolTipLabel
160
160
title = { tooltip }
161
161
label = { label }
162
- overlayInnerStyle = { labelTooltipOverlayInnerStyle }
162
+ styles = { {
163
+ body : labelTooltipOverlayInnerStyle ,
164
+ } }
163
165
/>
164
166
</ LabelWrapper >
165
167
) }
Original file line number Diff line number Diff line change @@ -363,10 +363,12 @@ export const IconSelectBase = (props: {
363
363
onOpenChange = { setVisible }
364
364
getPopupContainer = { parent ? ( ) => parent : undefined }
365
365
// hide the original background when dragging the popover is allowed
366
- overlayInnerStyle = { {
367
- border : "none" ,
368
- boxShadow : "none" ,
369
- background : "transparent" ,
366
+ styles = { {
367
+ body : {
368
+ border : "none" ,
369
+ boxShadow : "none" ,
370
+ background : "transparent" ,
371
+ }
370
372
} }
371
373
// when dragging is allowed, always re-location to avoid the popover exceeds the screen
372
374
destroyTooltipOnHide
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ const SimplePopover = (props: {
64
64
) ;
65
65
return (
66
66
< Popover
67
- overlayInnerStyle = { { padding : 0 } }
68
67
align = { {
69
68
offset : [ - 12 , 0 , 0 , 0 ] ,
70
69
} }
@@ -74,7 +73,10 @@ const SimplePopover = (props: {
74
73
open = { visible }
75
74
onOpenChange = { setVisible }
76
75
placement = "left"
77
- overlayStyle = { { width : "310px" } }
76
+ styles = { {
77
+ root : { width : "310px" } ,
78
+ body : { padding : 0 }
79
+ } }
78
80
>
79
81
{ props . children }
80
82
</ Popover >
@@ -101,16 +103,18 @@ const CustomPopover = (props: {
101
103
) ;
102
104
return (
103
105
< Popover
104
- overlayInnerStyle = { { padding : 0 } }
105
106
content = { contentWithBox }
106
107
trigger = "click"
107
108
open = { visible }
108
109
onOpenChange = { setVisible }
109
110
placement = { props . type === "query" ? "top" : "left" }
110
- overlayStyle = { { width : "310px" } }
111
111
align = { {
112
112
offset : [ - 12 , 0 , 0 , 0 ] ,
113
113
} }
114
+ styles = { {
115
+ root : { width : "310px" } ,
116
+ body : { padding : 0 }
117
+ } }
114
118
>
115
119
{ props . children }
116
120
</ Popover >
@@ -167,8 +171,10 @@ const EditPopover = (props: EditPopoverProps) => {
167
171
return (
168
172
< Popover
169
173
arrow = { false }
170
- overlayStyle = { { paddingTop : '15px' } }
171
- overlayInnerStyle = { { padding : 0 } }
174
+ styles = { {
175
+ root : { paddingTop : '15px' } ,
176
+ body : { padding : 0 }
177
+ } }
172
178
content = { ( ) => (
173
179
< >
174
180
< Wedge />
Original file line number Diff line number Diff line change @@ -444,10 +444,12 @@ export const ShapeSelectBase = (props: {
444
444
onOpenChange = { setVisible }
445
445
getPopupContainer = { parent ? ( ) => parent : undefined }
446
446
// hide the original background when dragging the popover is allowed
447
- overlayInnerStyle = { {
448
- border : "none" ,
449
- boxShadow : "none" ,
450
- background : "transparent" ,
447
+ styles = { {
448
+ body : {
449
+ border : "none" ,
450
+ boxShadow : "none" ,
451
+ background : "transparent" ,
452
+ }
451
453
} }
452
454
// when dragging is allowed, always re-location to avoid the popover exceeds the screen
453
455
destroyTooltipOnHide
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ export const UnderlineCss = css`
155
155
` ;
156
156
157
157
function Tooltip ( props : TooltipProps ) {
158
- return < AntdTooltip color = "#2c2c2c2" overlayInnerStyle = { overlayInnerCss } { ...props } /> ;
158
+ return < AntdTooltip color = "#2c2c2c2" styles = { { body : overlayInnerCss } } { ...props } /> ;
159
159
}
160
160
161
161
const Label = styled . div < { $border ?: boolean } > `
@@ -181,7 +181,9 @@ function ToolTipLabel(
181
181
< AntdTooltip
182
182
color = "#2c2c2c"
183
183
title = { title && < TooltipTitleWrapper > < > { title } </ > </ TooltipTitleWrapper > }
184
- overlayInnerStyle = { { maxWidth : "232px" , whiteSpace : "break-spaces" } }
184
+ styles = { {
185
+ body : { maxWidth : "232px" , whiteSpace : "break-spaces" }
186
+ } }
185
187
arrow = { {
186
188
pointAtCenter : true
187
189
} }
Original file line number Diff line number Diff line change @@ -686,8 +686,10 @@ function ToolbarPopover(props: {
686
686
return (
687
687
< Popover
688
688
open = { visible }
689
- overlayStyle = { { pointerEvents : "auto" } }
690
- overlayInnerStyle = { { padding : '0' } }
689
+ styles = { {
690
+ root : { pointerEvents : "auto" } ,
691
+ body : { padding : '0' }
692
+ } }
691
693
content = {
692
694
< div
693
695
ref = { popOverRef }
You can’t perform that action at this time.
0 commit comments