File tree Expand file tree Collapse file tree 6 files changed +9
-7
lines changed
client/packages/lowcoder/src/comps/comps/buttonComp Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ const ButtonTmpComp = (function () {
136136 } ;
137137 return new UICompBuilder ( childrenMap , ( props ) => {
138138 return (
139- < ButtonCompWrapper disabled = { props . disabled } >
139+ < ButtonCompWrapper $ disabled= { props . disabled } >
140140 < EditorContext . Consumer >
141141 { ( editorState ) => (
142142 < Button100
Original file line number Diff line number Diff line change @@ -68,10 +68,12 @@ export const Button100 = styled(Button)<{ $buttonStyle?: ButtonStyleType }>`
6868 line-height:${ ( props ) => props . $buttonStyle ?. lineHeight } ;
6969` ;
7070
71- export const ButtonCompWrapper = styled . div < { disabled : boolean } > `
71+ export const ButtonCompWrapper = styled . div < { $disabled : boolean } > `
72+ display: flex;
73+
7274 // The button component is disabled but can respond to drag & select events
7375 ${ ( props ) =>
74- props . disabled &&
76+ props . $ disabled &&
7577 `
7678 cursor: not-allowed;
7779 button:disabled {
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ const DropdownTmpComp = (function () {
116116 ) ;
117117
118118 return (
119- < ButtonCompWrapper disabled = { props . disabled } >
119+ < ButtonCompWrapper $ disabled= { props . disabled } >
120120 { props . onlyMenu ? (
121121 < Dropdown
122122 disabled = { props . disabled }
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ const LinkTmpComp = (function () {
9595 // chrome86 bug: button children should not contain only empty span
9696 const hasChildren = hasIcon ( props . prefixIcon ) || ! ! props . text || hasIcon ( props . suffixIcon ) ;
9797 return (
98- < ButtonCompWrapper disabled = { props . disabled } >
98+ < ButtonCompWrapper $ disabled= { props . disabled } >
9999 < Link
100100 $animationStyle = { props . animationStyle }
101101 ref = { props . viewRef }
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ const ScannerTmpComp = (function () {
134134 } ;
135135
136136 return (
137- < ButtonCompWrapper disabled = { props . disabled } >
137+ < ButtonCompWrapper $ disabled= { props . disabled } >
138138 < Button100
139139 ref = { props . viewRef }
140140 $buttonStyle = { props . style }
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ const ToggleTmpComp = (function () {
7272
7373 return (
7474 < ButtonCompWrapperStyled
75- disabled = { props . disabled }
75+ $ disabled= { props . disabled }
7676 $align = { props . alignment }
7777 $showBorder = { props . showBorder }
7878 $animationStyle = { props . animationStyle }
You can’t perform that action at this time.
0 commit comments