Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(comp: stepper): vertical style error without description #784

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

liuzaijiang
Copy link
Contributor

@liuzaijiang liuzaijiang commented Mar 3, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added/updated or not needed
  • Docs and demo have been added/updated or not needed

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Component style update
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Application (the showcase website) / infrastructure changes
  • Other... Please describe:

What is the current behavior?

<template>
  <IxStepper :activeKey="2" vertical>
    <IxStepperItem status="finish" title="Finished" ></IxStepperItem>
    <IxStepperItem title="In Progress"></IxStepperItem>
    <IxStepperItem title="Waiting"></IxStepperItem>
  </IxStepper>
</template>

image

What is the new behavior?

image

Other information

  1. 同时修复stepper组件全局的size配置对于内部的progress组件不生效
  2. 丰富测试案例

@idux-bot
Copy link

idux-bot bot commented Mar 3, 2022

This preview will be available after the AzureCI is passed.

@codecov
Copy link

codecov bot commented Mar 3, 2022

Codecov Report

Merging #784 (02a2094) into main (3b8c9d9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #784   +/-   ##
=======================================
  Coverage   83.99%   83.99%           
=======================================
  Files         466      466           
  Lines       12026    12027    +1     
  Branches     2890     2891    +1     
=======================================
+ Hits        10101    10102    +1     
  Misses       1925     1925           
Impacted Files Coverage Δ
packages/components/stepper/src/Stepper.tsx 94.11% <100.00%> (+0.36%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b8c9d9...02a2094. Read the comment docs.

@liuzaijiang liuzaijiang force-pushed the fix-stepper-lzj branch 3 times, most recently from eb657ff to f2b5690 Compare March 3, 2022 09:32
[`${prefixCls}-vertical`]: vertical,
[`${prefixCls}-with-percent`]: percent != null,
})
})

const [activeKey, setActiveKey] = useControlledProp(props, 'activeKey')

provide(stepperToken, { props, slots, activeKey, setActiveKey })
provide(stepperToken, { props: reactive({ ...toRefs(props), size }), slots, activeKey, setActiveKey })
Copy link
Member

Choose a reason for hiding this comment

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

size 单独传一下就好了吧,没必要这么干。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

不建议这样做,对于item来说size是属于parentProps的一部分

packages/components/stepper/src/StepperItem.tsx Outdated Show resolved Hide resolved
@liuzaijiang liuzaijiang force-pushed the fix-stepper-lzj branch 2 times, most recently from e3e6f64 to 2aa8889 Compare March 4, 2022 01:54
@danranVm danranVm merged commit 5ec4906 into IDuxFE:main Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants