Skip to content

Commit

Permalink
fix(loading): add parentheses in loading/index.less (#1013)
Browse files Browse the repository at this point in the history
Co-authored-by: liubaihuiGIO <liubaihui@growingio.com>
  • Loading branch information
christingliu and liubaihuiGIO authored May 26, 2021
1 parent 014cc31 commit 003a71d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/loading/Loading.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const Default = Template.bind({});
Default.args = {
loading: true,
titlePosition: 'right',
autoCenter: true
autoCenter: true,
};

export const Container = Template.bind({});
Expand All @@ -69,10 +69,12 @@ Container.args = {
};

export const Indicator = Template.bind({});

Indicator.args = {
indicator: <LoadingOutlined rotating />,
title: false,
};

Indicator.story = {
parameters: {
design: {
Expand All @@ -98,6 +100,7 @@ const DelayTemplate: Story<DelayProps> = (args) => {
</>
);
};

export const Delay = DelayTemplate.bind({});
Delay.args = {
delay: 1000,
Expand Down
4 changes: 2 additions & 2 deletions src/components/loading/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
@container-rotate-timing: 1600ms;
@ring-fill-unfill-rotate-timing: 4800ms;
@ring-line-count: 4;
@ring-left-spin: @ring-fill-unfill-rotate-timing / @ring-line-count;
@ring-right-spin: @ring-fill-unfill-rotate-timing / @ring-line-count;
@ring-left-spin: (@ring-fill-unfill-rotate-timing / @ring-line-count);
@ring-right-spin: (@ring-fill-unfill-rotate-timing / @ring-line-count);

@keyframes container-rotate {
to {
Expand Down

1 comment on commit 003a71d

@vercel
Copy link

@vercel vercel bot commented on 003a71d May 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.