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

feat(comp:spin): add IxSpinProvider #1222

Merged
merged 1 commit into from
Oct 31, 2022
Merged

Conversation

liuzaijiang
Copy link
Contributor

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

What is the current behavior?

What is the new behavior?

IxSpinProvider

IxSpinProviderMethods

名称 说明 参数类型 备注
open 打开 (options: SpinOptions) => SpinRef target不传,默认为targetbody
update 更新 (options: SpinOptions) => void target不传,默认为targetbody
destroy 销毁 (target?: TargetType | TargetType[]) => void target不传,默认为targetbody
destroyAll 销毁全部 () => void -
export type SpinOptions = Partial<
  Omit<SpinProps, 'spinning'> & {
    tip: string
    target: string | HTMLElement | (() => string | HTMLElement)
    zIndex: number
  }
>

export interface SpinRef {
  update: (options: SpinRefUpdateOptions) => void
  destroy: () => void
}

Other information

@idux-bot
Copy link

idux-bot bot commented Oct 21, 2022

This preview will be available after the AzureCI is passed.

@codecov
Copy link

codecov bot commented Oct 21, 2022

Codecov Report

Merging #1222 (b2b1005) into main (da09bd5) will decrease coverage by 3.95%.
The diff coverage is 94.46%.

@@            Coverage Diff             @@
##             main    #1222      +/-   ##
==========================================
- Coverage   96.63%   92.67%   -3.96%     
==========================================
  Files         317      319       +2     
  Lines       30953    29286    -1667     
  Branches     2833     2389     -444     
==========================================
- Hits        29910    27142    -2768     
- Misses       1043     2144    +1101     
Impacted Files Coverage Δ
packages/components/spin/src/useSpin.ts 72.72% <72.72%> (ø)
packages/components/spin/src/SpinProvider.tsx 95.48% <95.48%> (ø)
packages/components/spin/src/Spin.tsx 96.81% <100.00%> (-3.19%) ⬇️
packages/components/spin/src/token.ts 100.00% <100.00%> (ø)
packages/components/spin/src/types.ts 100.00% <100.00%> (ø)
packages/pro/search/src/ProSearch.tsx 17.41% <0.00%> (-82.59%) ⬇️
packages/pro/textarea/src/IndexColumn.tsx 20.63% <0.00%> (-79.37%) ⬇️
packages/components/watermark/src/Watermark.tsx 27.02% <0.00%> (-72.98%) ⬇️
packages/pro/form/src/ProForm.tsx 30.26% <0.00%> (-69.74%) ⬇️
packages/components/time-picker/src/TimePicker.tsx 30.52% <0.00%> (-69.48%) ⬇️
... and 107 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@danranVm danranVm merged commit 42491a9 into IDuxFE:main Oct 31, 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.

None yet

2 participants