arco-design-vue
arco-design-vue copied to clipboard
fix(switch): 当beforeChange类型为Promise<void>时 无异常可继续执行
当beforeChange类型为Promise
Types of changes
- [ ] New feature
- [ ] Bug fix
- [x] Enhancement
- [ ] Component style change
- [ ] Typescript definition change
- [ ] Documentation change
- [ ] Coding style change
- [ ] Refactoring
- [ ] Test cases
- [ ] Continuous integration
- [ ] Breaking change
- [ ] Others
Background and context
Solution
How is the change tested?
Changelog
| Component | Changelog(CN) | Changelog(EN) | Related issues |
|---|---|---|---|
| Switch | 当before-change类型为Promise<void>时 无异常可继续执行 |
When the before-change type is Promise<void>, the execution can continue without exception |
Checklist:
- [ ] Test suite passes (
npm run test) - [ ] Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
- [ ] Changes are submitted to the appropriate branch (e.g. features should be submitted to
featurebranch and others should be submitted tomainbranch)