idux
idux copied to clipboard
[wip]feat(comp: spin): add IxSpinProvider
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?
| 名称 | 说明 | 参数类型 | 备注 |
|---|---|---|---|
open |
打开 | (tip?: string, options?: SpinProviderOptions) => void |
target不传,默认为body |
update |
更新 | (tip?: string, options?: SpinProviderOptions) => void |
更新通过open创建的spin |
close |
关闭 | (target?: string | HTMLElement | (() => string | HTMLElement)) => void |
关闭通过open创建的spin |
closeAll |
关闭全部 | () => void |
- |
export type SpinProviderOptions = Partial<
Omit<SpinProps, 'spinning'> & { target?: string | HTMLElement | (() => string | HTMLElement) }
>
Other information
This preview will be available after the AzureCI is passed.
Codecov Report
Merging #933 (8e636c3) into main (c27831d) will decrease coverage by
0.18%. The diff coverage is62.31%.
:exclamation: Current head 8e636c3 differs from pull request most recent head 69d06e5. Consider uploading reports for the commit 69d06e5 to get more accurate results
@@ Coverage Diff @@
## main #933 +/- ##
==========================================
- Coverage 92.76% 92.58% -0.19%
==========================================
Files 692 696 +4
Lines 67697 68043 +346
Branches 7920 7932 +12
==========================================
+ Hits 62798 62995 +197
- Misses 4899 5048 +149
| Impacted Files | Coverage Δ | |
|---|---|---|
| packages/pro/config/src/defaultConfig.ts | 100.00% <ø> (ø) |
|
| packages/components/spin/src/SpinProvider.tsx | 16.45% <16.45%> (ø) |
|
| ...ckages/components/table/src/main/head/HeadCell.tsx | 78.26% <28.57%> (-3.65%) |
:arrow_down: |
| packages/components/spin/src/useSpin.ts | 72.72% <72.72%> (ø) |
|
| packages/components/spin/index.ts | 93.33% <88.23%> (-6.67%) |
:arrow_down: |
| packages/components/config/src/defaultConfig.ts | 100.00% <100.00%> (ø) |
|
| packages/components/config/src/types.ts | 100.00% <100.00%> (ø) |
|
| packages/components/icon/src/dependencies.ts | 99.01% <100.00%> (+0.01%) |
:arrow_up: |
| ...ges/components/spin/__tests__/spinProvider.spec.ts | 100.00% <100.00%> (ø) |
|
| packages/components/spin/src/token.ts | 100.00% <100.00%> (ø) |
|
| ... and 15 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update c27831d...69d06e5. Read the comment docs.