Skip to content

Commit 4e277ea

Browse files
authored
fix
* fix compile type errors * fix menuprops type import * fix lint errors * fix lint errors * fix format error * fix node version * fix run dist error * fix run lint * fix as any * fix string type * fix steps error & fix docs version select option & fix theme editor error
1 parent bf97057 commit 4e277ea

File tree

4 files changed

+36
-21
lines changed

4 files changed

+36
-21
lines changed

components/steps/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const Steps = defineComponent({
9696
<Progress
9797
type="circle"
9898
percent={mergedPercent.value}
99-
width={progressWidth}
99+
size={progressWidth}
100100
strokeWidth={4}
101101
format={() => null}
102102
/>
@@ -146,7 +146,7 @@ const Steps = defineComponent({
146146
/* istanbul ignore next */
147147
export const Step = defineComponent({
148148
compatConfig: { MODE: 3 },
149-
...VcStep,
149+
...(VcStep as any),
150150
name: 'AStep',
151151
props: VcStepProps(),
152152
});

site/src/components/antdv-token-previewer/component-demos/steps/danger.tsx

+16-11
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,25 @@ import { Steps } from 'ant-design-vue';
33

44
import type { ComponentDemo } from '../../interface';
55

6-
const { Step } = Steps;
7-
86
const Demo = defineComponent({
97
setup() {
108
return () => (
11-
<Steps current={1}>
12-
<Step title="Error" status={'error'} description="This is a description." />
13-
<Step
14-
status={'error'}
15-
title="In Progress"
16-
subTitle="Left 00:00:08"
17-
description="This is a description."
18-
/>
19-
</Steps>
9+
<Steps
10+
current={1}
11+
items={[
12+
{
13+
title: 'Error',
14+
status: 'error',
15+
description: 'This is a description.',
16+
},
17+
{
18+
title: 'In Progress"',
19+
status: 'error',
20+
subTitle: 'Left 00:00:08',
21+
description: 'This is a description.',
22+
},
23+
]}
24+
/>
2025
);
2126
},
2227
});

site/src/components/antdv-token-previewer/component-demos/steps/steps.tsx

+18-7
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,27 @@ import { Steps } from 'ant-design-vue';
33

44
import type { ComponentDemo } from '../../interface';
55

6-
const { Step } = Steps;
7-
86
const Demo = defineComponent({
97
setup() {
108
return () => (
11-
<Steps current={1}>
12-
<Step title="Finished" description="This is a description." />
13-
<Step title="In Progress" subTitle="Left 00:00:08" description="This is a description." />
14-
<Step title="Waiting" description="This is a description." />
15-
</Steps>
9+
<Steps
10+
current={1}
11+
items={[
12+
{
13+
title: 'Finished',
14+
description: 'This is a description.',
15+
},
16+
{
17+
title: 'In Progress"',
18+
subTitle: 'Left 00:00:08',
19+
description: 'This is a description.',
20+
},
21+
{
22+
title: 'Waiting"',
23+
description: 'This is a description.',
24+
},
25+
]}
26+
/>
1627
);
1728
},
1829
});

site/src/layouts/header/Menu.vue

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
>
1414
<a-select-option :value="antdVersion">{{ antdVersion }}</a-select-option>
1515
<a-select-option value="3.x" @click="changeVersion('3x')">3.x</a-select-option>
16-
<a-select-option value="next" @click="changeVersion('next')">4.x (Next)</a-select-option>
1716
<a-select-option value="2.x" @click="changeVersion('2x')">
1817
2.x (Not Recommended)
1918
</a-select-option>

0 commit comments

Comments
 (0)