File tree 6 files changed +9
-7
lines changed
client/packages/lowcoder/src/comps/comps/buttonComp 6 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ const ButtonTmpComp = (function () {
136
136
} ;
137
137
return new UICompBuilder ( childrenMap , ( props ) => {
138
138
return (
139
- < ButtonCompWrapper disabled = { props . disabled } >
139
+ < ButtonCompWrapper $ disabled= { props . disabled } >
140
140
< EditorContext . Consumer >
141
141
{ ( editorState ) => (
142
142
< Button100
Original file line number Diff line number Diff line change @@ -68,10 +68,12 @@ export const Button100 = styled(Button)<{ $buttonStyle?: ButtonStyleType }>`
68
68
line-height:${ ( props ) => props . $buttonStyle ?. lineHeight } ;
69
69
` ;
70
70
71
- export const ButtonCompWrapper = styled . div < { disabled : boolean } > `
71
+ export const ButtonCompWrapper = styled . div < { $disabled : boolean } > `
72
+ display: flex;
73
+
72
74
// The button component is disabled but can respond to drag & select events
73
75
${ ( props ) =>
74
- props . disabled &&
76
+ props . $ disabled &&
75
77
`
76
78
cursor: not-allowed;
77
79
button:disabled {
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ const DropdownTmpComp = (function () {
116
116
) ;
117
117
118
118
return (
119
- < ButtonCompWrapper disabled = { props . disabled } >
119
+ < ButtonCompWrapper $ disabled= { props . disabled } >
120
120
{ props . onlyMenu ? (
121
121
< Dropdown
122
122
disabled = { props . disabled }
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ const LinkTmpComp = (function () {
95
95
// chrome86 bug: button children should not contain only empty span
96
96
const hasChildren = hasIcon ( props . prefixIcon ) || ! ! props . text || hasIcon ( props . suffixIcon ) ;
97
97
return (
98
- < ButtonCompWrapper disabled = { props . disabled } >
98
+ < ButtonCompWrapper $ disabled= { props . disabled } >
99
99
< Link
100
100
$animationStyle = { props . animationStyle }
101
101
ref = { props . viewRef }
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ const ScannerTmpComp = (function () {
134
134
} ;
135
135
136
136
return (
137
- < ButtonCompWrapper disabled = { props . disabled } >
137
+ < ButtonCompWrapper $ disabled= { props . disabled } >
138
138
< Button100
139
139
ref = { props . viewRef }
140
140
$buttonStyle = { props . style }
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ const ToggleTmpComp = (function () {
72
72
73
73
return (
74
74
< ButtonCompWrapperStyled
75
- disabled = { props . disabled }
75
+ $ disabled= { props . disabled }
76
76
$align = { props . alignment }
77
77
$showBorder = { props . showBorder }
78
78
$animationStyle = { props . animationStyle }
You can’t perform that action at this time.
0 commit comments