* 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
pull/6454/head
果冻橙 2023-04-08 20:57:46 +08:00 committed by GitHub
parent bf97057c2c
commit 4e277ea9bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 21 deletions

View File

@ -96,7 +96,7 @@ const Steps = defineComponent({
<Progress
type="circle"
percent={mergedPercent.value}
width={progressWidth}
size={progressWidth}
strokeWidth={4}
format={() => null}
/>
@ -146,7 +146,7 @@ const Steps = defineComponent({
/* istanbul ignore next */
export const Step = defineComponent({
compatConfig: { MODE: 3 },
...VcStep,
...(VcStep as any),
name: 'AStep',
props: VcStepProps(),
});

View File

@ -3,20 +3,25 @@ import { Steps } from 'ant-design-vue';
import type { ComponentDemo } from '../../interface';
const { Step } = Steps;
const Demo = defineComponent({
setup() {
return () => (
<Steps current={1}>
<Step title="Error" status={'error'} description="This is a description." />
<Step
status={'error'}
title="In Progress"
subTitle="Left 00:00:08"
description="This is a description."
/>
</Steps>
<Steps
current={1}
items={[
{
title: 'Error',
status: 'error',
description: 'This is a description.',
},
{
title: 'In Progress"',
status: 'error',
subTitle: 'Left 00:00:08',
description: 'This is a description.',
},
]}
/>
);
},
});

View File

@ -3,16 +3,27 @@ import { Steps } from 'ant-design-vue';
import type { ComponentDemo } from '../../interface';
const { Step } = Steps;
const Demo = defineComponent({
setup() {
return () => (
<Steps current={1}>
<Step title="Finished" description="This is a description." />
<Step title="In Progress" subTitle="Left 00:00:08" description="This is a description." />
<Step title="Waiting" description="This is a description." />
</Steps>
<Steps
current={1}
items={[
{
title: 'Finished',
description: 'This is a description.',
},
{
title: 'In Progress"',
subTitle: 'Left 00:00:08',
description: 'This is a description.',
},
{
title: 'Waiting"',
description: 'This is a description.',
},
]}
/>
);
},
});

View File

@ -13,7 +13,6 @@
>
<a-select-option :value="antdVersion">{{ antdVersion }}</a-select-option>
<a-select-option value="3.x" @click="changeVersion('3x')">3.x</a-select-option>
<a-select-option value="next" @click="changeVersion('next')">4.x (Next)</a-select-option>
<a-select-option value="2.x" @click="changeVersion('2x')">
2.x (Not Recommended)
</a-select-option>