优化资源定价价格精度为小数点后四位数#169
Merged
Merged
Conversation
- 在多个定价相关组件中引入 createPriceInputNumberProps 函数,统一价格输入框的配置,支持最多 4 位小数。 - 更新 ModelPricingModal、SkillPricingFormModal 和 ToolPricingFormModal 组件,简化价格输入框的属性设置,提高代码可读性和维护性。 - 新增 utils/priceInput.ts 文件,封装价格输入框的格式化和解析逻辑,提升输入体验。
- 在 ModelPricingModal 组件中引入 priceInputProps,统一价格输入框的配置,支持最多 4 位小数,提升代码可读性。 - 移除重复的属性设置,简化价格输入框的实现,提高维护性。
- 在 ModelPricingModal 组件中新增逻辑,排除已配置定价的模型,确保仅在新增模式下加载可选模型。 - 通过使用 Set 数据结构优化排除逻辑,提高性能和可读性。
- 在 package.json 和 version.ts 文件中将应用版本号更新至 1.1.12,以反映最新的版本发布。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
资源定价页下模型定价、插件、工作流和技能定价精度改为小数点后四位数