MaxKB
MaxKB copied to clipboard
修复前端缺少 @ctrl/tinycolor 依赖库,以及不兼容4.1.x版本的问题
前端缺少 @ctrl/tinycolor 依赖库,以及不兼容4.1.x版本
原来的依赖包中,缺少一个库"@ctrl/tinycolor",运行开发环境会报错,而如果直接通过 npm install @ctrl/tinycolor 安装这个库的话,会发现安装的是 4.1.0 版,但代码不能兼容。
修改
- 在 package.json 文件中增加 "@ctrl/tinycolor" 依赖
- 在 index.ts 文件中,修改引入 TinyColor 的方式,原来是一个函数,现在是一个类,同时也修改调用的位置
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment