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: 防止VueCompositionAPI重复注册 #809

Merged
merged 1 commit into from
Apr 27, 2022
Merged

Conversation

cong-min
Copy link
Contributor

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

VueCompositionAPI 只能注册一次,如果有其他的库调用过 Vue.use(VueCompositionAPI)tdesign-vue 再次注册会报错:

wecom-temp-bf0c62ad30efcfbf445aa3d321aee173

解决方案为注册前加判断逻辑:if (Vue._installedPlugins.indexOf(VueCompositionAPI) === -1) Vue.use(VueCompositionAPI);

📝 更新日志

  • fix(组件名称): 处理问题或特性描述 ...

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@github-actions
Copy link
Contributor

Size Change: +41 B (0%)

Total Size: 633 kB

Filename Size Change
./dist/tdesign.js 351 kB +25 B (0%)
./dist/tdesign.min.js 202 kB +16 B (0%)
ℹ️ View Unchanged
Filename Size
./dist/tdesign.css 42.8 kB
./dist/tdesign.min.css 38.1 kB

@github-actions
Copy link
Contributor

完成

@xiaosansiji xiaosansiji merged commit 50a2c78 into develop Apr 27, 2022
@xiaosansiji xiaosansiji deleted the fix/composition-api branch April 27, 2022 08:32
@cong-min cong-min restored the fix/composition-api branch April 28, 2022 08:41
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