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

View File

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

View File

@ -3,16 +3,27 @@ import { Steps } from 'ant-design-vue';
import type { ComponentDemo } from '../../interface'; import type { ComponentDemo } from '../../interface';
const { Step } = Steps;
const Demo = defineComponent({ const Demo = defineComponent({
setup() { setup() {
return () => ( return () => (
<Steps current={1}> <Steps
<Step title="Finished" description="This is a description." /> current={1}
<Step title="In Progress" subTitle="Left 00:00:08" description="This is a description." /> items={[
<Step title="Waiting" description="This is a description." /> {
</Steps> 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="antdVersion">{{ antdVersion }}</a-select-option>
<a-select-option value="3.x" @click="changeVersion('3x')">3.x</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')"> <a-select-option value="2.x" @click="changeVersion('2x')">
2.x (Not Recommended) 2.x (Not Recommended)
</a-select-option> </a-select-option>