Skip to content

Commit

Permalink
fix(loading): add parentheses in loading/index.less
Browse files Browse the repository at this point in the history
  • Loading branch information
liubaihuiGIO committed May 26, 2021
1 parent 014cc31 commit 911631a
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

0 comments on commit 911631a

Please sign in to comment.