Skip to content

Commit e34e635

Browse files
updated button loaders
1 parent 1c1efc0 commit e34e635

File tree

1 file changed

+8
-1
lines changed
  • client/packages/lowcoder-design/src/components

1 file changed

+8
-1
lines changed

client/packages/lowcoder-design/src/components/button.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import Button, { ButtonProps } from "antd/es/button";
2+
import Spin from "antd/es/spin";
3+
import LoadingOutlined from "@ant-design/icons/LoadingOutlined"
24
import styled, { css } from "styled-components";
35
import { Loading } from "./Loading";
46
import * as React from "react";
@@ -206,10 +208,15 @@ const TacoButton = forwardRef(
206208
{props.icon}
207209
{props.children}
208210
</span>
209-
<Loading
211+
{/* <Loading
210212
style={loadingStyle}
211213
backgroundColor={loadingBackground}
212214
color={loadingColor}
215+
/> */}
216+
<Spin
217+
size="small"
218+
indicator={<LoadingOutlined spin style={{color: 'white'}} />}
219+
style={loadingStyle}
213220
/>
214221
</>
215222
) : (

0 commit comments

Comments
 (0)